crypto: fix regression on randomFillSync#35723
Conversation
|
Review requested:
|
f1a56dc to
32635ff
Compare
|
Please 👍 to fast-track. @panva ... added the Fixes note |
This comment has been minimized.
This comment has been minimized.
|
Regression test? (I'm stepping away for dinner so don't block on it, but if you could add a regression test that would be great because obviously the regression wasn't covered by our existing tests). |
Signed-off-by: James M Snell <[email protected]> Fixes: nodejs#35722
|
regression test added |
32635ff to
98cfdaf
Compare
ChALkeR
left a comment
There was a problem hiding this comment.
LGTM.
That said, it's strange that this wasn't caught.
That also affects e.g.
const x = Buffer.from("hello");
const y = Buffer.from("world");
require('crypto').randomFillSync(y)Perhaps something like that could be added to tests.
|
It's concerning that none of the existing tests caught this particular variation. The regression test should cover that case @ChALkeR but we can extend it after this lands. |
|
Some unrelated flaky failures so far in CI. Once the full CI run completes I'll resume it. |
This comment has been minimized.
This comment has been minimized.
|
The ARM job in CI appeared to hang up.. not sure what's up there... restarting CI to hopefully get a green run on the flaky failures |
|
Sigh. Another unrelated flaky failure and ARM is still hanging behind a list of pending CI runs. Assuming those clear out today and we can get by the flaky failures, this is ready to land any time |
|
Still waiting on the arm CI to get unjammed before we can move forward with this.... (@nodejs/build) |
|
removed arm-fanned from the roster, I had to cancel a few people's builds, you should dismiss them for now |
|
New test run complete, you've got a very flaky parallel/test-http2-respond-file-error-pipe-offset on linux for both runs, this one on alpine and centos, the last run on the other alpine. But I don't suppose that has anything to do with this change. |
|
Good ci run finally. Tagging for the Commit queue |
Commit Queue failed- Loading data for nodejs/node/pull/35723 ✔ Done loading data for nodejs/node/pull/35723 ----------------------------------- PR info ------------------------------------ Title crypto: fix regression on randomFillSync (#35723) Author James M Snell (@jasnell) Branch jasnell:fix-randomfillsync-regression -> nodejs:master Labels author ready, crypto, fast-track Commits 1 - crypto: fix regression on randomFillSync Committers 1 - James M Snell PR-URL: https://github.com/nodejs/node/pull/35723 Reviewed-By: Myles Borins Reviewed-By: Beth Griggs Reviewed-By: Сковорода Никита Андреевич Reviewed-By: Evan Lucas ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/35723 Reviewed-By: Myles Borins Reviewed-By: Beth Griggs Reviewed-By: Сковорода Никита Андреевич Reviewed-By: Evan Lucas -------------------------------------------------------------------------------- ✖ Last GitHub CI failed ℹ Last Full PR CI on 2020-10-21T03:18:37Z: https://ci.nodejs.org/job/node-test-pull-request/33766/ - Querying data for job/node-test-pull-request/33766/ ✔ Build data downloaded ✔ Last Jenkins CI successful ℹ This PR was created on Tue, 20 Oct 2020 17:01:25 GMT ✔ Approvals: 4 ✔ - Myles Borins (@MylesBorins) (TSC): https://github.com/nodejs/node/pull/35723#pullrequestreview-512950520 ✔ - Beth Griggs (@BethGriggs) (TSC): https://github.com/nodejs/node/pull/35723#pullrequestreview-512951409 ✔ - Сковорода Никита Андреевич (@ChALkeR) (TSC): https://github.com/nodejs/node/pull/35723#pullrequestreview-512977935 ✔ - Evan Lucas (@evanlucas): https://github.com/nodejs/node/pull/35723#pullrequestreview-513223234 ℹ This PR is being fast-tracked -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncu Commit Queue action: https://github.com/nodejs/node/actions/runs/319044303 |
Signed-off-by: James M Snell <[email protected]> Fixes: #35722 PR-URL: #35723 Reviewed-By: Сковорода Никита Андреевич <[email protected]> Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Beth Griggs <[email protected]>
|
landed in 4cbcfae |
Signed-off-by: James M Snell <[email protected]> Fixes: #35722 PR-URL: #35723 Reviewed-By: Сковорода Никита Андреевич <[email protected]> Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Beth Griggs <[email protected]>
Node.js 15.0.0 included a regression on crypto.randomFillSync that needs a quick patch. We should do a quick 15.0.1 once this lands. This should be fast-tracked.
Signed-off-by: James M Snell [email protected]
@panva @nodejs/releasers
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes