Repository navigation
ci: run test files with four isolated workers - #174
Conversation
abogartz
left a comment
There was a problem hiding this comment.
Spoke too soon. This failed the Windows test after I approved.
|
@abogartz Updated in The failing Windows job on Local Windows/Bun 1.4.4 validation: the full gate passes (692 unit tests, 12 skips, 11 end-to-end tests, typecheck, lint), two further fresh-process unit runs both pass, and the targeted scenario passes five repetitions. I could not reproduce the hosted five-second timeout locally, so the new hosted Windows result still needs to confirm this adjustment before merge. The description now explicitly distinguishes existing job-level CI parallelism from the file-level parallelism this PR adds. It also records a stress-test caveat: Please re-review when the checks finish. It remains fine to decline the parallel runner approach if you prefer the existing setup. |
|
@abogartz The Windows check passed on I opened #181 with the reader correction and a deterministic regression that fails before the source fix. This is a runtime fix, so it is separate from the optional CI proposal and can be accepted independently. The original concurrent-reader assertion remains intact; no additional deadlines or retries were introduced. This branch includes those same commits at The descriptions now explain the dependency and distinguish existing job-level CI parallelism from the file-level parallelism proposed here. Please feel free to decline either implementation if you prefer another approach. |
|
@abogartz #181 passed all four hosted checks, including Windows with the serial runner. The parallel Windows run here on
I could not reproduce either hosted failure locally: the preceding full parallel unit run passed, as did 1,000 isolated repetitions of the original capture case. I cannot identify the unexpected event from that CI log, so this is not a claim that its exact cause has been proven. Fresh hosted Windows CI still needs to validate the updated head. Local validation of CI update: all four checks passed on |
|
@abogartz Thanks for refreshing the branch. I checked Ready for your re-review when convenient; the earlier changes-requested review remains active. It is still fine to decline the parallel-runner proposal if you prefer the existing setup. |
|
🎉 This PR is included in version 0.14.22 🎉 The release is available on: Your semantic-release bot 📦🚀 |
…245) The Windows job turned red on #247 without touching these tests: a starved --parallel=4 worker spends real time past Bun's default 5s budget, the test dies, bun kills the dangling racer children, and finish() rejects after teardown as "racer-d1 exited null". The margins are measured, not theorized: on the GREEN windows run the prune-sweep scenario took 5272ms and the viewer-mutation scenario 4990ms against the 5s default. Bun also applies the default 5s to beforeEach/afterEach even when the test carries a longer override, so lifecycle-evidence failed at 8.3s in its hook with a 30s test timeout next door. Give every test and hook in the three files this family keeps failing (scenarios-consistency, concurrency, lifecycle-evidence) an explicit 30s budget. No assertion moves; only time is granted. Follows the precedent set for the reader scenario (#174).
Run unit and end-to-end test files with
--parallel=4, using Bun's default per-file isolation while keeping cases within each file sequential. Many fixtures share environment variables and module state, so this does not enable--concurrent.CI already runs its separate lint, Linux unit-test, Windows unit-test, and smoke jobs in parallel. This adds file-level parallelism within each test job. The local gate keeps its stages sequential and calls the same package scripts as CI, preserving failure handling and Git-environment scrubbing. Windows CI pins Bun 1.4.4 to match Linux and release jobs. Contributor documentation retains direct serial commands for test-order debugging. Required check names and the plugin's runtime engine floor are unchanged.
Two I/O-heavy scenarios receive explicit 30-second deadlines for Windows workers: the import/concurrent-writers case (30 gated imports and 80 appends, with an existing 20-second child-readiness budget), and the concurrent-reader case (300 serialized rewrites racing 400 reads). Their workload sizes and every integrity/count assertion remain unchanged. Production lock timeouts and all other test deadlines are unchanged; no test retries or skips are added.
The unresolved-session capture test waits for the complete
auto_capture_refusedrecord for its own session and trigger, instead of stopping on anyauto_capture*prefix. It still requires zero stored rows and additionally requires zero model calls. A failure prints the observed evidence records. Its existing polling budget is unchanged.The reader correction from #181 is now merged into main. After the maintainer's update to
8e91b9d, this PR's diff against main v0.14.21 is confined to seven CI, documentation, and test files. The separate remaining-reader follow-up is #184.Validation:
8e91b9d: lint/typecheck, Linux tests, Windows tests, and real-host end-to-end smoke.63e2b6fpassed the full local Windows/Bun 1.4.4 gate: 695 unit tests, 12 existing skips, 11 end-to-end tests, typecheck, and lint. The new merge head additionally incorporates main's fix: preserve visibility when completing duplicate updates #180 visibility fix and tests; hosted checks cover that combined tree.--rerun-eachexposed separate repeat-only frontier-evidence failures even without parallel workers. Full-suite stability checks use fresh processes; that fixture-reset issue is unchanged here.This is an optional proposal. Please feel free to reject or close it without merging if you prefer the existing test execution model or this change does not fit your plans for the project.