René's URL Explorer Experiment


Title: Deploy has no release-phase hook, so database migrations run by hand after the health gate · Issue #88 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Deploy has no release-phase hook, so database migrations run by hand after the health gate · Issue #88 · cloudfall-dev/cloudfall

X Title: Deploy has no release-phase hook, so database migrations run by hand after the health gate · Issue #88 · cloudfall-dev/cloudfall

Description: Problem Found while deploying Abecra's staging on 2026-10-19. The API's schema is managed by Alembic. cloudfall_deploy unpacks the release, runs uv sync, switches current, restarts the unit and gates on the health check; there is no step...

Open Graph Description: Problem Found while deploying Abecra's staging on 2026-10-19. The API's schema is managed by Alembic. cloudfall_deploy unpacks the release, runs uv sync, switches current, restarts the unit and gat...

X Description: Problem Found while deploying Abecra's staging on 2026-10-19. The API's schema is managed by Alembic. cloudfall_deploy unpacks the release, runs uv sync, switches current, restarts the unit...

Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/88

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Deploy has no release-phase hook, so database migrations run by hand after the health gate","articleBody":"## Problem\n\nFound while deploying Abecra's staging on 2026-10-19. The API's schema is managed by Alembic. `cloudfall_deploy` unpacks the release, runs `uv sync`, switches `current`, restarts the unit and gates on the health check; there is no step where a declared command runs against the new release before (or after) traffic moves to it. `component.schema.json` has no field for one: `service.command` is the only command a component declares.\n\nThe workaround, after `cloudfall deploy` returns, is an SSH command that sources `shared/env/\u003ccomponent>.env` by hand and runs `.venv/bin/alembic upgrade head` from `current/` as the app user. That means:\n\n- the health gate checks a release against the old schema, so a release whose code needs the new schema either fails the gate (and rolls back) or passes it and then serves errors until the manual step runs\n- a failed migration leaves no receipt and does not stop or roll back the deploy\n- the environment the migration sees is reassembled by hand instead of the unit's own `EnvironmentFile`\n\n## Proposal\n\nA declared release command, run by the deploy role on one server after `uv sync` and before the `current` switch:\n\n```yaml\nspec:\n  release:\n    command: [.venv/bin/alembic, upgrade, head]\n    workingDirectory: services/api\n    timeoutSeconds: 300\n```\n\n- Runs as the application's `linuxUser`, in the new release directory, with the same environment file the systemd unit gets\n- Runs once per deploy even when `deployment.servers` lists several servers (on the first server only, recorded in the receipt)\n- A non-zero exit or timeout fails the deploy before `current` moves; the previous release keeps serving. The command's exit code and the tail of its output go into the release receipt\n- `cloudfall deploy` without `--yes` shows the command in the plan\n- Rollback does not run it (downgrades stay a human decision); the plan says so\n\n## Alternatives\n\n- Run migrations at application start: works for one server but races on several, and turns a failed migration into a failed health check with less evidence\n- A separate `cloudfall run \u003ccomponent> -- \u003ccommand>` one-off command: useful on its own (shells, backfills), but it leaves ordering with the deploy to the operator\n\n## Acceptance\n\n- A component with `release.command` that adds a table: after `cloudfall deploy --yes` the table exists, and the receipt records the command, exit code 0 and output tail\n- A release command that exits 1: the deploy fails with `ENGINE_STEP_FAILED`, `current` still points at the previous release, and the service was not restarted\n- With two servers declared, the command runs once\n- The command sees every variable from the component's `environment` and `secretRefs`\n\nDepends on cloudfall-dev/cloudfall#119\nDepends on cloudfall-dev/cloudfall#120","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-10-19T18:01:50Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/88"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7729d279-3206-c6b2-fa53-817242644991
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id841E:265693:1CD022F:26BEE8F:6B0554D9
html-safe-nonce981422733a17ba5a764a252657f555c5640832a31f77635b5b71182b21092ac7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDFFOjI2NTY5MzoxQ0QwMjJGOjI2QkVFOEY6NkIwNTU0RDkiLCJ2aXNpdG9yX2lkIjoiNzExMjc4MTY0NDMyNjg1MTgwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8d80744f6da824248fd3b004046b9291bc5fb9f5e27d368d3b82679618086a4c
hovercard-subject-tagissue:5928925982
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cloudfall-dev/cloudfall/88/issue_layout
twitter:imagehttps://opengraph.githubassets.com/22fab82d621a1e119b0a362b03b5461a2efcbccdb7d6dca38ba7fb7b2ac7341e/cloudfall-dev/cloudfall/issues/88
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/22fab82d621a1e119b0a362b03b5461a2efcbccdb7d6dca38ba7fb7b2ac7341e/cloudfall-dev/cloudfall/issues/88
og:image:altProblem Found while deploying Abecra's staging on 2026-10-19. The API's schema is managed by Alembic. cloudfall_deploy unpacks the release, runs uv sync, switches current, restarts the unit and gat...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameshipmill-romamo[bot]
hostnamegithub.com
expected-hostnamegithub.com
None854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b
turbo-cache-controlno-preview
go-importgithub.com/cloudfall-dev/cloudfall git https://github.com/cloudfall-dev/cloudfall.git
octolytics-dimension-user_id339512759
octolytics-dimension-user_logincloudfall-dev
octolytics-dimension-repository_id1360999777
octolytics-dimension-repository_nwocloudfall-dev/cloudfall
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1360999777
octolytics-dimension-repository_network_root_nwocloudfall-dev/cloudfall
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release220e980097d94ce616d5d11fbd5316d208e3fc93
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/cloudfall-dev/cloudfall/issues/88#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fissues%2F88
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%2Fcloudfall-dev%2Fcloudfall%2Fissues%2F88
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=cloudfall-dev%2Fcloudfall
Reloadhttps://github.com/cloudfall-dev/cloudfall/issues/88
Reloadhttps://github.com/cloudfall-dev/cloudfall/issues/88
Reloadhttps://github.com/cloudfall-dev/cloudfall/issues/88
cloudfall-devhttps://github.com/cloudfall-dev
cloudfallhttps://github.com/cloudfall-dev/cloudfall
Codehttps://github.com/cloudfall-dev/cloudfall
Issues78 (78)https://github.com/cloudfall-dev/cloudfall/issues
Pull requests10 (10)https://github.com/cloudfall-dev/cloudfall/pulls
Discussionshttps://github.com/cloudfall-dev/cloudfall/discussions
Actionshttps://github.com/cloudfall-dev/cloudfall/actions
Security and qualityhttps://github.com/cloudfall-dev/cloudfall/security
Insightshttps://github.com/cloudfall-dev/cloudfall/insights
https://github.com/cloudfall-dev/cloudfall
New issuehttps://github.com/login?return_to=https://github.com/cloudfall-dev/cloudfall/issues/88
New issuehttps://github.com/login?return_to=https://github.com/cloudfall-dev/cloudfall/issues/88
Deploy has no release-phase hook, so database migrations run by hand after the health gatehttps://github.com/cloudfall-dev/cloudfall/issues/88#top
enhancementhttps://github.com/cloudfall-dev/cloudfall/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/apps/shipmill-romamo
shipmill-romamohttps://github.com/apps/shipmill-romamo
on Oct 19, 2026https://github.com/cloudfall-dev/cloudfall/issues/88#issue-5928925982
#119https://github.com/cloudfall-dev/cloudfall/issues/119
#120https://github.com/cloudfall-dev/cloudfall/issues/120
shipmill-romamohttps://github.com/apps/shipmill-romamo
enhancementhttps://github.com/cloudfall-dev/cloudfall/issues?q=state%3Aopen%20label%3A%22enhancement%22
on Oct 19, 2026https://github.com/cloudfall-dev/cloudfall/issues/88#event-33671223758
https://github.com/apps/shipmill-romamo
shipmill-romamohttps://github.com/apps/shipmill-romamo
on Oct 20, 2026https://github.com/cloudfall-dev/cloudfall/issues/88#issuecomment-6287759065
shipmill-romamohttps://github.com/shipmill/shipmill
348ed73https://github.com/cloudfall-dev/cloudfall/commit/348ed73533d1baa7e3c92bd113980692b7c058ed
#87https://github.com/cloudfall-dev/cloudfall/issues/87
https://github.com/apps/shipmill-romamo
shipmill-romamohttps://github.com/apps/shipmill-romamo
on Oct 20, 2026https://github.com/cloudfall-dev/cloudfall/issues/88#issuecomment-6288212113
shipmill-romamohttps://github.com/shipmill/shipmill
#102https://github.com/cloudfall-dev/cloudfall/pull/102
#102https://github.com/cloudfall-dev/cloudfall/pull/102
shipmill-romamohttps://github.com/apps/shipmill-romamo
on Oct 27, 2026https://github.com/cloudfall-dev/cloudfall/issues/88#event-34342302837
Spec a release command for #88 (#102)https://github.com/cloudfall-dev/cloudfall/commit/b775e64a758410d7767ad526d1e3dc091ccac788
#88https://github.com/cloudfall-dev/cloudfall/issues/88
#102https://github.com/cloudfall-dev/cloudfall/pull/102
b775e64https://github.com/cloudfall-dev/cloudfall/commit/b775e64a758410d7767ad526d1e3dc091ccac788
shipmill-romamohttps://github.com/apps/shipmill-romamo
on Oct 27, 2026https://github.com/cloudfall-dev/cloudfall/issues/88#event-34342665080
Run a component's release command before the deploy switches current (S-005-1..7, 10, 11) #119https://github.com/cloudfall-dev/cloudfall/issues/119
Show the release command in the deploy and rollback plans (S-005-8, S-005-9) #120https://github.com/cloudfall-dev/cloudfall/issues/120
https://github.com/apps/shipmill-romamo
shipmill-romamohttps://github.com/apps/shipmill-romamo
on Oct 27, 2026https://github.com/cloudfall-dev/cloudfall/issues/88#issuecomment-6436730544
shipmill-romamohttps://github.com/shipmill/shipmill
#102https://github.com/cloudfall-dev/cloudfall/pull/102
#119https://github.com/cloudfall-dev/cloudfall/issues/119
#120https://github.com/cloudfall-dev/cloudfall/issues/120
#119https://github.com/cloudfall-dev/cloudfall/issues/119
https://github.com/apps/shipmill-romamo
shipmill-romamohttps://github.com/apps/shipmill-romamo
on Oct 27, 2026https://github.com/cloudfall-dev/cloudfall/issues/88#issuecomment-6439519949
shipmill-romamohttps://github.com/shipmill/shipmill
Run a component's release command before the deploy switches current (S-005-1..7, 10, 11) #119https://github.com/cloudfall-dev/cloudfall/issues/119
Run a component's release command once per deploy (#119) #135https://github.com/cloudfall-dev/cloudfall/pull/135
Show the release command in the deploy and rollback plans (S-005-8, S-005-9) #120https://github.com/cloudfall-dev/cloudfall/issues/120
Show the release command in the deploy and rollback plans (#120) #136https://github.com/cloudfall-dev/cloudfall/pull/136
shipmill-romamohttps://github.com/apps/shipmill-romamo
completedhttps://github.com/cloudfall-dev/cloudfall/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 27, 2026https://github.com/cloudfall-dev/cloudfall/issues/88#event-34354992991
Sign up for freehttps://github.com/signup?return_to=https://github.com/cloudfall-dev/cloudfall/issues/88
Sign in to commenthttps://github.com/login?return_to=https://github.com/cloudfall-dev/cloudfall/issues/88
enhancementhttps://github.com/cloudfall-dev/cloudfall/issues?q=state%3Aopen%20label%3A%22enhancement%22
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.