test(rivetkit): relax sqlite sleep fixture timing#4738
test(rivetkit): relax sqlite sleep fixture timing#4738NathanFlurry wants to merge 1 commit into04-24-fix_rivetkit_sleep_wake_client_recoveryfrom
Conversation
269e08e to
66c5481
Compare
PR Review:
|
| Area | Finding | Severity |
|---|---|---|
pnpm-lock.yaml sql-loader resolves to npm 2.2.1 instead of local workspace |
Missing root resolutions entry for @rivetkit/sql-loader |
Medium |
db-stress.ts and state-zod-coercion.ts still use sleepTimeout: 100 |
Incomplete fix; same fragility left in other fixtures | Low |
SLEEP_GRACE_PERIOD_MS = 50 duplicated across two files |
Minor duplication | Low |
| Sleep/action polling safety in sleep-wait tests | Within acceptable bounds given 10 s timeout | Pass |
check:wait-for-comments compliance |
Both vi.waitFor calls have adjacent justification comments |
Pass |
The core fixture timing fix is correct and improves test reliability. The main issue to address before merging is the pnpm-lock.yaml change that pulls in a published npm version of sql-loader (2.2.1) instead of the local workspace package (2.3.0-rc.4).
Preview packages published to npmInstall with: npm install rivetkit@pr-4738All packages published as Engine binary is shipped via Docker images: docker pull rivetdev/engine:slim-bcfa930
docker pull rivetdev/engine:full-bcfa930Individual packagesnpm install rivetkit@pr-4738
npm install @rivetkit/react@pr-4738
npm install @rivetkit/rivetkit-napi@pr-4738
npm install @rivetkit/workflow-engine@pr-4738 |

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: