Skip to content

Flaky Test Timeout on TestContainerMultiPlatformExport #3784

Closed as not planned

Description

@sipsma

There have been two timeouts of this test recently:

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

  1. added
    kind/bug
    area/engine
    on Nov 10, 2022
  2. sipsma commented on Jan 5, 2023

    @sipsma
    ContributorAuthor

    Have not encountered this in several months. Hard to say it's conclusively solved but closing if/when it becomes reproducible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/enginekind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions