Skip to content

fix(ci): restore main to green — tauri fmt, personas.rs file-size split, Windows path test#1399

Merged
wesbillman merged 2 commits into
mainfrom
brain/harden-ci-e2e
Jun 30, 2026
Merged

fix(ci): restore main to green — tauri fmt, personas.rs file-size split, Windows path test#1399
wesbillman merged 2 commits into
mainfrom
brain/harden-ci-e2e

Conversation

@wesbillman

@wesbillman wesbillman commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Restores main to green after #1392's merge landed three CI breakages that
the pre-merge checks didn't catch. All three are fixed here.

1. Desktop Tauri format check (Rust Lint)

desktop/src-tauri/src/commands/personas.rs was never rustfmt'd against the
tauri crate. CI Rust Lint runs two independent rustfmt passes — root
just fmt-check and just desktop-tauri-fmt-check (the src-tauri crate
is its own manifest the root --all doesn't cover); the second pass failed.
Fix: cargo fmt on the crate. Pure formatting — token-level comparison shows
zero identifier/logic/string changes.

2. Desktop file-size guard (Desktop Core)

personas.rs was 2018 lines, over its 1279 carve-out in
desktop/scripts/check-file-sizes.mjs. Rather than bump the limit, split the
file
and remove the carve-out entirely:

  • commands/personas/writeback.rsfind_team_for_persona_source,
    write_back_persona_md, rewrite_persona_md + their tests
  • commands/personas/inbound_tests.rs — inbound-reconcile tests
  • commands/personas/mod.rs — the rest

Pure relocation: all 8 #[tauri::command] fns and the update_persona call
site are unchanged. The only visibility change is write_back_persona_md
pub(super) so the parent module can still call it across the new boundary.

3. Windows Rust test failure

test_writeback_uses_manifest_path_not_convention asserted
source_path.to_string_lossy().contains("personas/..."), which fails on
Windows' \ separator. Fixed to assert on path components (file_name /
parent().file_name()). Test-only — the production write-back path uses
source_path as a PathBuf and was already cross-platform.

Verification

  • Both rustfmt passes green; cargo check clean (no warnings).
  • 74/74 persona unit tests pass, including the Windows-path test.
  • pnpm check:file-sizes exit 0 with the carve-out removed.

wesbillman and others added 2 commits June 30, 2026 09:52
Apply `cargo fmt` to the desktop/src-tauri crate to clear the failing
"Desktop Tauri format check" CI step on main. Pure formatting (rustfmt
line-wrapping); no logic changes.

Co-authored-by: Brain <21994759fc7a6fa6b965551d35cfd7897d262f2495467f2d78694ddcfa6a5c7e@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: Wes <wesbillman@users.noreply.github.com>
personas.rs (2018 lines) was over the desktop file-size cap (carve-out
of 1279). Split the write-back code (find_team_for_persona_source,
write_back_persona_md, rewrite_persona_md + its tests) into
commands/personas/writeback.rs and the inbound-reconcile tests into
commands/personas/inbound_tests.rs. Pure relocation: the public command
surface is identical (all 8 #[tauri::command] fns unchanged, update_persona
call site unchanged); write_back_persona_md is now pub(super) so the parent
module can call it. Removes the personas.rs size carve-out — no file needs it.

Also fix the Windows-only failure in test_writeback_uses_manifest_path_not_convention:
assert on path components (file_name / parent file_name) instead of a
string .contains("personas/..."), which fails on Windows' `\` separator.
Test-only; the production write-back path uses source_path as a PathBuf and
is already cross-platform.

Co-authored-by: Brain <21994759fc7a6fa6b965551d35cfd7897d262f2495467f2d78694ddcfa6a5c7e@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: Wes <wesbillman@users.noreply.github.com>
@wesbillman wesbillman changed the title style(desktop): rustfmt desktop-tauri personas.rs to fix CI fmt check fix(ci): restore main to green — tauri fmt, personas.rs file-size split, Windows path test Jun 30, 2026
@wesbillman wesbillman merged commit 67c47de into main Jun 30, 2026
25 checks passed
@wesbillman wesbillman deleted the brain/harden-ci-e2e branch June 30, 2026 16:47
wesbillman added a commit that referenced this pull request Jun 30, 2026
Pick up CI flakiness fixes (#1396, #1399) so the branch runs against green main.

Co-authored-by: Brain <21994759fc7a6fa6b965551d35cfd7897d262f2495467f2d78694ddcfa6a5c7e@sprout-oss.stage.blox.sqprod.co>
wpfleger96 pushed a commit that referenced this pull request Jun 30, 2026
…work

* origin/main: (25 commits)
  fix(thread): stop mid-scroll content jump in live threads (#1397)
  fix(ci): restore main to green — tauri fmt, personas.rs file-size split, Windows path test (#1399)
  fix(desktop): enable buzz-dev-mcp MCP server for Codex agents (#1394)
  fix(ci): restore E2E flakiness fixes for pgschema, docker-pull, and spec timing (#1396)
  fix(personas): persist pack-backed persona UI edits across reboot (#1392)
  fix(buzz-acp): clear steer_rx on all run_prompt_task exit paths (#1391)
  Restore channel date divider rule (#1395)
  Speed up profile wave action (#1379)
  Restore visible links for rich previews (#1378)
  Mobile channel list polish (#1367)
  style(desktop): unify corner radii to rounded-2xl (16px) (#1393)
  fix(desktop): skip keychain write when blob contents are unchanged (#1377)
  fix(desktop): stop clipping the agent-activity row under the composer (#1371)
  Constrain macOS overscroll to conversations (#1317)
  Mobile appearance foundation (#1366)
  chore(release): release Buzz Desktop version 0.3.38 (#1375)
  feat(desktop): provider-agnostic model selection + databricks discovery (#1307)
  release(helm): buzz chart 0.1.1 (#1374)
  Harden relay attack surfaces (#1369)
  ci(helm): publish chart to GHCR on chart-v* tags (#1372)
  ...
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