Skip to content
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

test_runner: detect only tests when --test is not used #54881

Merged
merged 2 commits into from
Sep 15, 2024

Conversation

cjihrig
Copy link
Contributor

@cjihrig cjihrig commented Sep 10, 2024

This commit updates the way the test runner processes 'only' tests when node:test files are run without the - test CLI.

The first two commits here are from #54832. Please ignore them while reviewing. The third commit is a breaking change.

I was going to wait to open this PR until #54832 landed, but it's taking longer than expected because of CI flakiness, so I figured I would get the 48 hour clock started on this change.

@cjihrig cjihrig added the semver-major PRs that contain breaking changes and should be released in the next major version. label Sep 10, 2024
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/test_runner

@cjihrig cjihrig requested a review from MoLow September 10, 2024 21:05
@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 Sep 10, 2024
Copy link
Member

@MoLow MoLow left a comment

Choose a reason for hiding this comment

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

LGTM, can we also add a test with isolation-none and only?

Copy link

codecov bot commented Sep 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.06%. Comparing base (f5f67ae) to head (f5d9d92).
Report is 31 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #54881      +/-   ##
==========================================
- Coverage   88.07%   88.06%   -0.01%     
==========================================
  Files         651      651              
  Lines      183409   183409              
  Branches    35826    35825       -1     
==========================================
- Hits       161529   161514      -15     
- Misses      15142    15151       +9     
- Partials     6738     6744       +6     
Files with missing lines Coverage Δ
lib/internal/test_runner/harness.js 93.37% <100.00%> (ø)

... and 25 files with indirect coverage changes

@RedYetiDev
Copy link
Member

Should the documentation be updated accordingly? (I'm not sure how this is currently documented)

This commit updates the way the test runner processes 'only'
tests when node:test files are run without the --test CLI.
This is a breaking change.
@cjihrig cjihrig added the commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. label Sep 12, 2024
@cjihrig cjihrig requested a review from MoLow September 12, 2024 17:19
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented Sep 12, 2024

CI: https://ci.nodejs.org/job/node-test-pull-request/62370/ 🟢

A rare all green CI that was not resumed.

@cjihrig
Copy link
Contributor Author

cjihrig commented Sep 15, 2024

@MoLow (and another TSC member since this is semver-major) PTAL.

Copy link
Member

@MoLow MoLow left a comment

Choose a reason for hiding this comment

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

amazing progress

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@cjihrig cjihrig added the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 15, 2024
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 15, 2024
@nodejs-github-bot nodejs-github-bot merged commit dbaef33 into nodejs:main Sep 15, 2024
56 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in dbaef33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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. semver-major PRs that contain breaking changes and should be released in the next major version. test_runner Issues and PRs related to the test runner subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants