Skip to content

fix(cache): drop target/ outputs from test target (0.1.2)#8

Merged
joshuaboys merged 1 commit into
mainfrom
chore/0.1.2-and-reconcile
May 12, 2026
Merged

fix(cache): drop target/ outputs from test target (0.1.2)#8
joshuaboys merged 1 commit into
mainfrom
chore/0.1.2-and-reconcile

Conversation

@joshuaboys
Copy link
Copy Markdown
Contributor

Summary

  • testTargetConfig now declares outputs: [] instead of caching the workspace target/ directory. cargo test reuses the target/ populated by build, so per-crate test targets do not own that output; snapshotting the full dir into .nx/cache for every test target dominates wall-clock with disk I/O on real workspaces. Test results remain cacheable by exit code.
  • Bumps @eddacraft/nxrust to 0.1.2. CHANGELOG entry added.
  • Fix ported from eddacraft/anvil.
  • APS closure: R3 (CI smoke validated by the 0.1.1 prepublish gate), R5 (consumer switched onto the published package), module 01-v0.1-shakedown Complete, index Status Complete, target/ caching risk row marked resolved for test.

Replaces #7 (which targeted dev).

Test plan

  • pnpm typecheck clean
  • pnpm test — 47/47 pass
  • pnpm e2enx run smoke:check green against the bumped 0.1.2 tarball
  • pnpm release:dry-run packs @eddacraft/nxrust-0.1.2.tgz with the expected file set (dist/**, executors.json, generators.json, LICENSE, README.md, CHANGELOG.md)
  • CI green on this PR
  • On merge: pnpm publish --access public from main (prepublishOnly re-runs build + test + e2e)

cargo test reuses the workspace target/ dir that build already
populates, so per-crate test targets do not own that output.
Snapshotting the full dir into .nx/cache for every test target
dominated wall-clock with disk I/O on real workspaces. Test
results remain cacheable by exit code. Fix ported from
eddacraft/anvil.

Also closes the v0.1 shakedown module: R3 (CI smoke validated by
the 0.1.1 prepublish gate), R5 (consumer switched onto the
published package), module status Complete, and the `target/`
caching risk row marked resolved for `test`.
@joshuaboys joshuaboys merged commit a15875e into main May 12, 2026
1 check 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