rusackas opened a new pull request, #40387:
URL: https://github.com/apache/superset/pull/40387

   ### SUMMARY
   
   Adds a new GitHub Actions workflow 
(`.github/workflows/hold-label-ci-gate.yml`) with two jobs triggered on 
`labeled`/`unlabeled` PR events:
   
   - **`cancel-on-hold`**: Fires when a `hold*` label is applied. Queries all 
workflow runs for the PR's head SHA and cancels any that are `in_progress`, 
`queued`, `waiting`, `requested`, or `pending`. This stops wasted CI compute 
while a PR is intentionally blocked from merging.
   
   - **`rerun-on-unhold`**: Fires when a `hold*` label is removed. Before 
re-triggering, it checks that no other `hold*` labels remain on the PR (so 
swapping one hold label for another doesn't spuriously re-launch CI). If the PR 
is fully un-held, it re-runs all `cancelled` workflow runs for that SHA — 
restoring CI automatically without requiring a new push.
   
   **Why:** A hold label blocks merging but previously had no effect on running 
CI jobs. This makes hold semantics complete: applying a hold actually stops 
compute, and removing a hold resumes it.
   
   **Safety:** The re-run step guards against multiple hold labels — if any 
`hold*` label is still present after removal of one, re-triggering is skipped 
entirely.
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   
   N/A — CI workflow change only, no UI impact.
   
   ### TESTING INSTRUCTIONS
   
   1. Open any PR on the repo.
   2. Apply a `hold` (or `hold: *`) label — observe that all in-progress/queued 
CI runs for that PR are cancelled within seconds.
   3. Remove the hold label — observe that previously-cancelled runs are 
automatically re-triggered, and CI resumes without a new push.
   4. To test the multi-label guard: apply two `hold*` labels, remove one — 
verify CI does **not** re-run. Remove the second — verify CI **does** re-run.
   
   ### ADDITIONAL INFORMATION
   
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in 
[SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to