Contribute compile times to cratebank - #46
Merged
Merged
Conversation
The build this job already runs, measured, plus the opt-in that lets this repository's crate names appear in the census rather than a count. They are already public here. It goes before the existing cargo steps and builds what they would have built, so the added cost is mostly the measuring rather than a second build. `strict` is on, because this is the build now: a measurement that quietly did not happen would mean nothing built the project either. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01361quprG7tUgaVFKAmKtJZ
zmaril
force-pushed
the
cratebank-census
branch
from
August 25, 2026 20:36
f2e8231 to
df417f8
Compare
This job checks out into a subdirectory and sets a `working-directory`
default for it. A composite action's steps do not inherit that default,
so the action looked for a Cargo.toml at the workspace root:
error: could not find `Cargo.toml` in /home/runner/work/infact/infact
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01361quprG7tUgaVFKAmKtJZ
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.
Adds this repository to the public compile-time census at https://cratebank.io/, on every CI run rather than on a schedule.
The step goes into the existing
gatejob, before thecargosteps, and builds what they would have built anyway — so the added cost is mostly the measuring rather than a second build, since the steps below reuse the target directory.The opt-in
Without it the census records the build and withholds this repository's own crate names. They are already public here. Measured on
entl: 243 units with 7 withheld → 250 with 0, and the repository URL recorded.strict: trueThis is the build now. A measurement that quietly did not happen would mean nothing built the project either, and a green check would be saying so about work that never ran. Elsewhere
strictdefaults to false, because a census that breaks builds is a census people switch off; here the build is the thing being measured, so silence is the worse failure.Cost
Two fixes landed in cratebank first, because doing this on every CI run rather than weekly changes what the overhead is worth:
The action step measured 244s before those and 127s after the first.
Untested here
This has never run in this repository. The first CI run on this pull request is the real test.
🤖 Generated with Claude Code
https://claude.ai/code/session_01361quprG7tUgaVFKAmKtJZ