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
qCRM demo test flaked on CI: hourly() wrote no snapshot #4120
apps/qcrm/test/demo.test.ts ("the demo opens on the shared snapshot, keeps a visitor's edit, and writes only what they touched") failed once on CI and passes on the builder.
Failure: expect(DEMO.objects.size).toBe(1) at demo.test.ts:27 got 0, in 6 ms. So hourly(app.env) returned without storing the snapshot.
On the builder, from the same tree at 09:48 UTC: passes in 261 ms.
A guess, not checked: hourly decides from the wall clock (hour or minute) whether to build the snapshot, so the test depends on what time it runs. Pinning the clock in the test, or passing the time into hourly, would make it stable.
Activity
QuinnsCode commentedon Nov 9, 2026
Duplicate of #4122. The cause is the module-level snapshot cache shared across test files; the fix is in #4112.