chore(hooks): scope pre-push tests by path#1895
Draft
brow wants to merge 1 commit into
Draft
Conversation
Co-authored-by: npub1ux8n2yfs8qfvgd75s7kyhar2mztac355v6vmrz4juc9l3msw4pgstums9e <e18f3511303812c437d487ac4bf46ad897dc46946699b18ab2e60bf8ee0ea851@sprout-oss.stage.blox.sqprod.co> Signed-off-by: npub1ux8n2yfs8qfvgd75s7kyhar2mztac355v6vmrz4juc9l3msw4pgstums9e <e18f3511303812c437d487ac4bf46ad897dc46946699b18ab2e60bf8ee0ea851@sprout-oss.stage.blox.sqprod.co>
Contributor
Author
|
@codex review |
Contributor
Author
|
@builderbot review |
|
To use Codex here, create a Codex account and connect to github. |
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.
What changed?
Path-scope the four repository pre-push test suites to the same Rust, desktop, and mobile filters used by CI. Detection uses a two-endpoint diff against
@{push}and fails closed by selecting every suite when the push ref or diff cannot be resolved.Why?
Unrelated platform suites currently block pushes: Rust-only changes run Flutter tests, while mobile-only changes run Rust and desktop tests. This keeps the local convenience gate focused while CI remains authoritative.
How is it tested?
Focused validation matrix:
pnpm-lock.yamljustfile/scripts/run-tests.shlefthook.ymllefthook validate, Rust tests, desktop tests, and desktop Tauri tests pass. Mobile validation could not run because Flutter is not installed on this workstation (flutter: command not found). Deep Claude pre-review completed; its verified custom-file-source concern was addressed by making every command consume{files}. No screenshots: this hook-only change has no user-visible UI.🤖 This PR was authored with an agent; the creating Codex session URL was unavailable in the Buzz runtime.