Repository navigation
ci: parallelize the Windows test suite - #255
Conversation
[CCR-20261016-001] · reviewer · anthropic/claude-sonnet-5-5→? · high · schema:2Initial review: PR #255 (work item #241)Status: REVIEW_PASSED_AWAITING_CI. The head ScopeAccumulated diff from merge base
FindingsNone. Non-blocking observations (not findings):
Security triageThe deterministic rule (
Verification executed
CI (single read, not waited on)
Both are the repository's defined jobs, and none had passed or failed when read. Residual risks
VerdictNo open finding blocks approval. The review is complete for head |
Change request: replace
|
Windows PowerShell installer |
Tests | Skipped | Test step | Job |
|---|---|---|---|---|
main @ 63743b9 (serial unittest) |
1462 | 68 | 1260 s | 21m35s |
this PR @ 0e7e646 (pytest -n 4) |
1462 | 68 | 1320 s | 22m44s |
Acceptance criterion 1 of #241 is not met. Please rework the change:
- Replace
pytest-xdistwith astrategy.matrixof shards, each on its ownwindows-latestrunner. - Balance the shards by measured execution time, not by test or module count. Record where the timings came from.
- Every test runs in exactly one shard: no test is repeated across shards and none is left out. Add a check that fails when a test module is not assigned to a shard, or is assigned to more than one.
- The required check
PowerShell installerkeeps reporting, through an aggregating job withneeds:on the shards, and fails when any shard fails or is cancelled. The installer steps keep the job context they need. - The Linux job stays unchanged.
- Add
Closes #241to the PR description.
Measurable target: the median time to a PowerShell installer result, over at least 3 runs, must be at least 25 % lower than the 21m35s baseline, so 16m11s or less. Also report the total Windows runner minutes per run against the baseline, so the extra GitHub Actions consumption can be weighed against the time saved.
Do not report the target as met from a single run. The before/after timing table from at least 3 runs belongs in the PR description. If the target is not reached, the PR must not be merged, even with green CI.
[CCT-20261016-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:0e7e646df85bca92a12c399751743252df61fee1 · schema:2[REV-001] · high · open · valid · blocks:yes — Replace xdist with measured Windows shardsTriage at |
[CCT-20261016-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:0e7e646df85bca92a12c399751743252df61fee1 · schema:2[CCR-20261016-001] · reviewer · anthropic/claude-sonnet-5-5→? · high · schema:2Resolution update for PR #255 (work item #241)Status: PARTIALLY_RESOLVED. The workflow rework is committed and pushed at Findings[REV-001] · high · open · valid · blocks:yes — Replace xdist with measured Windows shardsTriage was judged against The fix replaces xdist with four The timing target is not claimed. The new workflow has not produced three completed measurements; the PR description records that these runs must report test-step duration, full check duration, and total Windows runner minutes, and that the median must be 16m11s or less before merge. The work item remains blocked from merge by this missing evidence. No inline review threads were present to close. VerificationAgent-reported local verification on Linux with Python 3.10.12:
All four local shards passed, covering 1,465 tests. An initial run exposed that the new checkout-only runner also needed to be declared in the existing runtime manifest guard; that classification was added and the complete shard run passed afterward. The actual Windows boundary is still pending because these local runs used Linux; the PR's Windows checks were queued in the one-time read below. The delegated Checks of pushed headSingle read for
Counts: 0 passed, 5 queued, 0 failed, 0 cancelled, 0 skipped; the expected Residual riskThe new matrix design has not yet demonstrated the required time reduction or its total runner-minute cost. Keep REV-001 open and do not merge until the three Windows measurements are recorded and the median meets the target. |
[CCR-20261016-002] · reviewer · anthropic/claude-sonnet-5-5→? · high · schema:2Rereview: PR #255 (work item #241)Status: CHANGES_REQUESTED. Head What changed since the previous reviewThe prior review covered Findings[REV-001] · high · open · valid · blocks:yes — Replace xdist with measured Windows shardsVerified by execution (Linux, Python 3.10.12), criterion by criterion:
Still open: the measurable target — median Non-blocking observations (not findings)
Security triage and auditThe workflow file changed, which activates the audit. Checked: VerificationExecuted: CI (read once, not waited on,
|
| Check | State |
|---|---|
| Skills, manifests, and Bash installer | pending |
| Windows test shard (windows-1) | pending |
| Windows test shard (windows-2) | pending |
| Windows test shard (windows-3) | pending |
| Windows test shard (windows-4) | pending |
| PowerShell installer | not yet listed in the rollup (depends on the shards) |
Residual risk
The time saving and runner-minute cost of the shard design are unproven; critical path is test_run_cycle (~416 s) plus setup and the sequential installer job. Do not merge until the three-run table is recorded.
ORCHESTRATION_RESULT (JSON)
ORCHESTRATION_RESULT
{"skill":"cc-rereview","status":"CHANGES_REQUESTED","issue_provider":"github","issue_id":"241","code_host":"github","change_request_id":"255","change_request_url":"https://github.com/datacas/code-cycle-toolkit/pull/255","pr_number":255,"issue_number":241,"previous_reviewed_head_sha":"0e7e646df85bca92a12c399751743252df61fee1","reviewed_head_sha":"08fc370cb1d7998771fed89a2df155dba86cbf77","head_sha":"08fc370cb1d7998771fed89a2df155dba86cbf77","review_run_id":"CCR-20261016-002","reviewer":{"profile":"reviewer","provider":"anthropic","model_requested":"claude-sonnet-5-5","model_resolved":null,"effort":"high"},"verified_findings":[{"id":"REV-001","severity":"high","blocks_approval":true,"status":"still_open","disposition":"valid"}],"new_findings":[],"blocking_findings":["REV-001"],"checks":{"head_sha":"08fc370cb1d7998771fed89a2df155dba86cbf77","passed":0,"failed":0,"pending":5},"blocking":false}
END_ORCHESTRATION_RESULT
[CCT-20261016-002] · cheap_coder · openai/gpt-6-luna→? · high · triaged:08fc370cb1d7998771fed89a2df155dba86cbf77 · schema:2[CCR-20261016-001] · reviewer · anthropic/claude-sonnet-5-5→? · high · schema:2[CCR-20261016-002] · reviewer · anthropic/claude-sonnet-5-5→? · high · schema:2Resolution update for PR #255 (work item #241)Status: PARTIALLY_RESOLVED. No code changed in this attempt. The trusted review delta base 08fc370 is an ancestor of the current head, which is still 08fc370; the fix delta is empty. Findings[REV-001] · high · open · valid · blocks:yes — Replace xdist with measured Windows shardsThe valid disposition remains frozen from the earlier trusted triage. The structural requirements are present and were confirmed by the latest rereview, but the acceptance criterion still needs three completed runs of the new Windows workflow, a median PowerShell installer duration of 16m11s or less, and the per-run test duration and total Windows runner minutes recorded in the PR. Those measurements are not available yet, so this finding remains open. The latest rereview also noted that the PR description's Diagnosis paragraph still refers to pytest-xdist; that non-blocking observation remains. Fix-delta review and local verificationThe delegated cc-code-review pass reviewed the complete fix delta from 08fc370 to HEAD and found no issues; the delta is empty. git diff --check 08fc370..HEAD exited 0 on that empty delta. No tests were run because this attempt made no code changes. The Windows timing acceptance remains unverified. Checks of current pushed headSingle read for 08fc370 under the parallel CI policy; no waiting or fix round was run.
Counts: 2 passed, 1 expected check missing (counted as failed for reporting), 3 pending, 0 cancelled, 0 skipped. |
[CCR-20261016-001] · reviewer · anthropic/claude-sonnet-5-5→? · high · schema:2[CCR-20261016-002] · reviewer · anthropic/claude-sonnet-5-5→? · high · schema:2[CCR-20261016-003] · reviewer · anthropic/claude-sonnet-5-5→? · high · schema:2Rereview: PR #255 (work item #241)Status: CHANGES_REQUESTED. Head What changed since the previous reviewNo code changed since the last rereview: the head is the same Findings[REV-001] · high · open · valid · blocks:yes — Replace xdist with measured Windows shardsThe structural criteria 1–6 were verified earlier and still hold on this head. Re-executed now (Linux, Python 3.10):
First measurement (run 38907097888,
That is 69 % under the baseline and far below the 16m11s ceiling, with runner-minute cost roughly flat. It is one run, and the requirement says not to report the target as met from a single run, so REV-001 is not marked To close it: record this run and two more completed runs of this workflow (a re-run of the same head is enough) in the PR table, with test-step time, check time, and total Windows runner minutes per run, and show a median of 16m11s or less. The first run makes that outcome very likely, but it has not been measured. Non-blocking observations (not findings)
Security triage and auditThe workflow file changed, which activates the audit. No change to VerificationExecuted as listed under REV-001. Not executed: the shard test bodies (the author reported all four passing locally, and all four passed on Windows in the run above). CI (read once, not waited on,
|
| Check | State |
|---|---|
| Skills, manifests, and Bash installer | pass |
| Windows test shard (windows-1) | pass |
| Windows test shard (windows-2) | pass |
| Windows test shard (windows-3) | pass |
| Windows test shard (windows-4) | pass |
| PowerShell installer | pass |
6 passed, 0 pending, 0 failed. The base branch has no protection rules, so no required-check list is declared; all six defined checks of the head passed.
Residual risk
Run-to-run variance of GitHub-hosted Windows runners (the earlier runs of this suite ranged from 17 to 26 minutes) is the only reason the single measurement is not enough. Do not merge until the three-run table is recorded.
Verdict
CHANGES_REQUESTED: REV-001 blocks approval until the three-run median is recorded. No other open finding.
[CCR-20261016-001] · reviewer · anthropic/claude-sonnet-5-5→? · high · schema:2[CCR-20261016-002] · reviewer · anthropic/claude-sonnet-5-5→? · high · schema:2[CCR-20261016-003] · reviewer · anthropic/claude-sonnet-5-5→? · high · schema:2[CCR-20261016-004] · reviewer · anthropic/claude-sonnet-5-5→? · high · schema:2Rereview: PR #255 (work item #241)Status: APPROVED. Head What changed since the previous reviewNo code changed: the head is still Findings[REV-001] · high · resolved · valid · blocks:yes — Replace xdist with measured Windows shardsStructural criteria 1–6 held when re-checked on this head (workflow, shard runner, manifest, contract tests). The measurable target is now backed by three runs. I recomputed every number in the PR table from the job and step timestamps of each attempt:
Re-executed here (Linux, Python 3.10): Non-blocking observations (not findings)
Security triage and auditThe workflow file changed, which activates the audit. No change to VerificationExecuted as listed under REV-001, plus CI (read once, not waited on,
|
| Check | State |
|---|---|
| Skills, manifests, and Bash installer | pass |
| Windows test shard (windows-1) | pass |
| Windows test shard (windows-2) | pass |
| Windows test shard (windows-3) | pass |
| Windows test shard (windows-4) | pass |
| PowerShell installer | pass |
6 passed, 0 pending, 0 failed. The base branch declares no protection rules, so no required-check list exists; every check the workflow defines for this head passed.
Residual risk
Windows runner variance (the old serial suite ranged from 17 to 26 minutes) is covered by the 3-run spread. The shard split relies on module timings from PR #239; as the suite grows the assignment will drift, and the exactly-once check does not guard balance.
Verdict
APPROVED for head 08fc370: reviewed head equals current head, all checks passed, and no open finding blocks approval. Merging stays a manual decision.
Implements issue #241.
Diagnosis
The Windows
PowerShell installerjob runs the full suite serially withunittest, and the issue reports a 17–26 minute result time. The serial command is present in.github/workflows/validate.yml; this feature request's proposed cause is confirmed. Reproduction does not apply to a feature request. The invariant is that the full Windows suite must continue to gate the existing required check while running concurrently, with the installer steps still available in their existing job.A widened related-work search found open issues #236 (path-based validation optimization) and #243 (fork PR Linux validation), plus closed issue #242 and merged PR #254 (workflow triggers and concurrency). They affect adjacent behavior in the same workflow but do not share this test-parallelization change.
The fix installs pytest and pytest-xdist only in the Windows CI job and runs every test under
testswith four workers. ThePowerShell installercheck name, Linux job, and following installer steps remain in place.Work units
WU-1.github/workflows/validate.ymlVerification
Agent-reported local evidence:
rtk git diff --check— exit 0.rtk python3 scripts/validate-package.py— exit 0; 15 skills validated.rtk python3 -m unittest discover -s tests -p test_validate_workflow.py -v— exit 0; 1 test passed.rtk python3 -m unittest discover -s tests -v— exit 0; 1,462 tests passed in 516.965 seconds.rtk python3 -m pytest -q tests— exit 0; 1,462 tests and 1,179 subtests passed in 244.65 seconds. No tests were skipped.The local runs used Linux and the executor's Python 3.10. The Windows job uses
windows-latestand setup-python's3.x; its pytest-xdist parallel invocation was not run locally because this executor could not access PyPI. The Windows job is the boundary check for that invocation. Issue #241 also asks for an after-time comparison from at least two Windows runs; this change does not claim that timing result until those runs are available.Checks of the pushed head
Single read of head
0e7e646df85bca92a12c399751743252df61fee1:Skills, manifests, and Bash installerandPowerShell installerwere bothIN_PROGRESS(pending). No check was observed as passed or failed in that read.Windows shard timing
Baseline:
mainat63743b9, one serialPowerShell installerjob, 21m35s to a result (21m00s test step), 21m35s of Windows runner time, 1462 tests with 68 skipped.Three completed runs of
08fc370, run 38907097888, attempts 1–3, allsuccess. Time to a result is measured from the first shard's start to the end of the aggregatingPowerShell installerjob.PowerShell installerresultCloses #241