Skip to content

fix: docs pointer and stall race for the epic (S2) - #2169

Merged
neuromechanist merged 2 commits into
feature/portable-compute-epicfrom
feature/pc-s2-fix-2
Nov 14, 2026
Merged

neuromechanist merged 2 commits into
feature/portable-compute-epicfrom
feature/pc-s2-fix-2

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Card S2 step 6, round 1: the first full Tests run on #2167 (run 43618622350, head 0b351cc) failed one test in each of three unit-pure shards; two commits fix the two that the epic caused, and the third is reported as flaky with no change.

Failure 3, test/docs-links.unit.test.ts "every referenced page exists" (class a, the epic's diff, deterministic): the plan pack's W1 row spelled the docs page compute/portable-processing as a docs-host URL, and that page is not published yet, so the guard that resolves every docs URL against the published pages refused it. It failed again on the rerun (attempt 2, shard 3), reproduced locally with and without the newest dev, and passes after the fix. The row now names the page without the host and says why (27300ac, .context/plans/portable-compute/plan.md, one line). The test's assertion is unchanged.

Failure 2, backend/test/zarr-source-check.test.ts "an index that stalls is abandoned at the index timeout" (class a, the epic's own stand-in, a race): the stand-in Bun.serve kept the default idle timeout of 10 seconds, the same as the index deadline. When the server wins that race on a pooled connection the client sends the request a second time, so the log shows two index requests where the check made one (the CI log shows the server's "timed out a request after 10 seconds" warning in the failing run; a passing run shows none). Reproduced locally in roughly one of four full-file runs (took 10009 to 10018 ms). A standalone probe shows the mechanism: a pooled connection with a server idle timeout shorter than the client's deadline saw the stalled path twice, a fresh connection saw it once, and an idle timeout longer than the deadline saw it once. The stand-in now sets idleTimeout: 60 so a stall always ends at the client's deadline (0ae7f20, backend/test/helpers/github-compare-standin.ts, one option and a comment). With the fix the whole file passed 8 of 8 runs on the epic merged with dev; setting the option to 3 as a mutation fails both stall tests (took 5005 ms and 2630 ms); the assertions are unchanged.

Failure 1, backend/test/compute-ledger.test.ts "migration 0114 creates the triggers on compute_pools, and migration 0130 only replaces..." (class c, flaky, no change here): sources() walks readdirSync in the order the filesystem returns, and the test expects migration 0114 before 0130; the failing run received 0130 first. The rerun of the same run passed, the same test passed in five other recent runs, and it passes locally (macOS returns names sorted). The cause is dev's own test (phase A7), not this diff. Patch note for its owner: sort the directory entries inside walk; I did not change it.

Newest dev (S1a, squash b9c8f4a, with the bot bump 2f95da0): an uncommitted merge of it changes none of the three results, and backend/test/dataset-id-partition.test.ts and backend/test/upload-gate.unit.test.ts pass on the merge. Both fix branches merge cleanly into it.

Gates run on this branch at 0ae7f20 with an uncommitted merge of origin/dev at 2f95da0: bun test test/docs-links.unit.test.ts backend/test/compute-ledger.test.ts test/adr-index.unit.test.ts test/changelog-format.unit.test.ts backend/test/compute-runner-jobs.test.ts backend/test/compute-runner-queue.test.ts backend/test/compute-fixture-eligibility.test.ts test/admin-compute-pipeline-cli.test.ts backend/test/dataset-id-partition.test.ts backend/test/upload-gate.unit.test.ts printed 399 pass, 3 skip, 0 fail, Ran 402 tests across 10 files.

Not run, would check: the full Tests workflow on #2167 after the manager squash-merges this together with #2166 and card S3c, because it is the epic gate.

Card: S2 (round 1, fix 2).

@neuromechanist
neuromechanist merged commit caf368b into feature/portable-compute-epic Nov 14, 2026
1 check passed
@neuromechanist
neuromechanist deleted the feature/pc-s2-fix-2 branch November 14, 2026 17:45

This branch was previously deployed

1 inactive deployment
npm — 0ae7f204 Deployed Nov 14, 2026 by neuromechanist via publish #4461
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