Skip to content

workaround hanging TestTypeScriptPackageManagerDetection test - #8155

Merged
jedevc merged 2 commits into
dagger:mainfrom
vito:repro-test-hang
Aug 15, 2024
Merged

jedevc merged 2 commits into
dagger:mainfrom
vito:repro-test-hang

Conversation

@vito

@vito vito commented Aug 14, 2024 •

Copy link
Copy Markdown
Contributor

This test creates a single client and uses it for 4 tests in parallel. Each test runs dagger develop at some point, and we're seeing this part hang in the export step:

image

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:

image

=>

image

=>

image

=> this is holding a lock which these other goroutines want real bad:

image

@vito vito closed this Aug 14, 2024
@vito
vito force-pushed the repro-test-hang branch from 1c568c6 to ac342af Compare August 14, 2024 17:14
@vito vito reopened this Aug 14, 2024
@vito
vito force-pushed the repro-test-hang branch from 3012a96 to c463a89 Compare August 14, 2024 19:22
@vito vito changed the title DNM: repro hanging test workaround hanging TestTypeScriptPackageManagerDetection test Aug 14, 2024
@vito vito added this to the v0.12.5 milestone Aug 14, 2024
@vito
vito marked this pull request as ready for review August 14, 2024 19:42
@rajatjindal

Copy link
Copy Markdown
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
@jedevc
jedevc merged commit 855a52d into dagger:main Aug 15, 2024
@vito
vito deleted the repro-test-hang branch August 15, 2024 13:47
vito added a commit that referenced this pull request Aug 15, 2024
vito added a commit to vito/dagger that referenced this pull request Aug 15, 2024
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.

3 participants