Repository navigation
xtask: add release-fast profile and allow dev --no-byte-compile - #867
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
[Medium impact] The PR appears safe to merge, with the previous non-blocking help correction still outstanding.
|
| (-17%) and batch/byte-compile (-17..-27%); | ||
| does not speed up interactive redisplay. | ||
| release-pgo-profiling Two-pass PGO build with function symbols | ||
| (strip=none, debug=false; |
There was a problem hiding this comment.
Help gives wrong debug setting
The new help says release-pgo-profiling uses debug=false, but a normal build selects CodegenContract::Diagnostic and sets CARGO_PROFILE_RELEASE_PGO_PROFILING_DEBUG=2. Developers choosing a build for measurements therefore get full debug info despite what the help says. Describe the setting the pipeline actually uses.
Prompt To Fix With AI
This is a comment left during a code review.
Path: crates/xtask/src/main.rs
Line: 4973
Comment:
**Help gives wrong debug setting**
The new help says `release-pgo-profiling` uses `debug=false`, but a normal build selects `CodegenContract::Diagnostic` and sets `CARGO_PROFILE_RELEASE_PGO_PROFILING_DEBUG=2`. Developers choosing a build for measurements therefore get full debug info despite what the help says. Describe the setting the pipeline actually uses.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.| // `.elc` files) for fast debug-assertion iteration. `debug` is not a | ||
| // valid Cargo profile name (Cargo's built-in profile is `dev`, which | ||
| // outputs to `target/debug`). | ||
| if matches!(profile, BuildProfile::Debug | BuildProfile::Test) { |
There was a problem hiding this comment.
CRITICAL: Use-after-move: matches!(profile, ...) moves profile, so later uses fail to compile
BuildProfile does not derive Copy (it has a Custom(String) variant), and matches! matches by value, so line 764 moves profile. The subsequent uses on lines 773 (profile.is_optimized()) and 792 (profile field initializer) are use-after-move (E0382); the crate will not compile.
Fix: match on a reference.
| if matches!(profile, BuildProfile::Debug | BuildProfile::Test) { | |
| if matches!(&profile, BuildProfile::Debug | BuildProfile::Test) { |
Code Review SummaryStatus: 1 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)CRITICAL
Files Reviewed (4 files)
Fix these issues in Kilo Cloud Note: The branch also contains 4 additional JIT/GC/Cranelift commits that are not part of PR #867 diff (gh pr diff 867) and therefore cannot receive inline comments on this PR. Sub-agent review found CRITICAL bugs in crates/neovm-value/src/logging.rs (empty-string RUST_LOG produces invalid EnvFilter spec; hyphenated crate names silently ignored) that should be addressed in a separate review/PR. Previous Review Summary (commit 7da1b43)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 7da1b43)Status: 1 Issues Found | Recommendation: Address before merge
Issue Details (click to expand)CRITICAL
Files Reviewed (4 files)
Fix these issues in Kilo Cloud Note: validation was performed by reading changed code only; Reviewed by free · Input: 187.5K · Output: 56.9K · Cached: 1.5M |
7da1b43 to
dc5956a
Compare
Summary
Improves developer iteration speed and
--profilediscoverability forcargo xtask fresh-build:[profile.release-fast]inCargo.toml(inherits = "release",lto = false,codegen-units = 16,incremental = true,debug = "line-tables-only"), outputting totarget/release-fastso day-to-day GUI/editor dev gets fast incremental relinks without paying fat LTO or disturbingtarget/release/target/debug.--profile devwhen--no-byte-compileis passed (outputs totarget/debug, reuses existing.elcfiles, keepsdebug_assertionsenabled while third-party deps remain atopt-level = 3).--profile devwithout--no-byte-compile,--profile debug, and--profile testremain rejected with actionable hints.--profile NAMEincargo xtask fresh-build --helpwith a single scannable list of built-in profiles (release,release-fast,profiling,release-pgo,release-pgo-profiling,dev) and accurate symbol wording (strip=none, debug=false).crates/xtask/src/tests/main_test.rscoveringrelease-fast,devwith/without--no-byte-compile, anddebugrejection.Context
Related discussion: #855 (comment) (cc @darkhandz).
Verification
cargo test -p xtask— 240 passed, 0 failed.cargo xtask fresh-build --help— verified formatted--profileoutput.