ci: one CI image per job kind and fewer jobs, and a release builds the builder once per platform #2557

Merged
HumanBean merged 9 commits from HumanBean/Longshot:push-pxwusowyyrwx into main 2026-11-25 20:25:01 +00:00
Owner

Summary

On current main (after #2554; no longer stacked). Nine commits in two parts: CI (the restructure, the smaller images, the Windows compiler cache, two fixes for checks failing on main) and the release build (the pack appended after the link, third-party objects from the last signed release, a trusted-runs-only Rust cache, the Linux builder linked with tools.lock's clang and sysroot again). This is the one PR for today's CI and release work. (#2552, thin LTO, had already merged.)

Pull-request CI installed its tools again in every job (rustup, apt, glslang, headers, Python packages, pre-commit), compiled the builder twice (Rust job and e2e job), built the website twice (CI's check and the preview), and ran 16 jobs. This restructures it as decided:

  1. CI images for every check job (commit 1 made one; commit 2 splits it, see below). scripts/linux/ci_setup.sh installs everything (apt packages incl. llvm and libclang-rt-18-dev, mise.toml's Rust with rustfmt+clippy via the checksum-pinned rustup, Node/actionlint/ShellCheck from mise.lock, the tests' Python packages, pre-commit with its hooks pre-fetched, glslang 16.6.0, the SPIR-V and Vulkan headers). scripts/linux/checks.Dockerfile runs it (local run_all.py --container). ci.yml's changes job hashes the commit's inputs (scripts/linux/ci_image.sh) and asks the registry anonymously for that tag; the jobs use it via container: image:. A PR that changes the inputs has no image yet: its jobs run ci_setup.sh --github-env first on the runner's own Ubuntu 24.04, so it is checked with its own tools and pushes nothing. ci-image.yml (main only: push touching the inputs, or by hand) builds the layer on the release runner and pushes it from deploy with crane and PACKAGES_TOKEN_SEALED (only main's runs can unseal it), through RELEASE_UPLOAD_API's host. The runners give jobs no Docker (docker_host: "-"), hence crane, not docker build. Per-job installs, ci_apt.sh, the rustup/apt caches and glslang/header downloads are gone; the crate cache, ccache, git-base and llvm-mingw caches stay.

  2. Quick checks in three jobs: title moved into pr-description.yml ("Title and description", pull_request_target, main's script reading the event file; no PR code). In ci.yml it would rerun on every edit and cancel/replace the code checks. Lint = pre-commit + ShellCheck + actionlint. "Third-party parts and guide screenshots" in ci.yml (third-party.yml keeps only the nightly upstream comparison; guide-screenshots.yml removed).

  3. Website built once: ci.yml's website job keeps dist/ as website-dist-<head sha>; website.yml's preview no longer builds the PR: preview-wait (quick, no secrets) waits for that artifact, preview-upload (deploy, main's code only) downloads it as files (scripts/ci_website_dist.py: only an artifact of ci.yml's pull_request run at that exact commit counts; links, absolute and .. paths refused).

  4. Builder compiled once: e2e folded into the Rust job, cargo test --workspace --test end_to_end -- --ignored after cargo test, reusing its build. Host C for Windows unchanged apart from the image.

  5. SPIR-V fixtures are three run_all.py checks (tests/global_load_16, tests/native_suatom, tests/f2i_immediate), built with the tests' SPIR-V headers pin (they pass with it); the spirv-fixtures job is gone.

  6. 2 test parts instead of 4, with #2554's release-builder pre-build step and 900 s / longer job limits carried over. test_mods_sizes runs its example in the dev profile (21 s to ~10 s cold).

  7. Job summary: run_all.py's $GITHUB_STEP_SUMMARY lists the failures first with each one's first error line; the full table is folded.

  8. Smaller images, in layers (commit 2). The one image was 2.98 GB, 318 MB of it the Go toolchain pre-commit's golang gitleaks hook downloads. Now gitleaks is mise.toml's prebuilt 8.22.1 (mise.lock, SHA-256) run by the gitleaks-system hook (same scan; pass_filenames: false as upstream's golang hook); apt without recommends, no docs/man/locales/lists; Node without headers; caches removed in the step that makes them. Still well over 1.5 GB, so it is two images: longshot-ci-checks (rust, host-windows, tests) 2.1 GB and longshot-ci-lite (lint, website) 0.6 GB, each tagged by its own name + inputs, each part (system, python, headers, node, tools, rust, hooks) its own reproducible layer (sorted, mtime 0, gzip -n), so a change re-pulls only its layer.

  9. Compiler cache for Host C for Windows (commit 3): check_host_compile.py --launcher ccache, work folder in the checkout, CCACHE_BASEDIR the checkout, compiler checked by llvm-mingw's name; saved on main only, keyed by llvm-mingw + host/, game/, tools.lock, newest older entry restored. Second run in the image: 66/66 hits, 12 s → 2 s.

  10. Fixes for checks failing on main (commits 4, 5): build-driver's a_line_over_the_limit_closes_the_channel hit a broken pipe when the builder hung up mid-write, which is the behaviour it checks (accepted now, refusal and close still asserted); and part 4/4's tests/test_lifter.py timed out at 900 s building its clippy and release tests beside the other checks: the pre-build step now makes those first (nothing skipped).

Release builds (commits 6-9, by the pack-append work)

  1. The pack appended after the link (build(release): longshot-builder carries its pack appended after the link ...): the shipped builder is compiled once per platform, and its sources pack (33 members, 131 MB) is attached to the end of the linked program (dev release attach; a 64-byte trailer), so a nightly compiles the builder 2 times instead of 4. The Windows build job now waits for the Linux one.
  2. Third-party objects from the last signed release (build(release): take the third-party objects whose keys did not change ...): reused only after that release's SHA256SUMS.sig checks out, object by object by per-object keys; anything changed is compiled.
  3. A Rust cache for release builds (ci(release): keep the shipped builder's compiled Rust between trusted release runs): restored and saved only by runs of main and v* tags on the release runner. docs/dev/reference/ci.md says what it costs: a poisoned entry would reach a signed build, and the open gap is that anyone who can push a branch here could write a workflow that saves that key on the release runner.
  4. The Linux builder linked with tools.lock's clang and sysroot again (build(release): link the shipped Linux builder ..., longshot_builder.py link-tools), so it stays at GLIBC_2.35.

changes still skips rust and host-windows on docs-only PRs. No check removed or weakened.

Read first: scripts/linux/ci_setup.sh, scripts/linux/ci_image.sh, .forgejo/workflows/ci.yml, .forgejo/workflows/ci-image.yml, scripts/ci_website_dist.py, docs/dev/reference/ci.md (The CI image).

Testing

Tested: Linux (CachyOS): docker build of both images (checks 2.1 GB, lite 0.6 GB); pre-commit with all hooks, gitleaks included, run offline in lite; check_host_compile.py twice under ccache in checks (66/66 hits); build-driver's channel tests; the three SPIR-V fixtures as run_all checks (pass) and the new failure summary; actionlint, ShellCheck, ruff, py_compile; the game-free tests that read the workflows and run_all (test_checks_container, test_check_pr_description, test_release_workflow, test_dev_packs, test_run_all_*, test_vulkan_fixtures_ci, test_windows_on_linux, …) pass. This PR's own CI runs the fallback path (its image isn't pushed yet).

Still to test:

  • After merge, on main: ci-image.yml builds and pushes the image (first real run of crane push through RELEASE_UPLOAD_API), then ci.yml's jobs pull it (by hand, watching the run)
  • A PR touching website/: the preview takes CI's dist/ (by hand)

Measurements

Verdict: smaller CI images and fewer jobs. Runner-minutes per PR to follow from this PR's own CI timings.

Image sizes (unpacked, local docker build):

Before After
One image 2.98 GB -
checks: system 943 MB, rust 667, python 181, node 138, headers 71, tools 37 2.1 GB
lite: system-lite 128 MB, python 181, node 138, tools 37, hooks 63 0.6 GB
pre-commit hooks (incl. the Go toolchain) 387 MB 63 MB

Host C for Windows, second run with the cache: 66/66 hits, 12 s → 2 s (local, in the image). Before (#2553's run): 16 jobs, ~54 runner-minutes.

Release builds

Tested by build-mode queue jobs on this PC (no game run):

  • the dist compile 111-159 s; the pack 33 members, 6087 files, 583 MB, 131 MB compressed; the attached builder 172.7 MB, read back and checked usable, highest symbol GLIBC_2.35;
  • sources from a fresh cache 2.2-3.7 s, again 0 s; a real game build from the .nup with the attached builder succeeded in 3:08 (built, not run);
  • damaged copies refused (cut short, a flipped byte: tools_incomplete); a one-file change's delta 774,834 bytes of 172.7 MB;
  • third-party objects: a seeded build took all 322 and the set was byte-identical; with one object taken out, the same.
  • Still to measure: the reuse first works on the nightly after next (it needs a signed release that carries the objects); the Rust cache on the second nightly.

Risks

Release builds: the Windows job now waits for Linux, so a nightly's wall time can grow even with less compiling; a damaged pack is refused at start (tested). The release Rust cache: a poisoned entry would reach a signed build (main/v* only; the branch-push gap is stated in ci.md). Third-party reuse depends on the signature check of the last release; a failed check compiles everything.

CI: a revert restores the old workflows. If the image push fails, ci.yml keeps working on the fallback (slower, as before). If Forgejo's runner did not interpolate container: image: from needs, every container job would fail at start: this PR's CI shows it. Pulling a ~3 GB image once per runner and tag.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit. (stacked on #2554)
  • Tested on my own PC, in the game for a change the game runs, as Testing says. (the game runs none of it: CI workflows and scripts)
  • mise run test passes (any failure that also fails on main is named). (the workflow-reading tests pass locally; this PR's CI runs the rest)
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A check under tests/ that reads changed source is updated, not weakened.
  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary On current `main` (after [#2554](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2554); no longer stacked). Nine commits in two parts: CI (the restructure, the smaller images, the Windows compiler cache, two fixes for checks failing on `main`) and the release build (the pack appended after the link, third-party objects from the last signed release, a trusted-runs-only Rust cache, the Linux builder linked with tools.lock's clang and sysroot again). This is the one PR for today's CI and release work. ([#2552](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2552), thin LTO, had already merged.) Pull-request CI installed its tools again in every job (rustup, apt, glslang, headers, Python packages, pre-commit), compiled the builder twice (Rust job and e2e job), built the website twice (CI's check and the preview), and ran 16 jobs. This restructures it as decided: 1. **CI images for every check job** (commit 1 made one; commit 2 splits it, see below). `scripts/linux/ci_setup.sh` installs everything (apt packages incl. llvm and libclang-rt-18-dev, mise.toml's Rust with rustfmt+clippy via the checksum-pinned rustup, Node/actionlint/ShellCheck from mise.lock, the tests' Python packages, pre-commit with its hooks pre-fetched, glslang 16.6.0, the SPIR-V and Vulkan headers). `scripts/linux/checks.Dockerfile` runs it (local `run_all.py --container`). `ci.yml`'s `changes` job hashes the commit's inputs (`scripts/linux/ci_image.sh`) and asks the registry anonymously for that tag; the jobs use it via `container: image:`. A PR that changes the inputs has no image yet: its jobs run `ci_setup.sh --github-env` first on the runner's own Ubuntu 24.04, so it is checked with its own tools and pushes nothing. `ci-image.yml` (main only: push touching the inputs, or by hand) builds the layer on the release runner and pushes it from `deploy` with crane and `PACKAGES_TOKEN_SEALED` (only main's runs can unseal it), through `RELEASE_UPLOAD_API`'s host. The runners give jobs no Docker (`docker_host: "-"`), hence crane, not `docker build`. Per-job installs, `ci_apt.sh`, the rustup/apt caches and glslang/header downloads are gone; the crate cache, ccache, git-base and llvm-mingw caches stay. 2. **Quick checks in three jobs**: title moved into `pr-description.yml` ("Title and description", pull_request_target, main's script reading the event file; no PR code). In ci.yml it would rerun on every edit and cancel/replace the code checks. Lint = pre-commit + ShellCheck + actionlint. "Third-party parts and guide screenshots" in ci.yml (`third-party.yml` keeps only the nightly upstream comparison; `guide-screenshots.yml` removed). 3. **Website built once**: ci.yml's website job keeps `dist/` as `website-dist-<head sha>`; `website.yml`'s preview no longer builds the PR: `preview-wait` (quick, no secrets) waits for that artifact, `preview-upload` (deploy, main's code only) downloads it as files (`scripts/ci_website_dist.py`: only an artifact of ci.yml's pull_request run at that exact commit counts; links, absolute and `..` paths refused). 4. **Builder compiled once**: e2e folded into the Rust job, `cargo test --workspace --test end_to_end -- --ignored` after `cargo test`, reusing its build. Host C for Windows unchanged apart from the image. 5. **SPIR-V fixtures** are three `run_all.py` checks (`tests/global_load_16`, `tests/native_suatom`, `tests/f2i_immediate`), built with the tests' SPIR-V headers pin (they pass with it); the spirv-fixtures job is gone. 6. **2 test parts** instead of 4, with #2554's release-builder pre-build step and 900 s / longer job limits carried over. `test_mods_sizes` runs its example in the dev profile (21 s to ~10 s cold). 7. **Job summary**: run_all.py's `$GITHUB_STEP_SUMMARY` lists the failures first with each one's first error line; the full table is folded. 8. **Smaller images, in layers** (commit 2). The one image was 2.98 GB, 318 MB of it the Go toolchain pre-commit's `golang` gitleaks hook downloads. Now gitleaks is mise.toml's prebuilt 8.22.1 (mise.lock, SHA-256) run by the `gitleaks-system` hook (same scan; `pass_filenames: false` as upstream's golang hook); apt without recommends, no docs/man/locales/lists; Node without headers; caches removed in the step that makes them. Still well over 1.5 GB, so it is two images: `longshot-ci-checks` (rust, host-windows, tests) 2.1 GB and `longshot-ci-lite` (lint, website) 0.6 GB, each tagged by its own name + inputs, each part (system, python, headers, node, tools, rust, hooks) its own reproducible layer (sorted, mtime 0, gzip -n), so a change re-pulls only its layer. 9. **Compiler cache for Host C for Windows** (commit 3): `check_host_compile.py --launcher ccache`, work folder in the checkout, `CCACHE_BASEDIR` the checkout, compiler checked by llvm-mingw's name; saved on main only, keyed by llvm-mingw + `host/`, `game/`, `tools.lock`, newest older entry restored. Second run in the image: 66/66 hits, 12 s → 2 s. 10. **Fixes for checks failing on main** (commits 4, 5): `build-driver`'s `a_line_over_the_limit_closes_the_channel` hit a broken pipe when the builder hung up mid-write, which is the behaviour it checks (accepted now, refusal and close still asserted); and part 4/4's `tests/test_lifter.py` timed out at 900 s building its clippy and release tests beside the other checks: the pre-build step now makes those first (nothing skipped). ### Release builds (commits 6-9, by the pack-append work) 11. **The pack appended after the link** (`build(release): longshot-builder carries its pack appended after the link ...`): the shipped builder is compiled once per platform, and its sources pack (33 members, 131 MB) is attached to the end of the linked program (`dev release` attach; a 64-byte trailer), so a nightly compiles the builder 2 times instead of 4. The Windows build job now waits for the Linux one. 12. **Third-party objects from the last signed release** (`build(release): take the third-party objects whose keys did not change ...`): reused only after that release's `SHA256SUMS.sig` checks out, object by object by per-object keys; anything changed is compiled. 13. **A Rust cache for release builds** (`ci(release): keep the shipped builder's compiled Rust between trusted release runs`): restored and saved only by runs of `main` and `v*` tags on the release runner. `docs/dev/reference/ci.md` says what it costs: a poisoned entry would reach a signed build, and the open gap is that anyone who can push a branch here could write a workflow that saves that key on the release runner. 14. **The Linux builder linked with tools.lock's clang and sysroot again** (`build(release): link the shipped Linux builder ...`, `longshot_builder.py link-tools`), so it stays at GLIBC_2.35. `changes` still skips `rust` and `host-windows` on docs-only PRs. No check removed or weakened. Read first: `scripts/linux/ci_setup.sh`, `scripts/linux/ci_image.sh`, `.forgejo/workflows/ci.yml`, `.forgejo/workflows/ci-image.yml`, `scripts/ci_website_dist.py`, `docs/dev/reference/ci.md` (The CI image). ## Testing **Tested:** Linux (CachyOS): `docker build` of both images (`checks` 2.1 GB, `lite` 0.6 GB); pre-commit with all hooks, gitleaks included, run offline in `lite`; check_host_compile.py twice under ccache in `checks` (66/66 hits); `build-driver`'s channel tests; the three SPIR-V fixtures as run_all checks (pass) and the new failure summary; `actionlint`, ShellCheck, ruff, py_compile; the game-free tests that read the workflows and run_all (`test_checks_container`, `test_check_pr_description`, `test_release_workflow`, `test_dev_packs`, `test_run_all_*`, `test_vulkan_fixtures_ci`, `test_windows_on_linux`, …) pass. This PR's own CI runs the fallback path (its image isn't pushed yet). **Still to test:** - After merge, on main: `ci-image.yml` builds and pushes the image (first real run of crane push through `RELEASE_UPLOAD_API`), then ci.yml's jobs pull it (by hand, watching the run) - A PR touching `website/`: the preview takes CI's dist/ (by hand) ## Measurements **Verdict:** smaller CI images and fewer jobs. Runner-minutes per PR to follow from this PR's own CI timings. Image sizes (unpacked, local `docker build`): | | Before | After | |---|---|---| | One image | 2.98 GB | - | | `checks`: system 943 MB, rust 667, python 181, node 138, headers 71, tools 37 | | 2.1 GB | | `lite`: system-lite 128 MB, python 181, node 138, tools 37, hooks 63 | | 0.6 GB | | pre-commit hooks (incl. the Go toolchain) | 387 MB | 63 MB | Host C for Windows, second run with the cache: 66/66 hits, 12 s → 2 s (local, in the image). Before (#2553's run): 16 jobs, ~54 runner-minutes. ### Release builds Tested by build-mode queue jobs on this PC (no game run): - the dist compile 111-159 s; the pack 33 members, 6087 files, 583 MB, 131 MB compressed; the attached builder 172.7 MB, read back and `check`ed usable, highest symbol GLIBC_2.35; - `sources` from a fresh cache 2.2-3.7 s, again 0 s; a real game build from the .nup with the attached builder succeeded in 3:08 (built, not run); - damaged copies refused (cut short, a flipped byte: `tools_incomplete`); a one-file change's delta 774,834 bytes of 172.7 MB; - third-party objects: a seeded build took all 322 and the set was byte-identical; with one object taken out, the same. - Still to measure: the reuse first works on the nightly after next (it needs a signed release that carries the objects); the Rust cache on the second nightly. ## Risks Release builds: the Windows job now waits for Linux, so a nightly's wall time can grow even with less compiling; a damaged pack is refused at start (tested). The release Rust cache: a poisoned entry would reach a signed build (main/v* only; the branch-push gap is stated in ci.md). Third-party reuse depends on the signature check of the last release; a failed check compiles everything. CI: a revert restores the old workflows. If the image push fails, ci.yml keeps working on the fallback (slower, as before). If Forgejo's runner did not interpolate `container: image:` from `needs`, every container job would fail at start: this PR's CI shows it. Pulling a ~3 GB image once per runner and tag. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. (stacked on #2554) - [ ] Tested on my own PC, in the game for a change the game runs, as Testing says. (the game runs none of it: CI workflows and scripts) - [ ] `mise run test` passes (any failure that also fails on `main` is named). (the workflow-reading tests pass locally; this PR's CI runs the rest) - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
- lint: the quick runner's image has no ShellCheck; installed from apt
- tests: llvm (llvm-mc, test_lifter.py) and libclang-rt-18-dev (the ASan runtime,
  test_obj_cache_size.py), which --no-install-recommends left out; the same in
  scripts/linux/checks.Dockerfile
- tests: the release longshot-builder (and build-driver's redact example) built
  before the checks in the part that runs them; --timeout 900 (test_recorder_sync)
- test_display_startup_failure: a stub for bc_claim, which main now calls
- test_mods_sizes: the long path's case pads its game folder, so /tmp's short
  scratch folder still makes the path too long
- test_release_workflow: the upload-artifact step, not the header comment naming
  it; cache paths split by line (${{ runner.temp }} has spaces)
- test_windows_on_linux: the Vulkan build check is a step of the package job now
- test_title_card_strips: nx2/oot_patches.py is gone; its host checks kept. The
  title card's hooks have no hook site since #2286 (a bug, not fixed here)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
ci(release): the builds' jobs are named to pair with the release's jobs that call them
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 28s
CI / What the change needs (pull_request) Successful in 29s
CI / Workflow lint (actionlint) (pull_request) Successful in 44s
Guide screenshots / Guide images and local UI source review (pull_request) Successful in 47s
Third-party parts / As their notes say (pull_request) Successful in 55s
CI / Lint (pre-commit, ShellCheck) (pull_request) Successful in 6m2s
CI / Website build and checks (pull_request) Successful in 1m13s
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Successful in 2m59s
CI / longshot-builder end to end (synthetic game) (pull_request) Successful in 2m21s
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Successful in 37s
CI / Game-free checks (run_all.py, part 1/4) (pull_request) Successful in 6m48s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m7s
PR description / Description follows the template (pull_request_target) Failing after 22s
CI / Game-free checks (run_all.py, part 3/4) (pull_request) Successful in 8m3s
CI / Game-free checks (run_all.py, part 2/4) (pull_request) Successful in 10m6s
CI / Game-free checks (run_all.py, part 4/4) (pull_request) Failing after 18m45s
efd3262117
Forgejo lists a reusable workflow's call and its inner job as two rows: the inner
jobs are now "longshot-builder (Linux): build" and "longshot-builder (Windows): build"
(ids, needs and outputs unchanged). releases.md: the Windows back end's build check
is the package job's last step, no longer a job of its own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
ci: one CI image for every check, fewer and faster jobs
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 25s
CI / What the change needs (pull_request) Successful in 29s
CI / Third-party parts and guide screenshots (pull_request) Successful in 43s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 13m33s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 3m13s
CI / Website build and checks (pull_request) Successful in 3m57s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 8m17s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
8088686292
The checks' tools are baked into one image (scripts/linux/checks.Dockerfile, installed by
scripts/linux/ci_setup.sh), pushed from main only by ci-image.yml and tagged by its inputs' hash;
a pull request that changes them runs ci_setup.sh in each job instead and pushes nothing.
Quick checks grouped (title with the description; lint with actionlint; third-party with the
guide screenshots), the website built once for checks and preview, the end-to-end test from the
Rust job's build, the SPIR-V fixtures as run_all.py checks, 2 test parts, and a job summary of
the failures.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
HumanBean force-pushed push-pxwusowyyrwx from 8088686292
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 25s
CI / What the change needs (pull_request) Successful in 29s
CI / Third-party parts and guide screenshots (pull_request) Successful in 43s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 13m33s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 3m13s
CI / Website build and checks (pull_request) Successful in 3m57s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 8m17s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
to 1c7d1e83bd
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
CI / What the change needs (pull_request) Successful in 27s
PR description / Description follows the template (pull_request_target) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Successful in 53s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 4m36s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-11-25 19:39:35 +00:00
Compare
HumanBean changed title from WIP: ci: one CI image for every check, fewer and faster jobs to WIP: ci: one CI image per job kind, fewer and faster jobs 2026-11-25 19:40:08 +00:00
The pack (build-driver's sources.rs, its format unchanged) is no longer compiled in through build.rs and
LONGSHOT_SOURCES: `longshot-builder dev release attach` appends it to the linked program with a 64-byte
trailer (magic, version, offset, length, SHA-256) and reads it back. The program maps its own file and finds
the pack by the trailer; a file with bytes past its image but no trailer, or a pack whose SHA-256 is wrong,
stops with tools_incomplete (download it again). The release's Linux job compiles the shipped program once
and uses it, before its pack, as its tool; the Windows job runs after it and takes that program as an
artifact. from-source attaches the pack too, and still embeds it for a source from before this.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e1RP1VgcWpgA7Kq6ec
`longshot-builder dev release last-objects` finds the channel's newest release with the platform's file,
checks its SHA256SUMS against SHA256SUMS.sig with the builder's trusted keys, downloads the full file by the
signed SHA-256, finds its pack (appended, or compiled in by an older release) and writes out only its
tree/third_party_objects member. `compile --third-party-objects` then takes each object of that set whose
key (compiler, flags, source, every header read) is this build's, so unchanged objects are the last
release's bytes and the deltas stay small; the rest are compiled. Nothing to be had compiles them all.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e1RP1VgcWpgA7Kq6ec
build-linux.yml and build-windows.yml restore cargo's target folder of the shipped builder's one compile
before it and save it after, keyed release-rust-target-<platform>-dist-<target>-<renhdrum.py>-<Cargo.lock>,
with the same toolchain's newest entry as the fallback; only a run of main or a v* tag, on the server's
release runner, restores or saves it. Unlike the downloads, nothing checks what it holds again: ci.md says
so, what protects it, and what is left open.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e1RP1VgcWpgA7Kq6ec
build(release): link the shipped Linux builder with tools.lock's clang and sysroot again
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
CI / What the change needs (pull_request) Successful in 13s
CI / Third-party parts and guide screenshots (pull_request) Successful in 21s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 4m57s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has started running
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 2m46s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 6m8s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has started running
PR description / Description follows the template (pull_request_target) Failing after 19s
CI / Website build and checks (pull_request) Has started running
cac997d546
`scripts/longshot_builder.py link-tools <folder>` fetches tools.lock's linux-x64 llvm and sysroot from
Longshot's store before there is a builder to install them, each archive checked by its size and SHA-256
(kept in <folder>/.cache, in the release's cache of downloads) and unpacked, as `llvm-mingw` does. The
Linux job links its one dist compile with them (clang, lld, glibc 2.35), as the release did before the
pack was appended, rather than the container's gcc.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e1RP1VgcWpgA7Kq6ec
HumanBean changed title from WIP: ci: one CI image per job kind, fewer and faster jobs to WIP: ci: one CI image per job kind and fewer jobs, and a release builds the builder once per platform 2026-11-25 19:55:34 +00:00
HumanBean changed title from WIP: ci: one CI image per job kind and fewer jobs, and a release builds the builder once per platform to ci: one CI image per job kind and fewer jobs, and a release builds the builder once per platform 2026-11-25 20:24:51 +00:00
HumanBean deleted branch push-pxwusowyyrwx 2026-11-25 20:25:02 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2557
No description provided.