Skip to content

ci: run the self-hosted Linux tests only for this repository's code; build releases without caches - #108

Merged
kylecarbs merged 1 commit into
mainfrom
ci-trusted-self-hosted-runner
Nov 18, 2026
Merged

kylecarbs merged 1 commit into
mainfrom
ci-trusted-self-hosted-runner

Conversation

@kylecarbs

Copy link
Copy Markdown
Member

ci-1, the self-hosted runner for the Linux tests, is a persistent VM. Jobs share the host, the cargo home (/home/ci/.cargo) and passwordless sudo, so anything a job leaves behind is there for the next job, including the test run that release.yml makes before it publishes.

Changes

  • tests.yml: Linux Tests runs only for pushes, releases, dispatches, and pull requests from branches in this repository. Pull requests from forks skip it. To run the Linux tests for a fork PR, push its branch here. The macOS, clippy, fmt and udeps jobs (hosted runners) still run for every PR.
  • release.yml: build-binaries and release no longer restore rust-cache entries, so release binaries and the crates.io package are built from a clean state. Their actions are now pinned to commit SHAs (same major versions as before).

I kept the Linux tests on ci-1 rather than moving them to a hosted runner, because they need full network namespace and nftables support (82509cd).

Linux Tests is a required check. A skipped job counts as passing, so a fork PR can merge without the Linux tests. Reviewers should push the branch here when a fork PR touches Linux code.

Outside this PR

  • ci-1: fork pull requests could run code on it as root until now. Rebuild it from a clean image and re-register the runner, rather than keep the current host. Until then, consider taking the runner offline.
  • CARGO_REGISTRY_TOKEN: rotate it. Better, move cargo publish to crates.io trusted publishing and delete the token.

🤖 Generated with Claude Code

…build releases without caches

ci-1 is a persistent VM: jobs share the host, the cargo home and passwordless sudo. Pull requests
from forks now skip the self-hosted Linux test job, so only code from this repository runs there.

The build-binaries and release jobs no longer restore rust-cache entries, so a release is built
from a clean state and never from anything another run saved. Their actions are pinned to commit
SHAs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kylecarbs
kylecarbs merged commit b53beb4 into main Nov 18, 2026
8 of 9 checks passed
@kylecarbs
kylecarbs deleted the ci-trusted-self-hosted-runner branch November 18, 2026 21:43
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.

2 participants