Quest 01 / 03 · Quick build
Replay promotion events to catch stale deployment answers
- event sourcing
- Python
- test design
Why now A replay test reported by Maxell Agustin Aguiran returned the right production build in all nine cases, while looking up staging at question time worked in only three. Build a small repeatable version of that check, with synthetic event histories clearly labeled as such.
Build it Create a marimo notebook that uses a small sample of project records as case identifiers and generates nine deterministic staging and production histories. Compare answers based on replaying the promotion event with answers based on the current staging value.
From the news
Tools
- marimo
The local marimo notebook is free Apache 2.0 software. Hosted products, optional assistants and remote data services have separate terms; their paid entitlements are not established here.
Data
- Asana Enterprise Workspace Simulation Dataset Kaggle
Use a small sample of project-management records as case identifiers for the generated event histories; label the deployment events as synthetic.
Steps
- Load the dataset in marimo and inspect the columns; select a small set of project records for case identifiers.
- Write a deterministic event generator that assigns staging and production build labels, then records a promotion event for each case.
- Implement one lookup that replays events through the promotion and another that reads current staging state.
- Run both lookups against nine cases and display each answer beside its expected production build.
Done when
- The notebook displays nine generated histories and labels each event as synthetic.
- The replay lookup matches the expected production build in all nine cases, while the current-staging lookup shows its mismatches.
Stretch goals
- Add a test that fails if changing a later staging event changes an earlier promotion answer.
