SShortSingh.
Back to feed

Staging tests failed on leftover registry rows that outlived each ephemeral database

0
·5 views

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.

Read the full story at DEV Community

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

Related stories

0
ProgrammingDEV Community ·

Termhint Brings IDE-Style Autocomplete with Descriptions to zsh on Mac

Termhint is a new native macOS app that adds IDE-style autocomplete to the zsh shell, showing a popup with subcommands and short descriptions as users type. It covers 3,272 commands and suggests items drawn from local sources such as Git branches, SSH hosts, Docker containers, Makefile targets, and package.json scripts, without running those tools. The app works across 22 Mac terminal applications, including Terminal, iTerm2, Ghostty, VS Code, and tmux, but not Warp, GNU screen, bash, or fish. It also offers a customizable prompt, terminal color schemes, tab titling, and verified runtime installs, with completions bundled in the app and typed input kept on the user's Mac. It requires macOS 14 or later on Apple silicon, offers a 7-day free trial, and then a one-time license starting at $11.99.

0
ProgrammingDEV Community ·

Public job-board APIs from Greenhouse, Lever and Ashby expose company postings

A developer guide explains how to pull open roles from Greenhouse, Lever and Ashby using their unauthenticated public job-board endpoints. The process starts by finding a company's hosted board name from its careers page URL. The article provides a Node.js 22+ script that fetches one example board per provider, including Stripe, Spotify and OpenAI, and prints up to ten postings as JSON Lines. The script reports HTTP errors separately and notes that Lever pagination and rate limits, including Retry-After headers, must be respected. Readers are also advised to store job keys so later fetches can be compared against earlier results.

0
ProgrammingDEV Community ·

Node.js Web Sessions: Opaque Tokens Versus JWTs for Instant Revocation

A gaming web app migrating off managed authentication must be able to cut off a banned player's access on their next protected request. The article argues that opaque sessions suit this requirement better than locally validated JWTs, because the server can check current access on every request. JWTs remain viable when avoiding a lookup matters more, provided the acceptable window of stale access is defined. The author's build log rehearses the migration by preserving internal player IDs, mapping verified external identities to existing accounts, and failing closed on unknown identities. The accompanying TypeScript model is a single-process demonstration and leaves social callback verification out of scope.

0
ProgrammingDEV Community ·

Site scored 99 on mobile PageSpeed, but audit still flagged two image issues

The author ran PageSpeed Insights on their Angular server-side rendered site in November under a throttled mobile connection. The home page scored 99 for performance and 100 for the other three categories, with Largest Contentful Paint at about one second. The audit still flagged the hero portrait, a 49 KB JPG, which was replaced with a 480-pixel WebP of 32.6 KB, while the larger JPG was kept only for social previews and structured data. Image caching was also extended from one day to seven days with stale-while-revalidate, but without the immutable directive because images are replaced in place. Neither change moved the score much, though both reduced bytes for every visitor.