Skip to content

ci: parallelize the Windows test suite - #255

Merged
datacas merged 2 commits into
mainfrom
ci/241-parallel-windows-tests
Oct 16, 2026
Merged

datacas merged 2 commits into
mainfrom
ci/241-parallel-windows-tests

Conversation

@datacas

@datacas datacas commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

Implements issue #241.

Diagnosis

The Windows PowerShell installer job runs the full suite serially with unittest, 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 tests with four workers. The PowerShell installer check name, Linux job, and following installer steps remain in place.

Work units

Unit Behaviour Files Tests Verification Rollback
WU-1 Run the complete Windows test suite with four pytest-xdist workers while preserving the required check and installer job .github/workflows/validate.yml Existing workflow contract test and full test suite See agent-reported verification below independent

Verification

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.
  • Before the change, 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-latest and setup-python's 3.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 installer and PowerShell installer were both IN_PROGRESS (pending). No check was observed as passed or failed in that read.

Windows shard timing

Baseline: main at 63743b9, one serial PowerShell installer job, 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, all success. Time to a result is measured from the first shard's start to the end of the aggregating PowerShell installer job.

Shard run Slowest shard (test step) PowerShell installer result Total Windows runner time
1 windows-4, 5m46s 6m39s 20m48s
2 windows-3, 7m17s 8m10s 23m26s
3 windows-4, 6m09s 7m00s 20m16s
Median 6m09s 7m00s 20m48s
  • Median time to a result: 7m00s, against a 21m35s baseline: −67.6 %. The target, a median of 16m11s or less (≥25 %), is met.
  • Windows runner time is roughly unchanged: a 20m48s median against 21m35s. Billing rounds each job up to the minute, so a run bills about 24 Windows minutes instead of 22, roughly +2 minutes for about 14½ minutes less waiting.

Closes #241

@datacas

datacas commented Oct 16, 2026

Copy link
Copy Markdown
Owner Author

[CCR-20261016-001] · reviewer · anthropic/claude-sonnet-5-5→? · high · schema:2

Initial review: PR #255 (work item #241)

Status: REVIEW_PASSED_AWAITING_CI. The head 0e7e646df85bca92a12c399751743252df61fee1 was fully reviewed and there are no findings. This is not an approval: the required checks were still pending when read, and under the parallel CI policy the cycle's CI gate decides.

Scope

Accumulated diff from merge base 63743b9 to head (21 lines, SHA-256 3cbece05…cd91 confirmed), one file: .github/workflows/validate.yml.

  • The PowerShell installer job now installs pyyaml pytest pytest-xdist.
  • The Windows suite runs as py -3 -m pytest -n 4 -v tests instead of unittest discover.
  • The job name (the required check), the Linux job, and the installer steps that follow are unchanged.
  • Repository instructions applied: AGENTS.md and .code-cycle.yml (ci.policy: parallel). No project review triggers were defined, so the defaults apply.

Findings

None.

Non-blocking observations (not findings):

  • pytest and pytest-xdist are unpinned, like the existing pyyaml. This is consistent with the job today.
  • The tests are process-isolated under xdist. The TMPDIR and os.environ mutations in tests/test_executors.py are per-process.
  • No test guards the new Windows invocation. The workflow contract test only covers the triggers and concurrency, and the change is exercised by the job itself.

Security triage

The deterministic rule (security_review.always_when) is not declared in .code-cycle.yml, so the defaults apply. The diff touches a CI workflow, which is on the default list, so I audited it inline, scoped to the change. Result: no confirmed vulnerabilities and no potential risks.

  • No change to permissions, secrets, triggers or untrusted-input handling.
  • The only new surface is two additional PyPI packages in a job that already installs one.

Verification executed

  • git diff --check 0e7e646~1 0e7e646 — exit 0.
  • python3 scripts/validate-package.py — VALID: 15 skills.
  • python3 -m pytest -q tests/test_validate_workflow.py — 1 passed.
  • Not verified: pytest -n 4 on Windows. pytest-xdist is not installed in this clone and the Windows runner is unavailable here. The implementer's local pytest run (1,462 tests, serial) is agent-reported and was not re-run. The Windows job is the boundary check.
  • Not verified: the timing improvement requested in ci: run the Windows test suite in parallel #241. It needs at least two Windows runs, and the PR does not claim it.

CI (single read, not waited on)

Check State
Skills, manifests, and Bash installer pending
PowerShell installer pending

Both are the repository's defined jobs, and none had passed or failed when read.

Residual risks

  • A test may behave differently on Windows under -n 4 or pytest collection than under serial unittest. The PowerShell installer job will show it.

Verdict

No open finding blocks approval. The review is complete for head 0e7e646; the CI gate waits for the two checks.

@datacas

datacas commented Oct 16, 2026

Copy link
Copy Markdown
Owner Author

Change request: replace pytest-xdist with Windows shards

The CI run on 0e7e646 shows no speed-up from pytest -n 4:

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:

  1. Replace pytest-xdist with a strategy.matrix of shards, each on its own windows-latest runner.
  2. Balance the shards by measured execution time, not by test or module count. Record where the timings came from.
  3. 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.
  4. The required check PowerShell installer keeps reporting, through an aggregating job with needs: on the shards, and fails when any shard fails or is cancelled. The installer steps keep the job context they need.
  5. The Linux job stays unchanged.
  6. Add Closes #241 to 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.

@datacas

datacas commented Oct 16, 2026

Copy link
Copy Markdown
Owner Author

[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 shards

Triage at 0e7e646df85bca92a12c399751743252df61fee1: the newer trusted feedback documents a Windows run slower than baseline and requests separate Windows shard runners, a measured balanced assignment with a completeness/uniqueness check, an aggregating PowerShell installer job, and the issue link in the PR body. The existing implementation does not meet the measured speed acceptance criterion. This finding is valid; disposition is frozen before edits.

@datacas

datacas commented Oct 16, 2026

Copy link
Copy Markdown
Owner Author

[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:2

Resolution update for PR #255 (work item #241)

Status: PARTIALLY_RESOLVED. The workflow rework is committed and pushed at 08fc370cb1d7998771fed89a2df155dba86cbf77. The structural feedback is implemented. The performance acceptance remains open until three completed runs of the new shard workflow provide the timing and runner-minute table requested below.

Findings

[REV-001] · high · open · valid · blocks:yes — Replace xdist with measured Windows shards

Triage was judged against 0e7e646df85bca92a12c399751743252df61fee1, before edits. The trusted feedback is valid: the reported pytest -n 4 result took 22m44s versus the 21m35s baseline, so that approach did not meet the speed goal.

The fix replaces xdist with four windows-latest matrix shards. Their module assignments use averaged module timing estimates from two Windows PowerShell installer logs on PR #239; the sources, per-module estimates, and resulting shard estimates are recorded in scripts/windows-test-shards.json. scripts/run_windows_test_shard.py validates the complete recursive test_*.py inventory before each shard and fails for missing, unexpected, or duplicate assignments. The required PowerShell installer job aggregates all shard results and explicitly fails if any shard is not successful, including cancellation. Installer steps remain in that job, and the Linux job is unchanged. The PR description now includes Closes #241 and a timing table with three pending rows.

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.

Verification

Agent-reported local verification on Linux with Python 3.10.12:

  • git diff --check — exit 0.
  • python3 scripts/validate-package.py — exit 0; 15 skills validated.
  • python3 -c 'import yaml; yaml.safe_load(open(".github/workflows/validate.yml", encoding="utf-8"))' — exit 0; workflow YAML parsed.
  • python3 -m unittest discover -s tests -p test_validate_workflow.py -v — exit 0; 4 tests passed.
  • python3 scripts/run_windows_test_shard.py windows-1 — exit 0; 209 tests passed.
  • python3 scripts/run_windows_test_shard.py windows-2 — exit 0; 307 tests passed.
  • python3 scripts/run_windows_test_shard.py windows-3 — exit 0; 218 tests passed.
  • python3 scripts/run_windows_test_shard.py windows-4 — exit 0; 731 tests passed.

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 cc-code-review pass reviewed the complete fix delta from trusted base 0e7e646df85bca92a12c399751743252df61fee1 and found no issues. The security review was triggered by the changed CI workflow and found no confirmed vulnerabilities or potential risks in the workflow, shard runner, or manifest.

Checks of pushed head

Single read for 08fc370cb1d7998771fed89a2df155dba86cbf77:

Check State
Skills, manifests, and Bash installer queued
Windows test shard (windows-1) queued
Windows test shard (windows-2) queued
Windows test shard (windows-3) queued
Windows test shard (windows-4) queued
PowerShell installer missing from this rollup read

Counts: 0 passed, 5 queued, 0 failed, 0 cancelled, 0 skipped; the expected PowerShell installer aggregate was not listed in this read. No remote CI wait or fix round was run under the parallel policy.

Residual risk

The 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.

@datacas

datacas commented Oct 16, 2026

Copy link
Copy Markdown
Owner Author

[CCR-20261016-002] · reviewer · anthropic/claude-sonnet-5-5→? · high · schema:2

Rereview: PR #255 (work item #241)

Status: CHANGES_REQUESTED. Head 08fc370cb1d7998771fed89a2df155dba86cbf77 was completely rereviewed. REV-001 remains open only for its measurable target (three completed Windows runs, median ≤ 16m11s), which cannot be verified yet. No new findings.

What changed since the previous review

The prior review covered 0e7e646 (xdist). The head now replaces pytest -n 4 with a 4-runner windows-test-shards matrix, scripts/run_windows_test_shard.py (inventory validation + unittest runner), scripts/windows-test-shards.json (timing-balanced assignment), an aggregating PowerShell installer job (needs + if: always() + a first step that fails unless every shard succeeded), and tests in tests/test_validate_workflow.py. Accumulated diff: 371 lines, SHA-256 84b28969…d3d636 confirmed, 5 files vs merge base 63743b9.

Findings

[REV-001] · high · open · valid · blocks:yes — Replace xdist with measured Windows shards

Verified by execution (Linux, Python 3.10.12), criterion by criterion:

  1. Matrix of shards on windows-latest, xdist removed: confirmed in the workflow (fail-fast: false, four shards); the test asserts pytest-xdist and pytest -n are absent.
  2. Balance by measured time with sources recorded: windows-test-shards.json lists two PR feat(runtime): ask before granting sensitive sandbox access such as Docker #239 Windows log URLs and per-module seconds; the per-shard sums recomputed to 416.4 / 377.1 / 379.8 / 376.5 s, matching the recorded estimates within rounding. Two modules are listed as unmeasured and placed by hand.
  3. Exactly-once coverage with a failing check: loading all four shards counts 209 + 307 + 218 + 731 = 1465 tests, equal to unittest discover (1465). validate_assignments rejects missing, duplicate, and unknown modules (both rejection paths pass in test_validate_workflow, 4/4 OK), and the runner repeats the check before each shard.
  4. Aggregating PowerShell installer keeps the required name and installer steps and fails on any non-success shard, cancellation included: confirmed in the workflow text and its contract test; real behaviour is only observable on GitHub.
  5. Linux job unchanged: confirmed in the diff.
  6. Closes #241 is in the PR body.

Still open: the measurable target — median PowerShell installer result of 16m11s or less over at least 3 runs, plus total Windows runner minutes per run — has no measurement yet (the PR table rows are pending). A fix that is present but cannot be verified is not resolved. Close it once three completed runs on this workflow are recorded and meet the target.

Non-blocking observations (not findings)

  • The PR description's "Diagnosis" paragraph still says the fix installs pytest and pytest-xdist; the head no longer does. Worth updating alongside the timing table.
  • pytest/pyyaml are not pinned; consistent with the existing job.

Security triage and audit

The workflow file changed, which activates the audit. Checked: permissions: contents: read unchanged, no new triggers, no secrets, no pull_request_target, matrix values are static literals interpolated into a run: line, and the runner reads only a repo-local manifest and imports only names it validated against tests/. No confirmed vulnerabilities or potential risks.

Verification

Executed: scripts/validate-package.py (exit 0, 15 skills valid); unittest on test_validate_workflow (4 OK) and test_install_runtime (14 OK); shard inventory load from load_shards() (1465 tests across shards = full discovery). Not executed: the shards' full test bodies (the author reported all four passing locally) and anything on Windows; the real Windows behaviour is unverified here and left to the CI gate.

CI (read once, not waited on, parallel policy)

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

@datacas

datacas commented Oct 16, 2026

Copy link
Copy Markdown
Owner Author

[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:2

Resolution 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 shards

The 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 verification

The 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 head

Single read for 08fc370 under the parallel CI policy; no waiting or fix round was run.

Check State
Skills, manifests, and Bash installer pass
Windows test shard (windows-1) pending
Windows test shard (windows-2) pending
Windows test shard (windows-3) pass
Windows test shard (windows-4) pending
PowerShell installer missing from this rollup read

Counts: 2 passed, 1 expected check missing (counted as failed for reporting), 3 pending, 0 cancelled, 0 skipped.

@datacas

datacas commented Oct 16, 2026

Copy link
Copy Markdown
Owner Author

[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

Rereview: PR #255 (work item #241)

Status: CHANGES_REQUESTED. Head 08fc370cb1d7998771fed89a2df155dba86cbf77 was completely rereviewed and there are no new findings. REV-001 stays open for one reason only: its measurable target needs three completed Windows runs, and one exists.

What changed since the previous review

No code changed since the last rereview: the head is the same 08fc370. What is new is evidence: the first CI run of the shard workflow has completed on this head, and every check passed. Accumulated diff: 371 lines, SHA-256 84b28969…d3d636 confirmed, 5 files against merge base 63743b9.

Findings

[REV-001] · high · open · valid · blocks:yes — Replace xdist with measured Windows shards

The structural criteria 1–6 were verified earlier and still hold on this head. Re-executed now (Linux, Python 3.10):

  • scripts/validate-package.py — VALID: 15 skills.
  • unittest on test_validate_workflow and test_install_runtime — 18 tests OK.
  • load_shards() counts 209 + 307 + 218 + 731 = 1465 tests, equal to unittest discover (1465): every test runs in exactly one shard.
  • No trailing whitespace on added lines.

First measurement (run 38907097888, pull_request, conclusion success):

Metric Value Baseline (main @ 63743b9)
Time to a PowerShell installer result (run created 13:20:30Z, aggregate done 13:27:11Z) 6m41s 21m35s
Shard test steps 4m34s / 5m01s / 3m45s / 5m46s (windows-1 / 2 / 3 / 4) 21m00s serial
PowerShell installer aggregate job 29s n/a
Summed Windows job time (4 shards + aggregate) about 20m48s 21m35s

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 resolved. The PR description's timing table still shows pending rows.

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)

  • The PR description's "Diagnosis" paragraph still says the fix installs pytest and pytest-xdist; the head no longer does.
  • powershell-installer uses if: ${{ always() }}, so on a cancelled run (concurrency cancel) it still starts a runner and fails fast at its first step; !cancelled() would avoid that. The failure result is correct either way.
  • pyyaml is unpinned, consistent with the existing job.

Security triage and audit

The workflow file changed, which activates the audit. No change to permissions, triggers, or secrets; no pull_request_target; matrix values are static literals; the runner reads a repo-local manifest and imports only names validated against tests/. No confirmed vulnerabilities and no potential risks.

Verification

Executed 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, parallel policy)

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.

@datacas

datacas commented Oct 16, 2026

Copy link
Copy Markdown
Owner Author

[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:2

Rereview: PR #255 (work item #241)

Status: APPROVED. Head 08fc370cb1d7998771fed89a2df155dba86cbf77 was completely rereviewed. REV-001 is resolved: three completed runs of the shard workflow are recorded and verified against the Actions API, and the median meets the target. No new findings, and all six checks of this head passed.

What changed since the previous review

No code changed: the head is still 08fc370. New since CCR-20261016-003: runs 2 and 3 of the shard workflow completed (run 38907097888, attempts 1–3, all success), and the PR description now holds the timing table. Accumulated diff: 371 lines, SHA-256 84b28969…d3d636 confirmed, 5 files against merge base 63743b9.

Findings

[REV-001] · high · resolved · valid · blocks:yes — Replace xdist with measured Windows shards

Structural 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:

Attempt Slowest shard test step PowerShell installer result (first shard start → aggregate end) Windows job time summed Billed (each job rounded up)
1 windows-4, 5m46s 6m39s 20m48s 24 min
2 windows-3, 7m17s 8m10s 23m26s 25 min
3 windows-4, 6m09s 7m00s 20m16s 23 min
Median 6m09s 7m00s 20m48s 24 min
  • Baseline main @ 63743b9 (run 38896927785): PowerShell installer 11:54:50Z → 12:16:25Z = 21m35s, as the PR states.
  • Median 7m00s against a 16m11s ceiling: −67.6 %. Target met over 3 runs, with a visible spread of 6m39s–8m10s.
  • Runner cost is about flat in job time (20m48s vs 21m35s); billed minutes are about 24 against 22, as the PR reports.
  • The three runs are attempts of one head, which is the allowed form of evidence. All three are success.

Re-executed here (Linux, Python 3.10): scripts/validate-package.py (VALID: 15 skills); unittest on test_validate_workflow (4 OK) and test_install_runtime (14 OK), which cover the exactly-once shard coverage check and the runtime-manifest classification of the new runner. Every shard's test bodies ran green on Windows in all three attempts.

Non-blocking observations (not findings)

  • The PR description's Diagnosis, Work units, and Verification sections still describe the superseded pytest-xdist fix and a check read of 0e7e646. The head no longer matches them; worth rewriting before merge so the description is accurate.
  • powershell-installer uses if: ${{ always() }}, so a cancelled run still starts a runner and fails at its first step; !cancelled() would avoid that. The result is correct either way.
  • pyyaml is unpinned, consistent with the existing job.

Security triage and audit

The workflow file changed, which activates the audit. No change to permissions: contents: read, triggers, or secrets; no pull_request_target; matrix values are static literals; the runner reads a repo-local manifest and imports only names validated against tests/. No confirmed vulnerabilities and no potential risks.

Verification

Executed as listed under REV-001, plus git clean tree at 08fc370 and no trailing whitespace on added lines (0 found). Not executed locally: the full shard test bodies (Linux only); they passed on Windows in CI.

CI (read once, not waited on, parallel policy)

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.

@datacas datacas mentioned this pull request Oct 16, 2026
@datacas
datacas merged commit 5f95ef5 into main Oct 16, 2026
18 checks passed
@datacas
datacas deleted the ci/241-parallel-windows-tests branch October 16, 2026 14:13
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.

ci: run the Windows test suite in parallel

1 participant