ci(fork-release-smoke): wait out boot1 teardown before seeding the scratch DB - #333
Open
claudegoogl-sudo wants to merge 2 commits into
Open
ci(fork-release-smoke): wait out boot1 teardown before seeding the scratch DB#333claudegoogl-sudo wants to merge 2 commits into
claudegoogl-sudo wants to merge 2 commits into
Conversation
…ratch DB
The smoke failed on run 34239890154: preflight's teardown stops the
embedded Postgres with SIGTERM and returns while the drain is still in
flight, so pg_ctl start hit a live data dir ("another server might be
running") 8s later. Wait for pg_ctl status to report not-running, clear
the stale pid/opts files, then start with -w -t 60. Also upload
sandbox/pg-seed.log with the other smoke artifacts for diagnosis.
Co-Authored-By: Paperclip <noreply@paperclip.ing>
Boot1 log proves the app creates and migrates the embedded database named 'paperclip' (248 migrations 0000..0249); the seed connected to the default 'postgres' database where no app tables exist. Co-Authored-By: Paperclip <noreply@paperclip.ing>
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.
What Changed
seed the paperclip database, not postgres): the app creates and migrates the embedded database namedpaperclip(proven by boot1 logs); the seed connected topostgreswhere no app tables exist.fork-release-smoke.ymlseed step: after boot1's teardown, pollpg_ctl -D <db> statusuntil the old embedded postmaster reports not-running, clear the stalepostmaster.pid/postmaster.opts, then start the seed cluster withpg_ctl -w -t 60 start(fail with thepg-seed.logtail on error).sandbox/pg-seed.logalongside the other smoke artifacts.Why Needed
boot.logshows the SIGTERM at 14:48:02.2Z); the seed'spg_ctl startfired at 14:48:02.25Z against a live data dir →pg_ctl: another server might be running→could not start server.Verification
startup stranded deferred-wake sweep promoted or resolved wakes {scanned:1, resolved:1}).Risk Assessment
Rollback Plan
Migration/Compatibility Impact
Model Used