Repository navigation
Run only the CI lanes a pull request's paths need - #399
Merged
Merged
Conversation
A plan job classifies the changed paths into lanes; each pr.yml job runs when the plan names it, and verify requires every planned lane to succeed and every other lane to be skipped. Main pushes, failed comparisons and unclaimed paths plan every lane. The Windows browser @platform tests move out of windows check into their own windows e2e lane, and design-contract cancels a pull request's superseded run.
herdr-core's tests read the root agent notes and scan web/src and hided/src, web e2e specs import the desktop wire path conversion, and web tests read design/tokens.json; each now plans the lane that reads it. Every crate change compiles on Windows, a missing crate graph plans every lane, main's runs queue instead of cancelling each other, and the performance guide describes the planned lanes.
# Conflicts: # .github/workflows/pr.yml # docs/TESTING.md
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.
Summary
Every PR ran Rust, the unit suites on three OSes and the full E2E, even a docs-only PR.
The median time for the required checks to finish was 32.45 min (Orca 16.22, Paseo 20.65).
Now a
planjob reads the changed paths (HEAD^1..HEADof the PR merge commit) and plans only the lanes the change needs.The same plan sets each job's
if:and is whatverifychecks the results against.verifypasses only when every planned lane issuccessand every unplanned lane isskipped. A planned lane that was skipped, failed or cancelled failsverify, and so does aneedsentry the plan doesn't know or a failed plan.@platformsmoke moves out ofwindows checkinto its ownwindows e2elane, which callsweb-e2e.ymlthe same way nightly does. Compile, unit tests and the OS contract stay inwindows check.checksis split intopolicy(on every plan),web checks,desktop checksandhcoord.cargo metadatafailure) and any unclassified path all run every lane.cancel-in-progressis now PR-only).design-contract.ymlalso cancels only the same PR's previous run.scripts/ci-plan.py; the table indocs/TESTING.md, "Which lanes a pull request runs", explains them.Review
@flakytests, as macOS already did. No@platformtest is tagged@flakytoday, so the behavior is the same for now.SHARED_WEB) also runs the desktop lanes and the macOS/Windows@platformlanes. That is broader than the brief's "desktop 연결까지"; I chose it because terminal, input and shortcut changes are Windows-impacting.scripts/ci-plan.pyREADERSandSHARED_WEB. These two hand-kept lists are where a lane can be dropped wrongly (the failure path). Review found five omissions from tests reading files across folders and they are fixed (below).verifyjob in.github/workflows/pr.ymlandaggregate(). This is the merge gate itself.site/,tools/,spikes/,.github/*.mdandagents/prdcurrently fall under "unknown path → everything". Should a follow-up narrow them?Evidence
Plan replay over the last 20 merged PRs. Each row runs the classifier on the merge commit's
^1..diff:scripts/web-shell-measure/run.sh).github/pull_request_template.md)contracts/hided-ws.schema.json)contracts/hided-ws.schema.json).github/workflows/pr.yml).github/workflows/nightly.yml).github/workflows/nightly.yml)agents/prd/three-column-panel/prd.md).github/workflows/release.yml)agents/prd/overview-request-view/prd.md).github/,contracts/,scripts/oragents/.rust -p herdr-core, because a herdr-core test reads the rootAGENTS.md.cargo metadata. For example Refresh a pane's live cwd from the agent list #380 testsherdr-coreandhidedonly.scripts/tests/test_ci_plan.pypasses 19 cases. They cover:hide-platform, which includes Windows and the OS contract.@platformspec,desktop/src/mainand leaf-crate reverse dependencies.READERSentry.needsentry, a failed plan and an empty plan.python3 -m unittest discover -s scripts/testssuite passes (108). That includes the check that every gate a workflow runs is a tracked script.check-herdr-pin-single-source,check-hide-design-enforcement,check-no-workstation-identity,check-harness-ignore-anchorandverify-cargo.sh fmt-checkall pass.planon Shrink File View tabs with the agent tab strip #388 produced the expectedGITHUB_OUTPUT(lanes,full,rust-packages) and the job-summary table.aggregatewith a fakeneedspassed when the results matched the plan and failed when a planned lane was skipped.AGENTS.md(herdr-core test),web/srcandhided/src(herdr-core structure tests),wirePath.ts(imported by web e2e) anddesign/tokens.json(read by web tests).windows check.docs/PERFORMANCE_TESTING.mdno longer describes the old lanes..github/andscripts/), and every lane ran, including the separatewindows e2e. All passed.home.spec.ts:82(the location bar readHome/hde-…instead ofHome/~/hide). This PR touches no web or test code.verifyreported exactlyweb-e2e: planned, expected success, got failure.verifyis green.home.specfailure is a flaky-test candidate; it belongs to the main-green work, not this PR.0d2ce40a): every lane passed on the first attempt. The desktop quarantine step (including PR A'shide-platform --ignored) and the Linux shard 1@flakystep ran.windows e2elane is unmeasured. It uses the same path as the nightly Windows lane.scripts/ci-plan.pyplus a test case.Does not include: a failure ledger or history, a quarantine registry, cache changes, a
max-parallelexperiment, or thepackage.ymlpathstrigger (all out of scope).If this and the main-green PR overlap in
pr.yml, whichever merges later rebases.