Repository navigation
test(build): Keep the MicrovmImage ForEach integ build off a Docker export bug - #9422
Merged
Merged
Conversation
…xport bug The nightly build-arm64 suite fails test_build_foreach_dynamic_code_uri since the runners moved to Ubuntu 26.04 (Docker 29.4.2). Docker 29 uses the containerd image store on fresh installs, and with the classic builder a cross-platform build whose first instruction after FROM is COPY fails with "failed to export image: NotFound: content digest ... not found". The x86_64 runners build these arm64 images, and the fixture Dockerfiles were FROM + COPY. Add WORKDIR before COPY in the two fixtures. The image contents are the same.
vicheey
approved these changes
Nov 11, 2026
seshubaws
approved these changes
Nov 11, 2026
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.
Which issue(s) does this change fix?
Fixes the nightly
build-arm64integration suite, wheretest_build_cmd_microvm_image.py::TestBuildMicrovmImage_0::test_build_foreach_dynamic_code_urihas failed in every run since the runners moved to Ubuntu 26.04.Why is this change necessary?
build-arm64passed on the Ubuntu 24.04 runners (Docker 28.0.4) through Nov 5. Since Nov 6 the runners are Ubuntu 26.04 (Docker 29.4.2), and once the Ruby setup was fixed (#9410) the test fails on every attempt, including reruns:Docker 29 uses the containerd image store on fresh installs. With the classic builder (the default
sam buildpath, without--use-buildkit), a cross-platform build whose first instruction afterFROMisCOPYfails this way. The missing digest is the base image's manifest for the host platform (linux/amd64on the runner), which a pull forlinux/arm64doesn't store. The two ForEach fixtures wereFROM+COPY; the other MicrovmImage fixtures haveWORKDIRorRUNfirst, and pass.How does it address the issue?
Adds
WORKDIR /appbeforeCOPY . /appin themicrovm-image-foreachAlpha and Beta Dockerfiles, with a comment explaining why. The image contents are unchanged.The underlying Docker behavior also affects
PackageType: Imagefunctions built for another architecture with aFROM+COPYDockerfile. That is tracked separately; this PR only unblocks the nightly suite.What side effects does this change have?
None. Test data only.
Testing
Against a Docker 29.9.3 daemon with the containerd image store, on an arm64 host:
X86_64(cross-platform) reproduce the samefailed to export image: NotFound: content digest ... not founderror. The fixed fixtures build both images aslinux/amd64.FROM+COPYandFROM+COPY+CMDfail;FROM+WORKDIR+COPY,FROM+ENV+COPYandFROM+RUNpass. Native builds and--use-buildkitpass in all cases.tests/integration/buildcmd/test_build_cmd_microvm_image.py: 14 passed.Mandatory Checklist
PRs will only be reviewed after checklist is complete
make prpassesmake update-reproducible-reqsif dependencies were changedBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.