Skip to content

Use a pinned Alpine CDN package for native bootstrap - #5414

Merged
mattleibow merged 1 commit into
mainfrom
mattleibow-fix-alpine-builds
Oct 22, 2026
Merged

mattleibow merged 1 commit into
mainfrom
mattleibow-fix-alpine-builds

Conversation

@mattleibow

@mattleibow mattleibow commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Description

Remove Alpine native image creation's dependency on the GitLab generic-package endpoint. Download the exact apk-tools-static-2.14.6-r3.apk host package from Alpine's official v3.21 CDN, verify its pinned SHA-256 before extraction, and execute only sbin/apk.static. Keep signed sysroot package installation, existing retries, and explicit failures; add 20-second connection and 120-second per-attempt transfer limits. There is no mirror probing, floating package selection, unverified tool substitution, or integrity bypass.

The original endpoint resolves but TCP/443 connections time out from public/internal CI and this developer machine (IPv4 and IPv6). This is not confined to 1ES. Internal build 3111218 at the same main commit passed all ten Alpine jobs; its x64 log actually downloaded and verified the original artifact at 2026-10-20 20:52 UTC, rather than reusing a cached layer. On October 22, internal build 3112792 and public build 1645006 failed all ten Alpine variants before native compilation. An internal x64 download spent 852 seconds exhausting six connections. The exact upstream server/network cause remains unconfirmed; the observed failure is connectivity, not HTTP 404, a changed checksum, or a compiler failure.

The official CDN remains reachable, and its archive's embedded executable independently passes Alpine's RSA-SHA256 publisher signature verification. This removes a recurring availability dependency: #4013 addressed GitLab HTTP 500 responses earlier this year. If the CDN's exact pinned package becomes unavailable, restore that artifact or review an explicit pin update; do not bypass verification. After Alpine CI passes and this merges, rerun the affected public PR and internal package builds.

Related issues

Related to #4013. Public failure: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1645006

Required skia PR

None.

Areas affected

  • Managed API (binding/)
  • Native / C API (externals/skia/src/c, include/c)
  • Generated P/Invoke bindings
  • Native dependency or Skia update (libpng, HarfBuzz, FreeType, zlib, milestone bump, …)
  • Views & integrations (MAUI, Uno, WPF, WinUI, Blazor, …)
  • Rendering output / visual behavior
  • Performance
  • Tests
  • Build, packaging, or CI
  • Documentation or samples

Changes

None — build-image bootstrap only; no public API, ABI, or rendering change.

Testing

  • bash /validation/validate-alpine-bootstrap.sh in the existing Linux native-fixture container: passed. Session-local integration harness reads the production Dockerfile's exact pins, downloads/checks/extracts the archive, executes the x86_64 binary, rejects a deliberately wrong checksum, and installs signed fontconfig-dev into fresh x86_64, armv7, aarch64, riscv64, and loongarch64 roots. Cross-target signing keys come from a signature-verified official alpine-keys package. No repository mock-test infrastructure added: this exercises real packages and the normal CI Docker build remains the production integration check.
  • Exact production curl -fSL --retry 5 --retry-delay 10 --retry-all-errors --connect-timeout 20 --max-time 120 flags against a nonexistent package: passed negative check, exhausted retries and failed explicitly with exit 22; no execution followed.
  • Independent OpenSSL RSA-SHA256 verification of the embedded host executable with Alpine's 6165ee59 signing key: Verified OK.
  • git diff --check: passed.
  • docker build --check --platform=linux/amd64 --build-arg BUILD_ARCH=x64 scripts/infra/native/linux/docker/alpine: failed with five InvalidBaseImagePlatform diagnostics on this ARM64 Docker host. Repeating the check on the unchanged HEAD Dockerfile produces the same five diagnostics; they are pre-existing host/platform lint behavior, not a failure introduced by this patch.
  • docker build --platform=linux/amd64 --progress=plain --build-arg BUILD_ARCH=x64 --tag skiasharp-alpine-bootstrap-x64 scripts/infra/native/linux/docker/alpine: not completed. Stopped during the very slow, multi-gigabyte Microsoft base-image download, before executing the changed layer. Full production-image completion and native-library compilation remain for normal CI; the five-architecture signed-package checks above passed. No native library or managed code changed; the managed solution was not run.

Checklist

  • Tests added or updated (if omitted, explain why above)
  • Changes above lists all public API and behavioral changes (or "None.")
  • New/changed public API? Added or updated accurate source /// documentation and regenerated bindings when applicable
  • Native change? Companion mono/skia PR linked above and bindings regenerated

Remove the GitLab generic-package availability dependency shared by all Alpine cross-builds. Verify the exact apk-tools-static archive before extracting its host executable, retain signed sysroot package installs, and bound bootstrap download attempts.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 16ebdcae-5e39-494d-856b-e03a1fbc1976
@github-actions

Copy link
Copy Markdown
Contributor

📖 Documentation Preview

Add the automation/staging label to build and publish a documentation preview for this PR.

Removing the label removes the preview. While the label is present, each new commit updates it.


This comment is automatically updated by the documentation staging workflow.

@github-actions

Copy link
Copy Markdown
Contributor

📦 Try the packages from this PR

Warning

Do not run these scripts without first reviewing the code in this PR.

Step 1 — Download the packages

bash / macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.sh | bash -s -- 5414

PowerShell / Windows:

iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 5414"

Step 2 — Add the local NuGet source

dotnet nuget add source ~/.skiasharp/hives/pr-5414/packages --name skiasharp-pr-5414
More options
Option Description
--successful-only / -SuccessfulOnly Only use successful builds
--force / -Force Overwrite previously downloaded packages
--list / -List List available artifacts without downloading
--build-id ID / -BuildId ID Download from a specific build

Or download manually from Azure Pipelines — look for the nuget artifact on the build for this PR.

Remove the source when you're done:

dotnet nuget remove source skiasharp-pr-5414

@github-actions

Copy link
Copy Markdown
Contributor

📊 SkiaSharp benchmarks — PR #5414

⭐ this PR (full source build) vs 🌙 nightly · Linux · Windows · macOS

Informational only — this never blocks the PR. 🟢 faster / less allocation · 🔴 slower / more allocation; moves under 5% are hidden as noise.

⏱️ Times are raw BenchmarkDotNet means, and the ⭐ PR and baseline legs run on separate CI runners, so microbenchmarks can swing run-to-run — treat small time deltas as noise. Allocations are deterministic and the reliable signal. The interactive perf-dashboard (linked below) applies smoothing for the trend view.

Highlights

⏱️ Time — 🔴 49 slower · 🟢 35 faster

  • 🔴 MatrixMapPointsBenchmark.MapPoints(Points: 4096) · macOS · 1.51 µs → 2.25 µs (+49%)
  • 🔴 PathBoundsBenchmark.TightBounds(Points: 64) · Windows · 1.53 µs → 2.09 µs (+37%)
  • 🟢 ColorMathBenchmark.ToColor(Colors: 4096) · Linux · 16.30 µs → 11.19 µs (-31%)
  • 🔴 RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) · Windows · 97.22 µs → 126.73 µs (+30%)
  • 🔴 PathBoundsBenchmark.TightBounds(Points: 1024) · Windows · 15.98 µs → 20.45 µs (+28%)
  • …and 79 more (see details below)
Full per-OS benchmark deltas

Linux

⏱️ Time (vs 🌙 nightly 4.156.0-nightly.26519.5)

Benchmark baseline this PR Δ
ColorMathBenchmark.ToColor(Colors: 4096) 16.30 µs 11.19 µs 🟢 -31%
PathBoundsBenchmark.TightBounds(Points: 64) 1.05 µs 786.5 ns 🟢 -25%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 2.71 µs 2.03 µs 🟢 -25%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 280.91 µs 211.95 µs 🟢 -25%
SceneRenderBenchmark.RenderFrame(Complexity: 1) 4.01 ms 3.20 ms 🟢 -20%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 102.69 µs 81.86 µs 🟢 -20%
ColorParseBenchmark.Parse(Iterations: 1000) 74.32 µs 59.47 µs 🟢 -20%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 1.99 ms 1.60 ms 🟢 -19%
SceneRenderBenchmark.RenderFrame(Complexity: 4) 18.31 ms 14.78 ms 🟢 -19%
CanvasDrawBenchmark.Draw(Shapes: 64) 4.18 ms 3.41 ms 🟢 -18%
RuntimeEffectShaderBenchmark.DrawFrame 2.86 ms 2.34 ms 🟢 -18%
CanvasDrawBenchmark.Draw(Shapes: 512) 33.34 ms 27.25 ms 🟢 -18%
MatrixMapPointsBenchmark.MapVector(Points: 256) 10.96 µs 9.03 µs 🟢 -18%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 214.1 ns 176.4 ns 🟢 -18%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 14.32 µs 11.80 µs 🟢 -18%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 932.66 µs 770.39 µs 🟢 -17%
PathBoundsBenchmark.TightBounds(Points: 1024) 10.65 µs 8.81 µs 🟢 -17%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 2.68 ms 2.22 ms 🟢 -17%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 7.66 ms 6.35 ms 🟢 -17%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 176.45 µs 146.16 µs 🟢 -17%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 249.46 µs 206.92 µs 🟢 -17%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 685.68 µs 571.19 µs 🟢 -17%
ColorMathBenchmark.ToColorF(Colors: 4096) 13.13 µs 10.95 µs 🟢 -17%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 1.32 ms 1.10 ms 🟢 -17%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 352.13 µs 294.75 µs 🟢 -16%
…and 9 more

Windows

⏱️ Time (vs 🌙 nightly 4.156.0-nightly.26519.5)

Benchmark baseline this PR Δ
PathBoundsBenchmark.TightBounds(Points: 64) 1.53 µs 2.09 µs 🔴 +37%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 97.22 µs 126.73 µs 🔴 +30%
PathBoundsBenchmark.TightBounds(Points: 1024) 15.98 µs 20.45 µs 🔴 +28%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 139.81 µs 172.52 µs 🔴 +23%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 8.73 µs 10.52 µs 🔴 +21%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 260.21 µs 303.96 µs 🔴 +17%
MatrixMapPointsBenchmark.MapRect(Points: 256) 7.43 µs 8.63 µs 🔴 +16%
MatrixOpsBenchmark.Concat(Count: 4096) 225.98 µs 258.85 µs 🔴 +15%
ColorMathBenchmark.ToColor(Colors: 4096) 15.56 µs 17.56 µs 🔴 +13%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 200.5 ns 223.3 ns 🔴 +11%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 2.87 µs 2.55 µs 🟢 -11%
ColorParseBenchmark.Parse(Iterations: 1000) 76.51 µs 83.58 µs 🔴 +9%
CanvasDrawBenchmark.Draw(Shapes: 64) 2.68 ms 2.90 ms 🔴 +8%
SceneRenderBenchmark.RenderFrame(Complexity: 4) 10.10 ms 10.76 ms 🔴 +7%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 131.63 µs 139.75 µs 🔴 +6%
CanvasDrawBenchmark.Draw(Shapes: 512) 21.76 ms 23.03 ms 🔴 +6%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 326.55 µs 344.81 µs 🔴 +6%
MatrixMapPointsBenchmark.MapVector(Points: 256) 8.31 µs 8.77 µs 🔴 +6%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 76.20 µs 80.24 µs 🔴 +5%

macOS

⏱️ Time (vs 🌙 nightly 4.156.0-nightly.26519.5)

Benchmark baseline this PR Δ
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 1.51 µs 2.25 µs 🔴 +49%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 7.43 µs 9.44 µs 🔴 +27%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 130.2 ns 163.0 ns 🔴 +25%
MatrixOpsBenchmark.Concat(Count: 4096) 109.11 µs 136.41 µs 🔴 +25%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 146.13 µs 178.01 µs 🔴 +22%
ColorMathBenchmark.PreMultiply(Colors: 4096) 8.26 µs 9.93 µs 🔴 +20%
MatrixOpsBenchmark.Invert(Count: 4096) 65.81 µs 79.04 µs 🔴 +20%
PathBoundsBenchmark.TightBounds(Points: 1024) 8.23 µs 9.87 µs 🔴 +20%
PathBoundsBenchmark.TightBounds(Points: 64) 836.7 ns 986.6 ns 🔴 +18%
RuntimeEffectShaderBenchmark.DrawFrame 510.21 µs 585.49 µs 🔴 +15%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 2.64 ms 3.02 ms 🔴 +14%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 99.26 µs 112.91 µs 🔴 +14%
ColorMathBenchmark.ToColorF(Colors: 4096) 4.91 µs 5.58 µs 🔴 +14%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 64.24 µs 72.96 µs 🔴 +14%
ColorParseBenchmark.Parse(Iterations: 1000) 65.92 µs 74.51 µs 🔴 +13%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 589.04 µs 664.07 µs 🔴 +13%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 64) 151.44 µs 170.53 µs 🔴 +13%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 1.13 µs 1.28 µs 🔴 +12%
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 195.68 µs 219.96 µs 🔴 +12%
MatrixMapPointsBenchmark.MapRect(Points: 256) 3.02 µs 3.35 µs 🔴 +11%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 6.20 µs 6.87 µs 🔴 +11%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 18.11 µs 20.05 µs 🔴 +11%
ColorMathBenchmark.ToColor(Colors: 4096) 19.59 µs 21.67 µs 🔴 +11%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 663.38 µs 732.41 µs 🔴 +10%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 2048) 5.70 ms 6.29 ms 🔴 +10%
…and 6 more

📈 Full interactive perf-dashboard & run details →

@mattleibow
mattleibow merged commit 48e2083 into main Oct 22, 2026
85 of 87 checks passed
@mattleibow
mattleibow deleted the mattleibow-fix-alpine-builds branch October 22, 2026 14:13
mattleibow added a commit that referenced this pull request Oct 28, 2026
[Native/Alpine] Bootstrap from a pinned Alpine CDN package (#5414)

Context: #4013
Context: https://dev.azure.com/dnceng/internal/_build/results?buildId=3112792
Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1645006
Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1645300

Remove the GitLab generic-package endpoint from Alpine cross-image
bootstrap. October 22 public and internal builds failed before native
compilation while connecting to gitlab.alpinelinux.org:443. One internal
x64 download spent approximately 852 seconds exhausting six attempts.
The same main commit had downloaded and checksum-verified the artifact
successfully on October 20. DNS resolved during investigation, but HTTPS
connections also timed out from the developer machine, including forced
IPv4; this was not confined to 1ES. The exact server or routing fault
remains unconfirmed.

The earlier retry fix in #4013 handled transient GitLab HTTP 500 responses,
but retries cannot repair sustained endpoint unavailability. Use Alpine's
reachable package-distribution CDN instead of its GitLab package registry.
Replace the standalone apk.static 2.12.14 download with the exact
apk-tools-static-2.14.6-r3.apk archive from the existing v3.21/main/x86_64
repository, and pin its SHA-256 before extracting sbin/apk.static.
The x86_64 executable runs on the cross-build host; APK_ARCH continues to
select the target sysroot rather than the bootstrap tool architecture.

Retain curl's HTTP failure detection and five retries, adding a 20-second
connection timeout and 120-second transfer limit per attempt. Preserve
signed fontconfig-dev installation and the explicit Azure Linux CA-bundle
path. Missing artifacts and checksum mismatches stop the build; do not
probe alternate tools or bypass verification. Document updating the exact
package version and archive checksum together. These pins constrain the
bootstrap artifact, not the versions resolved from Alpine's package feeds.

Validation independently verified the embedded executable's Alpine
RSA-SHA256 signature, exercised signed fontconfig-dev installation for
x64, arm, arm64, riscv64 and loongarch64, and rejected both a wrong checksum
and an unavailable package. Public build 1645300 tested head d96d97a
through its PR merge ref and passed the ten Alpine native jobs, covering
those five architectures with and without nodeps. Its x64 image log shows
an actual archive download and successful checksum verification, not a
cached bootstrap layer. The overall run failed in the non-Alpine Linux
x86 job; the Alpine results do not imply a green pipeline.



(cherry picked from commit 48e2083)

Co-authored-by: Copilot App <[email protected]>
mattleibow added a commit that referenced this pull request Oct 28, 2026
[Native/Alpine] Bootstrap from a pinned Alpine CDN package (#5414)

Context: #4013
Context: https://dev.azure.com/dnceng/internal/_build/results?buildId=3112792
Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1645006
Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1645300

Remove the GitLab generic-package endpoint from Alpine cross-image
bootstrap. October 22 public and internal builds failed before native
compilation while connecting to gitlab.alpinelinux.org:443. One internal
x64 download spent approximately 852 seconds exhausting six attempts.
The same main commit had downloaded and checksum-verified the artifact
successfully on October 20. DNS resolved during investigation, but HTTPS
connections also timed out from the developer machine, including forced
IPv4; this was not confined to 1ES. The exact server or routing fault
remains unconfirmed.

The earlier retry fix in #4013 handled transient GitLab HTTP 500 responses,
but retries cannot repair sustained endpoint unavailability. Use Alpine's
reachable package-distribution CDN instead of its GitLab package registry.
Replace the standalone apk.static 2.12.14 download with the exact
apk-tools-static-2.14.6-r3.apk archive from the existing v3.21/main/x86_64
repository, and pin its SHA-256 before extracting sbin/apk.static.
The x86_64 executable runs on the cross-build host; APK_ARCH continues to
select the target sysroot rather than the bootstrap tool architecture.

Retain curl's HTTP failure detection and five retries, adding a 20-second
connection timeout and 120-second transfer limit per attempt. Preserve
signed fontconfig-dev installation and the explicit Azure Linux CA-bundle
path. Missing artifacts and checksum mismatches stop the build; do not
probe alternate tools or bypass verification. Document updating the exact
package version and archive checksum together. These pins constrain the
bootstrap artifact, not the versions resolved from Alpine's package feeds.

Validation independently verified the embedded executable's Alpine
RSA-SHA256 signature, exercised signed fontconfig-dev installation for
x64, arm, arm64, riscv64 and loongarch64, and rejected both a wrong checksum
and an unavailable package. Public build 1645300 tested head d96d97a
through its PR merge ref and passed the ten Alpine native jobs, covering
those five architectures with and without nodeps. Its x64 image log shows
an actual archive download and successful checksum verification, not a
cached bootstrap layer. The overall run failed in the non-Alpine Linux
x86 job; the Alpine results do not imply a green pipeline.



(cherry picked from commit 48e2083)

Co-authored-by: Copilot App <[email protected]>
mattleibow added a commit that referenced this pull request Oct 28, 2026
[Native/Alpine] Bootstrap from a pinned Alpine CDN package (#5414)

Context: #4013
Context: https://dev.azure.com/dnceng/internal/_build/results?buildId=3112792
Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1645006
Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1645300

Remove the GitLab generic-package endpoint from Alpine cross-image
bootstrap. October 22 public and internal builds failed before native
compilation while connecting to gitlab.alpinelinux.org:443. One internal
x64 download spent approximately 852 seconds exhausting six attempts.
The same main commit had downloaded and checksum-verified the artifact
successfully on October 20. DNS resolved during investigation, but HTTPS
connections also timed out from the developer machine, including forced
IPv4; this was not confined to 1ES. The exact server or routing fault
remains unconfirmed.

The earlier retry fix in #4013 handled transient GitLab HTTP 500 responses,
but retries cannot repair sustained endpoint unavailability. Use Alpine's
reachable package-distribution CDN instead of its GitLab package registry.
Replace the standalone apk.static 2.12.14 download with the exact
apk-tools-static-2.14.6-r3.apk archive from the existing v3.21/main/x86_64
repository, and pin its SHA-256 before extracting sbin/apk.static.
The x86_64 executable runs on the cross-build host; APK_ARCH continues to
select the target sysroot rather than the bootstrap tool architecture.

Retain curl's HTTP failure detection and five retries, adding a 20-second
connection timeout and 120-second transfer limit per attempt. Preserve
signed fontconfig-dev installation and the explicit Azure Linux CA-bundle
path. Missing artifacts and checksum mismatches stop the build; do not
probe alternate tools or bypass verification. Document updating the exact
package version and archive checksum together. These pins constrain the
bootstrap artifact, not the versions resolved from Alpine's package feeds.

Validation independently verified the embedded executable's Alpine
RSA-SHA256 signature, exercised signed fontconfig-dev installation for
x64, arm, arm64, riscv64 and loongarch64, and rejected both a wrong checksum
and an unavailable package. Public build 1645300 tested head d96d97a
through its PR merge ref and passed the ten Alpine native jobs, covering
those five architectures with and without nodeps. Its x64 image log shows
an actual archive download and successful checksum verification, not a
cached bootstrap layer. The overall run failed in the non-Alpine Linux
x86 job; the Alpine results do not imply a green pipeline.



(cherry picked from commit 48e2083)

Co-authored-by: Copilot App <[email protected]>
mattleibow added a commit that referenced this pull request Oct 28, 2026
[Native/Alpine] Bootstrap from a pinned Alpine CDN package (#5414)

Context: #4013
Context: https://dev.azure.com/dnceng/internal/_build/results?buildId=3112792
Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1645006
Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1645300

Remove the GitLab generic-package endpoint from Alpine cross-image
bootstrap. October 22 public and internal builds failed before native
compilation while connecting to gitlab.alpinelinux.org:443. One internal
x64 download spent approximately 852 seconds exhausting six attempts.
The same main commit had downloaded and checksum-verified the artifact
successfully on October 20. DNS resolved during investigation, but HTTPS
connections also timed out from the developer machine, including forced
IPv4; this was not confined to 1ES. The exact server or routing fault
remains unconfirmed.

The earlier retry fix in #4013 handled transient GitLab HTTP 500 responses,
but retries cannot repair sustained endpoint unavailability. Use Alpine's
reachable package-distribution CDN instead of its GitLab package registry.
Replace the standalone apk.static 2.12.14 download with the exact
apk-tools-static-2.14.6-r3.apk archive from the existing v3.21/main/x86_64
repository, and pin its SHA-256 before extracting sbin/apk.static.
The x86_64 executable runs on the cross-build host; APK_ARCH continues to
select the target sysroot rather than the bootstrap tool architecture.

Retain curl's HTTP failure detection and five retries, adding a 20-second
connection timeout and 120-second transfer limit per attempt. Preserve
signed fontconfig-dev installation and the explicit Azure Linux CA-bundle
path. Missing artifacts and checksum mismatches stop the build; do not
probe alternate tools or bypass verification. Document updating the exact
package version and archive checksum together. These pins constrain the
bootstrap artifact, not the versions resolved from Alpine's package feeds.

Validation independently verified the embedded executable's Alpine
RSA-SHA256 signature, exercised signed fontconfig-dev installation for
x64, arm, arm64, riscv64 and loongarch64, and rejected both a wrong checksum
and an unavailable package. Public build 1645300 tested head d96d97a
through its PR merge ref and passed the ten Alpine native jobs, covering
those five architectures with and without nodeps. Its x64 image log shows
an actual archive download and successful checksum verification, not a
cached bootstrap layer. The overall run failed in the non-Alpine Linux
x86 job; the Alpine results do not imply a green pipeline.



(cherry picked from commit 48e2083)

Co-authored-by: Copilot App <[email protected]>
mattleibow added a commit that referenced this pull request Oct 28, 2026
[Native/Alpine] Bootstrap from a pinned Alpine CDN package (#5414)

Context: #4013
Context: https://dev.azure.com/dnceng/internal/_build/results?buildId=3112792
Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1645006
Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1645300

Remove the GitLab generic-package endpoint from Alpine cross-image
bootstrap. October 22 public and internal builds failed before native
compilation while connecting to gitlab.alpinelinux.org:443. One internal
x64 download spent approximately 852 seconds exhausting six attempts.
The same main commit had downloaded and checksum-verified the artifact
successfully on October 20. DNS resolved during investigation, but HTTPS
connections also timed out from the developer machine, including forced
IPv4; this was not confined to 1ES. The exact server or routing fault
remains unconfirmed.

The earlier retry fix in #4013 handled transient GitLab HTTP 500 responses,
but retries cannot repair sustained endpoint unavailability. Use Alpine's
reachable package-distribution CDN instead of its GitLab package registry.
Replace the standalone apk.static 2.12.14 download with the exact
apk-tools-static-2.14.6-r3.apk archive from the existing v3.21/main/x86_64
repository, and pin its SHA-256 before extracting sbin/apk.static.
The x86_64 executable runs on the cross-build host; APK_ARCH continues to
select the target sysroot rather than the bootstrap tool architecture.

Retain curl's HTTP failure detection and five retries, adding a 20-second
connection timeout and 120-second transfer limit per attempt. Preserve
signed fontconfig-dev installation and the explicit Azure Linux CA-bundle
path. Missing artifacts and checksum mismatches stop the build; do not
probe alternate tools or bypass verification. Document updating the exact
package version and archive checksum together. These pins constrain the
bootstrap artifact, not the versions resolved from Alpine's package feeds.

Validation independently verified the embedded executable's Alpine
RSA-SHA256 signature, exercised signed fontconfig-dev installation for
x64, arm, arm64, riscv64 and loongarch64, and rejected both a wrong checksum
and an unavailable package. Public build 1645300 tested head d96d97a
through its PR merge ref and passed the ten Alpine native jobs, covering
those five architectures with and without nodeps. Its x64 image log shows
an actual archive download and successful checksum verification, not a
cached bootstrap layer. The overall run failed in the non-Alpine Linux
x86 job; the Alpine results do not imply a green pipeline.



(cherry picked from commit 48e2083)

Co-authored-by: Copilot App <[email protected]>
mattleibow added a commit that referenced this pull request Oct 28, 2026
[Native/Alpine] Bootstrap from a pinned Alpine CDN package (#5414)

Context: #4013
Context: https://dev.azure.com/dnceng/internal/_build/results?buildId=3112792
Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1645006
Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1645300

Remove the GitLab generic-package endpoint from Alpine cross-image
bootstrap. October 22 public and internal builds failed before native
compilation while connecting to gitlab.alpinelinux.org:443. One internal
x64 download spent approximately 852 seconds exhausting six attempts.
The same main commit had downloaded and checksum-verified the artifact
successfully on October 20. DNS resolved during investigation, but HTTPS
connections also timed out from the developer machine, including forced
IPv4; this was not confined to 1ES. The exact server or routing fault
remains unconfirmed.

The earlier retry fix in #4013 handled transient GitLab HTTP 500 responses,
but retries cannot repair sustained endpoint unavailability. Use Alpine's
reachable package-distribution CDN instead of its GitLab package registry.
Replace the standalone apk.static 2.12.14 download with the exact
apk-tools-static-2.14.6-r3.apk archive from the existing v3.21/main/x86_64
repository, and pin its SHA-256 before extracting sbin/apk.static.
The x86_64 executable runs on the cross-build host; APK_ARCH continues to
select the target sysroot rather than the bootstrap tool architecture.

Retain curl's HTTP failure detection and five retries, adding a 20-second
connection timeout and 120-second transfer limit per attempt. Preserve
signed fontconfig-dev installation and the explicit Azure Linux CA-bundle
path. Missing artifacts and checksum mismatches stop the build; do not
probe alternate tools or bypass verification. Document updating the exact
package version and archive checksum together. These pins constrain the
bootstrap artifact, not the versions resolved from Alpine's package feeds.

Validation independently verified the embedded executable's Alpine
RSA-SHA256 signature, exercised signed fontconfig-dev installation for
x64, arm, arm64, riscv64 and loongarch64, and rejected both a wrong checksum
and an unavailable package. Public build 1645300 tested head d96d97a
through its PR merge ref and passed the ten Alpine native jobs, covering
those five architectures with and without nodeps. Its x64 image log shows
an actual archive download and successful checksum verification, not a
cached bootstrap layer. The overall run failed in the non-Alpine Linux
x86 job; the Alpine results do not imply a green pipeline.



(cherry picked from commit 48e2083)

Co-authored-by: Copilot App <[email protected]>
mattleibow added a commit that referenced this pull request Oct 28, 2026
[Native/Alpine] Bootstrap from a pinned Alpine CDN package (#5414)

Context: #4013
Context: https://dev.azure.com/dnceng/internal/_build/results?buildId=3112792
Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1645006
Context: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1645300

Remove the GitLab generic-package endpoint from Alpine cross-image
bootstrap. October 22 public and internal builds failed before native
compilation while connecting to gitlab.alpinelinux.org:443. One internal
x64 download spent approximately 852 seconds exhausting six attempts.
The same main commit had downloaded and checksum-verified the artifact
successfully on October 20. DNS resolved during investigation, but HTTPS
connections also timed out from the developer machine, including forced
IPv4; this was not confined to 1ES. The exact server or routing fault
remains unconfirmed.

The earlier retry fix in #4013 handled transient GitLab HTTP 500 responses,
but retries cannot repair sustained endpoint unavailability. Use Alpine's
reachable package-distribution CDN instead of its GitLab package registry.
Replace the standalone apk.static 2.12.14 download with the exact
apk-tools-static-2.14.6-r3.apk archive from the existing v3.21/main/x86_64
repository, and pin its SHA-256 before extracting sbin/apk.static.
The x86_64 executable runs on the cross-build host; APK_ARCH continues to
select the target sysroot rather than the bootstrap tool architecture.

Retain curl's HTTP failure detection and five retries, adding a 20-second
connection timeout and 120-second transfer limit per attempt. Preserve
signed fontconfig-dev installation and the explicit Azure Linux CA-bundle
path. Missing artifacts and checksum mismatches stop the build; do not
probe alternate tools or bypass verification. Document updating the exact
package version and archive checksum together. These pins constrain the
bootstrap artifact, not the versions resolved from Alpine's package feeds.

Validation independently verified the embedded executable's Alpine
RSA-SHA256 signature, exercised signed fontconfig-dev installation for
x64, arm, arm64, riscv64 and loongarch64, and rejected both a wrong checksum
and an unavailable package. Public build 1645300 tested head d96d97a
through its PR merge ref and passed the ten Alpine native jobs, covering
those five architectures with and without nodeps. Its x64 image log shows
an actual archive download and successful checksum verification, not a
cached bootstrap layer. The overall run failed in the non-Alpine Linux
x86 job; the Alpine results do not imply a green pipeline.



(cherry picked from commit 48e2083)

Co-authored-by: Copilot App <[email protected]>
@github-actions github-actions Bot added this to the 4.156.0-rc.1 milestone Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants