Producer scripts + tests for a public catalogue of third-party tool
releases consumed by zackees/soldr's
CI.
The repo splits cleanly into a code branch and a data branch:
| Branch | Role | Contents |
|---|---|---|
main |
code only | producer scripts, tests, workflows, pyproject |
assets |
data only (orphan branch) | catalogue JSON + locally-hosted blobs (LFS) |
main has no manifest data, no LFS, no deps/. assets has no Python
code, no tests, no workflows.
/ # assets branch (orphan)
├── README.md
├── .gitattributes # LFS rules for deps/** blobs
├── manifest.json # top-level index: tools -> subdir
├── asset-index.json # flat (owner, repo, tag, asset, url, sha256) index
├── apple-sdk/
│ ├── manifest.json # vendored release entries
│ └── MacOSX11.3/ # version
│ └── darwin/ # platform
│ └── sdk.tar.zstd # blob (LFS, ~51 MB)
├── zccache/
│ └── manifest.json # release metadata (URLs point to GitHub)
├── crgx/
│ └── manifest.json
├── cargo-chef/
│ └── manifest.json
├── cargo-zigbuild/
│ └── manifest.json
└── cargo-xwin/
└── manifest.json
Locally-hosted blobs follow <tool>/<version>/<platform>/<file>:
<tool>— directory name matches the top-leveltoolskey.<version>— the release tag, used as-is (e.g.1.12.9,v0.23.0,MacOSX11.3).<platform>— the OS+arch part of the schema's platform key (e.g.linux-x64,darwin-arm64,darwin). No ABI suffix here.- variants flat inside the platform folder — when a tool ships
multiple ABIs for the same OS+arch (e.g.
linux-x64-gnuandlinux-x64-musl), both files live as flat siblings inside<tool>/<version>/<platform>/. The filename carries the ABI.
Today, the only blob actually hosted in-repo is the Apple SDK at
apple-sdk/MacOSX11.3/darwin/sdk.tar.zstd. The structure is set up
so the build scripts can host more tools locally in the future without
schema changes.
soldr's cross-compile-all-targets.yml workflow used to have every
parallel matrix lane independently resolve tool download URLs against
the GitHub Releases REST API. With 7+ lanes hitting the same runner
IP, the unauthenticated 60-req/hour quota burned out fast and the
workflow 403-ed.
This repo breaks that:
- A nightly workflow on
main(.github/workflows/refresh-manifest.yml) runsscripts/build_manifest.py, which queries the GitHub API once per tool (authenticated, 5000 req/hour,per_page=100) and writes the resolvedbrowser_download_urlfor every asset into the per-tool files on theassetsbranch. - The workflow commits any diff back to
assets. - Consumer workflows fetch from
https://raw.githubusercontent.com/zackees/soldr-toolchain/assets/<path>— that URL is CDN-served and not subject to the API rate limit.
Per-tool files only change when upstream actually publishes something
new (the script uses content equality, not timestamps). git log on
the assets branch is the source of truth for "when did this tool's
release set last change."
The same daily refresh publishes rust-nightly-versions.v1.json, a
metadata-only map from nightly-YYYY-MM-DD to the corresponding rustc
release and full commit identity. The map is a SHA-bearing asset in
catalogue.v1.json; its catalogue URL names an immutable
sha256/<digest>/rust-nightly-versions.v1.json copy so a CDN cannot pair a
cached catalogue with newer bytes at the mutable map URL. The mutable copy is
retained as the next refresh's incremental input. Both are stored as ordinary
Git JSON rather than LFS. Only a newly observed nightly is
downloaded with the minimal profile and queried for its verbose version;
known nightlies are never downloaded or probed again. The reverse
versions index selects, per Rust version, the newest nightly that has a
published dylint-driver under assets/dylint-driver/ (see "Dylint toolchain
buckets" below).
If a scheduled run is missed, each later refresh checks up to eight
oldest unprocessed dates, records dates on which no nightly was
published, and eventually closes the gap without repeating prior work.
The incremental backfill begins at nightly-2025-12-06, the first observed
nightly in the Rust 1.94 train, and includes nightly-2026-01-18, its newest
observed nightly, so consumers pinned to Rust 1.94.x can
use the map immediately.
Each release in the per-tool manifest carries a normalized platforms
map keyed by <os>-<arch>[-<extra>]. Consumers ask for the host they
care about — no need to deal with each upstream tool's idiosyncratic
asset filename quirks.
import json, urllib.request
m = json.loads(urllib.request.urlopen(
"https://raw.githubusercontent.com/zackees/soldr-toolchain/assets/zccache/manifest.json"
).read())
latest = m[0] # newest-first array
url = latest["platforms"]["linux-x64-musl"]["url"]Or via the bundled helper:
uv run --group dev python -m scripts.tool_query --platform linux --arch x86 --extra musl zccacheos ∈ { linux, darwin, windows }
arch ∈ { x64, arm64, universal2 } # 32-bit lanes are not surfaced
extra ∈ { gnu, musl, msvc, gnullvm, … } # only when meaningful
| Key | Meaning |
|---|---|
linux-x64-gnu |
Standard Linux x64 glibc build — floor must be glibc 2.17 |
linux-x64-musl |
Linux x64 musl (static; runs on glibc hosts too) |
linux-arm64-gnu |
Linux aarch64 glibc — floor must be glibc 2.17 |
linux-arm64-musl |
Linux aarch64 musl |
darwin-x64 |
macOS x86_64 |
darwin-arm64 |
macOS Apple Silicon |
darwin-universal2 |
macOS fat binary |
windows-x64-msvc |
Windows x64, official MSVC ABI |
windows-arm64-msvc |
Windows ARM64, official MSVC ABI |
windows-x64-gnu |
Windows x64, GNU ABI |
windows-arm64-gnullvm |
Windows ARM64, gnullvm ABI |
Modern arch names (x64 not x86_64; arm64 not aarch64) match
the npm/Node.js convention. 32-bit binaries (i686 / armv7) are not
surfaced — every modern process is 64-bit, the schema doesn't need
to fragment to track them.
Every catalogued Linux -gnu asset MUST have a glibc floor of 2.17 or
lower. This applies to assets this repo builds and to prebuilt ones it
merely fetches and republishes.
This repo is the middle of a chain — forge-ci/forge builds the tools,
soldr-toolchain catalogues them, and zackees/soldr bundles them into its
release archive. The floor of that archive is the highest floor of any
binary in it, so a single 2.39 asset here caps everything downstream. That is
exactly what happened: crgx and cargo-chef are fetched prebuilt at glibc
2.39, which pins soldr's Linux archive at 2.39 no matter how soldr compiles
itself, and makes it unusable on RHEL 8 / Debian 10 (both 2.28).
Deps currently above the floor must be recompiled, not documented around.
Rebuilding them is upstream work in forge-ci/forge, whose recipes are now
required to build against glibc 2.17 — see that repo's README.
Rules:
- musl assets are exempt — statically linked, no glibc to floor.
- Verify before cataloguing.
readelf -V <binary> | grep -o 'GLIBC_[0-9.]*' | sort -Vu | tail -1must printGLIBC_2.17or lower for every-gnuasset. Asserting the floor in a manifest is not the same as measuring it. - No zig, no
cargo-zigbuild. Both are being purged in favour of the blessed toolchain. Reaching 2.17 is a matter of building in an old sysroot, which needs no zig.
The gnu-linux-toolchain Forge recipes are that blessed source. They build GCC
13.3.0 and binutils 2.42 with crosstool-NG 1.27.0 in a digest-pinned
manylinux2014 x86_64 producer, for x86_64 and aarch64 targets. Each package
contains its crosstool-NG config, license files, and downloaded corresponding
source archives. The recipe measures both target libc.so.6 and host tool ELF
version requirements and refuses any result above GLIBC 2.17.
Published bytes are immutable. A consumer pins (filename, sha256) from
whatever catalogue it fetched, so replacing the bytes behind a published
filename breaks those pins until the catalogue republishes — and permanently
for any older catalogue that is still in use.
So a rebuild of the same version (for example the same tool recompiled with a newer rustc) is published beside the original under a build label:
uv run --group dev python -m scripts.ingest_forge_rust_run \
--forge-dir ../forge-artifacts --tool cargo-nextest --version 0.9.140 \
--forge-run-id <run-id> --assets-root ../soldr-toolchain-assets \
--schema schemas/catalogue.v1.schema.json --build-label rust1.98.1That writes cargo-nextest-0.9.140-rust1.98.1-<triple>.tar.gz, repoints the
release in cargo-nextest/manifest.json at it, and leaves the original file
and its catalogue rows untouched and still resolvable. forge-ingest.yml
takes the same value as its build_label input.
forge_to_catalogue.py enforces this: an ingest whose asset filename is
already published with a different sha256 fails closed. --replace is the
deliberate, owner-approved override.
| Tool | Upstream | Pin source |
|---|---|---|
| zccache | zackees/zccache |
soldr MANAGED_ZCCACHE_VERSION |
| crgx | yfedoseev/crgx |
soldr MANAGED_CRGX_VERSION |
| cargo-chef | LukeMathWalker/cargo-chef |
soldr CARGO_CHEF_PINNED_VERSION; binaries built by forge-rust |
| crgx (binaries) | yfedoseev/crgx |
soldr MANAGED_CRGX_VERSION; binaries built by forge-rust |
| cargo-zigbuild | rust-cross/cargo-zigbuild |
latest |
| cargo-xwin | rust-cross/cargo-xwin |
latest |
| mingw-w64-gcc | brechtsanders/winlibs_mingw |
pinned WinLibs release |
| gnu-linux-toolchain | crosstool-NG-built GCC/binutils/glibc/Linux | gcc-13.3.0-glibc-2.17-1; reproducible config + source archives included |
| apple-sdk | vendored under apple-sdk/MacOSX11.3/darwin/ |
manual |
The scripts/build_manifest.py script reads the three pinned versions
directly from a checkout of zackees/soldr so the manifest can never
drift from what soldr would fetch.
This project is managed with uv. All
Python invocations go through uv run — no manual virtualenv
activation needed.
git clone https://github.com/zackees/soldr-toolchain.git
git clone -b assets https://github.com/zackees/soldr-toolchain.git soldr-toolchain-assets
# The parity test auto-discovers ../soldr-toolchain-assets.uv run --group dev pytestThe parity test (tests/test_parity.py) auto-discovers the assets
checkout in this order:
$SOLDR_TOOLCHAIN_ASSETS_DIRenvironment variable../soldr-toolchain-assets(sibling clone)../assets
If none of those resolves to a directory containing manifest.json,
the parity tests skip — the pure-function tests still run.
The build and validate native Dylint release workflow produces
cargo-dylint, dylint-link, and the exact-nightly dylint-driver together on
all eight canonical hosts. Windows ARM64 and both macOS architectures use native
hosted runners; GNU binaries use digest-pinned manylinux2014 containers; musl
binaries and drivers use digest-pinned Alpine containers on matching CPU
architectures.
The driver identity is immutable and includes Dylint 6.2.0,
nightly-2026-08-15, rustc release 1.99.0-nightly, full rustc commit
d453bdd8f092d099bc336f0bda4163f809ad18e0, and the host triple. Every lane
relocates all three binaries, runs a clean custom-lint case, observes the known
release_fixture_forbidden_io violation, and repeats the violation with Cargo
offline. The warm run must leave the driver hash and timestamp unchanged.
The driver bundle intentionally contains only dylint-driver; rustc-private
libraries remain owned by the exact installed nightly. Consumers must place the
driver at
$DYLINT_DRIVER_PATH/nightly-2026-08-15-<host>/dylint-driver and expose that
nightly's private libraries while invoking Dylint: prepend the toolchain's
bin directory to PATH on Windows, its lib directory to LD_LIBRARY_PATH
on Linux, or its lib directory to DYLD_LIBRARY_PATH on macOS. Soldr owns
that runtime environment contract; the release fixture uses the same layout
and never treats the driver archive as a standalone rustc distribution.
After a green workflow run, download all eight workflow artifacts into one
directory and ingest the complete 24-bundle transaction into a clean sibling
checkout of the assets branch:
gh run download <run-id> --dir ../dylint-release-artifacts
uv run --frozen --group dev python -m scripts.produce_dylint_release ingest \
--artifacts-dir ../dylint-release-artifacts \
--assets-root ../soldr-toolchain-assets \
--forge-run-id <run-id>Ingest fails closed if any tool/host artifact, payload hash, real-lint evidence,
or driver identity is missing or inconsistent. Review the resulting assets diff,
run scripts.lint_assets, and publish it as one PR against assets; never merge
a partial target set. Unsupported nightlies are remediated by adding and proving
a new exact driver identity in this producer before a Soldr consumer pin changes.
Soldr's select_from_map picks versions.<X.Y>.selected for a repository whose
Rust version is X.Y and which does not pin a Dylint toolchain. It requires the
selected nightly to report Rust X.Y and to be nightlies[0], so the producer
cannot fall back to a nightly from another bucket. Instead it:
- selects the newest nightly in the bucket that has a published
dylint-driver, trims newer driverless nightlies out ofnightlies, and lists them underskipped_without_dylint_driver;dylint_drivernames the driver version; - omits a bucket with no driver-backed nightly from
versionsand records it under the top-leveldylint_unavailableobject with the reason. Soldr then fails with "has no nightly mapping for Rust X.Y" rather than selecting a nightly whose driver asset does not exist (soldr-toolchain#191). Thenightliesidentity rows are unchanged, so explicit pins still resolve.
Two driver identities are published: Dylint 6.0.3 on nightly-2026-05-28
(Rust 1.98 nightly) and Dylint 6.2.0 on nightly-2026-08-15 (the newest Rust
1.99 nightly, forge-ci/ci.yml#106). Soldr's pinned Dylint version decides which
one it fetches, so after soldr moves to 6.2.0 only nightly-2026-08-15 has a
driver for it. Dylint 6.0.3's source does not compile on older nightlies such as
nightly-2026-02-28 (rustc_errors::DiagDecorator is missing), so older
buckets remain dylint_unavailable.
Supported workaround for any dylint_unavailable version: pin the Dylint
toolchain explicitly to a published driver's nightly that matches soldr's
pinned Dylint version (nightly-2026-08-15 for Dylint 6.2.0). With
zackees/setup-soldr:
with:
dylint: true
dylint-toolchain: nightly-2026-08-15or set SOLDR_DYLINT_TOOLCHAIN=nightly-2026-08-15 (or pin the lint libraries'
rust-toolchain.toml to that nightly). The pin goes through soldr's explicit
map lookup, which uses the nightlies identity rows, not the versions
buckets. Keep the pin until a newer Dylint release is produced and ingested
here with a driver for your bucket.
# Needs both a soldr checkout (for pinned versions) and an assets-branch
# checkout (the destination tree).
uv run --group dev python -m scripts.build_manifest \
--output-dir ../soldr-toolchain-assets \
--repo-root ../soldr
uv run --group dev python -m scripts.build_asset_index \
--manifest-checkout ../soldr-toolchain-assets \
--output ../soldr-toolchain-assets/asset-index.json \
--branch assets \
--offline # omit for the SHA256SUMS HTTP fetch passSee Linux-hosted Darwin toolchain production for LLVM 21.1.5 compiler-rt, Swift 6, SDK 26.x extraction, dsymutil aliases, prepared Forge commands and the required cross-link evidence.
For Windows MSVC x64 builtins, intrinsic-header precedence and the Microsoft CRT licensing boundary, see Linux-hosted Windows cross compilation.