Skip to content

Run Tauri clippy in pre-push - #3555

Merged
wesbillman merged 1 commit into
mainfrom
carl/add-tauri-clippy-pre-push
Jul 29, 2026
Merged

Run Tauri clippy in pre-push#3555
wesbillman merged 1 commit into
mainfrom
carl/add-tauri-clippy-pre-push

Conversation

@wesbillman

Copy link
Copy Markdown
Collaborator

Summary

  • run Desktop Tauri clippy from pre-push for every path that can affect the Tauri crate
  • reuse just desktop-tauri-clippy, keeping the local command identical to Desktop Core CI
  • leave the existing Tauri test hook unchanged

Why

PR #3553 exposed a hook gap: cargo test allowed an unused-import warning that CI's clippy -D warnings correctly rejected. Running the same recipe before push catches that class of failure locally without duplicating CI flags in Lefthook.

Validation

  • lefthook run pre-push --command desktop-tauri-clippy --force
  • confirmed it invokes cargo clippy --manifest-path desktop/src-tauri/Cargo.toml --all-targets -- -D warnings
  • command passed

Reuse the CI-equivalent just recipe for all paths that can affect the
Tauri crate so warnings rejected by CI are caught before push.

Co-authored-by: Carl <c7ebe626f000404285d3686e1dc74cc07cc60a9754a150041ba132e14bd3e2ec@buzz.block.builderlab.xyz>
Signed-off-by: Wes <wesbillman@users.noreply.github.com>
@wesbillman
wesbillman requested a review from a team as a code owner July 29, 2026 14:59
@wesbillman
wesbillman merged commit 51bb97d into main Jul 29, 2026
25 checks passed
@wesbillman
wesbillman deleted the carl/add-tauri-clippy-pre-push branch July 29, 2026 15:20
wesbillman added a commit that referenced this pull request Jul 29, 2026
## Summary

- combine Desktop Tauri clippy and tests into one pre-push command
- run clippy first, then tests
- keep unrelated pre-push commands parallel

## Why

PR #3555 added clippy as a separate command while the pre-push group
uses `parallel: true`. That can start clippy and tests simultaneously
against the same Cargo target directory, leaving one command waiting on
Cargo's build lock and making pushes appear stalled.

Serializing only these two Cargo-heavy checks avoids lock contention
while retaining the CI-equivalent clippy command and existing test
coverage.

## Validation

- `lefthook validate`
- forced `desktop-tauri-checks` through Lefthook with an instrumented
`just`; observed `desktop-tauri-clippy` followed by `desktop-tauri-test`

Signed-off-by: Wes <wesbillman@users.noreply.github.com>
Co-authored-by: Carl <c7ebe626f000404285d3686e1dc74cc07cc60a9754a150041ba132e14bd3e2ec@buzz.block.builderlab.xyz>
joahg added a commit to joahg/buzz that referenced this pull request Jul 29, 2026
…-style

* origin/main:
  chore(release): release Buzz Desktop version 0.5.1 (block#3566)
  Run Tauri clippy in pre-push (block#3555)
  perf(desktop): move observer-feed archive and decrypt commands off main thread (block#3415)
  fix(desktop): preserve shared agent fidelity (block#3553)
  Polish mobile navigation and menus (block#3486)
  feat(agent): route Claude/GPT model families to their native gateway wire (block#3538)
  Refine community invite limits (block#3529)
  Polish mobile typing indicator (block#3528)

Signed-off-by: Joah Gerstenberg <joah@squareup.com>
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