Skip to content

Run the tests before the cross-compile - #5

Merged
nicodes merged 1 commit into
mainfrom
perf/ci-order
Aug 3, 2026
Merged

Run the tests before the cross-compile#5
nicodes merged 1 commit into
mainfrom
perf/ci-order

Conversation

@nicodes

@nicodes nicodes commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Smallest slice of the fleet-wide Actions cleanup started in astrylogical/astry#25. One reordering, no caching changes.

Neither action reads the other's output — Build cross-compiles and asks the binary for its version, Test formats/vets/tests the source — so the order only decides which failure surfaces first, and a vet or test failure is the more common one.

Deliberately not here: any Go build cache. actions/setup-go already keeps one, confirmed in the run log:

Cache restored from key: setup-go-Linux-x64-ubuntu24-go-1.26.5-…

That is the difference between this repo and ormos-be / cazper-be, which use mise-action — it installs the toolchain and caches nothing else, so a ~/.cache/go-build entry had to be added there by hand. Worth knowing as a fleet-level inconsistency: two toolchain-setup mechanisms with materially different caching behaviour.

This repo runs in well under two minutes, so there is no meaningful wall-clock win here — the change is for consistency with the rest of the fleet and faster feedback on red runs.

🤖 Generated with Claude Code

Neither reads the other's output: the build action cross-compiles and asks the
binary for its version, and the test action formats, vets and tests the source.
So the order decides one thing only -- which failure you hear about sooner --
and a vet or test failure is a more common way to break this than the
cross-compile is.

Nothing else changes here. setup-go already keeps a Go build cache and the run
log shows it restoring, which is why this repository needs none of the cache
work the mise-based ones did.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@nicodes
nicodes merged commit 75ff788 into main Aug 3, 2026
1 check passed
@nicodes
nicodes deleted the perf/ci-order branch August 3, 2026 05:48
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