Skip to content

fix(ci): keep the benchmark cross-build matrix from evaluating to empty (reld#59) - #173

Merged
zackees merged 1 commit into
mainfrom
fix/59-benchmark-matrix-guard
Sep 18, 2026
Merged

zackees merged 1 commit into
mainfrom
fix/59-benchmark-matrix-guard

Conversation

@zackees

@zackees zackees commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #172 (leg 2 of #59), found while validating the three merged legs locally.

The matrix could be empty on the common path

#168 gave cross-build-benchmark-driver a conditional matrix whose Linux-only branch evaluates to []. That branch is the default platforms: linux dispatch and every perf/linux/** push — the path this workflow takes most often — and a matrix with no vectors is not a reliably skipped job.

The decision belongs in if:. The job is now skipped outright for a Linux-only run, and every branch that does run selects a non-empty target list. The downstream benchmark job already tolerates a skipped dependency via if: ${{ !cancelled() }}.

One orphan removed

ci.windows_ci build-benchmark-driver's only caller was the native compile step #168 deleted, so it was left behind building a driver nothing asks for.

Local validation of all three merged legs

The cross builds were run here with the exact commands the merged workflows invoke:

target command result
x86_64-pc-windows-gnu soldr build --package reld --bin reld --release --locked --target … PE, 9.9 MB (88% soldr cache hit)
x86_64-pc-windows-msvc same, --bin reld-link PE, 7.6 MB
aarch64-apple-darwin same, --bin reld Mach-O 64 (0xfeedfacf), 6.6 MB

Native Linux: cargo fmt --all -- --check, cargo clippy --workspace --all-targets -- -D warnings, cargo build --release -p reld all clean.

uv run --no-sync python -m pytest ci/tests -q — 299 passed. All four touched workflows parse.

Also checked, since #167 deleted a NOTE that documented real soldr blockers (soldr#2334/#2335): the version: 0.9.18 / linker: platform-default / cache-preset: full configuration it moved to is not invented — it is copied from cross-ship.yml, which has run green on main including its windows-gnu leg (35276124820), and it builds here locally.

🤖 Generated with Claude Code

…ty (reld#59)

#168 gave `cross-build-benchmark-driver` a conditional matrix whose Linux-only
branch is `[]`. That is the default `platforms: linux` dispatch and every
`perf/linux/**` push, i.e. the common path, and a matrix with no vectors is not
a reliably skipped job. The decision belongs in `if:`, so the job is skipped
outright for a Linux-only run and every branch that does run selects a non-empty
target list.

`ci.windows_ci build-benchmark-driver` goes with it: its only caller was the
native compile step #168 removed, so it was left behind building a driver
nothing asks for.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant