Skip to content

Install apt-utils matching the image's apt on hardened images - #76484

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:fix-os-deps-apt-utils
Nov 4, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
potiuk:fix-os-deps-apt-utils

Conversation

@potiuk

@potiuk potiuk commented Nov 4, 2026

Copy link
Copy Markdown
Member

The OS-dependencies images added in #76225 have not been published yet, because every build fails in install_os_dependencies.sh with 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 an apt-utils that depends on exactly its own apt, which cannot be installed beside the image's:

apt-utils : Depends: apt (= 3.0.3+dhi2) but 3.0.4 is to be installed

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): dev and runtime both complete. The failure output was tested with stubbed apt tools. The ci type, arm64 and the other Python versions have not been run locally.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Opus 5

Generated-by: Claude Opus 5 following the guidelines

🤖 Generated with Claude Code

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
potiuk merged commit 0ae09c3 into apache:main Nov 4, 2026
5 of 6 checks passed
@potiuk
potiuk deleted the fix-os-deps-apt-utils branch November 4, 2026 19:00
@potiuk potiuk added this to the Airflow 3.4.0 milestone Nov 4, 2026
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-4-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
✅ v3-4-test PR Link

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-v3-4-test Backport to v3-4-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants