potiuk opened a new pull request, #77118: URL: https://github.com/apache/airflow/pull/77118
Draft pull requests already get `Tests (AMD)` runs when they are opened and pushed to. Marking one ready for review starts another full run on the same head, even when that head already passed. With this change, the `Check if the run is needed` job handles a `ready_for_review` run. When the head of the pull request already has a successful `CI passed` check run, every other job is skipped. The earlier `CI passed` stays on the commit, so merging is not affected. The skipped run reports its last job as `CI passed (project CI not run)`. Only a job that actually ran as `CI passed` counts. Gate-only (fork CI) runs, cancelled runs and runs skipped by this step all report that job under another name. A failed lookup runs CI (fail open). `ready_for_review` stays in the trigger types. Pull requests whose earlier runs failed, were cancelled or still wait for approval still get a full run when they are marked ready. The scheduled CI upgrade pull requests rely on that, since maintainers undraft them to get a fresh run (for example #76884). What this does **not** change: GitHub holds a run that needs workflow approval before any job starts. A `ready_for_review` run of such a pull request still waits for approval, and its pending approval can still block auto-merge. The same step is added to `ci-arm.yml` to keep the two workflows in sync. It never runs there, because `ci-arm.yml` has no `pull_request` trigger. Checked locally: the static checks for the changed files pass, including `check-ci-workflows-in-sync`, actionlint and zizmor. The check-runs query was run against the head of #77100, where it returned that head's passing `CI passed` job. The step has not run in CI yet. --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Code (Opus 5.5) Generated-by: Claude Code (Opus 5.5) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01NyQq9TvfJuBFXZg3jrCSZW -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
