Skip to content

Plan only for a draft pull request, and let a hand run of nightly pick one system - #486

Merged
yansfil merged 2 commits into
mainfrom
ci/draft-plan-only-nightly-lanes
Oct 5, 2026
Merged

yansfil merged 2 commits into
mainfrom
ci/draft-plan-only-nightly-lanes

Conversation

@yansfil

@yansfil yansfil commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Related: CI throughput candidates 1 and 2 (queue measured 2026-10-05: 119 queued jobs, verify waiting 50 minutes)

Summary

A draft pull request now runs only the plan job; marking it ready for review (ready_for_review, added to pr.yml's types) starts the run that plans and runs every lane.
A hand run of nightly.yml takes a lane input (all, linux, macos, windows), so checking Windows no longer takes 7 macOS jobs for 65 minutes; the schedule still runs everything.

Review

  • 판단해 주세요: on a draft, verify runs and fails with draft: lanes not run, mark ready for review. A skipped required check counts as passed, and verify has no check run until its lanes finish, so right after marking ready a skipped draft verify would be the only check on the commit; a failed one blocks until the ready run's verify replaces it.
  • 판단해 주세요: a lane run runs os contract and package for all only; say if a single-system run should include its own leg of them.
  • 조심해서 볼 파일: .github/workflows/pr.yml - ready_for_review must stay in types and verify must keep running on a draft (test_ci_plan.py reads the workflow for both and checks aggregate fails a draft).
  • 조심해서 볼 파일: .github/workflows/nightly.yml - the desktop matrix is now one expression (fromJSON), with the runner and Herdr platform looked up from the system.
  • 조심해서 볼 파일: scripts/nightly-report.cjs - a skipped job no longer counts as a failure, which a lane-scoped run needs.

Evidence

  • 확인한 것: scripts/tests suite and node --test scripts/tests/nightly-report.test.cjs pass, with new cases for a draft plan and for a skipped lane; both workflows parse as YAML.
  • 확인하지 못한 것: actionlint is not installed here, and a draft run and a lane dispatch cannot be tried before the workflow is on main; this PR's own run is a normal one. Please dispatch nightly with windows once after merge.
CI 크기 (D3)
  • workflow lines: pr.yml 538 -> 546, nightly.yml 216 -> 225; steps unchanged (62, 19); scripts and tests +2 small cases, no new script.
  • desktop e2e path rule (candidate 3) is not changed here; the table is in the report to the reviewer.

@yansfil
yansfil merged commit 4019b33 into main Oct 5, 2026
28 checks passed
@yansfil
yansfil deleted the ci/draft-plan-only-nightly-lanes branch October 5, 2026 08:21
yansfil added a commit that referenced this pull request Oct 5, 2026
…ult (#490)

Related: the unclassified-paths table (reviewer decision), #486
(separate branch; both touch `ci-plan.py`'s neighbours, the second to
merge resolves a small conflict in `test_ci_plan.py` and `TESTING.md`)

## Summary

`ci-plan.py` sent every path no rule claimed to every lane, so 42 of the
last 80 merged pull requests (52%) ran all ten.
This names the paths whose readers are known and leaves every other path
on "every lane": `POLICY_ONLY` (no lane reads it: `agents/`, `site/`,
`tools/`, `spikes/`, `.gitignore` files, PR template, workflows `pr.yml`
does not call, `scripts/tests/`, the policy, design, release and
measurement scripts, Markdown below an unclaimed folder) plans `policy`
alone, and `NAMED_LANES` (fixtures, Playwright, eslint and vitest
configs, `web/scripts`, `desktop/scripts`) plans the lanes that read it.
A path that is not named, including any new one, still plans every lane.

## Review

- **판단해 주세요**: `web/e2e` files that are not specs plan `web-checks`,
`web-e2e`, `web-e2e-platform`, `windows-e2e`, `desktop-checks`,
`desktop-e2e`, `windows-check` (desktop suites import them,
`desktop/e2e` unit tests run in `windows-check`); they drop `rust` and
`os-contract` only.
- **판단해 주세요**: `scripts/ci-plan.py` stays on every lane although the
table listed it as `policy`: it decides the plan for every later pull
request, and `policy` runs its tests but not what a wrong rule would
skip.
- **판단해 주세요**: lockfiles, `package.json`, `Cargo.lock`, `contracts/`,
`verify-*.sh`, `ci-flaky-report.py` and the three workflows lanes use
stay full (the table's class where full is right).
- **조심해서 볼 파일**: `scripts/ci-plan.py` (`POLICY_ONLY`, `NAMED_LANES`,
`named_lanes`) and `scripts/tests/test_ci_plan.py` (`NamedPaths`,
including a check that no `POLICY_ONLY` script is named by a lane's
workflow job or the scripts those jobs run).

## Evidence

- **확인한 것**: `scripts/tests` suite passes (27 plan tests; a case per
named path, one that every unnamed and shared path is still full, one
that a named path does not narrow a plan with another reason, and the
reader check).
- **확인한 것**: the changed plan run on the file lists of the last 80
merged pull requests (#355-#483) against main's plan:

| | before | after |
| --- | --- | --- |
| pull requests planning every lane | 42 | 19 |
| pull requests whose plan changed | | 20 |
| lane runs (sum over the 80) | 683 | 585 (-14%) |

| lane | PRs running it before -> after |
| --- | --- |
| policy | 80 -> 80 |
| rust | 76 -> 59 |
| web-checks | 63 -> 51 |
| desktop-checks | 47 -> 39 |
| os-contract | 65 -> 48 |
| windows-check | 65 -> 58 |
| windows-e2e | 71 -> 61 |
| web-e2e | 78 -> 68 |
| web-e2e-platform | 71 -> 61 |
| desktop-e2e | 67 -> 60 |

No pull request gained a lane.

- **확인한 것**: lanes that caught a failure keep it. Of the 300 most recent
`pr.yml` pull-request runs, 73 failed; 72 had a failing lane (the other
failed in `verify` only).
Each run's failing lane was checked against the new plan for that pull
request's file list (the run's own diff where the pull request is still
open, the final file list for merged ones, so earlier pushes can
differ).
The lane stays planned in 68 of 72. The four that would not run it, and
why they are not catches:
- #466 (2 runs): `windows-e2e` failed on `s2.spec.ts:55` and `less`, a
main failure (#475, #424) that the pull request, which touched four
`desktop/e2e` files, did not cause. The new plan runs `desktop-checks`,
`desktop-e2e`, `windows-check`.
- #366: `rust` and `windows-check` failed in `hided` and disk tests
before nextest retries (#463) on a pull request that changed release
scripts and docs only.
- #369: README and SECURITY only; `windows-check` failed before path
selection existed, and the current plan does not run it for those files
either.
The failures that were this pull request's own (#474 desktop-e2e, #436
windows-e2e, #439 web-e2e-platform, #385, #364) keep their lane.
- **확인하지 못한 것**: the narrowing is judged on file lists, not by
re-running CI; a pull request that changes a named file in a way that
needs a lane left out is caught by main's full run, as before.

<details><summary>CI 크기 (D3)</summary>

`ci-plan.py` +77 lines (two tables and `named_lanes`), `test_ci_plan.py`
+97, `TESTING.md` +5; no workflow changed.

</details>
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.

1 participant