test(rivetkit): stabilize actor db driver tests#4664
test(rivetkit): stabilize actor db driver tests#4664NathanFlurry wants to merge 1 commit intobreak-up/stabilize-driver-lifecycle-testsfrom
Conversation
PR Review: test(rivetkit): stabilize actor db driver testsOverviewThis PR adds retry helpers and sequential execution to actor DB driver tests to reduce flakiness caused by ❌ Critical: Violates the "no retry-loop flake papering" policyCLAUDE.md explicitly prohibits this approach:
Both The correct resolution is to find the ordering gap in ✅ Good:
|
| Change | Assessment |
|---|---|
describe.sequential |
✅ Appropriate fix |
runWithActorStoppingRetry retry helper |
❌ Violates project policy — masks race, does not fix it |
expectIntegrityCheckOk retry helper |
❌ Violates project policy — masks race, does not fix it |
| Duplicate retry structure |
The describe.sequential change should land. The retry helpers should be replaced with a root-cause fix in core/napi/typescript that eliminates the "database accessed after actor stopped" race from the test path entirely.
9c1861c to
8a0be32
Compare
1d9c571 to
8e50d57
Compare
8a0be32 to
f676d13
Compare
8e50d57 to
5aeb5f4
Compare
5aeb5f4 to
4d25019
Compare
f676d13 to
49811bf
Compare
4d25019 to
d893b81
Compare
49811bf to
1d1e875
Compare
d893b81 to
8ceea0a
Compare
1d1e875 to
589bbe0
Compare

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: