Skip to content

Fix race condition in PackageTests/NewBuild/CmdRun/Terminate #8081

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

Merged
merged 1 commit into from
Apr 4, 2022

Conversation

robx
Copy link
Collaborator

@robx robx commented Apr 4, 2022

The "up and running" file was written before the signal handler
was installed, so it was possible for the test to kill the
subprocess before, leading to a missed "exiting" line in the
output.

I hope this fixes the sporadic failures we're seeing (#8080).

(I'm sure it's a good change, just not 100% on whether this
is the problem we saw in CI.)


Please include the following checklist in your PR:

Please also shortly describe how you tested your change. Bonus points for added tests!

The "up and running" file was written before the signal handler
was installed, so it was possible for the test to kill the
subprocess before, leading to a missed "exiting" line in the
output.

I hope this fixes the sporadic failures we're seeing (haskell#8080).
Copy link
Member

@jneira jneira left a comment

Choose a reason for hiding this comment

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

lgtm, thanks for the fix

Copy link
Member

@Mikolaj Mikolaj left a comment

Choose a reason for hiding this comment

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

Good to go.

@Mikolaj Mikolaj added the merge me Tell Mergify Bot to merge label Apr 4, 2022
@mergify mergify bot merged commit fa66306 into haskell:master Apr 4, 2022
@robx robx deleted the fix-terminate-race branch April 5, 2022 07:27
jneira added a commit to jneira/cabal that referenced this pull request Jul 22, 2022
jneira added a commit to jneira/cabal that referenced this pull request Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Tell Mergify Bot to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants