Skip to content

test(solid): time the shape check's longest task in the growth job, not under coverage - #1015

Merged
ixuz merged 1 commit into
mainfrom
shape-check-growth-test
Nov 24, 2026
Merged

ixuz merged 1 commit into
mainfrom
shape-check-growth-test

Conversation

@ixuz

@ixuz ixuz commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

What and why

The test that the shape check of a release lets the page do its work between subjects with many values can run past its 180 s timeout in CI (#1016). It validates a release of 32 cards with 1,024 values each, three times over, beside smaller ones. It was in shaclShapeValidator.test.ts, so CI's check job ran it under coverage, with every package's tests at once on two cores:

Without coverage it takes about 34 s in CI. main's runs don't hit it, because they reuse solid's cached test results. A change to solid reruns the test, as #1012's did.

Every other test that times CPU work as a ratio of two runs lives in a growth test file, which the growth job runs without coverage and npm test leaves out. This one now does too, in shaclShapeValidator.growth.test.ts:

  • its input, its 2.5 limit and its timeout are unchanged;
  • it takes longestTask, which no other test used, along with it;
  • solid stays at 100% coverage without it;
  • testing.md's list of what the growth tests time names it.

It takes about three minutes off the check job.

npm run check passes. npm run lint:reuse couldn't run locally, because reuse couldn't be installed here. The new file has the SPDX header, and CI runs the lint.

Merge order: merge this before #1012 goes back into the merge queue, or that queue run hits the same timeout again.

Closes: #1016
Refs: #1012

@ixuz ixuz added ci/cd Continuous integration and deployment testing Test suites, journeys and flaky tests labels Nov 24, 2026
@ixuz
ixuz enabled auto-merge November 24, 2026 21:17
…ot under coverage

The test that the shape check of a release lets the page do its work
between subjects with many values validates a release of 32 cards of
1,024 values each, three times over, beside smaller ones. It was in
shaclShapeValidator.test.ts, so CI's check job ran it under coverage,
with every package's tests at once on two cores: 167 s of its 180 s
timeout on #1012's own run, and past it in both of its merge queue
runs, failing them. Without coverage it takes about 34 s in CI.

Like every test that times CPU work as a ratio of two runs, it now
lives in a growth test file, shaclShapeValidator.growth.test.ts, which
the growth job runs without coverage and npm test leaves out. Its input
and its limit are as they were, and so is the package's coverage.

Closes: #1016
@ixuz
ixuz force-pushed the shape-check-growth-test branch from e479dfb to f82f471 Compare November 24, 2026 21:21
@ixuz
ixuz added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit e8fe517 Nov 24, 2026
95 of 106 checks passed
@ixuz
ixuz deleted the shape-check-growth-test branch November 24, 2026 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd Continuous integration and deployment testing Test suites, journeys and flaky tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The shape check's longest-task test can exceed its 180 s timeout in CI's check job, which runs it under coverage

1 participant