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

Docker image: Don't reload when calling "test" command #495

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

lfittl
Copy link
Member

@lfittl lfittl commented Jan 6, 2024

When we changed --test to automatically reload, we forgot to explicitly avoid that in the case of the Docker image. In the Docker situation we would typically find two separate containers during a test, the one used for the test, and the regular container running in the background. Thus, the test won't be able to reload the PID that's running in a separate container / cgroups namespace.

When we changed --test to automatically reload, we forgot to explicitly
avoid that in the case of the Docker image. In the Docker situation we
would typically find two separate containers during a test, the one used
for the test, and the regular container running in the background. Thus,
the test won't be able to reload the PID that's running in a separate
container / cgroups namespace.
@lfittl lfittl requested a review from a team January 6, 2024 02:29
Copy link
Contributor

@msakrejda msakrejda left a comment

Choose a reason for hiding this comment

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

Makes sense. Another situation we should fix is on Heroku (the actual collector is running in a separate dyno, so there's nothing to reload), but that's different enough that we can do it separately.

@lfittl lfittl merged commit 551df82 into main Jan 9, 2024
6 checks passed
@lfittl lfittl deleted the dont-reload-for-docker-test branch January 9, 2024 01:12
@lfittl
Copy link
Member Author

lfittl commented Jan 9, 2024

Makes sense. Another situation we should fix is on Heroku (the actual collector is running in a separate dyno, so there's nothing to reload), but that's different enough that we can do it separately.

For Heroku that'd be more a documentation thing, right? (since we don't have any special reload task in the Procfile currently)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants