Skip to content

ci(dylint): key the reusable workflow's concurrency group on the caller - #1875

Merged
zackees merged 1 commit into
mainfrom
agent/ci-dylint-caller-concurrency
Nov 3, 2026
Merged

zackees merged 1 commit into
mainfrom
agent/ci-dylint-caller-concurrency

Conversation

@zackees

@zackees zackees commented Nov 3, 2026

Copy link
Copy Markdown
Member

Problem

A ci-full-labelled PR can never be green. It runs dylint.yml twice inside one workflow run — ci-minimal.yml calls it directly (dylint) and ci-full.yml calls it again (full / dylint) — and both calls pass a non-empty ref, so both take the inputs.ref != '' && github.run_id branch of the concurrency group. Inside a reusable workflow github.run_id is the caller's run, so both jobs get the identical group dylint.yml-<run_id> with cancel-in-progress: true: the later call cancels the earlier one.

Evidence, #1874 (gh pr checks 1874):

dylint / Dylint policy                      fail 1s     (cancelled)
dylint / Dylint Full (Linux builder)        fail 1s     (cancelled)
full / dylint / Dylint policy               pass 14s
full / dylint / Dylint Full (Linux builder) pass 14m34s
dylint / Dylint                             fail 4s     (requires both = success)
CI summary                                  fail 6s

Same shape on the #1872 canary run 41608933789 (dylint / Dylint Full fail 1s, full / dylint / Dylint Full pass 14m34s). Re-running the failed jobs loses the coin flip again — attempt 2 of run 41623499499 cancelled the dylint call in 1s.

The regression window is 79a5200 ("drop standalone pull_request/merge_group triggers"): before it, dylint.yml's own pull_request trigger also reported the Dylint check, so the cancelled lane did not gate the PR.

Fix

Key the group on github.workflow as well — the caller's workflow name inside a called workflow, which is exactly what this file's own queue-cache-janitor already uses (github.workflow == 'Dylint') to tell a standalone run from a called one:

concurrency:
  group: dylint.yml-${{ github.workflow }}-${{ inputs.ref != '' && github.run_id || (...) }}

Both call sites now get distinct groups (dylint.yml-ci-minimal-<run> vs dylint.yml-ci-full-<run>). Supersede semantics are unchanged: for a PR both callers still key on the ref, so a new push cancels both lanes of the previous run; non-PR events still key on run_id.

Test

ci/test_fractional_workflows.py::test_dylint_concurrency_distinguishes_each_call_site pins the premise (both ci-minimal.yml and ci-full.yml uses: ./.github/workflows/dylint.yml) and the invariant (github.workflow in the group). RED first with the old expression ('github.workflow' not found in "dylint.yml-${{ inputs.ref != '' && ...), GREEN after.

Gates (real output): ci.test_fractional_workflows 23 tests OK; drift set (test_setup_action test_fractional_workflows test_local_gate test_local_dylint_gate test_local_lint_gate test_publish_quota test_gen_mirror_manifest test_benchmark_publish test_sign_windows_release test_local_suites) 95 tests OK; ci.test_workflow_concurrency + ci.test_local_suites OK; ci/check_workflow_concurrency.py OK; ci/render_workflows.py --check rc0; ruff check clean; ci/check_python_complexity.py clean. No Rust touched -> bash test not run.

Not in this PR

The duplicate run itself is still booked twice on a ci-full PR (two ~14 min Dylint passes, one now just wasted). The dedupe (skip ci-minimal.yml:dylint when ci-full selects the tier, mirroring the linux job's condition) changes the ci-minimal job graph that the GATE-001 replay proof attests, so it belongs in its own change. This PR only stops the two calls from killing each other.

Unblocks #1874 (Windows terminate_tree vanished-pid fix), whose full / windows / Check already passed in 48m13s on head 52ef278.

🤖 Generated with Claude Code

A `ci-full` PR runs dylint.yml twice inside ONE workflow run: ci-minimal
calls it directly, and ci-full calls it again from its own `dylint` job.
Inside a reusable workflow `github.run_id` is the caller's run, so the
`inputs.ref != ''` branch gave both calls the identical group
(`dylint.yml-<run_id>`) with `cancel-in-progress: true` -- the later call
cancelled the earlier one.

Observed on #1874 and #1872:
  dylint / Dylint policy                     fail 1s   (cancelled)
  dylint / Dylint Full (Linux builder)       fail 1s   (cancelled)
  full / dylint / Dylint Full (Linux builder) pass 14m34s

`dylint / Dylint` requires both of its jobs to succeed, so it failed, so
the required `CI summary` failed: no `ci-full`-labelled PR could go green
since 79a5200 dropped dylint.yml's own pull_request trigger.

Prefix the group with `github.workflow` (the caller's name inside a called
workflow, the same property dylint.yml's janitor already keys on). The
supersede semantics are unchanged: for a PR both callers still key on the
ref, so a new push cancels both lanes of the previous run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 3, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@zackees
zackees added this pull request to the merge queue Nov 3, 2026
Merged via the queue into main with commit 68f3a22 Nov 3, 2026
29 checks passed
@zackees
zackees deleted the agent/ci-dylint-caller-concurrency branch November 3, 2026 13:25
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

2 participants