You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2d81f58
Browse filesBrowse the repository at this point in the historyBrowse files
test(plugin-dev): take the real module resolution out of the tenancy-posture clocked window
`dev-plugin-tenancy-posture.test.ts` left `@objectstack/organizations`
unmocked so the real resolution failure would be the signal for branch
entry. Five of its six cases therefore performed a real, uncached
`node_modules` walk inside the per-test clocked window, which is the only
thing in that window whose cost is a function of concurrent machine load.
Under a parallel shard one case exceeded the 5000ms budget.
Measured, since the first reading was wrong: the failing resolution is not
cached (200 consecutive attempts, p50 1.157ms, none free) and is not served
by the vitest main process (with that process blocked by ~45s of transforms
the cases still ran in 2-12ms), so it is the worker's own resolver; under
filesystem contention the same 200 attempts keep p50 at 0.839ms but take
max from 8.0ms to 28.2ms.
The package now gets the same throwing factory the other twelve get, which
is what this file's own `#3060` block always claimed to achieve ("zero
module resolution on the hot path"). The absence itself keeps its faithful
witness: `dev-plugin-tenancy-failfast.test.ts` still reads the real,
unmocked failure, and `no-framework-dependents.pin.test.ts` pins the
ADR-0132 entitlement boundary that makes the package unresolvable here.
Claude-Session: https://claude.ai/code/session_01AhQASwqJr2Z7XfGWUdvnbF
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments