fix(ci): survive expired github download urls
GitHub answers a release asset download with HTTP 618 (jwt:expired) once the signed URL has expired, and the build layer dies on it. Two runs in a row lost build (24.04) on gh_2.106.0_linux_amd64.tar.gz while the same file downloaded fine in a sibling job of the same run. Wrap curl in /usr/local/bin with retries and a no-cache request header, which covers the Dockerfile downloads and installer scripts such as cargo-zigbuild-installer.sh. Pull request builds also read the buildcache-<base> registry cache that release.yaml writes on every main push, so a cache hit skips the downloads. Signed-off-by: fristyxd <gpg@fristy.dev>
This commit is contained in:
3 files changed
+31
No files matched your search
@@ -5,6 +5,22 @@ All notable changes to this project are documented in this file.
|
||||
The format is based on [Keep a Changelog 1.1.0](https://keepachangelog.com/en/1.1.0/),
|
||||
and this project adheres to [Semantic Versioning 2.0.0](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Fixed
|
||||
|
||||
- Builds no longer fail when a GitHub release asset answers with HTTP 618
|
||||
(`jwt:expired`). `curl` is wrapped in `/usr/local/bin` with
|
||||
`--retry 5 --retry-all-errors` and a `Cache-Control: no-cache` request header,
|
||||
so the Dockerfile's own downloads and installer scripts such as
|
||||
`cargo-zigbuild-installer.sh` retry instead of killing the layer.
|
||||
|
||||
### Changed
|
||||
|
||||
- `build.yaml` reads the `buildcache-<base>` registry cache that `release.yaml`
|
||||
writes on every `main` build, so a pull request reuses the tool layers instead
|
||||
of downloading them again. The pull request still publishes nothing.
|
||||
|
||||
## [1.0.1] - 2026-11-20
|
||||
|
||||
### Fixed
|
||||
|
||||
Reference in new issue
Block a user