Repository navigation
Show fork CI progress sooner and gate rebased pilot pull requests - #76148
Merged
Merged
Conversation
Feedback from the first day of the contributor pilot: Pilot participants expected their open pull requests to move to fork CI once they rebased them after joining, but only pull requests created after the join instant were gated. A push soon after opening a pull request cancels the first project CI run, and its cancelled checks stayed next to the green fork results, giving the pull request a confusing red/green status. Fork CI reports to the pull request only when the scheduled monitor runs, so for a while a contributor saw nothing telling them their CI runs in the fork. The gate cannot post a status itself (it runs with a read-only token on the contributor's event), so a required "CI run started" check now shows as expected and waiting from the moment of the push, and the monitor fills it in with a link to the run. Doing that in the scheduled monitor, rather than in a job of every CI run, keeps it off the shared runner queue, and its writes come out of the monitor's existing per-run budget so the repository's shared rate limit is not spent any faster. One full-matrix fork run needs more job statuses than that budget allows in a single monitor run, so the Slack note about deferred job statuses fired on ordinary pilot runs. It now waits until deferring persists, which is what it is meant to signal. Generated-by: Claude Opus 5
potiuk
requested review from
amoghrajesh,
bugraoz93,
choo121600,
ephraimbuddy,
gopidesupavan,
jason810496,
jedcunningham,
jscheffl and
vatsrahul1001
as code owners
October 31, 2026 16:04
shahar1
approved these changes
Oct 31, 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.
|
potiuk
added a commit
that referenced
this pull request
Oct 31, 2026
…requests (#76148) (#76149) Feedback from the first day of the contributor pilot: Pilot participants expected their open pull requests to move to fork CI once they rebased them after joining, but only pull requests created after the join instant were gated. A push soon after opening a pull request cancels the first project CI run, and its cancelled checks stayed next to the green fork results, giving the pull request a confusing red/green status. Fork CI reports to the pull request only when the scheduled monitor runs, so for a while a contributor saw nothing telling them their CI runs in the fork. The gate cannot post a status itself (it runs with a read-only token on the contributor's event), so a required "CI run started" check now shows as expected and waiting from the moment of the push, and the monitor fills it in with a link to the run. Doing that in the scheduled monitor, rather than in a job of every CI run, keeps it off the shared runner queue, and its writes come out of the monitor's existing per-run budget so the repository's shared rate limit is not spent any faster. One full-matrix fork run needs more job statuses than that budget allows in a single monitor run, so the Slack note about deferred job statuses fired on ordinary pilot runs. It now waits until deferring persists, which is what it is meant to signal. (cherry picked from commit a3567e9) Generated-by: Claude Opus 5 Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
1 task done
vatsrahul1001
pushed a commit
that referenced
this pull request
Nov 4, 2026
…requests (#76148) (#76149) Feedback from the first day of the contributor pilot: Pilot participants expected their open pull requests to move to fork CI once they rebased them after joining, but only pull requests created after the join instant were gated. A push soon after opening a pull request cancels the first project CI run, and its cancelled checks stayed next to the green fork results, giving the pull request a confusing red/green status. Fork CI reports to the pull request only when the scheduled monitor runs, so for a while a contributor saw nothing telling them their CI runs in the fork. The gate cannot post a status itself (it runs with a read-only token on the contributor's event), so a required "CI run started" check now shows as expected and waiting from the moment of the push, and the monitor fills it in with a link to the run. Doing that in the scheduled monitor, rather than in a job of every CI run, keeps it off the shared runner queue, and its writes come out of the monitor's existing per-run budget so the repository's shared rate limit is not spent any faster. One full-matrix fork run needs more job statuses than that budget allows in a single monitor run, so the Slack note about deferred job statuses fired on ordinary pilot runs. It now waits until deferring persists, which is what it is meant to signal. (cherry picked from commit a3567e9) 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.
Follow-ups from the first day of the fork CI contributor pilot (AIP-120), discussed in the pilot thread on the Airflow Slack.
Older pilot pull requests move to fork CI when they are pushed again. A pilot participant's pull request opened before their join instant is gated from its first
ci-amd.ymlrun created at or after it (a push, a rebase, a reopen, or marking it ready for review). The gate reads the creation time of its own run (henceactions: readon the gate job), so re-running an older run does not switch it. Discovery reads the same time back to label the pull request; afterwards the reconciler takes thefork ci requiredlabel as the evidence, because it deletes the gated run. The tamper check applies from then on and skips the pull request's pre-join runs only if project CI was allowed for them. The workflow-run approver treats the pull request as gated from the join instant. Only[pilot]entries are affected;enabled_sincestill compares the creation time.Cancelled runs are deleted like gated ones. A push soon after opening a pull request cancels its first project CI run, often while the gate is still deciding, and its cancelled checks stayed next to the green fork results. The monitor now deletes such a run under the same conditions as a gated-skip run: the run is completed and on its first attempt, its commit does not change
.github/workflows/, and no job did project CI work by the tamper check's rules.New required
CI run startedcheck. Fork CI reports only when the scheduled monitor runs, and the gate cannot post a status itself (it runs with a read-only token on the contributor's event). Both CI rulesets in.asf.yamlnow requireCI run started, so GitHub lists it as "Expected — Waiting for status to be reported" on every pull request from the moment of the push. The monitor posts it with a link to the run: for a gated pull request once the fork has a run for the head commit, and for any other pull request once project CI has a run that is not waiting for approval. Folding this into the monitor costs no runner per push, at the price of a pull request waiting up to one monitor interval before it can merge. The writes come out of the monitor's existing 60-a-run status budget (first, at most 30), so the total stays capped at 240 an hour, 48% of the shared 500/hour content-creating limit.The "job statuses did not fit in the budget" Slack note only fires when deferring persists. One full-matrix fork run needs more job statuses than one monitor run allows (that is what triggered the note for #76136 today). The note now waits for three deferring runs in a row; the count is kept in the record the monitor carries between runs.
Known limitations:
mainpull request of a pilot participant would also move the older one to fork CI;use project cireleases it.CI run startedwithin the next monitor runs (30 a run, most recently updated first); until then they cannot merge without a committer bypass.Tests:
uv run --project dev/breeze pytest dev/breeze/tests/test_fork_ci_reconcile.py dev/breeze/tests/test_fork_ci_gate.py dev/breeze/tests/test_fork_ci_messages.py dev/breeze/tests/test_workflow_run_approval.py dev/breeze/tests/test_fork_ci_github.py dev/breeze/tests/test_ci_audit.py(630 passed),prek run mypy-devand the pre-commit hooks pass;lychee-dockercould not run locally (sandboxed Docker), so it is left to CI.Was generative AI tooling used to co-author this PR?
Generated-by: Claude Opus 5 following the guidelines
🤖 Generated with Claude Code