Skip to content

Say whose turn it is in every fork CI comment and status - #77968

Open
Andrushika wants to merge 1 commit into
apache:mainfrom
Andrushika:fork-ci-turn-texts
Open

Andrushika wants to merge 1 commit into
apache:mainfrom
Andrushika:fork-ci-turn-texts

Conversation

@Andrushika

Copy link
Copy Markdown
Contributor

Why

The fork CI monitor posts a state comment and a Fork CI / Tests (AMD) status on each gated pull request. The first line of each names the state of the fork run, for example "Fork CI passed - see Details".

A green check can still wait for the author. On an old base, the author must rebase before CI passed is reported. On a draft that the author made, the author must mark it ready for review.

Some comments also ask the author to push the branch again. A push of a branch that did not change starts no run.

What

Every fork CI text opens with whose turn it is and the one thing to do. TURNS in fork_ci_messages.py holds that line and one paragraph each for the author and for maintainers. The state comment, the Fork CI / Tests (AMD) description and a CI passed that asks to rebase read the same row.

The comments give exact commands, for example git commit --amend --no-edit and git push --force-with-lease to push a new commit. Details such as the tested base and the run link go under a collapsed "More".

The Fork CI / Tests (AMD) description, before and after:

Case Before After
Workflow not set up in the fork Fork CI not set up - see the pull request comment Author's turn: enable CI in your fork
Run failed Fork CI failed - see Details (97 jobs passed, 31 cancelled) Author's turn: fix the failed jobs (97 jobs passed, 31 cancelled)
Green Fork CI passed - see Details (130 jobs passed) Maintainers' turn: review (130 jobs passed)
Green on an old base Fork CI passed - see Details (130 jobs passed) Author's turn: rebase and push (130 jobs passed)
Green, draft made by the author Fork CI passed - see Details (130 jobs passed) Author's turn: mark it ready for review (130 jobs passed)
Green, changes CI files Fork CI passed, but CI files changed - a maintainer must run project CI Maintainers' turn: review the CI change and run project CI
use project ci added Project CI in use (label use project ci) - see the checks No action needed: moved to project CI

The CI passed description on an old base, before and after:

  • Before: Rebase on main and push: main changed 1 of the same files since
  • After: Author's turn: rebase and push - the base branch changed 1 of the same files since
The state comment of a green pull request whose tested base is 230 commits behind main
<!-- fork-ci-gate: {"base": {"behind": 230, "overlap": [], "sha": "0123456789012345678901234567890123456789"}, "sha": "a1b2c3d4e5f6", "since": "2026-12-03T10:00:00+00:00", "state": "green"} -->

**Author's turn: rebase and push**

**Author:** CI passed in your fork, but it does not count for merging: the tested base is 230 commits behind. Rebase and push to run it again:

```bash
git fetch upstream
git rebase upstream/main
git push --force-with-lease
```

**Maintainers:** You can review now. It can merge once fork CI is green for the rebased branch.

<details><summary>More</summary>

Fork CI tested this branch on top of `main` at [`0123456789`](https://github.com/apache/airflow/commit/0123456789012345678901234567890123456789), 230 commits behind `main` when the run turned green. Fork CI tests the branch as it is, while project CI would test it merged with the current `main`. No commit since changed a file this pull request changes.

Latest run: https://github.com/contributor/airflow/actions/runs/123

Pull requests from contributors run their CI in the contributor's own fork. GitHub Actions is free and has no minute limit on public forks, while the CI capacity of the Apache Software Foundation is shared by every ASF project and is finite.

How this works: [CI in your fork](https://github.com/apache/airflow/blob/main/contributing-docs/18_contribution_workflow.rst#ci-in-your-fork).

</details>

---
_This comment was posted automatically by the fork CI monitor from templates drafted with an AI-assisted tool, so it may contain mistakes. An Apache Airflow maintainer, a real person, will review the pull request once its fork CI is green. [Why the first pass is automated](https://github.com/apache/airflow/blob/main/contributing-docs/25_maintainer_pr_triage.md#why-the-first-pass-is-automated)._

The reconciler still reads the status descriptions from before this change. So open gated pull requests get the new texts in one run, without a new check of their changed files.

related: #74822, #76681


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: Claude Code, Codex and Antigravity following the guidelines

Every fork CI text on a pull request opens with whose turn it is:
"Author's turn", "Maintainers' turn" or "No action needed", then the
one thing to do. TURNS in fork_ci_messages.py holds that line and one
paragraph each for the author and for maintainers. The state comment,
the Fork CI / Tests (AMD) description and a pending CI passed that asks
to rebase all read the same row.

The comments give the exact commands to push a new commit, to rebase
and to re-run only the failed jobs. The tested base, the run link and
why CI runs in the fork go under a collapsed "More".

The reconciler still reads back the descriptions written before this
change, so an open gated pull request gets the new texts in one run
without a new green decision.
@github-actions github-actions Bot added the fork ci required Gated by AIP-120: CI must pass in the contributor's fork. Managed by the fork CI reconciler. label Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Closing this pull request because it changes the fork CI gate: it changes dev/breeze/src/airflow_breeze/utils/fork_ci_messages.py.

The gate decides whether a pull request runs its CI in apache/airflow or in the contributor's fork. It is made of the gate job of .github/workflows/ci-amd.yml, dev/breeze/src/airflow_breeze/utils/fork_ci_gate.py, .github/fork-ci-gate.toml and the fork CI monitor, and a pull request whose CI runs in a fork must not change it, because the change would decide where its own CI runs. The one exception is adding, changing or removing your own [pilot] entry in .github/fork-ci-gate.toml.

If the change was accidental, you can revert or remove the change to the gate files and reopen the pull request. If the change is wanted, a maintainer can reopen the pull request and add the use project ci label.


This comment was posted automatically by the fork CI monitor from templates drafted with an AI-assisted tool, so it may contain mistakes. An Apache Airflow maintainer, a real person, will review the pull request once its fork CI is green. Why the first pass is automated.

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Project CI in use. A maintainer added the use project ci label, so CI for this pull request runs in apache/airflow. It starts on the next push, or when a maintainer closes and reopens this pull request.


This comment was posted automatically by the fork CI monitor from templates drafted with an AI-assisted tool, so it may contain mistakes. An Apache Airflow maintainer, a real person, will review the pull request once its fork CI is green. Why the first pass is automated.

@github-actions github-actions Bot closed this Dec 2, 2026
@potiuk potiuk added the use project ci Committer override: run project CI for a PR that fork CI would otherwise gate. label Dec 2, 2026
@potiuk potiuk reopened this Dec 2, 2026
@github-actions github-actions Bot added need workflow approval and removed fork ci required Gated by AIP-120: CI must pass in the contributor's fork. Managed by the fork CI reconciler. need workflow approval labels Dec 2, 2026
@eladkal eladkal added this to the Airflow 3.4.1 milestone Dec 3, 2026
@eladkal eladkal added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Dec 3, 2026
@eladkal eladkal removed this from the Airflow 3.4.1 milestone Dec 3, 2026
@eladkal eladkal removed the backport-to-v3-4-test Backport to v3-4-test label Dec 3, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) use project ci Committer override: run project CI for a PR that fork CI would otherwise gate.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants