René's URL Explorer Experiment


Title: Roll back every switched server when a later one fails its deploy gate by shipmill-romamo[bot] · Pull Request #334 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Roll back every switched server when a later one fails its deploy gate by shipmill-romamo[bot] · Pull Request #334 · cloudfall-dev/cloudfall

X Title: Roll back every switched server when a later one fails its deploy gate by shipmill-romamo[bot] · Pull Request #334 · cloudfall-dev/cloudfall

Description: Summary A component on several servers deploys one server at a time (serial: 1). When a later server failed its health gate, only that server was rolled back: the servers that had already switched stayed on the new release, and each server's receipt overwrote the previous one's, so /.json named only the last server. Reproduced first with two stand-in servers: h1 stayed on the new release and the receipt held only h2. Rollback of the switched servers. The failing server's rescue now rolls back every server that switched earlier in the run and passed its gate, last one first, with each task delegated to that server (tasks/switched_rollback.yml): the previous release and the service unit it ran under come back, a redeploy copy of the rolled-back run is removed, a first release is stopped and a kept hand-made unit put back, as the server's own rescue does (#223's rescue is unchanged). The restored release is gated again; one that fails is named in the failure, and the others are still rolled back. A server that never switched has no entry, so nothing is rolled back there One receipt per component, one entry per server (D-13). The run's entries are a fact of the controller (localhost), a mapping from server to entry in deploy order; each server records its entry and the controller writes the whole receipt again (tasks/receipt_write.yml), so the receipt is written from one place and, with serial: 1, by one server at a time (no lock needed). spec holds the deployed release, artifactSha256, releaseCommand once, and servers: each with the release it ended on (null for a stopped first release), previousRelease, deployedAt, healthCheckPassed, rolledBack and the command healthCheck. release-receipt.schema.json validates the new shape and still validates a receipt from before (one server), which reads as a one-entry list The release command already ran. The failure message names the servers rolled back and, for a component with a release command, says it already ran and is not reverted (vars/main.yml). The engine README says a release command must work with the previous release too Docs: engine/README.md, config/README.md, docs/ci-deploy-guide.md describe the new receipt and the multi-server rollback No SDK code parses the release receipt: deploy only checks that it exists, cloudfall why reads decision records and the operator its proposals, so no reader changed. Plan Serves: G-3 Files: engine/ansible/roles/cloudfall_deploy/tasks/{main,release_receipt,receipt_write,switched_rollback}.yml, engine/ansible/roles/cloudfall_deploy/vars/main.yml, config/schemas/v1/release-receipt.schema.json, engine/tests/{test_deploy_rollback,test_command_health_gate,test_release_command}.py, engine/README.md, config/README.md, docs/ci-deploy-guide.md, changelog.d/222-multi-server-deploy-rollback.md Order: first a failing test that deploys to two stand-in servers and fails the second one's gate (the first stays switched, the receipt names only the second); then the run's receipt entries on the controller, the rollback and re-gate of the servers that switched earlier, the receipt with one entry per server and its schema (old single-server receipts still valid), the failure message and the docs Proof: the two-server test passes (both servers back on the previous release, re-gated, one receipt with an entry per server); the single-server tests of the gate, rescue and receipt keep their outcomes; the schema accepts the new receipt and every old single-server receipt Test plan New in engine/tests/test_deploy_rollback.py: the role's own gate, rescue, rollback and receipt tasks run under ansible-playbook against two or three stand-in servers on the controller (local connection, one install root each, stand-in systemctl and systemd-run): test_a_later_server_failing_its_gate_rolls_back_the_earlier_one fails on main (h1 stays on the new release, the receipt names only h2) and passes here three servers with a first release on h1 (stopped, entry release: null), rollback order last-first; an earlier server whose restored release fails its gate again; a deploy that passes everywhere; a single-server deploy keeps one entry and no new message which rollback steps run for a switched server (managed unit, redeploy copy, first release with a hand-made unit), that every server step is delegated, the failure's release-command sentence, and the schema's entry rules Updated: the receipt assertions in test_command_health_gate.py and test_release_command.py read the server's entry; the old-shape schema tests there are unchanged and still pass Ran: uv run ruff check ., uv run mypy, and uv run pytest on the touched files plus test_deploy_role.py, test_component_hosts.py, test_unsafe_config_values.py, test_artifact_build_steps.py, test_nginx_site_routes.py, test_playbook.py, sdk/tests/test_lifecycle.py, test_deploy_approval.py, test_migrate_approval.py: 347 passed, 1 skipped. The full suite and ansible-lint are left to CI Not verified: a real multi-host run on Debian servers (delegation over SSH with become) For review The receipt layout beyond D-13: component, release, artifactSha256, releaseCommand stay once in spec; server, deployedAt, previousRelease, healthCheckPassed, healthCheck move into each entry, with a new rolledBack. An entry's release is the release the server ended on, so a failed single-server deploy now names the previous release there A failed deploy of a component with a release command now says, on one server too, that the command already ran and is not reverted The rollback of earlier servers runs from the failing server's rescue, after their component locks were released: another run could take one of those locks in that window Specs 005 and 009 still describe the old receipt layout Fixes #222 🤖 Generated with Claude Code

Open Graph Description: Summary A component on several servers deploys one server at a time (serial: 1). When a later server failed its health gate, only that server was rolled back: the servers that had already switched ...

X Description: Summary A component on several servers deploys one server at a time (serial: 1). When a later server failed its health gate, only that server was rolled back: the servers that had already switched ...

Opengraph URL: https://github.com/cloudfall-dev/cloudfall/pull/334

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:3baa87bc-75dd-89f4-42a7-5d1ed2e2f910
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8934:2B3C9F:1BBAA5:2598FA:6B0598E2
html-safe-nonceec75ffbbff5f5e8963acafba6a0a0b37c12513817cc45dfc9866dbb1c4e17bed
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTM0OjJCM0M5RjoxQkJBQTU6MjU5OEZBOjZCMDU5OEUyIiwidmlzaXRvcl9pZCI6IjI2NDg2MDcyNTY5MzMxNDQ4MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac93da96110da9d88c2180729113df013cde2ea84b7342bcfdbd0f82e3f94ec06e
hovercard-subject-tagpull_request:5320674282
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/cloudfall-dev/cloudfall/pull/334/files
twitter:imagehttps://avatars.githubusercontent.com/u/5600783?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/5600783?s=400&v=4
og:image:altSummary A component on several servers deploys one server at a time (serial: 1). When a later server failed its health gate, only that server was rolled back: the servers that had already switched ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None3b72fd2385d76a50ce0fe937d50bb4a81434432c4fd47866074a26f6cd03623f
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release58e2bd32336f3dcee343ec627a4d09c7c444e214
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cloudfall-dev/cloudfall/pull/334/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F334%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%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F334%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=cloudfall-dev%2Fcloudfall
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/334/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/334/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/334/files
cloudfall-devhttps://github.com/cloudfall-dev
cloudfallhttps://github.com/cloudfall-dev/cloudfall
Codehttps://github.com/cloudfall-dev/cloudfall
Issues76 (76)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
Sign up for GitHub https://github.com/signup?return_to=%2Fcloudfall-dev%2Fcloudfall%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcloudfall-dev%2Fcloudfall%2Fissues%2Fnew%2Fchoose
shipmill-romamohttps://github.com/apps/shipmill-romamo
mainhttps://github.com/cloudfall-dev/cloudfall/tree/main
fix/222-multi-server-deploy-rollbackhttps://github.com/cloudfall-dev/cloudfall/tree/fix/222-multi-server-deploy-rollback
Conversation 1 https://github.com/cloudfall-dev/cloudfall/pull/334
Commits 1 https://github.com/cloudfall-dev/cloudfall/pull/334/commits
Checks 1 https://github.com/cloudfall-dev/cloudfall/pull/334/checks
Files changed https://github.com/cloudfall-dev/cloudfall/pull/334/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/334/files
Roll back every switched server when a later one fails its deploy gate https://github.com/cloudfall-dev/cloudfall/pull/334/files#top
Show all changes 1 commit https://github.com/cloudfall-dev/cloudfall/pull/334/files
4234774 Roll back every switched server when a later one fails its deploy gate shipmill-romamo[bot] Nov 15, 2026 https://github.com/cloudfall-dev/cloudfall/pull/334/commits/42347747bac484f013d0c27dc184807f4dd1e005
Clear filters https://github.com/cloudfall-dev/cloudfall/pull/334/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/334/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/334/files
222-multi-server-deploy-rollback.md https://github.com/cloudfall-dev/cloudfall/pull/334/files#diff-1f867d5c8c0390498355912727986bcb0ae7f5fa0d5eac25d61030a384e91bcd
README.md https://github.com/cloudfall-dev/cloudfall/pull/334/files#diff-6e8c7fdec58c9cb55af12d91063af268d43c753cf477bc41ec4e938f1b429b6f
release-receipt.schema.json https://github.com/cloudfall-dev/cloudfall/pull/334/files#diff-3a0722ebee5e5f9a027000d72639cec8699071bba376b09af0823cf28bf2f921
ci-deploy-guide.md https://github.com/cloudfall-dev/cloudfall/pull/334/files#diff-758dbfce48556c37a5e2a3456a9900683fc4ae8fc2a809842cdfca3db07b960c
README.md https://github.com/cloudfall-dev/cloudfall/pull/334/files#diff-78692e5a5d793b5257775d62b6fb596b7a11b3757d7a9ee0414cbe44b1ef444b
main.yml https://github.com/cloudfall-dev/cloudfall/pull/334/files#diff-9b8cc1fc63bcd2865b8e987f6dbc3a5a5fa8e13b04d96fecd6100f117380c887
receipt_write.yml https://github.com/cloudfall-dev/cloudfall/pull/334/files#diff-e17aeef3a12ec7221c932b32361fead18153935d6e718b532c262de0fdc9deed
release_receipt.yml https://github.com/cloudfall-dev/cloudfall/pull/334/files#diff-173804dc50d5ec086102e731df83f494fe5d93cbf8a58a1dc146ac8fa20f08f2
switched_rollback.yml https://github.com/cloudfall-dev/cloudfall/pull/334/files#diff-5c123cc66cfee74de5ca79a4e235854c1be9eaab49123a086d881004f80c1c24
main.yml https://github.com/cloudfall-dev/cloudfall/pull/334/files#diff-1d03dfe7f0ee7e059b660023bb6e650952783733601261934ea24b53eefbf397
test_command_health_gate.py https://github.com/cloudfall-dev/cloudfall/pull/334/files#diff-83aac29ba24de79ce7602ddde8af7a853ed0201d40eb7935e70b8bc2e1d13b2a
test_deploy_rollback.py https://github.com/cloudfall-dev/cloudfall/pull/334/files#diff-16fa33c035fc5b8b2dc0f444dc5c831cb25e15bf1c9c1c39d82459ee59ca238e
test_release_command.py https://github.com/cloudfall-dev/cloudfall/pull/334/files#diff-ac295603afd74510633fb5e9b3315481f5da0e4aa8519913a3ca7f3984246208
changelog.d/222-multi-server-deploy-rollback.mdhttps://github.com/cloudfall-dev/cloudfall/pull/334/files#diff-1f867d5c8c0390498355912727986bcb0ae7f5fa0d5eac25d61030a384e91bcd
View file https://github.com/cloudfall-dev/cloudfall/blob/42347747bac484f013d0c27dc184807f4dd1e005/changelog.d/222-multi-server-deploy-rollback.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/334/{{ revealButtonHref }}
config/README.mdhttps://github.com/cloudfall-dev/cloudfall/pull/334/files#diff-6e8c7fdec58c9cb55af12d91063af268d43c753cf477bc41ec4e938f1b429b6f
View file https://github.com/cloudfall-dev/cloudfall/blob/42347747bac484f013d0c27dc184807f4dd1e005/config/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/334/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/334/files#diff-6e8c7fdec58c9cb55af12d91063af268d43c753cf477bc41ec4e938f1b429b6f
https://github.com/cloudfall-dev/cloudfall/pull/334/files#diff-6e8c7fdec58c9cb55af12d91063af268d43c753cf477bc41ec4e938f1b429b6f
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/334/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/334/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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.