Skip to content

build(make): local-profile targets; a steady search row; a panic report proven end to end - #1323

Merged
huichen merged 6 commits into
mainfrom
pr/dev-huichen
Oct 23, 2026
Merged

huichen merged 6 commits into
mainfrom
pr/dev-huichen

Conversation

@huichen

@huichen huichen commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Three threads from dev-huichen: the LTO-free local profile 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 install already builds future and futureos in one Cargo invocation, so they share a dependency graph and one feature unification — but it runs the release profile, whose lto = "thin" makes every edit recompile the graph under LTO. build-local gives the same package selection on the LTO-free local profile (cargo build --profile local -p future-cli -p futureos --bin future --bin futureos), which keeps shared crates compiled once exactly as build-desktop.mjs does. build-cli-local and build-desktop-local cover the single-binary cases. All three write target/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/guide now names app/logs/crash.log beside 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 own FUTURE_HOME, panics in it, and asserts the file holds file:line, the payload, the startup step and exit code 101 — the code Windows reports as no crash at all. It also fixes the_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 own HOME between the reads; it now holds HomeGuard'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): add build-local for both binaries from one Cargo invocation (99552de61)

Verification

Local, at dev tip 2d8b757b0 (rustc 1.97.0, desktop toolchain):

  • cargo fmt --all -- --check — clean
  • cargo test -p future-host --lib -- crash_log — 10 passed, 0 failed, including a_panicking_process_writes_the_report_it_could_not_show
  • npx tsc --noEmit (desktop) — clean
  • npx vitest run src/components/layout/ActivityRail.toolbar.test.tsx — 12 passed
  • make -n build-local → cargo build --profile local -p future-cli -p futureos --bin future --bin futureos; build-cli-local and build-desktop-local resolve to their single-package invocations

CI: the head d80ef42b4 run went green with the heavy jobs path-filtered to skipping (that head touched only the Makefile); the current head's run was still in progress at write time.

Notes

  • The new targets write target/local/ and stay out of install* and package-desktop, so what ships keeps coming from the unchanged release profile.
  • crash.log is appended per panic; desktop.prev.log still holds the previous run's host log.

[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
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.
@huichen huichen changed the title build(make): add local-profile wrappers for the CLI and desktop binaries batch(dev): local-profile wrappers, a steady search row, and a panic-report end-to-end test Oct 23, 2026
@huichen huichen changed the title batch(dev): local-profile wrappers, a steady search row, and a panic-report end-to-end test build(make): local-profile targets; a steady search row; a panic report proven end to end Oct 23, 2026
@huichen
huichen merged commit 06555c1 into main Oct 23, 2026
21 checks passed
@huichen
huichen deleted the pr/dev-huichen branch October 23, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant