Staging tests failed on leftover registry rows that outlived each ephemeral database
The team's end-to-end staging environment created a fresh Postgres branch per run and deleted it afterward, but the preview worker's control-plane registry, sessions and chat history lived on in production's control store. Each run left behind registry rows pointing at destroyed schemas, which produced misleading 'couldn't reach the database' failures that looked like infrastructure flakes. A UI cleanup test also accumulated an unbounded backlog of these rows and timed out, and its name-scoped search missed some orphans entirely. The team fixed it by purging the stale registry slice at spin-up, before each suite runs, and kept the UI cleanup test as a feature check, which cut the suite's wall time by 45 percent.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in