Repository navigation
Description
There have been two timeouts of this test recently:
- https://github.com/dagger/dagger/actions/runs/3416253271/jobs/5686204381
- https://github.com/dagger/dagger/actions/runs/3439384759/jobs/5736692454
It's not clear whether this is unique to this test case yet or not, but those are the examples we have of it happening.
Both occurences are getting blocked on the same line, waiting for an export to happen.
More interestingly (but possibly a red herring) is that they both may be blocked not on the export itself but building the shim to use in an exec that's needed to build the container being exported. Specifically, in both progress outputs, this is one of the last outputs and in both cases it never completes:
[build 6/6] RUN CGO_ENABLED=0 go build -o /_shim -ldflags '-s -d -w' .
Also, in the newer occurrence we have access to the buildkitd logs which shows that exec'ing that container is the last thing to happen before radio silence (besides health checks):
creating tuiqcoecgb7wx1y5fzt384rc4 [/dev/.buildkit_qemu_emulator /bin/sh -c CGO_ENABLED=0 go build -o /_shim -ldflags '-s -d -w' .]" span="[build 6/6] RUN CGO_ENABLED=0 go build -o /_shim -ldflags '-s -d -w' ."
Not totally sure what this could be. Use of qemu emulation certainly has been a source of weird bugs in the past w/ buildkit but it's probably wrong to rush to blaming it here.
In the very short term, I'll see if I can add dmesg output to the end of our GHA runs, just to double check there's nothing from the kernel that could tell us more (the kernel is involved because of the use of binfmt_misc and also cause hung tasks can often get printed to the kernel logs).
It's a pretty low chance that'll tell us more, but worth a shot since it's simple and plausible.
If that doesn't help and this continues to happen we may just need to set up a local reproducer (run test in a loop) and maybe attache strace to the build of the shim or something like that to see where it's getting hung up.
Activity
sipsma commentedon Jan 5, 2023
Have not encountered this in several months. Hard to say it's conclusively solved but closing if/when it becomes reproducible.