René's URL Explorer Experiment


Title: Load the Elasticsearch restart handler's node-start file without a nested block (#495) by shipmill-romamo[bot] · Pull Request #517 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Load the Elasticsearch restart handler's node-start file without a nested block (#495) by shipmill-romamo[bot] · Pull Request #517 · cloudfall-dev/cloudfall

X Title: Load the Elasticsearch restart handler's node-start file without a nested block (#495) by shipmill-romamo[bot] · Pull Request #517 · cloudfall-dev/cloudfall

Description: Plan Serves: quality bar Files: engine/ansible/roles/cloudfall_elasticsearch/tasks/node-start.yml, engine/tests/test_role_handlers_load.py (new), engine/tests/test_s012_elasticsearch_cluster_role.py, changelog.d/495-elasticsearch-handler-block.md Order: the failing test first (every role's handlers, and the task files they include, loaded with Ansible's handler loader), then flatten the nested block in node-start.yml, then the S-012-6 test that read the old shape, then the changelog fragment Proof: test_role_handlers_load.py fails on main with ansible-core's own Using a block as a handler is not supported. for cloudfall_elasticsearch and passes with the fix Summary The restart handler was already an include_tasks handler (handlers/main.yml includes tasks/restart.yml, which includes node-stop.yml then node-start.yml). The error at node-start.yml:16:7 comes from a different rule: ansible-core loads every file a handler includes with its handler loader, which accepts a block at a file's top level but refuses one nested inside another block (ansible/playbook/helpers.py, load_list_of_tasks with use_handlers=True). node-start.yml nested the rejoin steps ("Wait for the node to rejoin on the declared version") inside the "Start the node and let replicas move again whatever happens" block. The fix lifts the three rejoin steps (wait to rejoin, read the version, refuse another version) into the outer block, each carrying the nested block's two conditions (cloudfall_elasticsearch_rolling | default({}) | length > 0, not ansible_check_mode). The steps, their order, the always that lets replicas move again, the handler name, every notify: string, restart.yml and node-stop.yml are unchanged. With the handler loading, a first converge starts the node, and the tasks after flush_handlers record the cluster-formed marker and remove cluster.initial_master_nodes in the same run. Other roles: cloudfall_access, cloudfall_alerting, cloudfall_firewall, cloudfall_logging_backend, cloudfall_logging_collector, cloudfall_mariadb, cloudfall_nginx_site, cloudfall_postgresql and cloudfall_redis have no block handler and include no task file from a handler; the new test loads them all and they pass. Tests engine/tests/test_role_handlers_load.py (new): for each role with handlers/main.yml, follows its include_tasks/import_tasks chain and loads every file with load_list_of_blocks(..., use_handlers=True), as a notified handler loads it; a second test checks the walk reaches restart.yml, node-stop.yml and node-start.yml, so the first can't pass vacuously. Fails on main, passes here test_s012_6_a_restarted_node_rejoins_on_the_new_version_before_the_next reads the flattened steps and now checks each rejoin step's conditions uv run pytest engine/tests/test_role_handlers_load.py engine/tests/test_s012_elasticsearch_cluster_role.py engine/tests/test_s012_elasticsearch_existing_cluster_role.py: 50 passed uv run ruff check, uv run ruff format --check on the touched test files, uv run mypy, ANSIBLE_CONFIG=engine/ansible/ansible.cfg uv run ansible-lint engine/ansible: pass ruff format also reformatted three older hunks in test_s012_elasticsearch_cluster_role.py that were not formatted on main Not run: ansible-playbook --syntax-check (the headless session's hook allows no ansible-playbook; CI runs it, and it can't catch this error anyway since handler includes load at run time) and a live converge on a host Fixes #495 🤖 Generated with Claude Code

Open Graph Description: Plan Serves: quality bar Files: engine/ansible/roles/cloudfall_elasticsearch/tasks/node-start.yml, engine/tests/test_role_handlers_load.py (new), engine/tests/test_s012_elasticsearch_cluster_role....

X Description: Plan Serves: quality bar Files: engine/ansible/roles/cloudfall_elasticsearch/tasks/node-start.yml, engine/tests/test_role_handlers_load.py (new), engine/tests/test_s012_elasticsearch_cluster_role....

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

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:94e46dbf-be92-f64d-4777-7508c1d38a0f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCD16:64B1C:5188A2:6EA04F:6B055F1A
html-safe-nonce3ddd1b33bc6ddb76580a5025aec4cf6b222e3e2c9316cbdec939cea18ea6041b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDE2OjY0QjFDOjUxODhBMjo2RUEwNEY6NkIwNTVGMUEiLCJ2aXNpdG9yX2lkIjoiMzU5MzA3NTM0NTYyMjEzMDQ1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd0fa556b844d9cbf116aee76fca10cbce24f09d6144dc884757cea9534decfb8
hovercard-subject-tagpull_request:5359413829
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/517/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_elasticsearch/tasks/node-start.yml, engine/tests/test_role_handlers_load.py (new), engine/tests/test_s012_elasticsearch_cluster_role....
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None8a6760da3cce5e2d079d07e3b62df71194316c4478db1a5e38050f44fce72c72
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
release8327739ac0648b9c3c722b5f401f7338553936b8
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cloudfall-dev/cloudfall/pull/517/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F517%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%2F517%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/517/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/517/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/517/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/495-elasticsearch-handler-blockhttps://github.com/cloudfall-dev/cloudfall/tree/fix/495-elasticsearch-handler-block
Conversation 0 https://github.com/cloudfall-dev/cloudfall/pull/517
Commits 1 https://github.com/cloudfall-dev/cloudfall/pull/517/commits
Checks 2 https://github.com/cloudfall-dev/cloudfall/pull/517/checks
Files changed https://github.com/cloudfall-dev/cloudfall/pull/517/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/517/files
Load the Elasticsearch restart handler's node-start file without a nested block (#495) https://github.com/cloudfall-dev/cloudfall/pull/517/files#top
Show all changes 1 commit https://github.com/cloudfall-dev/cloudfall/pull/517/files
0380484 Load the Elasticsearch restart handler's node-start file without a ne… shipmill-romamo[bot] Nov 17, 2026 https://github.com/cloudfall-dev/cloudfall/pull/517/commits/0380484d68544827f5d02a9909a9558dc3844023
Clear filters https://github.com/cloudfall-dev/cloudfall/pull/517/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/517/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/517/files
495-elasticsearch-handler-block.md https://github.com/cloudfall-dev/cloudfall/pull/517/files#diff-9296bc293d8710055f5025fab02339e728ad58ffd1c739bb89824c59671c315d
node-start.yml https://github.com/cloudfall-dev/cloudfall/pull/517/files#diff-148dff4700b521bed8f46a6e9f1fca7675f724d7f7b12b264951299d3d39be5f
test_role_handlers_load.py https://github.com/cloudfall-dev/cloudfall/pull/517/files#diff-8e2cc328740460230f941e529a140ee7978e39648b23b4503e5d9b7fd03f0c03
test_s012_elasticsearch_cluster_role.py https://github.com/cloudfall-dev/cloudfall/pull/517/files#diff-26e89b286a311a00b3c5a77fd772a084216233688c85a6ff4f011a841ab40dd6
changelog.d/495-elasticsearch-handler-block.mdhttps://github.com/cloudfall-dev/cloudfall/pull/517/files#diff-9296bc293d8710055f5025fab02339e728ad58ffd1c739bb89824c59671c315d
View file https://github.com/cloudfall-dev/cloudfall/blob/0380484d68544827f5d02a9909a9558dc3844023/changelog.d/495-elasticsearch-handler-block.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/517/{{ revealButtonHref }}
engine/ansible/roles/cloudfall_elasticsearch/tasks/node-start.ymlhttps://github.com/cloudfall-dev/cloudfall/pull/517/files#diff-148dff4700b521bed8f46a6e9f1fca7675f724d7f7b12b264951299d3d39be5f
View file https://github.com/cloudfall-dev/cloudfall/blob/0380484d68544827f5d02a9909a9558dc3844023/engine/ansible/roles/cloudfall_elasticsearch/tasks/node-start.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/517/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/517/files#diff-148dff4700b521bed8f46a6e9f1fca7675f724d7f7b12b264951299d3d39be5f
https://github.com/cloudfall-dev/cloudfall/pull/517/files#diff-148dff4700b521bed8f46a6e9f1fca7675f724d7f7b12b264951299d3d39be5f
https://github.com/cloudfall-dev/cloudfall/pull/517/files#diff-148dff4700b521bed8f46a6e9f1fca7675f724d7f7b12b264951299d3d39be5f
engine/tests/test_role_handlers_load.pyhttps://github.com/cloudfall-dev/cloudfall/pull/517/files#diff-8e2cc328740460230f941e529a140ee7978e39648b23b4503e5d9b7fd03f0c03
View file https://github.com/cloudfall-dev/cloudfall/blob/0380484d68544827f5d02a9909a9558dc3844023/engine/tests/test_role_handlers_load.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/517/{{ revealButtonHref }}
engine/tests/test_s012_elasticsearch_cluster_role.pyhttps://github.com/cloudfall-dev/cloudfall/pull/517/files#diff-26e89b286a311a00b3c5a77fd772a084216233688c85a6ff4f011a841ab40dd6
View file https://github.com/cloudfall-dev/cloudfall/blob/0380484d68544827f5d02a9909a9558dc3844023/engine/tests/test_s012_elasticsearch_cluster_role.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/517/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/517/files#diff-26e89b286a311a00b3c5a77fd772a084216233688c85a6ff4f011a841ab40dd6
https://github.com/cloudfall-dev/cloudfall/pull/517/files#diff-26e89b286a311a00b3c5a77fd772a084216233688c85a6ff4f011a841ab40dd6
https://github.com/cloudfall-dev/cloudfall/pull/517/files#diff-26e89b286a311a00b3c5a77fd772a084216233688c85a6ff4f011a841ab40dd6
https://github.com/cloudfall-dev/cloudfall/pull/517/files#diff-26e89b286a311a00b3c5a77fd772a084216233688c85a6ff4f011a841ab40dd6
https://github.com/cloudfall-dev/cloudfall/pull/517/files#diff-26e89b286a311a00b3c5a77fd772a084216233688c85a6ff4f011a841ab40dd6
https://github.com/cloudfall-dev/cloudfall/pull/517/files#diff-26e89b286a311a00b3c5a77fd772a084216233688c85a6ff4f011a841ab40dd6
https://github.com/cloudfall-dev/cloudfall/pull/517/files#diff-26e89b286a311a00b3c5a77fd772a084216233688c85a6ff4f011a841ab40dd6
https://github.com/cloudfall-dev/cloudfall/pull/517/files#diff-26e89b286a311a00b3c5a77fd772a084216233688c85a6ff4f011a841ab40dd6
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/517/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.