Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(install): fail install if Otelcol is not running on darwin #1370

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

swiatekm
Copy link

@swiatekm swiatekm commented Dec 6, 2023

Check if the launchd task is running after installation, same as we do for systemd. Add an error message to both of these cases.

I think this also resolves #1361 - @astencel-sumo @sumo-drosiek can you have a look?

@swiatekm swiatekm requested a review from a team as a code owner December 6, 2023 11:08
@swiatekm swiatekm force-pushed the fix/install-script/macos-status branch 2 times, most recently from addd518 to 8a91dde Compare December 6, 2023 11:50
Copy link
Contributor

@sumo-drosiek sumo-drosiek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but tests are failing

@swiatekm swiatekm force-pushed the fix/install-script/macos-status branch from 8a91dde to c72a138 Compare December 6, 2023 12:52
@swiatekm
Copy link
Author

swiatekm commented Dec 6, 2023

LGTM, but tests are failing

Unfortunately, it's not that easy to check if Otelcol is failing on MacOS, as the state can briefly be running even if it exits with an error, and launchctl doesn't have any simple way of checking for this. I'm going to try looking at the exit code instead.

@swiatekm swiatekm force-pushed the fix/install-script/macos-status branch from c72a138 to 3d5b9db Compare December 6, 2023 13:11
@swiatekm swiatekm force-pushed the fix/install-script/macos-status branch from 3d5b9db to 5af2cf3 Compare December 7, 2023 10:23
@swiatekm swiatekm enabled auto-merge (rebase) December 7, 2023 10:31
@swiatekm swiatekm merged commit e32ef7a into main Dec 7, 2023
28 checks passed
@swiatekm swiatekm deleted the fix/install-script/macos-status branch December 7, 2023 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add more checks to MacOS install script
2 participants