Skip to content

Retry transient Debian package downloads - #17653

Merged
akoeplinger merged 2 commits into
mainfrom
dev/dkurepa/retry-transient-deb-downloads
Oct 5, 2026
Merged

akoeplinger merged 2 commits into
mainfrom
dev/dkurepa/retry-transient-deb-downloads

Conversation

@dkurepa

@dkurepa dkurepa commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Summary

  • retry Debian package downloads when the server returns HTTP 408, 429, or 5xx
  • keep permanent client errors such as 404 as immediate failures

Validation

  • Production prereqs build 3092517 failed while Azure Linux cross images downloaded Ubuntu packages from azure.archive.ubuntu.com and received HTTP 502 responses.
  • Downstream prereqs validation run 3093135 succeeded in the Build stage for:
    • src/azurelinux/3.0/net8.0/cross/amd64
    • src/azurelinux/3.0/net10.0/cross/amd64
    • src/azurelinux/3.0/net11.0/cross/amd64
  • Later pipeline stages were intentionally ignored because only the Build stage validates this fix.
  • The updated Python script passes syntax compilation in the Azure Linux crossdeps-builder environment.

The downstream direct eng/common edit was validation-only; this PR updates the authoritative Arcade source.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 1e62a894-be58-477d-ac2e-166743353a47
Copilot AI balanced review requested due to automatic review settings October 2, 2026 08:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The retry behavior is correct overall; the reported extra final delay is minor and non-blocking.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Adds transient HTTP retry handling for Debian package downloads.

Changes:

  • Retries HTTP 408, 429, and 5xx responses.
  • Adds focused tests for retry and failure scenarios.
File Description
eng/​common/​cross/​install-debs.py Adds retryable HTTP status handling.
eng/​common/​cross/​tests/​test_install_debs.py Tests retries, exhaustion, permanent errors, and checksum failures.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread eng/common/cross/install-debs.py Resolved
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 1e62a894-be58-477d-ac2e-166743353a47
Copilot AI balanced review requested due to automatic review settings October 2, 2026 09:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The status handling correctly integrates with the existing bounded retry mechanism.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)

@akoeplinger
akoeplinger merged commit 4a80284 into main Oct 5, 2026
13 checks passed
@akoeplinger
akoeplinger deleted the dev/dkurepa/retry-transient-deb-downloads branch October 5, 2026 13:49
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants