Repository navigation
workaround hanging TestTypeScriptPackageManagerDetection test - #8155
Merged
Merged
Conversation
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
TestTypeScriptPackageManagerDetection test
vito
marked this pull request as ready for review
August 14, 2024 19:42
Contributor
|
I believe this is what I am running into when trying out CI for #8122. I tried running it locally, and this is where it is stuck. |
rajatjindal
added a commit
to rajatjindal/dagger
that referenced
this pull request
Aug 15, 2024
Signed-off-by: Rajat Jindal <[email protected]>
jedevc
approved these changes
Aug 15, 2024
vito
added a commit
to vito/dagger
that referenced
this pull request
Aug 15, 2024
…st (dagger#8155)" This reverts commit 855a52d.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This test creates a single client and uses it for 4 tests in parallel. Each test runs
dagger developat some point, and we're seeing this part hang in the export step:Giving each test its own seems to work around the issue (0/2 runs hang with the fix, 2/2 hang without).
It doesn't seem to be a regression related to the test or the feature being tested, and it's better for each test to open its own client anyway so we don't leave one hanging around until they run.
Deadlock analysis
tl;dr: it appears we've found a repro for #6355 🎉 - so after merging this PR we can just revert locally to investigate it.
Here are some runs that demonstrate the hang:
For the last one I managed to capture a stack dump of the engine, with the help of @gerhard and @matipan. 🙏
Which is blocked on these calls:
=>
=>
=> this is holding a lock which these other goroutines want real bad: