Skip to content

Conversation

@cjihrig
Copy link
Contributor

@cjihrigcjihrig commented Jul 18, 2024

Hopefully this is the last bit of refactoring before adding support for running multiple test files in the same process.

This commit refactors some of the internals of the test runner.
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/test_runner

@nodejs-github-botnodejs-github-bot added needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem. labels Jul 18, 2024
Copy link
Member

@atlowChemiatlowChemi left a comment

Choose a reason for hiding this comment

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

LGTM, but shouldn't the change in the order of before hook be considered a breaking change? (hence semver-major)

@cjihrig
Copy link
ContributorAuthor

@atlowChemi I have backed out that change for now. I think it may be fine for the purposes of test isolation.

I do think it is a minor bug though. We have an allowTestsToRun flag in the test harness that is supposed to prevent the runner from executing anything until we tell it to. Top level before hooks currently violate that.

Copy link
Member

@mcollinamcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@MoLowMoLow added the request-ci Add this label to start a Jenkins CI on a PR. label Jul 18, 2024
@github-actionsgithub-actionsbot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jul 18, 2024
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@cjihrigcjihrig added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue Add this label to land a pull request using GitHub Actions. and removed needs-ci PRs that need a full CI run. labels Jul 20, 2024
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 20, 2024
@nodejs-github-botnodejs-github-bot merged commit dab12a2 into nodejs:mainJul 20, 2024
@nodejs-github-bot
Copy link
Collaborator

Landed in dab12a2

@cjihrigcjihrig deleted the refactor branch July 20, 2024 16:59
targos pushed a commit that referenced this pull request Jul 28, 2024
This commit refactors some of the internals of the test runner. PR-URL: #53921 Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
@RafaelGSSRafaelGSS mentioned this pull request Jul 30, 2024
@targostargos added the dont-land-on-v20.x PRs that should not land on the v20.x-staging branch and should not be released in v20.x. label Sep 21, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.dont-land-on-v20.xPRs that should not land on the v20.x-staging branch and should not be released in v20.x.test_runnerIssues and PRs related to the test runner subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@cjihrig@nodejs-github-bot@mcollina@jasnell@benjamingr@MoLow@atlowChemi@targos