Repository navigation
ci: run the self-hosted Linux tests only for this repository's code; build releases without caches - #108
Merged
Conversation
…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>
sreya
approved these changes
Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 thatrelease.ymlmakes before it publishes.Changes
tests.yml:Linux Testsruns 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-binariesandreleaseno longer restorerust-cacheentries, 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-1rather than moving them to a hosted runner, because they need full network namespace and nftables support (82509cd).Linux Testsis 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, movecargo publishto crates.io trusted publishing and delete the token.🤖 Generated with Claude Code