Skip to content

test_runner: fix timeout not propagated to the child process in run #58831

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jakecastelli
Copy link
Member

We do have test coverage for this case, however, the test failed due to an incorrect file path, not due to the intended testTimeoutFailure. The key takeaway is that we should make the assertion more explicit to avoid such regression.

Fixes: #58802

@jakecastelli jakecastelli requested a review from pmarchini June 25, 2025 11:39
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/test_runner

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem. labels Jun 25, 2025
Copy link

codecov bot commented Jun 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.99%. Comparing base (6ce6fdb) to head (7720b96).
Report is 13 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #58831      +/-   ##
==========================================
- Coverage   90.10%   89.99%   -0.12%     
==========================================
  Files         640      640              
  Lines      188384   188369      -15     
  Branches    36937    36862      -75     
==========================================
- Hits       169743   169522     -221     
- Misses      11363    11529     +166     
- Partials     7278     7318      +40     
Files with missing lines Coverage Δ
lib/internal/test_runner/runner.js 92.68% <100.00%> (+0.03%) ⬆️

... and 40 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pmarchini
Copy link
Member

pmarchini commented Jun 25, 2025

The key takeaway is that we should make the assertion more explicit to avoid such regression.

@jakecastelli yes I agree.

There's a failure in the test(now two failures seem to be expected)

@jakecastelli
Copy link
Member Author

There's a failure in the test(now two failures seem to be expected)

Ah indeed - missed the other one!

@JakobJingleheimer JakobJingleheimer added commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. request-ci Add this label to start a Jenkins CI on a PR. labels Jun 26, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jun 26, 2025
@nodejs-github-bot
Copy link
Collaborator

@JakobJingleheimer JakobJingleheimer added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jun 26, 2025
@edsadr edsadr self-requested a review June 26, 2025 18:44
Copy link
Member

@edsadr edsadr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

testrunner: run() ignores timeout option
5 participants