Skip to content

[Bug]: Full test suite can time out installer fixture build under parallel load #352

Closed

Description

@jimhoyd

Runtime revision and environment

main at 7972185 on macOS. Command: npm test.

Minimal reproduction

  1. From a clean checkout, run npm test.
  2. test/install.test.ts builds the package once through synchronous node scripts/build.ts in packRelease(), with a 120,000 ms timeout.
  3. While the full Node test runner is executing its many other files, that child build exceeded the timeout (127,997 ms observed). spawnSync() therefore returned status: null.
  4. All five installer tests fail at the common assertion on line 33 before their individual installer behavior runs.

Expected: a machine that can complete the build should not fail all installer tests merely because the full suite is busy.

Actual: the shared fixture has a fixed 120-second synchronous build timeout and reports null !== 0.

Relevant output

✖ installer verifies the published checksum before installing (127997ms)
AssertionError: null !== 0
  at test/install.test.ts:33

ℹ tests 677
ℹ pass 671
ℹ fail 5

The other four failures are the same shared packRelease() failure. The normal strict TypeScript check passed.

Possible fixes: raise or make the timeout load-aware; serialize/isolated-package this fixture so it does not compete with the full suite; or prepare a candidate archive once in a dedicated package-test step while retaining a test that verifies a fresh archive. Preserve the intent that the test does not depend on pre-existing dist/.

This is a test-harness/CI reliability finding; I did not verify it on GitHub Actions or a quiet machine.

Activity

  1. added
    in-progress
    on Sep 21, 2026
  2. jimhoyd commented on Sep 21, 2026

    @jimhoyd
    CollaboratorAuthor

    Progress: an agent has started on this; a PR will be linked here when it opens.

  3. jimhoyd commented on Sep 21, 2026

    @jimhoyd
    CollaboratorAuthor

    Progress: PR #379 opened: the installer fixture build runs through an async execFile with a 600 s hang safety net and a clear timeout/exit message; could not reproduce the original 128 s build under 4x CPU oversubscription.

  4. removed
    in-progress
    on Sep 21, 2026
  5. jimhoyd commented on Sep 21, 2026

    @jimhoyd
    CollaboratorAuthor

    Merged in #379: the installer fixture's build and pack now run through an async execFile with a 600 s hang safety net, and a timeout or non-zero exit reports 'installer fixture build timed out after N ms' or 'exited with CODE after N ms' plus the child's output, instead of 'null !== 0'. The original 128 s build could not be reproduced (a quiet build takes ~1.2 s; 4x CPU oversubscription made it ~9 s), so the root cause of that one observation is unconfirmed. Keeping this open to see whether it recurs; other fixed spawnSync timeouts in test/ and scripts/ can fail with the same status-null shape and were left alone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions