Repository navigation
ci(dylint): identify the call site with an explicit lane input - #1876
Merged
Merged
Conversation
#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]>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #1875 (which did not work)
#1875 keyed
dylint.yml's concurrency group ongithub.workflow. That was wrong: inside a called workflow thegithubcontext belongs to the top-level caller, so both invocations still computedci-minimal. Reproduced on the reopened #1874 (run 41639462247, which already had #1875 onmain):The ci-full call's jobs queued ~19 s into the run and cancelled the ci-minimal jobs — the same group again. (
github.jobis no help either: both call sites name their jobdylint.)Fix
An explicit input that only the call site can supply:
ci/render_workflows.pyrenders the two call sites withlane: ci-minimal(its owndylintjob) andlane: ci-full(ci-full'sdylintjob);ci-minimal.yml/ci-full.ymlare regenerated by the generator, not hand-edited. Thestandalonedefault 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_sitepins the three parts of the invariant: both call sites exist, theirlanevalues differ, and the group consumesinputs.lane(which is a declaredworkflow_callinput). RED first —AssertionError: 'inputs.lane' not found in "dylint.yml-${{ inputs.ref != '' && ..., and with thelane: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 --checkrc0;ci/check_workflow_concurrency.pyOK;ruff checkclean;ci/check_python_complexity.pyclean. No Rust touched ->bash testnot run.Still open (separate change)
A
ci-fullPR still runs Dylint twice (two ~14 min passes; the ci-minimal one is now redundant work rather than a canceller). Deduping means gatingci-minimal.yml:dylinton the tier label likelinux, which changes the job graph the GATE-001 replay proof attests — its own change.Unblocks #1874 (Windows
terminate_treevanished-pid fix); itsfull / windows / Checkalready passed in 48m13s on head 52ef278.🤖 Generated with Claude Code