Repository navigation
build(make): local-profile targets; a steady search row; a panic report proven end to end - #1323
Merged
Merged
Conversation
[profile.local] (added in 464b75b) keeps release optimisation but drops ThinLTO and reuses the incremental cache. It had no make wrapper, so using it meant remembering the exact cargo invocation and package name. Add two targets that are pure additions; no existing target changes: build-cli-local: cargo build --profile local -p future-cli build-desktop-local: cargo build --profile local -p futureos They exist for local verification only and deliberately stay out of `install*` and `package-desktop`: what ships must keep coming from the unchanged `release` profile. They also do not wrap the frontend build or the Tauri bundling `build-desktop` does — they produce the Rust binaries under target/local/ only. Measured in a fresh worktree (cold target directory, sccache warm): build-cli-local 244 s cold, 4.5 s after a one-line edit; build-desktop-local 4 m 42 s cold, 20.6 s after a one-line edit. `cargo build --release` on the same one-line edit takes ~137 s for the CLI, almost all of it ThinLTO.
huichen
enabled auto-merge (squash)
October 23, 2026 14:20
The closed magnifier was 28px and the field that replaced it 32px, so clicking it grew the row 4px: the list below jumped and the compact device picker beside it re-centred 2px down. The field now takes the glyph's height, which is also the switch band's and the picker's.
…show The crash-log unit tests render and append by hand, so a hook that is never installed — or installed before the home can be resolved — still looked covered. The new case runs this same test binary as a child with its own `FUTURE_HOME`, panics in it, and asserts the file exists with `file:line`, the payload, the startup step and exit code 101 — the code Windows reports as no crash at all, and the reason the file has to be there. Also fixes `the_crash_log_is_a_sibling_of_the_host_log`, which read the process-global home twice: a sibling fixture publishing its own `HOME` between the reads made it fail in the full suite while passing alone. It now holds `HomeGuard`'s lock, the same way the other home-comparing fixtures do.
A launch that panics leaves `<root>/app/logs/crash.log`; the troubleshooting section named only `desktop.log` and `desktop.prev.log`, so the file a reader needs after "it never came up" was undocumented.
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.
Three threads from
dev-huichen: the LTO-freelocalprofile gains make targets, the rail's search field stops resizing its row on click, and the crash log added in #1322 is now documented and proven end to end.Local-profile make targets
make installalready buildsfutureandfutureosin one Cargo invocation, so they share a dependency graph and one feature unification — but it runs thereleaseprofile, whoselto = "thin"makes every edit recompile the graph under LTO.build-localgives the same package selection on the LTO-freelocalprofile (cargo build --profile local -p future-cli -p futureos --bin future --bin futureos), which keeps shared crates compiled once exactly asbuild-desktop.mjsdoes.build-cli-localandbuild-desktop-localcover the single-binary cases. All three writetarget/local/only.Search row height
The closed magnifier was 28px and the field replacing it
h-8, so opening search grew the row by 4px: the list below jumped and the compact device picker beside it re-centred 2px down. The field now takes the glyph's height, which is also the switch band's and the picker's.Crash log, documented and proven
docs/guidenow namesapp/logs/crash.logbeside the host log, since a launch that panics leaves it and the troubleshooting section did not mention it. The new host test runs the test binary as a child with its ownFUTURE_HOME, panics in it, and asserts the file holdsfile:line, the payload, the startup step and exit code 101 — the code Windows reports as no crash at all. It also fixesthe_crash_log_is_a_sibling_of_the_host_log, which read the process-global home twice and could fail in the full suite when a sibling fixture published its ownHOMEbetween the reads; it now holdsHomeGuard's lock like the other home-comparing fixtures.Commits
build(make): add local-profile wrappers for the CLI and desktop binaries (d80ef42b4)fix(desktop): keep the rail's search row height when the field opens (582ab2392)test(host): prove a panicking process writes the report it could not show (a1e1b6352)docs(guide): name the crash log beside the host log (41a185bfd)build(make): addbuild-localfor both binaries from one Cargo invocation (99552de61)Verification
Local, at dev tip
2d8b757b0(rustc 1.97.0, desktop toolchain):cargo fmt --all -- --check— cleancargo test -p future-host --lib -- crash_log— 10 passed, 0 failed, includinga_panicking_process_writes_the_report_it_could_not_shownpx tsc --noEmit(desktop) — cleannpx vitest run src/components/layout/ActivityRail.toolbar.test.tsx— 12 passedmake -n build-local→cargo build --profile local -p future-cli -p futureos --bin future --bin futureos;build-cli-localandbuild-desktop-localresolve to their single-package invocationsCI: the head
d80ef42b4run went green with the heavy jobs path-filtered to skipping (that head touched only theMakefile); the current head's run was still in progress at write time.Notes
target/local/and stay out ofinstall*andpackage-desktop, so what ships keeps coming from the unchangedreleaseprofile.crash.logis appended per panic;desktop.prev.logstill holds the previous run's host log.