Skip to content

ci(dylint): identify the call site with an explicit lane input - #1876

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

zackees merged 1 commit into
mainfrom
agent/ci-dylint-lane-input

Conversation

@zackees

@zackees zackees commented Nov 3, 2026

Copy link
Copy Markdown
Member

Follow-up to #1875 (which did not work)

#1875 keyed dylint.yml's concurrency group on github.workflow. That was wrong: inside a called workflow the github context belongs to the top-level caller, so both invocations still computed ci-minimal. Reproduced on the reopened #1874 (run 41639462247, which already had #1875 on main):

dylint / Dylint policy                      cancelled 12:53:27   (all steps had succeeded)
dylint / Dylint Full (Linux builder)        cancelled 12:54:39
full / dylint / Dylint policy               started   12:54:47
dylint / Dylint                             failure   12:54:44

The ci-full call's jobs queued ~19 s into the run and cancelled the ci-minimal jobs — the same group again. (github.job is no help either: both call sites name their job dylint.)

Fix

An explicit input that only the call site can supply:

# dylint.yml
on:
  workflow_call:
    inputs:
      lane: {type: string, required: false, default: "standalone"}
concurrency:
  group: dylint.yml-${{ inputs.lane }}-${{ inputs.ref != '' && github.run_id || (github.event_name == 'pull_request' && github.ref || github.run_id) }}

ci/render_workflows.py renders the two call sites with lane: ci-minimal (its own dylint job) and lane: ci-full (ci-full's dylint job); ci-minimal.yml / ci-full.yml are regenerated by the generator, not hand-edited. The standalone default keeps a dispatch/push entry of the workflow working.

Supersede semantics are unchanged: on a PR both calls 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 three parts of the invariant: both call sites exist, their lane values differ, and the group consumes inputs.lane (which is a declared workflow_call input). RED first — AssertionError: 'inputs.lane' not found in "dylint.yml-${{ inputs.ref != '' && ..., and with the lane: binding removed the call sites collapse to one lane (KeyError/1-element set) — GREEN after.

Gates (real output): drift set (test_setup_action test_fractional_workflows test_local_gate ci.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/render_workflows.py --check rc0; ci/check_workflow_concurrency.py OK; ruff check clean; ci/check_python_complexity.py clean. No Rust touched -> bash test not run.

Still open (separate change)

A ci-full PR still runs Dylint twice (two ~14 min passes; the ci-minimal one is now redundant work rather than a canceller). Deduping means gating ci-minimal.yml:dylint on the tier label like linux, which changes the job graph the GATE-001 replay proof attests — its own change.

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

🤖 Generated with Claude Code

#1875 keyed the reusable workflow's concurrency group on `github.workflow`
and that did NOT work: inside a called workflow the `github` context
belongs to the TOP-LEVEL caller, so both invocations still read
"sdlint"-style `ci-minimal`. Reproduced on the reopened #1874:

  dylint / Dylint policy                cancelled 12:53:27
  dylint / Dylint Full                  cancelled 12:54:39
  full / dylint / Dylint policy         started   12:54:47   <- queued first

i.e. the jobs of the ci-full call queued ~19 s into the run and cancelled
the ci-minimal jobs, exactly as before the fix.

Replace the heuristic with an explicit `lane` input that each call site
passes: `ci-minimal` from render_dylint_call(), `ci-full` from ci-full's
own `dylint` job. Default "standalone" keeps a dispatch/push entry
working. Supersede semantics are unchanged: a PR's calls 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 d273bbe Nov 3, 2026
31 checks passed
@zackees
zackees deleted the agent/ci-dylint-lane-input 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