Skip to content

Release v1.3.2: run the pre-push gates on a local checkout on a network share - #21

Merged
RobHofmann merged 4 commits into
mainfrom
20-gates-local-checkout
Nov 9, 2026
Merged

RobHofmann merged 4 commits into
mainfrom
20-gates-local-checkout

Conversation

@RobHofmann

Copy link
Copy Markdown
Owner

Refs #20

What changes

  • On a network share, the pre-push hook checks out the pushed commit into a detached git worktree in a private temp folder, and runs the blocking gates and the completeness report there. It removes the worktree after the run, also when a gate fails or the run is stopped.
  • It is used only when one commit is pushed. AISDLC_GATES_LOCAL_CHECKOUT=1 forces it, and =0 turns it off. Other repositories run the gates in place, as before.
  • On the share, the gates now check the pushed commit, not the working tree.
  • New tests:
    • the committed runner runs, not the working-tree copy;
    • the checkout is removed after a pass and after a failure;
    • a local repository still runs in place;
    • //host/share counts as a network path.
  • The hooks skill, the CHANGELOG (v1.3.2) and every package version are updated.

Measured

A push of about 930 files on a network share took 1,425 seconds in the gates. The new hook on the same repository took 15 seconds.

Checks

The pre-flight passes: gates, tests and the secret scan. One gitleaks baseline test failed once on a missing temp file. It passed 3 out of 3 times on its own, and this change does not touch it.

@RobHofmann
RobHofmann merged commit ef3b322 into main Nov 9, 2026
16 checks passed
@RobHofmann
RobHofmann deleted the 20-gates-local-checkout branch November 9, 2026 21:52
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