Repository navigation
Description
What happened
Both merge queue runs of #1012 failed on a test that #1012 doesn't touch: "lets the page do its work between subjects with many values, so the longest task does not grow with the release" in packages/solid/src/shaclShapeValidator.test.ts, added in dd10d17:
FAIL src/shaclShapeValidator.test.ts > the page's turn during a check > lets the page do its work between subjects with many values, so the longest task does not grow with the release
TestTimeoutError: Test timed out in 180000ms.
❯ src/shaclShapeValidator.test.ts:2533:3
The test checks that the shape check of a release lets the page do its work between subjects with many values. It validates a release of 32 cards with 1,024 values each three times, and one of 4 cards six times, then compares the longest tasks.
It times CPU work as a ratio of two runs, as a growth test does, but it's in a normal test file. So CI's check job runs it under coverage, with every package's tests at once on the runner's two cores:
| Run | Job | Coverage | Time |
|---|---|---|---|
| #1012's own branch run | check |
on | 167 s of the 180 s timeout (its file: 434 s) |
| #1012's own branch run | solid-memo-client (unit) |
off | 34 s |
| both merge queue runs of #1012 | check |
on | past 180 s, failed |
main's runs don't hit it: they reuse solid's cached test results. Any change to solid's inputs reruns the test, and can then fail on it, as #1012 did.
Expected: this test fails only when the shape check holds the page longer as the release grows, not because the runner is slow. Like every other test that times CPU work, it would run in the growth job, without coverage, beside check (testing.md).
Steps to reproduce
- Run CI on a pull request or merge group that changes
packages/solid(or what its tests read), so thecheckjob runssolid's tests with coverage rather than reusingmain's cached result. - See
@solid-memo/solid#testfail with "Test timed out in 180000ms" atsrc/shaclShapeValidator.test.ts:2533, as in both merge queue runs of fix(application): make review-state edits of the read their save is conditional on #1012. On a run that passes, the test reports a time close to its timeout: 167 s on fix(application): make review-state edits of the read their save is conditional on #1012's own run.
Locally, npx vitest run shaclShapeValidator.test.ts -t "longest task" in packages/solid takes about 15 s without coverage, far under the timeout.
Where
CI (packages/solid shaclShapeValidator longest-task test)
Version
main at adda655 (the test from dd10d17)
Browser and system
No response
Pod
No response
The app's language
No response
Anything else
The fix is on branch shape-check-growth-test: the test moves, unchanged, to shaclShapeValidator.growth.test.ts, which the growth job runs without coverage and npm test leaves out. It should be merged before #1012 goes back into the merge queue.
In the same run, the JSON-LD test "refuses JSON-LD of values that make no triple, or of values that take more work than its triples may" in solidDeckArchive.test.ts took 130 s in check, and may be the next to time out.
Activity
test(solid): time the shape check's longest task in the growth job, n…