Skip to content

Refresh the image cache on canary pushes, not only on the schedule - #71137

Merged
potiuk merged 1 commit into
mainfrom
early-cache-push-on-canary-pushes
Aug 5, 2026
Merged

Refresh the image cache on canary pushes, not only on the schedule#71137
potiuk merged 1 commit into
mainfrom
early-cache-push-on-canary-pushes

Conversation

@potiuk

@potiuk potiuk commented Aug 5, 2026

Copy link
Copy Markdown
Member

The early cache push was gated to schedule and workflow_dispatch, so it never ran for a merge into a release branch. Those branches are built by push only, and their other refresh path — the Regular cache push in finalize-tests.yml — sits behind the whole test matrix. A branch whose CI is failing therefore never refreshes its image cache at all, and the staler the cache gets the slower every build on it becomes, which makes it harder to get green again.

v3-3-test has been in exactly that state: its last successful canary push run was 2026-07-28, so its registry cache is eight days old, and every build against it — including release-constraints runs — pays for it.

main is unaffected either way. It is not built on push, so it keeps refreshing through the scheduled canary.

Pull requests stay excluded. canary-run is also true for a PR carrying the canary label, and pushing cache from an unmerged branch is not something a label should authorise — so the condition matches the one the Regular cache push already uses.

Was generative AI tooling used to co-author this PR?
  • Yes — Claude Opus 5 (1M context)

Generated-by: Claude Opus 5 (1M context) following the guidelines

Release branches are built by push only, and their cache refresh sat behind the
whole test matrix. A red branch never refreshed its cache at all, and the staler
it got the slower it was to turn green -- v3-3-test went eight days without a
refresh while its runs kept failing.
@potiuk
potiuk merged commit 64dd235 into main Aug 5, 2026
7 checks passed
@potiuk
potiuk deleted the early-cache-push-on-canary-pushes branch August 5, 2026 03:44
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-3-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-3-test PR Link

potiuk added a commit that referenced this pull request Aug 5, 2026
… schedule (#71137) (#71138)

Release branches are built by push only, and their cache refresh sat behind the
whole test matrix. A red branch never refreshed its cache at all, and the staler
it got the slower it was to turn green -- v3-3-test went eight days without a
refresh while its runs kept failing.
(cherry picked from commit 64dd235)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
vatsrahul1001 pushed a commit that referenced this pull request Aug 5, 2026
… schedule (#71137) (#71138)

Release branches are built by push only, and their cache refresh sat behind the
whole test matrix. A red branch never refreshed its cache at all, and the staler
it got the slower it was to turn green -- v3-3-test went eight days without a
refresh while its runs kept failing.
(cherry picked from commit 64dd235)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
dabla pushed a commit to dabla/airflow that referenced this pull request Aug 14, 2026
…pache#71137)

Release branches are built by push only, and their cache refresh sat behind the
whole test matrix. A red branch never refreshed its cache at all, and the staler
it got the slower it was to turn green -- v3-3-test went eight days without a
refresh while its runs kept failing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants