Uh oh!
There was an error while loading. Please reload this page.
crypto: fix regression on randomFillSync - #35723
Conversation
nodejs-github-bot
commented
Oct 20, 2020
Review requested:
|
panva
commented
Oct 20, 2020
f1a56dc to
32635ffComparejasnell
commented
Oct 20, 2020
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 <jasnell@gmail.com> Fixes: nodejs#35722
jasnell
commented
Oct 20, 2020
regression test added |
32635ff to
98cfdafComparenodejs-github-bot
commented
Oct 20, 2020
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.
constx=Buffer.from("hello");consty=Buffer.from("world");require('crypto').randomFillSync(y)Perhaps something like that could be added to tests.
jasnell
commented
Oct 20, 2020
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. |
jasnell
commented
Oct 20, 2020
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.
nodejs-github-bot
commented
Oct 20, 2020
jasnell
commented
Oct 20, 2020
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 |
jasnell
commented
Oct 20, 2020
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) |
rvagg
commented
Oct 21, 2020
removed arm-fanned from the roster, I had to cancel a few people's builds, you should dismiss them for now |
nodejs-github-bot
commented
Oct 21, 2020
rvagg
commented
Oct 21, 2020
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. |
nodejs-github-bot
commented
Oct 21, 2020
jasnell
commented
Oct 21, 2020
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 <jasnell@gmail.com> Fixes: #35722 PR-URL: #35723 Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Beth Griggs <bgriggs@redhat.com>
gireeshpunathil
commented
Oct 21, 2020
landed in 4cbcfae |
Signed-off-by: James M Snell <jasnell@gmail.com> Fixes: #35722 PR-URL: #35723 Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Beth Griggs <bgriggs@redhat.com>
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 jasnell@gmail.com
@panva @nodejs/releasers
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes