René's URL Explorer Experiment


Title: Deploy rescue: remove a redeploy copy that failed its gate by shipmill-romamo[bot] · Pull Request #250 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Deploy rescue: remove a redeploy copy that failed its gate by shipmill-romamo[bot] · Pull Request #250 · cloudfall-dev/cloudfall

X Title: Deploy rescue: remove a redeploy copy that failed its gate by shipmill-romamo[bot] · Pull Request #250 · cloudfall-dev/cloudfall

Description: Plan Serves: quality bar Files: engine/ansible/roles/cloudfall_deploy/tasks/main.yml, engine/ansible/roles/cloudfall_deploy/tasks/rollback.yml (comment), engine/README.md, engine/tests/test_deploy_role.py, engine/tests/test_deploy_rollback.py, engine/tests/test_command_health_gate.py, changelog.d/245-redeploy-copy-gate.md Order: failing test first (a replay of the role's own deploy and rescue tasks that fails a redeploy's gate, then the real rollback tasks), then a rescue task that removes the failed redeploy copy after the previous copy is restored and restarted, then microseconds in the copy's name Proof: test_a_failed_redeploy_copy_is_removed_and_rollback_takes_the_passing_one (real ansible-playbook run), rescue-decision tests in test_deploy_role.py, S-002-12 and the deploy dry-run tests unchanged Summary Rollback to a release id takes the newest copy of it on disk (the rule stays). Since #243 a redeploy copy that failed its gate stayed on disk, so a later rollback switched to it, failed the gate again and left current on the failed copy. The gate's rescue gets a new step, Remove the redeploy copy that failed its gate, after Restore the previous release symlink, the unit restore and Restart the restored release, and before the restored release's own gate. It runs only when there is a previous release, outside check mode, when the release directory is .redeploy-*, and when it is not the previous directory. releases/ itself is never a redeploy copy, and the target of current is never removed The copy's name now carries microseconds (.redeploy-%Y%m%dT%H%M%S%fZ), fixed width, so names stay sorted by time for rollback's "newest copy" The unit restore and current restore from #243 are untouched Test notes uv run pytest engine/tests/test_deploy_role.py engine/tests/test_deploy_rollback.py engine/tests/test_command_health_gate.py engine/tests/test_artifact_build_steps.py: 148 passed, 1 skipped (S-002-12 skips here: this Mac has no GNU tar; CI runs it, and its tasks are unchanged) New: an end-to-end replay with ansible-playbook (stand-in systemctl) of the role's deploy tasks plus a failed gate and the role's own rescue tasks: the failed copy is gone, current is back on the passing copy, and rollback later lands on that passing copy New: rescue-decision tables (removal only for a failed redeploy copy, never for another release, a first release, the previous copy, or in check mode; ordering after the restart) and a test that two redeploys in the same second get two names uv run ruff check ., uv run mypy, and ansible-lint (python -m ansiblelint engine/ansible with ANSIBLE_CONFIG=engine/ansible/ansible.cfg) pass Full suite left to CI Not run on a real host Fixes #245 🤖 Generated with Claude Code

Open Graph Description: Plan Serves: quality bar Files: engine/ansible/roles/cloudfall_deploy/tasks/main.yml, engine/ansible/roles/cloudfall_deploy/tasks/rollback.yml (comment), engine/README.md, engine/tests/test_deploy...

X Description: Plan Serves: quality bar Files: engine/ansible/roles/cloudfall_deploy/tasks/main.yml, engine/ansible/roles/cloudfall_deploy/tasks/rollback.yml (comment), engine/README.md, engine/tests/test_deploy...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.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:355cb5c0-6750-b641-7c85-319646ce74bb
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA176:3AB7CB:12C2C41:19C44DC:6B056CB6
html-safe-noncec83cabae73a9439ab4c365485609b50ebe294f40c221341ff471dda83cd32f0f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTc2OjNBQjdDQjoxMkMyQzQxOjE5QzQ0REM6NkIwNTZDQjYiLCJ2aXNpdG9yX2lkIjoiMTM0MTczNDUyNjUwMTg3NDg3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9ebd410dcd3f16654250f34f98933cce1fec52ee994b1bce53863a34311a1023
hovercard-subject-tagpull_request:5294271714
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/250/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:altPlan Serves: quality bar Files: engine/ansible/roles/cloudfall_deploy/tasks/main.yml, engine/ansible/roles/cloudfall_deploy/tasks/rollback.yml (comment), engine/README.md, engine/tests/test_deploy...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9b4256ac5f3e310e7945ef5b71c9cb9e264357b1eb20e91d369ed6502a4c486c
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
releasef089e689ad324655ac44bf6cdbc04d976105b374
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cloudfall-dev/cloudfall/pull/250/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F250%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%2F250%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/250/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/250/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/250/files
cloudfall-devhttps://github.com/cloudfall-dev
cloudfallhttps://github.com/cloudfall-dev/cloudfall
Codehttps://github.com/cloudfall-dev/cloudfall
Issues77 (77)https://github.com/cloudfall-dev/cloudfall/issues
Pull requests9 (9)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/245-redeploy-copy-gatehttps://github.com/cloudfall-dev/cloudfall/tree/fix/245-redeploy-copy-gate
Conversation 0 https://github.com/cloudfall-dev/cloudfall/pull/250
Commits 2 https://github.com/cloudfall-dev/cloudfall/pull/250/commits
Checks 1 https://github.com/cloudfall-dev/cloudfall/pull/250/checks
Files changed https://github.com/cloudfall-dev/cloudfall/pull/250/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/250/files
Deploy rescue: remove a redeploy copy that failed its gate https://github.com/cloudfall-dev/cloudfall/pull/250/files#top
Show all changes 2 commits https://github.com/cloudfall-dev/cloudfall/pull/250/files
8fc5f6d Deploy rescue: remove a redeploy copy that failed its gate shipmill-romamo[bot] Nov 13, 2026 https://github.com/cloudfall-dev/cloudfall/pull/250/commits/8fc5f6d66b3ac6f92bd81ca83c084eacfd8e9636
b7d5ff7 Merge branch 'main' into fix/245-redeploy-copy-gate shipmill-romamo[bot] Nov 13, 2026 https://github.com/cloudfall-dev/cloudfall/pull/250/commits/b7d5ff78b94a4ec829ec6a2a84dc8f38feeca1b7
Clear filters https://github.com/cloudfall-dev/cloudfall/pull/250/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/250/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/250/files
245-redeploy-copy-gate.md https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-d63b153f894144006b813035555a4051975223cb96c55949b828937414ba3332
README.md https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-78692e5a5d793b5257775d62b6fb596b7a11b3757d7a9ee0414cbe44b1ef444b
main.yml https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-9b8cc1fc63bcd2865b8e987f6dbc3a5a5fa8e13b04d96fecd6100f117380c887
rollback.yml https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-2e07c007e9ed922530fe2dc295f7f7158275c48a47a7add931dc52da7f0e4d5a
test_command_health_gate.py https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-83aac29ba24de79ce7602ddde8af7a853ed0201d40eb7935e70b8bc2e1d13b2a
test_deploy_role.py https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-88a63bbf6863131a2c7e9036fdabcc440e8f77f28429a090b1e994032a074ecb
test_deploy_rollback.py https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-16fa33c035fc5b8b2dc0f444dc5c831cb25e15bf1c9c1c39d82459ee59ca238e
changelog.d/245-redeploy-copy-gate.mdhttps://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-d63b153f894144006b813035555a4051975223cb96c55949b828937414ba3332
View file https://github.com/cloudfall-dev/cloudfall/blob/b7d5ff78b94a4ec829ec6a2a84dc8f38feeca1b7/changelog.d/245-redeploy-copy-gate.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/250/{{ revealButtonHref }}
engine/README.mdhttps://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-78692e5a5d793b5257775d62b6fb596b7a11b3757d7a9ee0414cbe44b1ef444b
View file https://github.com/cloudfall-dev/cloudfall/blob/b7d5ff78b94a4ec829ec6a2a84dc8f38feeca1b7/engine/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/250/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-78692e5a5d793b5257775d62b6fb596b7a11b3757d7a9ee0414cbe44b1ef444b
https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-78692e5a5d793b5257775d62b6fb596b7a11b3757d7a9ee0414cbe44b1ef444b
engine/ansible/roles/cloudfall_deploy/tasks/main.ymlhttps://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-9b8cc1fc63bcd2865b8e987f6dbc3a5a5fa8e13b04d96fecd6100f117380c887
View file https://github.com/cloudfall-dev/cloudfall/blob/b7d5ff78b94a4ec829ec6a2a84dc8f38feeca1b7/engine/ansible/roles/cloudfall_deploy/tasks/main.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/250/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-9b8cc1fc63bcd2865b8e987f6dbc3a5a5fa8e13b04d96fecd6100f117380c887
https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-9b8cc1fc63bcd2865b8e987f6dbc3a5a5fa8e13b04d96fecd6100f117380c887
https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-9b8cc1fc63bcd2865b8e987f6dbc3a5a5fa8e13b04d96fecd6100f117380c887
https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-9b8cc1fc63bcd2865b8e987f6dbc3a5a5fa8e13b04d96fecd6100f117380c887
engine/ansible/roles/cloudfall_deploy/tasks/rollback.ymlhttps://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-2e07c007e9ed922530fe2dc295f7f7158275c48a47a7add931dc52da7f0e4d5a
View file https://github.com/cloudfall-dev/cloudfall/blob/b7d5ff78b94a4ec829ec6a2a84dc8f38feeca1b7/engine/ansible/roles/cloudfall_deploy/tasks/rollback.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/250/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-2e07c007e9ed922530fe2dc295f7f7158275c48a47a7add931dc52da7f0e4d5a
https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-2e07c007e9ed922530fe2dc295f7f7158275c48a47a7add931dc52da7f0e4d5a
engine/tests/test_command_health_gate.pyhttps://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-83aac29ba24de79ce7602ddde8af7a853ed0201d40eb7935e70b8bc2e1d13b2a
View file https://github.com/cloudfall-dev/cloudfall/blob/b7d5ff78b94a4ec829ec6a2a84dc8f38feeca1b7/engine/tests/test_command_health_gate.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/250/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-83aac29ba24de79ce7602ddde8af7a853ed0201d40eb7935e70b8bc2e1d13b2a
https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-83aac29ba24de79ce7602ddde8af7a853ed0201d40eb7935e70b8bc2e1d13b2a
engine/tests/test_deploy_role.pyhttps://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-88a63bbf6863131a2c7e9036fdabcc440e8f77f28429a090b1e994032a074ecb
View file https://github.com/cloudfall-dev/cloudfall/blob/b7d5ff78b94a4ec829ec6a2a84dc8f38feeca1b7/engine/tests/test_deploy_role.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/250/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-88a63bbf6863131a2c7e9036fdabcc440e8f77f28429a090b1e994032a074ecb
https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-88a63bbf6863131a2c7e9036fdabcc440e8f77f28429a090b1e994032a074ecb
https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-88a63bbf6863131a2c7e9036fdabcc440e8f77f28429a090b1e994032a074ecb
https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-88a63bbf6863131a2c7e9036fdabcc440e8f77f28429a090b1e994032a074ecb
https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-88a63bbf6863131a2c7e9036fdabcc440e8f77f28429a090b1e994032a074ecb
https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-88a63bbf6863131a2c7e9036fdabcc440e8f77f28429a090b1e994032a074ecb
engine/tests/test_deploy_rollback.pyhttps://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-16fa33c035fc5b8b2dc0f444dc5c831cb25e15bf1c9c1c39d82459ee59ca238e
View file https://github.com/cloudfall-dev/cloudfall/blob/b7d5ff78b94a4ec829ec6a2a84dc8f38feeca1b7/engine/tests/test_deploy_rollback.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/250/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-16fa33c035fc5b8b2dc0f444dc5c831cb25e15bf1c9c1c39d82459ee59ca238e
https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-16fa33c035fc5b8b2dc0f444dc5c831cb25e15bf1c9c1c39d82459ee59ca238e
https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-16fa33c035fc5b8b2dc0f444dc5c831cb25e15bf1c9c1c39d82459ee59ca238e
https://github.com/cloudfall-dev/cloudfall/pull/250/files#diff-16fa33c035fc5b8b2dc0f444dc5c831cb25e15bf1c9c1c39d82459ee59ca238e
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/250/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.