feat(_checks-rs): default dev-profile debuginfo to line-tables-only#112
Merged
Conversation
Full debuginfo dominates cargo target size (~58 of 61 GB on the kunobi-frontend workspace) and is the main driver of the runner-pool ephemeral-storage evictions on builder1. line-tables-only keeps file:line backtraces at a fraction of the disk, and shrinks the kache store and S3 transfer along with target/. Applied to clippy/test/integration-build/build steps via a new rust_debuginfo input (default line-tables-only, 'full' restores the cargo default). The coverage step is exempt: tarpaulin manages its own debuginfo flags.
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.
Why
CI jobs on builder1 are being killed by kubelet ephemeral-storage evictions (
runner has received a shutdown signal, ~11 kills across 5 PRs on 07-15→17). Root cause analysis showed a singlers-checksjob writes ~100+ GB of pod scratch, and full debuginfo is the dominant term: on the kunobi-frontend workspace, 58 of 61 GB oftarget/is debug artifacts.What
rust_debuginfoinput (defaultline-tables-only) applied asCARGO_PROFILE_DEV_DEBUGon the clippy / test / integration-build / build steps, mirroring the existingCARGO_INCREMENTALpattern.line-tables-onlykeeps file:line in panics/backtraces at a fraction of the disk;fullrestores cargo's default per repo if ever needed.Side benefits: the kache store (populated by byte-copy on ext4 runners) and S3 cache transfer shrink proportionally.
Note: consumer repos pin
@v8— the floating tag needs to move after merge. First builds after rollout are cold (cache keys change with the compiler flags).Verification
yaml.safe_loadpasses.CARGO_INCREMENTALpattern.