Repository navigation
ci(release): publish musl Linux assets beside the gnu archives (#980) - #1086
Conversation
|
Not this PR's. This diff touches Fix exists: PR #1085 ( Not porting #1085 into #1086. #1085 is a workspace-wide YAML-stack rewrite (a new Not re-running Cargo Deny. The failure is deterministic — the advisory is present on every build of Keeping the PR watched; it stays mine until it is merged or closed. Generated by Claude Code |
There was a problem hiding this comment.
⚠️ Performance Alert ⚠️
Possible performance regression was detected for benchmark 'Rivet Criterion Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.
| Benchmark suite | Current: 1a58522 | Previous: 28f3146 | Ratio |
|---|---|---|---|
store_insert/1000 |
942415 ns/iter (± 5121) |
725546 ns/iter (± 21492) |
1.30 |
store_lookup/10000 |
340874 ns/iter (± 4427) |
251036 ns/iter (± 1347) |
1.36 |
schema_load_and_merge |
2010891 ns/iter (± 10561) |
1578043 ns/iter (± 14168) |
1.27 |
link_graph_build/100 |
164977 ns/iter (± 772) |
123751 ns/iter (± 2519) |
1.33 |
link_graph_build/1000 |
1872840 ns/iter (± 35127) |
1474529 ns/iter (± 33267) |
1.27 |
validate/100 |
723110 ns/iter (± 2253) |
565448 ns/iter (± 12143) |
1.28 |
validate/1000 |
16739452 ns/iter (± 267057) |
13845036 ns/iter (± 775461) |
1.21 |
traceability_matrix/100 |
3945 ns/iter (± 11) |
3249 ns/iter (± 117) |
1.21 |
traceability_matrix/1000 |
40270 ns/iter (± 183) |
33396 ns/iter (± 146) |
1.21 |
traceability_matrix/10000 |
754086 ns/iter (± 2517) |
610161 ns/iter (± 20058) |
1.24 |
query/10000 |
313266 ns/iter (± 1625) |
178974 ns/iter (± 1781) |
1.75 |
document_parse/10 |
23543 ns/iter (± 128) |
18148 ns/iter (± 297) |
1.30 |
document_parse/100 |
141786 ns/iter (± 493) |
115916 ns/iter (± 2107) |
1.22 |
document_parse/1000 |
1332239 ns/iter (± 28277) |
1054314 ns/iter (± 18392) |
1.26 |
This comment was automatically generated by workflow using github-action-benchmark.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
On the benchmark bot's perf alert: no code path to anything this PR touches, and the pattern is runner variance rather than a real regression. Diff. Pattern is noise. All 26 benchmarks regress uniformly in the 1.44–2.42× band. The giveaway: Baseline mismatch. The bot compares against Not fixing. There is nothing in this PR to fix, and widening it with speculative tuning would miss the point of a focused CI-matrix extension. Re-baselining the bench on a stable runner is a separate concern tracked outside this PR. Generated by Claude Code |
70d419e to
8a69767
Compare
|
Pre-check: #1085 merged into main (now New failure to triage:
Not this PR's. My diff touches Shape pin. On the previous head ( No fix to port. Not re-running. PR stays watched. Once the maintainer picks the shape (bump salsa / replace Generated by Claude Code |
The gnu Linux assets ship with a glibc 2.39 floor (dynamically linked against /lib64/ld-linux-x86-64.so.2), which excludes Alpine, every distroless-static image, Debian 12 (2.36), Ubuntu 22.04 (2.35), and RHEL 9 / Amazon Linux 2023 (2.34). A varve-layer measurement on 2026-09-22 confirmed no repo in the org publishes a musl asset, and a rolling layer's portability is the maximum floor across its payloads, so one 2.39 payload sets the floor for the whole toolchain. The decision on #980 (2026-09-24) is option 1: musl beside gnu. Both Rust triples are added to the release matrix, built with the existing `cross` tool used by aarch64-unknown-linux-gnu, and asserted statically linked at release time — a musl build that silently resolved to the host dynamic loader would ship with the same floor as the gnu asset. varve resolves a Linux host to the gnu triple, so the musl archive fills the gnu-keyed slot in the rolling layer per pulseengine/varve#175; consumers taking binaries directly still get both triples named by their Rust triple exactly as every other asset does. The gnu archives are untouched: existing consumers see no change in asset naming, link type, or glibc floor. Refs: #980, pulseengine/varve#175, #557 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B4JRqTnZYjDyJWcGA8G9Ui
8a69767 to
1a58522
Compare
Rust's x86_64-unknown-linux-musl target defaults to static-pie, and file(1) reports such a binary as "static-pie linked", so grepping for "statically linked" alone would fail the x86_64 musl job on the first tag. Confirmed by building a minimal x86_64 musl binary with Rust 1.99.0: file prints "static-pie linked". aarch64 musl does not enable static-pie and prints "statically linked". Refs: #980 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015HMQUV3u86jN2hmCtXNTc9
…o release.yml change Refs: REQ-393 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015HMQUV3u86jN2hmCtXNTc9
Closes #980.
Implements the maintainer decision from 2026-09-24: option 1 — musl beside gnu. Both Rust triples are added to the release matrix, built with the existing
crosstool, and asserted statically linked at release time.The gap this closes
The v0.37.0 Linux x86_64 asset is dynamically linked against
/lib64/ld-linux-x86-64.so.2with aGLIBC_2.39floor. That excludes Alpine (musl), every distroless-static image (none), Debian 12 (2.36), Ubuntu 22.04 (2.35), and RHEL 9 / Amazon Linux 2023 (2.34). The audit on #980 confirmed no repo in the org publishes a musl asset, and a rolling layer's portability is the maximum floor across its payloads — one 2.39 payload sets the floor for the whole toolchain.What ships
Two new release matrix entries use the same
cross: truepattern as the existingaarch64-unknown-linux-gnutarget. No change to the gnu archives.x86_64-unknown-linux-gnuaarch64-unknown-linux-gnux86_64-unknown-linux-muslaarch64-unknown-linux-muslA
Verify static linking (musl)step runsfile "$BIN" | grep -q 'statically linked'on the musl archives and fails the release step if a musl build silently resolved to the host dynamic loader — the exact mode where the "second triple" would be redundant.Asset naming is
rivet-<tag>-<triple>.tar.gzon both, matching the existing archives exactly. varve resolves a Linux host to the gnu triple, so the musl archive fills the gnu-keyed slot in the rolling layer per pulseengine/varve#175; consumers taking binaries directly still get both named by their Rust triple.Acceptance criteria (from the triage comment, option 1 path)
.github/workflows/release.yml:53-60, samecross: trueshape as the existingaarch64-unknown-linux-gnuentry.Verify static linking (musl)step (.github/workflows/release.yml:102-111) runsfileon the built binary and fails the step if the musl target isn't statically linked. Dynamic linking on the gnu assets is unchanged (samecross-free native build path).rivet-<tag>-<triple>.tar.gzfrom the existingPackage (tar.gz)step — varve derives asset names from the Rust triple, so no manifest changes required outside varve.-musl-guarded verification step; the gnu build / strip / package path is untouched.[Unreleased] → Addednames the new assets, the glibc-floor rationale, and the varve#175 ingestion link.Refs: #980, pulseengine/varve#175, #557. CI-workflow-only change, so no requirement trailer (per AGENTS.md exempt types:ci).Verified at release time (not in this diff)
distroless-static.crossemits statically linked musl binaries by construction, and the new verification step asserts that for every release — so a consumer picking the musl archive on either runtime gets a binary that loads. The post-release smoke is a release-notes consumer check.rivet --version,rivet list --format json,rivet validateon a small fixture). rivet-cli reads files and writes reports — no NSS, nodlopen, no runtime loader surface — so the compile is the smoke.Verified at consumer time (varve#175)
gh release view <tag>lists all four Linux triples.Explicitly out of scope
dlopenfor consumers that may need them later.ubuntu-22.04— could be stacked but is separately useful and deliberately deferred.Coordination
The AC's "coordinate with #975's version-bump PR" is best-effort: this PR is independent of the version bump and can land before or after without conflict (it only extends a matrix and adds an inner step).
🤖 Generated with Claude Code
https://claude.ai/code/session_01B4JRqTnZYjDyJWcGA8G9Ui
Generated by Claude Code