-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
prefetch-npm-deps: read url bodies within the retry loop #260011
prefetch-npm-deps: read url bodies within the retry loop #260011
Conversation
works for me $ nix build github:nixos/nixpkgs#bitwarden --option substituters ''
error: builder for '/nix/store/a49pbxzg99z3j8yi8n27ibb1r0w73r90-bitwarden-2023.9.0-npm-deps.drv' failed with exit code 1;
last 10 log lines:
> node_modules/dir-compare/node_modules/minimatch
> node_modules/through2-filter
> node_modules/static-module/node_modules/magic-string
> node_modules/@babel/plugin-transform-unicode-sets-regex
> node_modules/@babel/plugin-syntax-export-namespace-from
> node_modules/stat-mode
> Error: unknown error
>
> Caused by:
> [55] Failed sending data to the peer
For full logs, run 'nix log /nix/store/a49pbxzg99z3j8yi8n27ibb1r0w73r90-bitwarden-2023.9.0-npm-deps.drv'.
error (ignored): error: cannot unlink '/tmp/nix-build-openssh-9.5p1.drv-0': Directory not empty
error: 1 dependencies of derivation '/nix/store/531n38krd1jxbycp954sg5cm1fp2p6w4-bitwarden-2023.9.0.drv' failed to build
$ vs
|
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.
Ran nix-build -A bitwarden.npmDeps --check
20 times on 48 cores with no failures! Thanks!
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
9c8fdbf
to
554e241
Compare
That last push was to change the method name a bit to clarify its change in behavior. It should just be a cosmetic/semantic change rather than a functional one |
Backport failed for Please cherry-pick the changes locally. git fetch origin release-23.05
git worktree add -d .worktree/backport-260011-to-release-23.05 origin/release-23.05
cd .worktree/backport-260011-to-release-23.05
git checkout -b backport-260011-to-release-23.05
ancref=$(git merge-base a2b87a4f66f309d2f4b789fd0457f5fc5db0a9a6 554e2412e0b4a89f527786e67d568d9cf3842d80)
git cherry-pick -x $ancref..554e2412e0b4a89f527786e67d568d9cf3842d80 |
Description of changes
Fixes issues with prefetch-npm-deps not properly retrying on network errors by reading the full body within the retry loop (rather than processing the request in the retry loop but then reading the body after)
Closes #257805
Closes #256873
Closes #258428
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)