Repository navigation
Install apt-utils matching the image's apt on hardened images - #76484
Merged
Merged
Conversation
The base images can ship an apt newer than the one dhi.io publishes - apt 3.0.4 from debian-security against dhi.io's 3.0.3+dhi2 - and preferring dhi.io then selects an apt-utils that requires exactly its own apt, which cannot be installed beside the image's. Every OS-dependencies image build failed on this, so none could be published. The failure was also invisible: the install discarded apt's output, leaving only exit code 100 in the log. Generated-by: Claude Opus 5
potiuk
requested review from
amoghrajesh,
ashb,
bugraoz93,
gopidesupavan,
jason810496 and
jscheffl
as code owners
November 4, 2026 18:58
shahar1
approved these changes
Nov 4, 2026
jscheffl
approved these changes
Nov 4, 2026
Contributor
Backport successfully created: v3-4-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
github-actions Bot
pushed a commit
to aws-mwaa/upstream-to-airflow
that referenced
this pull request
Nov 4, 2026
…ages (apache#76484) The base images can ship an apt newer than the one dhi.io publishes - apt 3.0.4 from debian-security against dhi.io's 3.0.3+dhi2 - and preferring dhi.io then selects an apt-utils that requires exactly its own apt, which cannot be installed beside the image's. Every OS-dependencies image build failed on this, so none could be published. The failure was also invisible: the install discarded apt's output, leaving only exit code 100 in the log. (cherry picked from commit 0ae09c3) Co-authored-by: Jarek Potiuk <jarek@potiuk.com> Generated-by: Claude Opus 5
vatsrahul1001
pushed a commit
that referenced
this pull request
Nov 4, 2026
…ages (#76484) (#76485) The base images can ship an apt newer than the one dhi.io publishes - apt 3.0.4 from debian-security against dhi.io's 3.0.3+dhi2 - and preferring dhi.io then selects an apt-utils that requires exactly its own apt, which cannot be installed beside the image's. Every OS-dependencies image build failed on this, so none could be published. The failure was also invisible: the install discarded apt's output, leaving only exit code 100 in the log. (cherry picked from commit 0ae09c3) Generated-by: Claude Opus 5 Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
vatsrahul1001
pushed a commit
that referenced
this pull request
Nov 4, 2026
…ages (#76484) (#76485) The base images can ship an apt newer than the one dhi.io publishes - apt 3.0.4 from debian-security against dhi.io's 3.0.3+dhi2 - and preferring dhi.io then selects an apt-utils that requires exactly its own apt, which cannot be installed beside the image's. Every OS-dependencies image build failed on this, so none could be published. The failure was also invisible: the install discarded apt's output, leaving only exit code 100 in the log. (cherry picked from commit 0ae09c3) Generated-by: Claude Opus 5 Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
vatsrahul1001
pushed a commit
that referenced
this pull request
Nov 5, 2026
…ages (#76484) (#76485) The base images can ship an apt newer than the one dhi.io publishes - apt 3.0.4 from debian-security against dhi.io's 3.0.3+dhi2 - and preferring dhi.io then selects an apt-utils that requires exactly its own apt, which cannot be installed beside the image's. Every OS-dependencies image build failed on this, so none could be published. The failure was also invisible: the install discarded apt's output, leaving only exit code 100 in the log. (cherry picked from commit 0ae09c3) Generated-by: Claude Opus 5 Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
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.
The OS-dependencies images added in #76225 have not been published yet, because every build fails in
install_os_dependencies.shwith a bare apt exit code 100.The hardened base images can ship an apt newer than the one dhi.io publishes: the failing digest has apt 3.0.4 from
debian-security, while dhi.io has 3.0.3+dhi2. Preferring dhi.io then selects anapt-utilsthat depends on exactly its own apt, which cannot be installed beside the image's:The failure was invisible in the logs because the install discarded apt's output. Its output is now kept in a file and printed if the install fails.
Tested with the full script on the base image digest of the failed build (Python 3.12.16, amd64 under emulation):
devandruntimeboth complete. The failure output was tested with stubbed apt tools. Thecitype, arm64 and the other Python versions have not been run locally.Was generative AI tooling used to co-author this PR?
Generated-by: Claude Opus 5 following the guidelines
🤖 Generated with Claude Code