Skip to content
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

bump corepack to fix freezes #11126

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

bump corepack to fix freezes #11126

wants to merge 1 commit into from

Conversation

jakecoffman
Copy link
Member

What are you trying to accomplish?

There was some kind of freeze in Corepack that was reproducible if you gave it a registry that would 404:

$ script/dependabot update npm_and_yarn a/b --debug
$ export COREPACK_NPM_REGISTRY=https://npm.pkg.github.com/
$ corepack install npm@8 --global --cache-only
Internal Error: Server answered with HTTP 404 when performing the request to https://npm.pkg.github.com/npm; for troubleshooting help, see https://github.com/nodejs/corepack#troubleshooting
    at ClientRequest.<anonymous> (/usr/lib/node_modules/corepack/dist/lib/corepack.cjs:42205:23)
    at Object.onceWrapper (node:events:633:26)
    at ClientRequest.emit (node:events:518:28)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:702:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:118:17)
    at TLSSocket.socketOnData (node:_http_client:544:22)
    at TLSSocket.emit (node:events:518:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5)

☝️ The process would not exit from there. It just hangs.

I noticed our version was out of date, so bumping it fixed the problem.

Anything you want to highlight for special attention from reviewers?

How will you know you've accomplished your goal?

We should be able to also verify that it fixes the issue in production with a live test.

Checklist

  • I have run the complete test suite to ensure all tests and linters pass.
  • I have thoroughly tested my code changes to ensure they work as expected, including adding additional tests for new functionality.
  • I have written clear and descriptive commit messages.
  • I have provided a detailed description of the changes in the pull request, including the problem it addresses, how it fixes the problem, and any relevant details about the implementation.
  • I have ensured that the code is well-documented and easy to understand.

@jakecoffman jakecoffman requested a review from a team as a code owner December 13, 2024 20:21
@jeffwidman
Copy link
Member

Related:

@jakecoffman
Copy link
Member Author

Some interesting Corepack related failures in the Specs. I don't have the time to track those down. Anyone is welcome to pick this up before I can get to it.

@jakecoffman jakecoffman marked this pull request as draft December 13, 2024 20:30
@jakecoffman
Copy link
Member Author

@jeffwidman nice, seems like there's now multiple reasons to bump Corepack!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants