Repository navigation
feat(verify): copy the dev DB's listings into a verify instance with populate - #360
Merged
Merged
Conversation
…populate Features that read listings (search indexing, gallery paging, theme pages) need a populated verify DB. Until now that took a hand-built pg_dump pipe with seven table excludes, which cost several tries during the search cleanup on 2026-11-30. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Features that read listings, such as search indexing, gallery paging and theme pages, need a verify DB that holds published rows. A fresh one from
uphas none. During the search cleanup (#351) on 2026-11-30, loading one took a hand-builtpg_dump | psqlpipe through the Postgres container with seven table excludes. It took several tries:psqlisn't installed on the host, and zsh globbed a?argument.populatemakes it one call.What changed
verify-instance.sh populate, run afterup, copies the dev DB's data into this checkout's verify DB. That covers status lines, mods, themes, unreviewed mods and the users they point to. It leaves sign-in sessions, copy and vote events, and render jobs behind, and keeps rows the verify DB already has, such as the two seeded users. It prints what it copied.docker exec statuslines-postgres pg_dump … --data-only --disable-triggers --inserts --on-conflict-do-nothing -n public -T …piped intopsqlon the verify DB. That pipe works, but an agent rebuilds it by hand each time.SKILL.md, the features README andsearch-indexing.mdpoint to it.Verification
populatebeforeuprefuses with "the verify DB isn't migrated; run up first", exit 1.up, it printed3 published status lines, 52 published mods, 0 unreviewed mods. A second run printed the same counts.doctorstayed healthy with both seeded users, and/sitemap.xmllisted 70 URLs, matching the manual load.bun run check: 439 test files and 4,280 tests passed, 13 skipped, exit 0.🤖 Generated with Claude Code