adityavaish opened a new pull request, #7829:
URL: https://github.com/apache/datafusion-comet/pull/7829
<!-- copilot-assessment:v1 -->
### Agent assessment
Self-reported assessment, not an independent review.
Assessed revision: `c070aca1ed192fdca8052516fbff449f6af61715`
| Dimension | Assessment | Rationale |
|---|---|---|
| Change confidence | 9/10 | ↑ Updates `codeql.yml`, `miri.yml`, and
`pr_title_check.yml` to match `ci.yml`, adds `check_concurrency_groups()` in
`dev/ci/check-ci-config.py`, and passes all 19 invariants, 11 mutation tests,
`actionlint --shellcheck=off`, and `test-docs-permissions.py`.<br>↓ Live GitHub
Actions runs on Linux and `check_local_ci_config()` under native Linux bash are
pending CI. |
| Diagnosis confidence | 9.5/10 | ↑ Workflow inspection confirmed
`codeql.yml`, `miri.yml`, and `pr_title_check.yml` still keyed
`concurrency.group` on `github.head_ref`, while `ci.yml` had already been
updated to `github.event.pull_request.number` in #7311. |
| Evidence fit | 9.5/10 | ↑ Directly resolves the remaining workflows listed
in #7315 and pins cross-fork same-branch isolation in
`dev/ci/check-ci-config.py`. |
<!-- /copilot-assessment -->
## Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases. You can
link an issue to this PR using the GitHub syntax. For example `Closes #123`
indicates that this PR will close issue #123.
-->
Closes #7315.
## Rationale for this change
<!--
Why are you proposing this change? If this is already explained clearly in
the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand your
changes and offer better suggestions for fixes.
-->
`codeql.yml`, `miri.yml`, and `pr_title_check.yml` still keyed
`concurrency.group` on `github.head_ref || github.sha`. Because
`github.head_ref` is only the branch name without the fork repository or PR
number, two open pull requests from different forks sharing a branch name (such
as `main` or `patch-1`) collide in the same concurrency group and cancel each
other's runs. (`ci.yml` was already switched to
`github.event.pull_request.number` in #7311.)
## What changes are included in this PR?
<!--
There is no need to duplicate the description in the issue here but it is
sometimes worth providing a summary of the individual changes in this PR.
-->
- Updated `concurrency.group` in `.github/workflows/codeql.yml`,
`.github/workflows/miri.yml`, and `.github/workflows/pr_title_check.yml` from
`github.head_ref || github.sha` to `github.event.pull_request.number ||
github.sha`.
- Added `check_concurrency_groups()` (with `workflow_triggers`,
`evaluate_expression`/`evaluate_template`, and `concurrency_blocks` helpers) to
`dev/ci/check-ci-config.py` verifying that:
- No workflow keys `concurrency.group` on `github.head_ref`.
- Two PRs from different forks sharing a branch name (and same-fork
case-only branch variants) get distinct concurrency groups.
- New commits on the same PR stay in the same concurrency group when
`cancel-in-progress` is true.
- `ci_label.yml` declares no `concurrency` block and keeps `ci.yml` label,
PR, and commit groups distinct.
- `workflow_run` workflows isolate different forks and non-PR
`cancel-in-progress: true` triggers do not collapse distinct commits.
## How are these changes tested?
<!--
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
2. Serve as another way to document the expected behavior of the code
If tests are not included in your PR, please explain why (for example, are
they covered by existing tests)?
-->
- Confirmed `check_concurrency_groups()` fails on `codeql.yml`, `miri.yml`,
and `pr_title_check.yml` before the workflow edits.
- Verified all 19 Python checks in `dev/ci/check-ci-config.py` pass after
the fix (running `python dev/ci/check-ci-config.py` directly on Windows only
hits a pre-existing `dev\local-ci.sh` path separator quirk in
`check_local_ci_config()`; `bash -n dev/local-ci.sh` passed separately).
- Ran 11 mutation tests against `check_concurrency_groups()` — all 11 caught.
- `actionlint --shellcheck=off` (v1.7.12) across all workflows — passed
(exit code 0).
- `python dev/ci/test-docs-permissions.py` — passed.
--
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]