Andrushika commented on code in PR #74819:
URL: https://github.com/apache/airflow/pull/74819#discussion_r4311745850
##########
.github/workflows/ci-amd.yml:
##########
@@ -66,12 +62,62 @@ env:
VERBOSE: "true"
concurrency:
- group: ci-amd-${{ github.event.pull_request.number || github.ref }}
+ # The event name keeps push runs on main (gate-only since AIP-120) from
cancelling the
+ # scheduled canary on the same ref.
+ group: ci-amd-${{ github.event.pull_request.number || format('{0}-{1}',
github.event_name, github.ref) }}
cancel-in-progress: true
jobs:
+ gate:
+ # Fork CI gate (AIP-120): decides whether project CI runs for this event.
Configuration and
+ # code come from the base branch so a pull request cannot change its own
eligibility. See
+ # dev/breeze/doc/ci/08_fork_ci_for_external_contributors.md.
+ name: "Fork CI gate"
+ runs-on: ["ubuntu-slim"]
+ timeout-minutes: 5
+ outputs:
+ project-ci: ${{ steps.gate.outputs.project-ci }}
+ reason: ${{ steps.gate.outputs.reason }}
+ steps:
+ - name: "Checkout gate configuration from the base branch"
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #
v7.0.1
+ with:
+ ref: ${{ github.base_ref || github.ref }}
+ fetch-depth: 1
+ persist-credentials: false
+ sparse-checkout: |
+ .github/fork-ci-gate.toml
+ dev/breeze/src/airflow_breeze/utils/fork_ci_gate.py
+ sparse-checkout-cone-mode: false
+ - name: "Decide whether project CI runs"
Review Comment:
We might need to run the PR title check in this job too. A gated PR skips
`build-info`, and its fork run is a `push` event, so `Check PR title is not
Conventional Commits` in `ci-image-checks.yml` never runs for it.
---
Drafted-by: Claude Code (Opus 5.5); reviewed by @Andrushika before posting
--
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]