You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Timing-sensitive tests fail under parallel workspace runner (concurrency=3) #2132
Investigation from Slock task #147 (by Maka前端执行专家, reviewed by maka-审美专家). Evidence:
--concurrency 3: 3/3 runs fail at least one test. --concurrency 1: 0/2 fail. Each package standalone: all green (runtime ×4, runtime-host ×3, and runtime-host immediately after runtime ×3 — rules out dirty-teardown).
Conclusion: machine saturation breaks fixed-time assumptions, not shared-resource contention.
High-frequency failures (exactly these three):
runtime-host: Host auxiliary models meter provider usage and abort physical requests
runtime: file tools follow the execution boundary
runtime: one file takes one write lock however its path is spelled
Ask: relax the fixed waits/timeouts in these three tests or convert to conditional waits. Interim mitigation lands separately: add both packages to SERIAL_WORKSPACE_DIRS in scripts/run-workspace-tests-parallel.mjs (precedent: packages/headless).
Interim mitigation landed in #2136 (merged, e16ad2d): packages/runtime and packages/runtime-host moved to SERIAL_WORKSPACE_DIRS — remove those two entries when the timing assumptions in the three tests above are fixed. The same PR also fixed a runner defect found during this work: runSerial was skipped entirely whenever any parallel workspace failed, which had packages/headless silently not running on failing local runs. Serial batch now always executes and failures from both batches are reported together.
Taking this one, following the issue's own analysis:
execution-model-composition: abort the stalled effect with an explicit controller, only after the dispatch barrier settles. The abort reason keeps the TimeoutError name, so the errorClass assertion stands. The 10s test timeout moves to the 20s precedent.
filesystem-authority: replace the 20ms sleep with deferred barriers. The release happens only after the second edit is provably queued on the lock.
Activity
fix(scripts): the serial workspace batch was never running after a pa…
jackwener commentedon Aug 4, 2026
Interim mitigation landed in #2136 (merged, e16ad2d): packages/runtime and packages/runtime-host moved to SERIAL_WORKSPACE_DIRS — remove those two entries when the timing assumptions in the three tests above are fixed. The same PR also fixed a runner defect found during this work: runSerial was skipped entirely whenever any parallel workspace failed, which had packages/headless silently not running on failing local runs. Serial batch now always executes and failures from both batches are reported together.
fix(settings): use Astryx Link for the last bare anchors, and refresh…
Benjamin-eecs commentedon Aug 4, 2026
Taking this one, following the issue's own analysis:
TimeoutErrorname, so the errorClass assertion stands. The 10s test timeout moves to the 20s precedent.SERIAL_WORKSPACE_DIRSentries, per the note in fix(scripts): the serial workspace batch was never running after a parallel failure #2136.Validation: repeated full runs at
--concurrency 3plus standalone package runs, counts in the PR.test(runtime,runtime-host): replace fixed waits with explicit barriers
test(runtime,runtime-host): replace fixed waits with explicit barriers
test(runtime,runtime-host): replace fixed waits with explicit barriers (
refactor: drop the workspace test runner's serial scheduling
refactor: collapse duplicate test infrastructure (#4323)