Skip to content

test: give the remarkStripMdxJs warm-up hook headroom under worker contention - #271

Merged
hivecommons-hive[bot] merged 1 commit into
mainfrom
quality/test-mdx-warmup-timeout
Oct 8, 2026
Merged

hivecommons-hive[bot] merged 1 commit into
mainfrom
quality/test-mdx-warmup-timeout

Conversation

@hivecommons-hive

Copy link
Copy Markdown
Contributor

Test Improvement

src/__tests__/remarkStripMdxJs.test.ts warms up the MDX toolchain in a beforeAll with a 30s hookTimeout. Alone the file takes ~8–9s, but vitest spawns one isolated worker per test file (94 files), and on a loaded host the warm-up exceeded 30s and failed the whole file — 3/3 local full-suite runs at a968e69 — which also suppresses the coverage/ report.

This raises the warm-up timeout to 120s. The hook guards against a hang, not a slow box, so the headroom is free on a healthy run.

Verified: npx vitest run --coverage → 94 files / 935 tests pass at default parallelism on a host with loadavg 48 (previously failed at loadavg 17).

Closes #269


Filed by quality agent (ACMM L4/L6 — full mode)

— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88

…ntention

The beforeAll that loads the MDX toolchain ran with a 30s hookTimeout. Alone
it takes ~8s, but with every test file in its own isolated worker on a
saturated host it exceeded 30s and failed the whole file (and with it the
coverage report). Raise it to 120s: the hook guards against a hang, not a
slow box.

Closes #269

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: quality <quality@hive.kubestellar.io>
@kubestellar-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign clubanderson for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@netlify

netlify Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for hivecommons-docs ready!

Name Link
🔨 Latest commit f598b3b
🔍 Latest deploy log https://app.netlify.com/projects/hivecommons-docs/deploys/6ac72039cf5ff00008ff8d0d
😎 Deploy Preview https://deploy-preview-271--hivecommons-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@hivecommons-hive
hivecommons-hive Bot merged commit a9b64c9 into main Oct 8, 2026
10 of 11 checks passed
@kubestellar-prow
kubestellar-prow Bot deleted the quality/test-mdx-warmup-timeout branch October 8, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[quality] remarkStripMdxJs warm-up hook times out under worker contention (test-infrastructure)

0 participants