test: don't inspect values if not necessary#22903
Conversation
The inspection triggered on each assert call eagerly even tough the assertion was never triggered. That caused significant CPU overhead.
|
Resume build: https://ci.nodejs.org/job/node-test-pull-request/17270/ βοΈ (besides arm) I expect the arm-fanned re-run to fail so that will need a Rebuild, but let's see if this at least clears up the other two red subtasks. |
|
arm rebuild: https://ci.nodejs.org/job/node-test-commit-arm-fanned/3576/ βοΈ |
|
Landed in 9ccf5c8 π |
The inspection triggered on each assert call eagerly even tough the assertion was never triggered. That caused significant CPU overhead. PR-URL: nodejs#22903 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com>
|
@BridgeAR Just for future reference, from our collaborator guide:
What most people do is to something like β:+1: this comment if you approve of fast-trackingβ to a comment on the PR, and then wait for approvals. |
The inspection triggered on each assert call eagerly even tough the assertion was never triggered. That caused significant CPU overhead. PR-URL: #22903 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com>
The inspection triggered on each assert call eagerly even tough the assertion was never triggered. That caused significant CPU overhead. PR-URL: #22903 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com>
The inspection triggered on each assert call eagerly even tough the assertion was never triggered. That caused significant CPU overhead. PR-URL: #22903 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com>
The inspection triggered on each assert call eagerly even tough the
assertion was never triggered. That caused significant CPU overhead.
I currently try to figure out what a nice API would look like for lazy custom assert messages but this can go in right away.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes