Repository navigation
test: changed test2 & test3 of test-vm-timeout.js - #13453
aniketshukla wants to merge 1 commit into
Conversation
test: changed test2 of test-vm-timeout.js so that entire error message
would be matched in assert.throw.
Before test 2 of test-vm-timeout.js would match any RangeError,
now it looks specifically for the error message
"RangeError: timeout must be a positive number"
test: changed test 3 of test-vm-timeout.js so that entire error message
would be matched in assert.throw.
Before test 3 of test-vm-timeout.js would match any RangeError,
now it looks specifically for the error message
"RangeError: timeout must be a positive number"
|
@aniketshukla Welcome, and thank you very much for the contribution 🥇 |
|
@refack @vsemozhetbyt Thank you ! |
tniessen
left a comment
There was a problem hiding this comment.
Please choose a more specific commit message. The first line should start with test,vm: and say something useful, e.g. test,vm: restrict allowed RangeErrors for timeout. Additionally, the next paragraphs can be shortened significantly.
That’s really not customary for test-only changes; I think we mostly do that kind of format for changes that are test-heavy but also have changes in |
I would suggest |
|
@addaleax Okay, my bad, I thought we included all affected subsystems in the commit message. IMHO "changed test2 & test3 of test-vm-timeout.js" is not a helpful commit message. |
INHO It's good you voice your opinion!
|
|
@tniessen personally I give more "assertive" comment to |
|
@refack It's okay, no offense taken :) I see that including If we agree on a different commit message, I can change it while merging this (unless someone else plans to do that). I am fine with @refack's suggestion ( |
|
Failure on |
test: changed test2 of test-vm-timeout.js so that entire error message
would be matched in assert.throw.
Before test 2 of test-vm-timeout.js would match any RangeError,
now it looks specifically for the error message
"RangeError: timeout must be a positive number"
test: changed test 3 of test-vm-timeout.js so that entire error message
would be matched in assert.throw.
Before test 3 of test-vm-timeout.js would match any RangeError,
now it looks specifically for the error message
"RangeError: timeout must be a positive number"
PR-URL: nodejs#13453
Refs: nodejs#13454
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
|
Landed in 12e39d6 |
|
Extra post-land sanity of |
test: changed test2 of test-vm-timeout.js so that entire error message
would be matched in assert.throw.
Before test 2 of test-vm-timeout.js would match any RangeError,
now it looks specifically for the error message
"RangeError: timeout must be a positive number"
test: changed test 3 of test-vm-timeout.js so that entire error message
would be matched in assert.throw.
Before test 3 of test-vm-timeout.js would match any RangeError,
now it looks specifically for the error message
"RangeError: timeout must be a positive number"
PR-URL: #13453
Refs: #13454
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
test: changed test2 of test-vm-timeout.js so that entire error message
would be matched in assert.throw.
Before test 2 of test-vm-timeout.js would match any RangeError,
now it looks specifically for the error message
"RangeError: timeout must be a positive number"
test: changed test 3 of test-vm-timeout.js so that entire error message
would be matched in assert.throw.
Before test 3 of test-vm-timeout.js would match any RangeError,
now it looks specifically for the error message
"RangeError: timeout must be a positive number"
PR-URL: #13453
Refs: #13454
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
…sAddon Backend nodejs#13453 added the RecordReplayMarkNextDlopenAsAddon() export which this branch calls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Tell the driver which dlopen() loads an addon The driver only let addons be loaded from paths containing node_modules when recording, and refused others without a dlerror() message, which crashed DLib::Open() while building its error. Call the driver's RecordReplayMarkNextDlopenAsAddon() before loading an addon, so that it is attached wherever it is, and fall back to a generic message when dlerror() has none. Requires a driver with RecordReplayMarkNextDlopenAsAddon(), so REPLAY_BACKEND_REV needs to be bumped once it is released. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Pass the addon's name when marking its dlopen() for the driver The driver only applies the mark to a dlopen() of that name, so a mark whose dlopen() wasn't intercepted can't apply to a later library. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Pin REPLAY_BACKEND_REV to the driver with RecordReplayMarkNextDlopenAsAddon Backend nodejs#13453 added the RecordReplayMarkNextDlopenAsAddon() export which this branch calls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Drop the fallback for a NULL dlerror() in DLib::Open Addon dlopen() calls are marked for the driver, so it doesn't refuse them, and the driver makes dlerror() report refused ones anyway. A failed dlopen() always has an error, as upstream assumes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Changed test2 of test-vm-timeout.js so that entire error message
would be matched in assert.throw.
Before test 2 of test-vm-timeout.js would match any RangeError,
now it looks specifically for the error message
"RangeError: timeout must be a positive number"
Changed test 3 of test-vm-timeout.js so that entire error message
would be matched in assert.throw.
Before test 3 of test-vm-timeout.js would match any RangeError,
now it looks specifically for the error message
"RangeError: timeout must be a positive number"
Ref: #13454
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
test,vm