Uh oh!
There was an error while loading. Please reload this page.
test_runner: skip --require for test orchestration process - #52099
Conversation
nodejs-github-bot
commented
Mar 15, 2024
Review requested:
|
MoLow
commented
Mar 15, 2024
Watch mode already has such tests in place and dosen't need this condition since it passes node/test/sequential/test-watch-mode.mjs Lines 278 to 310 in 154afbe |
0fc431e to
ee77010CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
rluvaton
commented
Mar 16, 2024
Wouldn't it break the following node --require ts-node/register --test-reporter=ts-reporter.ts --test test.jsNot near computer so can't verify at the moment |
MoLow
commented
Mar 17, 2024
It will. I think the usecase of typescript reporters is less common than the issues reported by #48467 - and it can still be solved with |
Yes but it means that this is a breaking change Adding label but if you think differently we can discuss |
nodejs-github-bot
commented
Apr 1, 2024
MoLow
commented
Apr 1, 2024
I need another @nodejs/tsc approval since this is marked as semver-major. PTAL |
nodejs-github-bot
commented
Apr 1, 2024
nodejs-github-bot
commented
Apr 1, 2024
There was a problem hiding this comment.
It will. I think the usecase of typescript reporters is less common than the issues reported by #48467 - and it can still be solved with
--loader
--loader is experimental and de facto deprecated in favor of --import. Before this lands, can someone please confirm that the following works (note that both the reporter and the test are TypeScript files):
node --import ts-node/register --test-reporter=ts-reporter.ts --test test.ts
And add a test to that effect? If not, this shouldn’t land as it replaces one bug with another.
Also if the above command works but changing --import to --require causes it to break, well, that’s another bug. I’m not sure if it’s worse than the bug that this PR is aiming to fix, so I’m not sure it’s worth blocking on that point since the remediation would be to use --import, but it’s not like we document that --require always works except when used with --test.
nodejs-github-bot
commented
Apr 1, 2024
Commit Queue failed- Loading data for nodejs/node/pull/52099 ✔ Done loading data for nodejs/node/pull/52099 ----------------------------------- PR info ------------------------------------ Title test_runner: skip `--require` for test orchestration process (#52099) Author Moshe Atlow (@MoLow) Branch MoLow:test-runner-require -> nodejs:main Labels semver-major, process, author ready, needs-ci, commit-queue-squash, test_runner Commits 3 - test_runner: skip `--require` for test orchestration process - CR - fixup! CR Committers 1 - Moshe Atlow PR-URL: https://github.com/nodejs/node/pull/52099 Reviewed-By: Colin Ihrig Reviewed-By: Chemi Atlow Reviewed-By: Matteo Collina ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/52099 Reviewed-By: Colin Ihrig Reviewed-By: Chemi Atlow Reviewed-By: Matteo Collina -------------------------------------------------------------------------------- ℹ This PR was created on Fri, 15 Mar 2024 13:37:00 GMT ✘ Requested Changes: 1 ✘ - Geoffrey Booth (@GeoffreyBooth) (TSC): https://github.com/nodejs/node/pull/52099#pullrequestreview-1972231968 ✔ Approvals: 3 ✔ - Colin Ihrig (@cjihrig): https://github.com/nodejs/node/pull/52099#pullrequestreview-1971512653 ✔ - Chemi Atlow (@atlowChemi): https://github.com/nodejs/node/pull/52099#pullrequestreview-1972004444 ✔ - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/52099#pullrequestreview-1971723293 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2024-04-01T20:33:31Z: https://ci.nodejs.org/job/node-test-pull-request/58041/ - Querying data for job/node-test-pull-request/58041/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/8514547329 |
MoLow
commented
Apr 2, 2024
that is a good point. makes me rethink about #48467 (comment)
registering a module hook/loader is one reason. any thoughts on a better solution for #48467? thing is a lot of IDE's inject code to connect the debugger which breaks here |
GeoffreyBooth
commented
Apr 2, 2024
I don't know. I'm dealing with a similar problem in #52242. |
avivkeller
commented
Jul 29, 2026
Can we revisit this PR? |
Fixes#48467