Skip to content

feat(rules): t3-setup makes the worktree build T3 Code starts run at low priority on half the cores - #51

Draft
PiquelChips wants to merge 1 commit into
feat/rule-recipes-onlyfrom
feat/rule-t3-setup
Draft

PiquelChips wants to merge 1 commit into
feat/rule-recipes-onlyfrom
feat/rule-t3-setup

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Stacked on #50; part of a stack adding the standard's rules over manifests, config files, workflows, recipes and docs. Rebased onto #13's head c4a57df.

What and why

V7: T3 Code often creates several worktrees at once, and a full-speed build in each saturates the machine.

  • A t3.json script with runOnWorktreeCreate that runs just <recipe> which runs Cargo (in its body, a dependency, or a recipe it calls with just) must, in its own body, default CARGO_BUILD_JOBS with ${CARGO_BUILD_JOBS:- and run the build with nice -n 10.
  • A setup that doesn't build passes.

Measured

piqueld sourceorigin DirkEngine
Violations 1 0 1

Measured read-only at origin/main: piqueld a17710f52, sourceorigin e99cc0e6b, DirkEngine 07e8ba44.

  • piqueld's setup-worktree runs just build.
  • DirkEngine runs just build directly.
  • sourceorigin's setup only runs pnpm install.

Same as the inventory.

Testing

  • New fixture test: a setup building through just build, one limited, one that doesn't build.
  • At this commit: Clippy with -D warnings, cargo nextest run --workspace and cargo xtask standard pass with a clean tree; just readme regenerated the rules list.
  • At the stack's tip: just check-changed origin/feat/readme-standard passes (fmt-check, audit, unused, standard, lint, doc, test, doc-test, package).

Checklist

  • The crate's README (its documentation on docs.rs) shows the change, and a repository's xtask can still follow it.
  • A change to the public API is noted for the next release, with what each repository's xtask must change. (A new rule: each repository fixes its violations (cargo xtask standard --fix where a fix exists) or adds a deviation with its reason.)
  • just check-changed passes.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

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