Skip to content

build(hooks): pre-push runs format, lint and affected typecheck, never tests - #96

Merged
systemfsoftware-bot merged 1 commit into
mainfrom
build/warm-worktree-caches
Nov 13, 2026
Merged

systemfsoftware-bot merged 1 commit into
mainfrom
build/warm-worktree-caches

Conversation

@systemfsoftware-bot

Copy link
Copy Markdown
Contributor

What

  • .husky/pre-push runs format:check, lint, and turbo run typecheck lint --affected on every branch, base = merge-base with origin/main. The main-behind check is kept for main. No test task runs from the hook.
  • .worktreeinclude is unchanged: the measured cold cost is small (below), so no cache copy is added.
  • A short note in docs/solutions/tooling-decisions/.
  • No sandbox is involved in this repo, so no network egress was widened.

Measurements (@systemfsoftware/arethetypeswrong, one-file edit, turbo run typecheck)

Case Setup Turbo time Peak memory
Cold (fresh worktree, no tsbuildinfo) first run 8.3 s (1 of 3 cached) 919 MB
Cold repeat fresh worktree, no cache copied 5.5 s (1 of 3 cached) 950 MB
Warm, full node_modules copied from seed (719 MB) copy 6.1 s, install, then edit 3.5 s (1 of 3 cached) 907 MB
Warm, only node_modules/.cache copied (1 MB) copy 7 ms, install, then edit 3.6 s and 3.8 s (1 of 3 cached) 944 MB

The cold repeat and warm numbers are from separate worktrees. Warm runs did not show a reliable gain from copying the cache, so .worktreeinclude stays as it was. Disk used after install is about 806 MB per worktree in every case.

Hook result

git push through .husky/pre-push: 7 turbo tasks passed (lint and typecheck for the affected packages), no test task ran, push succeeded.

@systemfsoftware-bot
systemfsoftware-bot merged commit 0f3330c into main Nov 13, 2026
3 of 5 checks passed
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