You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test case appears to be going as expected, the interactive container is opened after the failed exec, runs some commands, successfully sends exit and then the test hangs until the timeout on the whole suite of 30m is hit.
No immediate strong clues, first hunch is to look for any race conditions in the debug container code that could result in a hang after an exit. Given the load the CI runners are under wouldn't be surprising if a rare race condition only gets triggered there.
Will start by re-opening my deflaking PR and keep re-running there til I hit it and then shell into the CI runner and getting a stack trace from the engine to see what line, if any, it's stuck on.
While working on the filesync stuff I started hitting this flake locally relatively consistently by running:
./hack/with-dev go test -v -run='TestModule/TestDaggerTerminal|TestModule/TestDaggerUp' -count=10 -parallel=8 ./core/integration/
can't repro locally unless it's the specific combination of tests (most likely due to subtle timing differences).
So took a tangent and figured out what's happening; there's a few levels of issues but the main one is that we aren't closing some stdout/stderr pipes in error cases involving terminal containers, which leads to this line sometimes blocking forever if it happens to be in the middle of a write to stdout (will unblock only if it happened to be in the middle of reading from the pty).
Either way, this is a worthy tangent so working on a fix now.
Activity
sipsma commentedon Oct 10, 2024
This one is still appearing (GHA) (Traces)
sipsma commentedon Nov 19, 2024
Another recent occurrence https://dagger.cloud/dagger/traces/15c22afdc0ae043aed5e80b9282135f8
It seems like the
on failuretest in particular is prone to this (might be the only one?) cc @aluzzardisipsma commentedon Nov 20, 2024
While working on the filesync stuff I started hitting this flake locally relatively consistently by running:
can't repro locally unless it's the specific combination of tests (most likely due to subtle timing differences).
So took a tangent and figured out what's happening; there's a few levels of issues but the main one is that we aren't closing some stdout/stderr pipes in error cases involving terminal containers, which leads to this line sometimes blocking forever if it happens to be in the middle of a write to stdout (will unblock only if it happened to be in the middle of reading from the pty).
Either way, this is a worthy tangent so working on a fix now.