Uh oh!
There was an error while loading. Please reload this page.
test_runner: better error handing for test hook - #52401
Conversation
nodejs-github-bot
commented
Apr 7, 2024
Review requested:
|
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.
Uh oh!
There was an error while loading. Please reload this page.
be37e0d to
0e35b75CompareThere was a problem hiding this comment.
Probably should also have the replaceTestLocationLine transformer?
There was a problem hiding this comment.
I am ok with these being a number. it shouldn't change much
There was a problem hiding this comment.
| assert.match(stdout,/^#Warning:Test"extraneousasyncactivitytest"at.+extraneous_set_immediate_async\.mjs:3:1generatedasynchronousactivityafterthetestended/m); | |
| assert.match(stdout,/^#Warning:Test"extraneousasyncactivitytest"at.+extraneous_set_immediate_async\.mjs:\d+:\d+generatedasynchronousactivityafterthetestended/m); |
(same for rest of the file)
There was a problem hiding this comment.
I am ok with this being a number. it shouldn't change much
There was a problem hiding this comment.
We can leave col/row number here, because fixtures are won't change too much, it's good to keep it here
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.
There was a problem hiding this comment.
There is another warning on line 70 that we should change to an error. We should also remove the part that says "after the test ended" since we have seen that it can happen before a test even starts.
There was a problem hiding this comment.
We should also remove the part that says "after the test ended" since we have seen that it can happen before a test even starts.
I will keep this comment because it seems out of the context of this PR. And perhaps we can open another PR and add such test case
Uh oh!
There was an error while loading. Please reload this page.
cjihrig
left a comment
There was a problem hiding this comment.
LGTM. Thanks, I think this is a nice change.
nodejs-github-bot
commented
Apr 10, 2024
nodejs-github-bot
commented
Apr 11, 2024
atlowChemi
commented
Apr 11, 2024
@himself65 CI seems to have failures related to the snapshots |
himself65
commented
Apr 11, 2024
How to fix it? |
MoLow
commented
Apr 11, 2024
see https://ci.nodejs.org/job/node-test-binary-windows-js-suites/27045/RUN_SUBSET=1,nodes=win11-COMPILED_BY-vs2022/console for example:
|
atlowChemi
commented
Apr 11, 2024
Once you fix the transfrormers @MoLow mentioned, run the following command to update the snapshots: |
himself65
commented
Apr 14, 2024
working on this now |
nodejs-github-bot
commented
Apr 14, 2024
074683d to
16f2eefCompareCo-authored-by: Colin Ihrig <cjihrig@gmail.com>
16f2eef to
ebaa222Comparenodejs-github-bot
commented
Apr 14, 2024
nodejs-github-bot
commented
Apr 15, 2024
nodejs-github-bot
commented
Apr 15, 2024
nodejs-github-bot
commented
Apr 15, 2024
nodejs-github-bot
commented
Apr 15, 2024
nodejs-github-bot
commented
Apr 15, 2024
Commit Queue failed- Loading data for nodejs/node/pull/52401 ✔ Done loading data for nodejs/node/pull/52401 ----------------------------------- PR info ------------------------------------ Title test_runner: better error handing for test hook (#52401) Author Alex Yang (@himself65) Branch himself65:himself65/20240407/better-error-handler -> nodejs:main Labels needs-ci, test_runner Commits 1 - test_runner: better error handing for test hook Committers 1 - Alex Yang PR-URL: https://github.com/nodejs/node/pull/52401 Fixes: https://github.com/nodejs/node/issues/52399 Reviewed-By: Moshe Atlow Reviewed-By: Chemi Atlow Reviewed-By: Benjamin Gruenbaum Reviewed-By: Colin Ihrig ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/52401 Fixes: https://github.com/nodejs/node/issues/52399 Reviewed-By: Moshe Atlow Reviewed-By: Chemi Atlow Reviewed-By: Benjamin Gruenbaum Reviewed-By: Colin Ihrig -------------------------------------------------------------------------------- ⚠ Commits were pushed since the last approving review: ⚠ - test_runner: better error handing for test hook ℹ This PR was created on Sun, 07 Apr 2024 07:56:26 GMT ✔ Approvals: 4 ✔ - Moshe Atlow (@MoLow) (TSC): https://github.com/nodejs/node/pull/52401#pullrequestreview-1990080998 ✔ - Chemi Atlow (@atlowChemi): https://github.com/nodejs/node/pull/52401#pullrequestreview-1990786703 ✔ - Benjamin Gruenbaum (@benjamingr) (TSC): https://github.com/nodejs/node/pull/52401#pullrequestreview-1990921524 ✔ - Colin Ihrig (@cjihrig): https://github.com/nodejs/node/pull/52401#pullrequestreview-1991730905 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2024-04-15T07:42:58Z: https://ci.nodejs.org/job/node-test-pull-request/58391/ - Querying data for job/node-test-pull-request/58391/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/8687402947 |
nodejs-github-bot
commented
Apr 15, 2024
Landed in f098b7a |
Fixes: #52399