René's URL Explorer Experiment


Title: feat(ci): run db migrations from github ci with environment-scoped secrets by TheodoreSpeaks · Pull Request #4957 · simstudioai/sim · GitHub

Open Graph Title: feat(ci): run db migrations from github ci with environment-scoped secrets by TheodoreSpeaks · Pull Request #4957 · simstudioai/sim

X Title: feat(ci): run db migrations from github ci with environment-scoped secrets by TheodoreSpeaks · Pull Request #4957 · simstudioai/sim

Description: Summary replaces the removed ECS migration sidecar (infra: feat/decouple-migration): migrations now run as a GitHub CI job that gates the ECR image push, so the schema is migrated before CodePipeline deploys the new app version migrations.yml is now a reusable workflow taking an explicit environment input (production / staging / dev) that maps to exactly one of the existing repo secrets (DATABASE_URL / STAGING_DATABASE_URL / DEV_DATABASE_URL) — the job never holds another environment's URL, and an unresolved value fails fast instead of falling through dev keeps db:push --force only (matching previous sidecar/CI behavior); staging/main apply versioned migrations; dev/staging/main image builds all depend on their migrate job manual workflow_dispatch now takes an explicit environment choice instead of inferring from the dispatching ref uses existing repo secrets — no settings changes needed before merge. Note: the *DATABASE_URL secrets must be direct (port 5432) connections, not pooled (PgBouncer 6432) — the advisory lock, SET statement_timeout, and CREATE INDEX CONCURRENTLY are all session-scoped Type of Change New feature Testing bun run lint and bun run check:api-validation:strict pass; workflow YAML validated with actionlint. First real run happens on merge to staging. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA) 🤖 Generated with Claude Code

Open Graph Description: Summary replaces the removed ECS migration sidecar (infra: feat/decouple-migration): migrations now run as a GitHub CI job that gates the ECR image push, so the schema is migrated before CodePipel...

X Description: Summary replaces the removed ECS migration sidecar (infra: feat/decouple-migration): migrations now run as a GitHub CI job that gates the ECR image push, so the schema is migrated before CodePipel...

Opengraph URL: https://github.com/simstudioai/sim/pull/4957

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:d1b3a654-a939-d23e-8a64-c2fa11583d23
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA0B4:305156:26FC2F:368C2F:6AFB529F
html-safe-nonce698221b267fa57e5a42d5851f5ecb27123c99cb4b5eff480d208fb1adc866558
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMEI0OjMwNTE1NjoyNkZDMkY6MzY4QzJGOjZBRkI1MjlGIiwidmlzaXRvcl9pZCI6IjI4NTQ1MzAxMjk2NTkxMjIzMzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2e74cc931cbda461b5b9206ce3628ecf7b0bd1a5633fb8a98081498c7fa2b126
hovercard-subject-tagpull_request:3843071588
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/4957/files
twitter:imagehttps://avatars.githubusercontent.com/u/19564703?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/19564703?s=400&v=4
og:image:altSummary replaces the removed ECS migration sidecar (infra: feat/decouple-migration): migrations now run as a GitHub CI job that gates the ECR image push, so the schema is migrated before CodePipel...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecbf66c024bb6d10e6955baa7413c54cf13a201bb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/4957/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F4957%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F4957%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/4957/files
Reloadhttps://github.com/simstudioai/sim/pull/4957/files
Reloadhttps://github.com/simstudioai/sim/pull/4957/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
TheodoreSpeakshttps://github.com/TheodoreSpeaks
staginghttps://github.com/simstudioai/sim/tree/staging
feat/migrate-db-github-cihttps://github.com/simstudioai/sim/tree/feat/migrate-db-github-ci
Conversation 9 https://github.com/simstudioai/sim/pull/4957
Commits 7 https://github.com/simstudioai/sim/pull/4957/commits
Checks 14 https://github.com/simstudioai/sim/pull/4957/checks
Files changed https://github.com/simstudioai/sim/pull/4957/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4957/files
feat(ci): run db migrations from github ci with environment-scoped secrets https://github.com/simstudioai/sim/pull/4957/files#top
Show all changes 7 commits https://github.com/simstudioai/sim/pull/4957/files
67dc8e2 feat(ci): run db migrations from github ci with environment-scoped se… TheodoreSpeaks Jun 10, 2026 https://github.com/simstudioai/sim/pull/4957/commits/67dc8e20507959af6546d199a5f6e3896c4d1f19
9a499b9 fix(ci): pass environment input via env var instead of shell interpol… TheodoreSpeaks Jun 10, 2026 https://github.com/simstudioai/sim/pull/4957/commits/9a499b9dcdd400a6099c570ff9757f884dc4565d
4eeb81b fix(ci): rename migration environments to db-* to avoid collision wit… TheodoreSpeaks Jun 10, 2026 https://github.com/simstudioai/sim/pull/4957/commits/4eeb81bf386e31674ce9b93187c4a6d4a71f0e75
11d285d improvement(ci): resolve migration db url from prefixed repo secrets,… TheodoreSpeaks Jun 10, 2026 https://github.com/simstudioai/sim/pull/4957/commits/11d285deb1b513577aec40867b6907946a94c8d2
bbe722b fix(ci): dev migrations use db:push only, matching previous behavior TheodoreSpeaks Jun 10, 2026 https://github.com/simstudioai/sim/pull/4957/commits/bbe722b440b1ea3f3f5cab013c15096d6959466c
3b80d83 improvement(ci): reject pooled (pgbouncer) database urls for migrations TheodoreSpeaks Jun 10, 2026 https://github.com/simstudioai/sim/pull/4957/commits/3b80d8387be5ff01e9dfe35621b1dbfec8f72fcb
e141ff1 Revert "improvement(ci): reject pooled (pgbouncer) database urls for … TheodoreSpeaks Jun 10, 2026 https://github.com/simstudioai/sim/pull/4957/commits/e141ff1588472528c8d744c508514fceccb88c2e
Clear filters https://github.com/simstudioai/sim/pull/4957/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4957/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4957/files
ci.yml https://github.com/simstudioai/sim/pull/4957/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
migrations.yml https://github.com/simstudioai/sim/pull/4957/files#diff-8e26a09e47acf0fe9e6adcfd8f42b4e7cf3c66011d46d32ba8fbbab397fd88d8
.github/workflows/ci.ymlhttps://github.com/simstudioai/sim/pull/4957/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
View file https://github.com/simstudioai/sim/blob/e141ff1588472528c8d744c508514fceccb88c2e/.github/workflows/ci.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4957/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4957/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
https://github.com/simstudioai/sim/pull/4957/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
https://github.com/simstudioai/sim/pull/4957/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
https://github.com/simstudioai/sim/pull/4957/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
https://github.com/simstudioai/sim/pull/4957/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
https://github.com/simstudioai/sim/pull/4957/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
.github/workflows/migrations.ymlhttps://github.com/simstudioai/sim/pull/4957/files#diff-8e26a09e47acf0fe9e6adcfd8f42b4e7cf3c66011d46d32ba8fbbab397fd88d8
View file https://github.com/simstudioai/sim/blob/e141ff1588472528c8d744c508514fceccb88c2e/.github/workflows/migrations.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4957/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4957/files#diff-8e26a09e47acf0fe9e6adcfd8f42b4e7cf3c66011d46d32ba8fbbab397fd88d8
https://github.com/simstudioai/sim/pull/4957/files#diff-8e26a09e47acf0fe9e6adcfd8f42b4e7cf3c66011d46d32ba8fbbab397fd88d8
https://github.com/simstudioai/sim/pull/4957/files#diff-8e26a09e47acf0fe9e6adcfd8f42b4e7cf3c66011d46d32ba8fbbab397fd88d8
Please reload this pagehttps://github.com/simstudioai/sim/pull/4957/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4957/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.