Repository navigation
Disable incremental compilation and dev debug data - #791
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
Summary
Validation
WalkthroughSet Cargo development builds to disable incremental compilation and debug information, and enable the unstable ChangesCargo development builds
Possibly related issues
Suggested labels: Priority: ⬇️ Low Change: Other Merge Risk: ⚪ Minimal · up to
|
Reviewer's guide (collapsed on small PRs)Reviewer's GuideApplies the rust-dev-build-footprint rule to wireframe by disabling dev incremental compilation, debug data, and embedded Cargo metadata on the existing pinned nightly, reducing measured fresh-build usage by roughly 49% while passing local and CI validation. Flow diagram for reduced Rust development build footprintflowchart LR
Source[Source code] --> Cargo[Cargo dev build]
Cargo --> Profile[Dev profile\nincremental=false\ndebug=0]
Cargo --> Metadata[Embedded metadata=false]
Profile --> Target[Fresh target directory]
Metadata --> Target
Target --> Size[Build footprint\n479M to 246M]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins. |
Set incremental = false and debug = 0 in the default dev profile and set Cargo's embed-metadata = false for the pinned nightly-2026-10-22, per the concordat rust-dev-build-footprint rule. This reduces intermediate build artefact storage.
2feefd5 to
3ae0d52
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3ae0d5256c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@coderabbitai Your latest pre-merge table (reviewed at 2feefd5, before this PR was rebased onto the new pin) shows ❌ rows for Testing (Overall) and Testing (Unit And Behavioural), and a Developer Documentation warning. At head ee1d6c6: |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
git rev-parse HEAD
fd -a '^(build_standard_test\.py|developers-guide\.md|Cargo\.toml|config\.toml|AGENTS\.md)$' . | head -60
ast-grep outline tests/workflow_contracts/build_standard_test.py --items all
rg -n -C5 'incremental|embed.metadata|debug =|footprint|trade.off' docs/developers-guide.md Cargo.toml .cargo/config.toml tests/workflow_contracts/build_standard_test.py
gh pr view 791 --repo leynos/wireframe --json headRefOid,state,statusCheckRollup,reviews
gh api graphql -f query='query {
repository(owner:"leynos", name:"wireframe") {
pullRequest(number:791) {
comments(last:30) { nodes { author { login } body url } }
reviewThreads(first:100) {
pageInfo { hasNextPage endCursor }
nodes { isResolved isOutdated path comments(first:30) { nodes { author { login } body url } pageInfo { hasNextPage } } }
}
}
}
}'Length of output: 51087 🏁 Script executed: #!/bin/bash
set -euo pipefail
cat -n AGENTS.md
sed -n '75,100p;218,246p' tests/workflow_contracts/build_standard_test.py
sed -n '970,991p' docs/developers-guide.md
rg -n -C4 'test-workflow-contracts|workflow_contracts' Makefile .github
fd -H '^rust-toolchain(\.toml)?$' . --exec cat -n {}
gh api repos/leynos/wireframe/actions/jobs/120198160278 --jq '{conclusion,steps: [.steps[] | {name,conclusion}]}'Length of output: 32179
No review findings remain open. GitHub reports both review threads as resolved. The head’s CI build, lint, workflow contract tests, and security checks passed. Separate that assessment from the recorded review state: CodeRabbit’s You are interacting with an AI system. |
Part of DF12-110
Applies the concordat
rust-dev-build-footprintrule (0.2.1) to wireframe, the pilot of the footprint rollout, on the new pin nightly-2026-10-22 (#794).Cargo.toml: add[profile.dev]withincremental = falseanddebug = 0..cargo/config.toml: add[unstable] embed-metadata = false, the native Cargo key for dated nightlies from 2026-07-31. No raw rustc metadata flags are used. The pin is unchanged.tests/workflow_contracts/build_standard_test.pyanddocs/developers-guide.md: contract tests for the three settings, and a paragraph on the footprint rule, its debugging and rebuild trade-offs and the local overrides.Rule result (concordat at 0f0b419,
concordat artefact rule run rust-dev-build-footprint):Footprint evidence, one dev
cargo buildinto a fresh target directory each, run sequentially on nightly-2026-10-22:du -sh target479MLocal gates (through the gate slot, sequential):
make check-fmt,make lintandmake testall pass.First main push after #794 (Coverage (main), Push on main, CI): all succeeded on ubicloud runners with no out-of-disk failure. The wireframe workflows have no free-disk telemetry, so no least-free-disk figure exists. This change invalidates the sccache keys again.
Overlapping open PRs: none touch
Cargo.tomlor.cargo/config.toml; #650 touches onlytools/dev-fast/config.toml.