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
chore(parse-server-mongo): enrich flow.sh to reliably trigger boot-phase divergence (#95)
The previous 3-call flow (signup, POST GameScore, GET GameScore) was
too tight to consistently trigger the chronology divergence the
mongo/v2 boot-phase tiebreaker bug needs at replay. With only one
user class and a fast post-flow, the recording often captured a
single same-shape find _SCHEMA snapshot — no diverging candidate
set for the tiebreaker to pick the wrong one against, so the
falsifying lane in keploy/integrations would pass against the
unfixed binary too.
Enriched flow:
- 3-second sleep after parse-server health check, so the eager-
index sweep at boot has time to land multiple pre-mutation
find _SCHEMA captures before any user class is inserted.
- Tier 1: read-only probes (health, serverInfo, config, schemas).
- Tier 2: signup + login (no user-class mutation).
- Tier 3: three user classes inserted via POST /classes/<Name>
(GameScore, PlayerStats, Achievement). Each insert mutates
_SCHEMA + refreshes Parse Server's schema cache, capturing
a fresh find _SCHEMA mock with the larger class set.
- Tier 4: read-after-mutation calls so post-mutation snapshots
also land in the recording.
The recording now spans at least four distinct find _SCHEMA
response shapes (empty, +GameScore, +GameScore +PlayerStats,
+all three), which is wide enough that the unfixed tiebreaker
will reliably pick a post-mutation mock at replay and the
booting app will run a listIndexes query whose mock the
recording never captured at boot phase.
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
0 commit comments