Skip to content

perf(dev): skip current setup during just dev - #189

Merged
johnmatthewtennant merged 3 commits into
mainfrom
jtennant/fast-just-dev
Sep 3, 2026
Merged

perf(dev): skip current setup during just dev#189
johnmatthewtennant merged 3 commits into
mainfrom
jtennant/fast-just-dev

Conversation

@johnmatthewtennant

@johnmatthewtennant johnmatthewtennant commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Summary

just dev currently reruns dependency installation, SDK compilation, hook setup, and managed Goose setup before every launch. It now verifies pnpm and SDK inputs with worktree-local success stamps, rebuilds only stale outputs, and delegates managed Goose freshness to its existing stamped ensure path. Dependency installs and SDK rebuilds invalidate their prior success stamps before work begins and publish replacements only after success, so interrupted repairs retry on the next launch. SDK freshness also requires every package-exported output. Explicit just setup continues to force the complete setup workflow.

Reviewer-reproducible examples

From a prepared checkout, force the setup path and then exercise the warm development path:

just _setup-dev-deps
just _ensure-dev-deps

The second command reports:

pnpm dependencies are current; skipping install.
@aaif/goose-sdk is current; skipping build.

Changing a workspace manifest, lockfile, SDK schema, generator, configuration, or source invalidates the corresponding output on the next run. A failed dependency install, missing package-exported SDK output, or failed SDK rebuild also leaves that prerequisite stale for automatic repair.

@johnmatthewtennant
johnmatthewtennant marked this pull request as ready for review September 3, 2026 19:25
@johnmatthewtennant
johnmatthewtennant requested a review from a team September 3, 2026 19:25

@morgmart morgmart left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Automated code review

REQUEST_CHANGES. The incremental dependency guard can accept a partial or failed SDK build as current, so the automatic repair path is not reliable. The supplied GitHub evidence is structurally valid and all nine check runs for the exact head SHA completed successfully; required checks still govern merge readiness.

Deterministic publication result: 1 blocking and 0 non-blocking inline finding(s) publishable; 0 duplicate(s) suppressed; 0 blocking screenshot-evidence requirement(s) in this review body.

Comment thread scripts/ensure-dev-deps.sh Outdated
Signed-off-by: John Tennant <jtennant@block.xyz>
@johnmatthewtennant
johnmatthewtennant requested a review from a team September 3, 2026 20:50

@morgmart morgmart left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Automated code review

REQUEST_CHANGES. The prior SDK freshness issue is fixed with success-stamp invalidation, complete package-export checks, and discriminating regressions. One analogous dependency-repair path still retains an old success stamp across a failed install, allowing a later launch to skip the needed retry. All 10 supplied GitHub check runs for the exact head SHA completed successfully; the combined commit status is pending with no status contexts, so required checks still independently govern merge readiness.

Deterministic publication result: 1 blocking and 0 non-blocking inline finding(s) publishable; 0 duplicate(s) suppressed; 0 blocking screenshot-evidence requirement(s) in this review body.

Comment thread scripts/ensure-dev-deps.sh
Signed-off-by: John Tennant <jtennant@block.xyz>
@johnmatthewtennant
johnmatthewtennant requested a review from a team September 3, 2026 21:26

@morgmart morgmart left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Automated code review

APPROVE. The full exact PR comparison now invalidates dependency and SDK success stamps before repair, restores them only after successful completion, verifies all package-exported SDK outputs, and includes discriminating regressions for both interrupted repair paths. Both prior automated findings are fixed, so they are not findings or duplicate suppressions. All 10 supplied GitHub check runs for the exact head SHA completed successfully; the combined commit status is pending with no status contexts, so required checks still independently govern merge readiness.

Deterministic publication result: 0 blocking and 0 non-blocking inline finding(s) publishable; 0 duplicate(s) suppressed; 0 blocking screenshot-evidence requirement(s) in this review body.

Pending checks: 1 check(s) are not complete.

This approval reflects the completed code review only; merge readiness remains governed by the repository's required checks.

@johnmatthewtennant
johnmatthewtennant merged commit 183542e into main Sep 3, 2026
10 checks passed
@johnmatthewtennant
johnmatthewtennant deleted the jtennant/fast-just-dev branch September 3, 2026 21:50
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.

2 participants