Skip to content

fix(ci): rerun release dependency check on label#10955

Open
andres-pcg wants to merge 3 commits into
mainfrom
ci/rerun-check-no-git-deps-on-label
Open

fix(ci): rerun release dependency check on label#10955
andres-pcg wants to merge 3 commits into
mainfrom
ci/rerun-check-no-git-deps-on-label

Conversation

@andres-pcg

@andres-pcg andres-pcg commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Motivation

Adding A-release to an open pull request did not rerun check-no-git-dependencies, so a Release PR could miss the dependency check until another commit was pushed.

Solution

Handle label events in the existing Unit Tests workflow. Adding A-release reruns the same required-check path, while other labels skip every job and do not replace the aggregate unit-test result.

Tests

actionlint and zizmor pass for the updated workflow.

Closes #10897

AI Disclosure

Claude Code and OpenAI Codex were used to analyze the label trigger, edit the workflow, and draft the pull request description.

Copilot AI review requested due to automatic review settings July 15, 2026 06:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a small GitHub Actions workflow to ensure the existing “check-no-git-dependencies” CI check runs when the A-release label is applied after a PR is already open (addressing the pull_request default-activity limitation in tests-unit.yml). This is a CI reliability improvement scoped to release-labeled PRs targeting main.

Changes:

  • Add a dedicated workflow that triggers on pull_request labeled events and runs the “Check no git dependencies” job when the added label is A-release.
  • Reuse the same pinned actions and cargo nextest invocation as the existing tests-unit.yml job.

Comment thread .github/workflows/check-no-git-deps-on-label.yml Outdated

@gustavovalverde gustavovalverde left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because check-no-git-dependencies already exists in another workflow, a whole workflow for a single check seems like too much. I think it should be possible to fix in tests-unit.yml

andres-pcg and others added 3 commits July 16, 2026 13:35
The check-no-git-dependencies job in tests-unit.yml is gated on the
A-release label, but that workflow's pull_request trigger uses the
default activity types (opened, synchronize, reopened). Adding the label
to an existing PR therefore does not re-run it, so the check stays
skipped until the next push.

Add a dedicated workflow that triggers only on the labeled event and
runs the same check, avoiding a full unit-test re-run on every label
change.
@gustavovalverde
gustavovalverde force-pushed the ci/rerun-check-no-git-deps-on-label branch from bc96217 to f47bc2a Compare July 16, 2026 12:36
@gustavovalverde gustavovalverde changed the title ci: run check-no-git-dependencies when A-release label is added late fix(ci): rerun release dependency check on label Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Run check-no-git-dependencies CI job when A-release label is added late

3 participants