From 81567b76a5d164b052c4e8526f453cf7a6ef43dc Mon Sep 17 00:00:00 2001 From: Will Pfleger Date: Wed, 19 Aug 2026 16:10:03 -0400 Subject: [PATCH] chore: serialize mobile pre-push checks (#6322) Serialize the mobile pre-push analysis and test commands into one lane, mirroring the existing `desktop-tauri-checks` pattern. The shared Flutter state under `mobile/` (`.dart_tool`, shader bundle, and `pubspec.lock`) must not be driven by parallel hook processes. The existing `mobile/**` path filter is unchanged; `mobile-check` now runs before `mobile-test` in the same lane. - Replace the parallel `mobile-check` and `mobile-test` commands with `mobile-checks`. - Keep the commands serial with `just mobile-check && just mobile-test`. Signed-off-by: Will Pfleger Co-authored-by: Alia --- lefthook.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lefthook.yml b/lefthook.yml index b2b9f18894..03bbb66837 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -81,9 +81,8 @@ pre-push: # serially so parallel pre-push hooks do not contend for Cargo's lock. glob: ["desktop/src-tauri/**", "crates/**", "migrations/**", "schema/**", "Cargo.toml", "Cargo.lock", "rust-toolchain.toml", "deny.toml", "scripts/run-tests.sh", "Justfile"] run: just desktop-tauri-clippy && just desktop-tauri-test - mobile-check: + mobile-checks: + # Run analysis and tests serially so parallel pre-push hooks do not + # contend for shared Flutter state (.dart_tool, shader bundle). glob: ["mobile/**"] - run: just mobile-check - mobile-test: - glob: ["mobile/**"] - run: just mobile-test + run: just mobile-check && just mobile-test