René's URL Explorer Experiment


Title: Keep the rollout's host order in the rendered inventory file (#465) by shipmill-romamo[bot] · Pull Request #467 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Keep the rollout's host order in the rendered inventory file (#465) by shipmill-romamo[bot] · Pull Request #467 · cloudfall-dev/cloudfall

X Title: Keep the rollout's host order in the rendered inventory file (#465) by shipmill-romamo[bot] · Pull Request #467 · cloudfall-dev/cloudfall

Description: Plan Serves: quality bar Files: engine/src/cloudfall_engine/cli.py, engine/tests/test_ansible_inventory.py, changelog.d/465-render-keeps-host-order.md Order: the failing test first (a project whose MariaDB primary sorts after its replica, and an Elasticsearch cluster whose home sorts last, rendered with --output; the file's cloudfall_servers hosts and services.yml's play order put the home first), then render sorts every mapping but cloudfall_servers.hosts and writes and answers that same document, then the changelog fragment Proof: the new tests in engine/tests/test_ansible_inventory.py fail on main and pass after; the S-006-12, S-012-2 and S-019-2 byte-identical golden tests still pass unchanged Summary _rollout_order puts each multi-node Elasticsearch cluster's home and each MariaDB primary's server first in cloudfall_servers, so a serial: 1 play converges them first (S-012, S-019). cloudfall-engine inventory render --output then wrote the file with json.dumps(..., sort_keys=True), which sorted the hosts by name, and every converge runs from that file. render now sorts every mapping's keys itself except the cloudfall_servers hosts mapping, which keeps the render's rollout order, and writes without sort_keys. Everything else in the file stays sorted, so a project whose homes already sort first (the examples included) renders the same bytes as before: the golden file is unchanged. Other writers checked: render is the only writer of the converge inventory (the SDK's lifecycle runs cloudfall-engine inventory render --output, nothing in sdk/ re-serialises it). sdk/src/cloudfall/observe.py's write_overlay also uses sort_keys=True, but that overlay feeds the read-only inspect run, where host order doesn't matter, so it is left alone. The stdout answer carries the same inventory, but treaty's envelope (treaty/_envelope.py, serialize) dumps every answer with sort_keys=True, so its hosts stay sorted by name there; the test checks the answer equals the file as data, and only the file keeps the order. Test plan New test_engine_cli_writes_the_hosts_home_first, parametrised over a MariaDB primary on h2 with its replica on h1, and an Elasticsearch cluster of h1 and h2 homed on h2: the written file lists h2, h1, and Ansible's InventoryManager gives services.yml's play (serial: 1) its hosts as h2, h1. Both cases failed on main (['h1', 'h2']) and pass now uv run pytest on engine/tests/test_ansible_inventory.py, test_examples_render_unchanged.py, test_s019_mariadb_render.py, test_s012_elasticsearch_render.py, test_unsafe_config_values.py, test_services_passwords.py, test_s012_elasticsearch_cluster_role.py, test_s019_mariadb_replication_role.py, test_release_command.py, test_component_hosts.py: 175 passed, golden files untouched uv run ruff check . and uv run mypy clean The full suite is left to CI Fixes #465 🤖 Generated with Claude Code

Open Graph Description: Plan Serves: quality bar Files: engine/src/cloudfall_engine/cli.py, engine/tests/test_ansible_inventory.py, changelog.d/465-render-keeps-host-order.md Order: the failing test first (a project whos...

X Description: Plan Serves: quality bar Files: engine/src/cloudfall_engine/cli.py, engine/tests/test_ansible_inventory.py, changelog.d/465-render-keeps-host-order.md Order: the failing test first (a project whos...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3

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:9f729f09-8421-6ba0-f95e-26a62f1de189
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9F18:3C6CAF:EBB765:1426ECE:6B055794
html-safe-nonce25695d7438aed1c9069b99a7547277024426d0f0719da21ce8731f02a3053528
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjE4OjNDNkNBRjpFQkI3NjU6MTQyNkVDRTo2QjA1NTc5NCIsInZpc2l0b3JfaWQiOiI4NDM5NTE1ODc4NzY3NTUzNDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3b3800934cc7f9c91eba632cb2c2b275e897d8da64af42eba019c97d916be54b
hovercard-subject-tagpull_request:5347881426
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/467/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/src/cloudfall_engine/cli.py, engine/tests/test_ansible_inventory.py, changelog.d/465-render-keeps-host-order.md Order: the failing test first (a project whos...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonea79a02b7e7546ea306864e922ed2103ef4c04fac63168e11c2b2d4d816793080
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
release10dff83edfd4f3617a7792a152d44991587b434c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cloudfall-dev/cloudfall/pull/467/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F467%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%2F467%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/467/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/467/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/467/files
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
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/465-render-keeps-host-orderhttps://github.com/cloudfall-dev/cloudfall/tree/fix/465-render-keeps-host-order
Conversation 1 https://github.com/cloudfall-dev/cloudfall/pull/467
Commits 1 https://github.com/cloudfall-dev/cloudfall/pull/467/commits
Checks 2 https://github.com/cloudfall-dev/cloudfall/pull/467/checks
Files changed 3 https://github.com/cloudfall-dev/cloudfall/pull/467/files
Keep the rollout's host order in the rendered inventory file (#465) https://github.com/cloudfall-dev/cloudfall/pull/467/files#top
Show all changes 1 commit https://github.com/cloudfall-dev/cloudfall/pull/467/files
a6a9efc Keep the rollout's host order in the rendered inventory file shipmill-romamo[bot] Nov 17, 2026 https://github.com/cloudfall-dev/cloudfall/pull/467/commits/a6a9efc71fe70bc6e2f0d6b50f3a6d7fd574625b
Clear filters https://github.com/cloudfall-dev/cloudfall/pull/467/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/467/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/467/files
465-render-keeps-host-order.md https://github.com/cloudfall-dev/cloudfall/pull/467/files#diff-3a42c03e33edf70fe0150034e8364f95667d151f81d7a1fc8bb704321b76ba0c
cli.py https://github.com/cloudfall-dev/cloudfall/pull/467/files#diff-03b2db9c2d8aceb662eb02d3323a978e17ea3eee7a38fd84d33d7cef41dedc36
test_ansible_inventory.py https://github.com/cloudfall-dev/cloudfall/pull/467/files#diff-d2ac6f0ca5eef1020346d5324a77d289092b6ab1c9b1850cd1c8cad713a68786
changelog.d/465-render-keeps-host-order.mdhttps://github.com/cloudfall-dev/cloudfall/pull/467/files#diff-3a42c03e33edf70fe0150034e8364f95667d151f81d7a1fc8bb704321b76ba0c
View file https://github.com/cloudfall-dev/cloudfall/blob/a6a9efc71fe70bc6e2f0d6b50f3a6d7fd574625b/changelog.d/465-render-keeps-host-order.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/467/{{ revealButtonHref }}
engine/src/cloudfall_engine/cli.pyhttps://github.com/cloudfall-dev/cloudfall/pull/467/files#diff-03b2db9c2d8aceb662eb02d3323a978e17ea3eee7a38fd84d33d7cef41dedc36
View file https://github.com/cloudfall-dev/cloudfall/blob/a6a9efc71fe70bc6e2f0d6b50f3a6d7fd574625b/engine/src/cloudfall_engine/cli.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/467/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/467/files#diff-03b2db9c2d8aceb662eb02d3323a978e17ea3eee7a38fd84d33d7cef41dedc36
https://github.com/cloudfall-dev/cloudfall/pull/467/files#diff-03b2db9c2d8aceb662eb02d3323a978e17ea3eee7a38fd84d33d7cef41dedc36
engine/tests/test_ansible_inventory.pyhttps://github.com/cloudfall-dev/cloudfall/pull/467/files#diff-d2ac6f0ca5eef1020346d5324a77d289092b6ab1c9b1850cd1c8cad713a68786
View file https://github.com/cloudfall-dev/cloudfall/blob/a6a9efc71fe70bc6e2f0d6b50f3a6d7fd574625b/engine/tests/test_ansible_inventory.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/467/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/467/files#diff-d2ac6f0ca5eef1020346d5324a77d289092b6ab1c9b1850cd1c8cad713a68786
https://github.com/cloudfall-dev/cloudfall/pull/467/files#diff-d2ac6f0ca5eef1020346d5324a77d289092b6ab1c9b1850cd1c8cad713a68786
https://github.com/cloudfall-dev/cloudfall/pull/467/files#diff-d2ac6f0ca5eef1020346d5324a77d289092b6ab1c9b1850cd1c8cad713a68786
https://github.com/cloudfall-dev/cloudfall/pull/467/files#diff-d2ac6f0ca5eef1020346d5324a77d289092b6ab1c9b1850cd1c8cad713a68786
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/467/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.