Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
crypto: remove getDefaultEncoding()#49170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crypto: remove getDefaultEncoding() #49170
Uh oh!
There was an error while loading. Please reload this page.
Conversation
nodejs-github-bot commented Aug 14, 2023
Review requested:
|
Refs: nodejs#47182 Refs: nodejs#47869 Refs: nodejs#47943 Refs: nodejs#47998 Refs: nodejs#49140 Refs: nodejs#49145 Refs: nodejs#49167 Refs: nodejs#49169
d66373c to d4a91a8Comparetniessen commented Aug 16, 2023
Rebased without changes. Should finally be ready 🎉 |
This comment was marked as outdated.
This comment was marked as outdated.
nodejs-github-bot commented Aug 16, 2023
mcollina left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
nodejs-github-bot commented Aug 17, 2023
Commit Queue failed- Loading data for nodejs/node/pull/49170 ✔ Done loading data for nodejs/node/pull/49170 ----------------------------------- PR info ------------------------------------ Title crypto: remove getDefaultEncoding() (#49170) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch tniessen:lazy-transform-inline-defaultencoding -> nodejs:main Labels crypto, author ready, dont-land-on-v16.x, dont-land-on-v18.x Commits 1 - crypto: remove getDefaultEncoding() Committers 1 - Tobias Nießen PR-URL: https://github.com/nodejs/node/pull/49170 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Filip Skokan Reviewed-By: Matteo Collina ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/49170 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Filip Skokan Reviewed-By: Matteo Collina -------------------------------------------------------------------------------- ℹ This PR was created on Mon, 14 Aug 2023 15:34:10 GMT ✔ Approvals: 3 ✔ - Benjamin Gruenbaum (@benjamingr) (TSC): https://github.com/nodejs/node/pull/49170#pullrequestreview-1577123209 ✔ - Filip Skokan (@panva): https://github.com/nodejs/node/pull/49170#pullrequestreview-1577153635 ✔ - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/49170#pullrequestreview-1581964409 ✘ Last GitHub CI failed ℹ Last Full PR CI on 2023-08-16T18:27:49Z: https://ci.nodejs.org/job/node-test-pull-request/53387/ - Querying data for job/node-test-pull-request/53387/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/5888089208 |
nodejs-github-bot commented Aug 17, 2023
Commit Queue failed- Loading data for nodejs/node/pull/49170 ✔ Done loading data for nodejs/node/pull/49170 ----------------------------------- PR info ------------------------------------ Title crypto: remove getDefaultEncoding() (#49170) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch tniessen:lazy-transform-inline-defaultencoding -> nodejs:main Labels crypto, author ready, dont-land-on-v16.x, dont-land-on-v18.x Commits 1 - crypto: remove getDefaultEncoding() Committers 1 - Tobias Nießen PR-URL: https://github.com/nodejs/node/pull/49170 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Filip Skokan Reviewed-By: Matteo Collina ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/49170 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Filip Skokan Reviewed-By: Matteo Collina -------------------------------------------------------------------------------- ℹ This PR was created on Mon, 14 Aug 2023 15:34:10 GMT ✔ Approvals: 3 ✔ - Benjamin Gruenbaum (@benjamingr) (TSC): https://github.com/nodejs/node/pull/49170#pullrequestreview-1577123209 ✔ - Filip Skokan (@panva): https://github.com/nodejs/node/pull/49170#pullrequestreview-1577153635 ✔ - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/49170#pullrequestreview-1581964409 ✘ Last GitHub CI failed ℹ Last Full PR CI on 2023-08-17T07:37:29Z: https://ci.nodejs.org/job/node-test-pull-request/53387/ - Querying data for job/node-test-pull-request/53387/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/5889450757 |
tniessen commented Aug 17, 2023
GitHub says "All checks have passed - 3 skipped and 49 successful checks" but the bot says "Last GitHub CI failed" 😕 |
nodejs-github-bot commented Aug 19, 2023
Commit Queue failed- Loading data for nodejs/node/pull/49170 ✔ Done loading data for nodejs/node/pull/49170 ----------------------------------- PR info ------------------------------------ Title crypto: remove getDefaultEncoding() (#49170) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch tniessen:lazy-transform-inline-defaultencoding -> nodejs:main Labels crypto, author ready, dont-land-on-v16.x, dont-land-on-v18.x Commits 1 - crypto: remove getDefaultEncoding() Committers 1 - Tobias Nießen PR-URL: https://github.com/nodejs/node/pull/49170 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Filip Skokan Reviewed-By: Matteo Collina Reviewed-By: Luigi Pinca ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/49170 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Filip Skokan Reviewed-By: Matteo Collina Reviewed-By: Luigi Pinca -------------------------------------------------------------------------------- ℹ This PR was created on Mon, 14 Aug 2023 15:34:10 GMT ✔ Approvals: 4 ✔ - Benjamin Gruenbaum (@benjamingr) (TSC): https://github.com/nodejs/node/pull/49170#pullrequestreview-1577123209 ✔ - Filip Skokan (@panva): https://github.com/nodejs/node/pull/49170#pullrequestreview-1577153635 ✔ - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/49170#pullrequestreview-1581964409 ✔ - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/49170#pullrequestreview-1583277504 ✘ Last GitHub CI failed ℹ Last Full PR CI on 2023-08-17T10:01:18Z: https://ci.nodejs.org/job/node-test-pull-request/53387/ - Querying data for job/node-test-pull-request/53387/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/5910128960 |
debadree25 commented Aug 19, 2023
How weird |
Refs: #47182 Refs: #47869 Refs: #47943 Refs: #47998 Refs: #49140 Refs: #49145 Refs: #49167 Refs: #49169 PR-URL: #49170 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
debadree25 commented Aug 19, 2023
Landed in 78842cf |
Refs: #47182 Refs: #47869 Refs: #47943 Refs: #47998 Refs: #49140 Refs: #49145 Refs: #49167 Refs: #49169 PR-URL: #49170 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
This is a follow-up to #47182, #47869, #47943, #47998, #49140, #49145, #49167, and #49169. All of these changes can be merged into Node.js 20.
Out of caution, we are not going to remove the last remaining occurrence, which is in
lazy_transform.js, in Node.js 20 (see #49140). However, to minimize the non-backportable patch, this commit inlinesgetDefaultEncoding()by replacing the call with the constant'buffer'. #49140 then simply needs to drop those three lines, but the function itself can be removed on the main branch and in both Node.js 20 and in Node.js 21.