Skip to content

fetch-cargo-vendor: allow retries for 10 times#357258

Closed
Bot-wxt1221 wants to merge 1 commit intoNixOS:masterfrom
Bot-wxt1221:cargo-improve
Closed

fetch-cargo-vendor: allow retries for 10 times#357258
Bot-wxt1221 wants to merge 1 commit intoNixOS:masterfrom
Bot-wxt1221:cargo-improve

Conversation

@Bot-wxt1221
Copy link
Member

Part of #356862

cc #357257

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added the 6.topic: rust General-purpose programming language emphasizing performance, type safety, and concurrency. label Nov 19, 2024
@nix-owners nix-owners bot requested review from figsoda, winterqt and zowoq November 19, 2024 13:02
def get_response(url):
for _ in range(10): # Retry if the request fails
try:
response = requests.get(url, stream=True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add some timeout i.e. exponential backoff as well so we are not overloading crates.io with requests in case they are overloaded.

@Bot-wxt1221
Copy link
Member Author

#357262

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

Labels

6.topic: rust General-purpose programming language emphasizing performance, type safety, and concurrency.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants