Wave icon indicating copy to clipboard operation
Wave copied to clipboard

Make LLVM installer downloads tolerate unavailable IPv6 connectivity

Open LunaStev opened this issue 2 months ago • 0 comments

Resolution — completed

The candidate in PR #701 was merged on September 23, 2026. The merged Rust tooling in PR #1071 preserves this fix in tools/src/provision.rs: the shared LLVM installer download uses curl --ipv4 --fail --location --retry 3 --max-time 90, with HTTPS-only protocol/redirect restrictions. The bounded command must succeed before the installer is executed; package installation and the LLVM version check retain their own failure outcomes. Build and case callers use the same prerequisite helper.

On November 2, the current IPv4/HTTPS downloader successfully retrieved the 8,476-byte installer without executing it. This was a read-only transport check, not a new runner outage simulation or CI rerun. The obsolete rust.yml/cases.yml entry points below are historical. No additional Python implementation is needed.

Historical implementation scope and evidence

Problem

LLVM provisioning can fail before compiler validation when the installer hostname resolves to an IPv6 address that the runner cannot reach. This issue covers the installer download transport and bounded retry behavior only. The independently fixable dependent-test execution condition is tracked in #704.

Observed evidence

PR #701's Linux ARM64 job, at b71aaf20:

Resolving apt.llvm.org (apt.llvm.org)... 2a04:4e42:94::561
Connecting to apt.llvm.org ... :443... failed: Network is unreachable.
Process completed with exit code 4.

The failure occurs in Install LLVM 21, before LLVM is installed. It is not evidence of a compiler or AAPCS64 implementation defect. The observed failure is on Linux ARM64; matching download commands in other jobs are affected source paths, not separately observed failures.

Starting points: build workflow and the equivalent apt.llvm.org installer downloads in cases.yml.

Scope and verification

Select a usable transport for the supported runners and bound connection/download attempts. Preserve HTTPS verification, fail clearly after retry exhaustion, and never execute an incomplete download. Keep equivalent build/cases download paths consistent without changing compiler test selection.

Validate the exact downloader command and supported flags with the Ubuntu runner's downloader. Check successful download with IPv6 unavailable, and bounded failure with an unreachable endpoint in an isolated environment. Confirm successful LLVM provisioning reports the required LLVM 21 toolchain. No Wave compiler change is required.

Completion criteria

  • [ ] The LLVM installer downloads successfully on a runner with working IPv4 but unavailable IPv6.
  • [ ] Transient failures receive bounded retries and timeouts; exhausted retries fail the setup step clearly.
  • [ ] HTTPS certificate verification remains enabled and download failure cannot execute a partial installer.
  • [ ] Equivalent build/cases provisioning commands retain consistent behavior and LLVM 21 selection.

Current contribution status

A candidate fix is already included in PR #701, commit c7877ffc. Its complete CI outcome has not been confirmed in this audit. Review of transport/retry behavior and targeted verification are useful contributions; coordinate with the existing PR before implementing another fix. This is not advertised as an unclaimed good first issue.

Split from the earlier combined report: prerequisite-gating evidence and acceptance now belong to #704, so each issue can be assessed independently.

LunaStev avatar Sep 23 '26 09:09 LunaStev