Repository navigation
Fix templates left unseeded after a failed deploy (#150) - #209
Open
dascalescuro wants to merge 3 commits into
Open
dascalescuro wants to merge 3 commits into
dascalescuro wants to merge 3 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Delete incomplete template branches on seed failure, write a success marker on finish, and self-heal existing templates that lack the marker. Co-authored-by: Cursor <cursoragent@cursor.com>
dascalescuro
force-pushed
the
fix/150-unseeded-templates
branch
from
October 14, 2026 12:06
2b218a4 to
61cba23
Compare
Parameterized format() failed at deploy with "could not determine data type of parameter $1", leaving a half-seeded branch that then retried into "already exists". Embed the hex marker in a DO block instead, and fail fast on non-transient DDL conflicts. Co-authored-by: Cursor <cursoragent@cursor.com>
Rebuilding every tpl-* on first deploy exceeded Vercel's build limit. If a template has public tables but no success marker, write the marker instead of delete+reseed; only empty unmarked branches are recreated. Co-authored-by: Cursor <cursoragent@cursor.com>
This branch was successfully deployed
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.
Summary
Stop treating a created-but-unseeded
tpl-*branch as up-to-date forever. After create, seed failures delete the incomplete branch; a successful seed writes aCOMMENT ON DATABASEmarker; existing templates without that marker are repaired on the next deploy.Closes #150
First deploy note
Templates that already have seed tables but no marker get the marker stamped in place (no full rebuild). Only empty unmarked branches are deleted and reseeded. Later deploys skip anything whose marker matches the seed hash.
Behavior walkthrough
deleteBranchruns, script exits non-zero; no incomplete template left behind(up-to-date), skippedTest plan
main; PR contains onlyscripts/prepare-templates.tscigreenCOMMENT ON DATABASE→shobj_description)$1informat()(DO-block write); fail fast onalready exists