vlsi opened a new pull request, #5352: URL: https://github.com/apache/calcite/pull/5352
## Jira Link [CALCITE-7884](https://issues.apache.org/jira/browse/CALCITE-7884) ## Changes Proposed A pull request from a branch in apache/calcite itself runs CI twice for every commit: once for the `push` event and once for the `pull_request` event. In #5350, commit bd7b500 on branch `issue7873` ran as [run 39893079564](https://github.com/apache/calcite/actions/runs/39893079564) (push) and [run 39893298257](https://github.com/apache/calcite/actions/runs/39893298257) (pull_request): 32 jobs and about 455 runner-minutes for one commit. 22 of those jobs run on `ubuntu-latest`, and on 2026-10-23 they waited in the queue from 03:07 to 05:12–05:19 UTC. The ASF shared runners are congested (dev@ thread [Calcite CI pending delays](https://lists.apache.org/thread.html/yyw3bkc6lkk517hf3ol4sdhg3ozvb0yy)), so the duplicate run delays everyone else's pull requests too. This change limits the `push` trigger to `main` and `release` in `main.yml`, which halves the CI jobs for such pull requests. `paths-ignore: site/**` stays on `push`, and the `pull_request` trigger is unchanged. The `concurrency` group still works as its comment says: a push now always has ref `refs/heads/main` or `refs/heads/release` and gets a per-sha group, and a pull request gets a per-ref group that cancels superseded runs. `gradle-wrapper-validation.yml` had the same duplication (`on: [push, pull_request]`), and it gets the same `push` filter. The job takes about 8 seconds, but it waits in the same `ubuntu-latest` queue, and keeping the two workflows on the same triggers is simpler to reason about. User-visible changes: - A push to a branch other than `main` or `release`, in apache/calcite or in a fork, runs no CI until a pull request is opened for it. A draft pull request gives the same CI. The YAML was checked by parsing it with PyYAML and reading back the `on:` keys; the triggers themselves are only exercised once this lands. Scope: I did not add `workflow_dispatch`. It would let someone run CI on a branch without opening a pull request, which covers the side effect above; I can add it here if reviewers prefer that over a draft pull request. 🤖 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]
