Title: Print no environment file content in a deploy run with --diff by shipmill-romamo[bot] · Pull Request #401 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: Print no environment file content in a deploy run with --diff by shipmill-romamo[bot] · Pull Request #401 · cloudfall-dev/cloudfall
X Title: Print no environment file content in a deploy run with --diff by shipmill-romamo[bot] · Pull Request #401 · cloudfall-dev/cloudfall
Description: Plan Serves: quality bar Files: engine/ansible/roles/cloudfall_deploy/tasks/main.yml, engine/tests/test_deploy_role.py, changelog.d/374-env-file-diff.md Order: a static test over every role's task files that fails on main (the two copies into shared/env/ print their content under --diff), then diff: false on those tasks, then the changelog fragment Proof: uv run pytest engine/tests/test_deploy_role.py engine/tests/test_deploy_rollback.py, ruff, mypy, ansible-lint Summary "Install the release's environment file" and "Carry the previous release's environment over to the release" copied the environment file into shared/env/ without diff: false, so a deploy run with Ansible's --diff printed the file's old and new content, secrets included. Since D-21 every deploy writes a new per-release file, so every value would print. Both tasks now set diff: false; paths, owners and modes are unchanged. A search of every role's task files found no other task that writes content under shared/env/: the rest are ansible.builtin.file (creating shared/env/, removing a failed redeploy copy's file, retention's removal), stat and find, and rollback's replace edits the unit file, not an environment file. Test notes New test_every_task_writing_an_environment_file_prints_no_diff in engine/tests/test_deploy_role.py walks every engine/ansible/roles/*/tasks/*.yml (blocks, rescues and always included) and finds tasks by their destination: a dest or path argument, or the loop holding the paths, that names shared/env/ or an environment path or directory variable (environment_*path, environment_*directory). Each one must set diff: false. It also asserts it finds the two deploy copies, so it can't pass vacuously. It failed on main with exactly those two tasks Scope: modules that print no file content are excluded: ansible.builtin.file (its diff shows only a path's state, never content), stat, find, slurp. Any other module, including a future template or lineinfile, is covered Passed locally: uv run pytest engine/tests/test_deploy_role.py engine/tests/test_deploy_rollback.py engine/tests/test_nginx_site_routes.py (139 passed), uv run ruff check ., uv run mypy, ansible-lint engine/ansible (production profile). The full suite is left to CI Fixes #374 🤖 Generated with Claude Code
Open Graph Description: Plan Serves: quality bar Files: engine/ansible/roles/cloudfall_deploy/tasks/main.yml, engine/tests/test_deploy_role.py, changelog.d/374-env-file-diff.md Order: a static test over every role's ...
X Description: Plan Serves: quality bar Files: engine/ansible/roles/cloudfall_deploy/tasks/main.yml, engine/tests/test_deploy_role.py, changelog.d/374-env-file-diff.md Order: a static test over every role...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/pull/401
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:de677157-eb54-3f7b-6385-1ed3ef58a185 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AF22:1813CE:3E0E:4F94:6B05A572 |
| html-safe-nonce | 04a12723ce171de8f2f301671edad999d625cd1ca982c11d0f9486b4648b9587 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjIyOjE4MTNDRTozRTBFOjRGOTQ6NkIwNUE1NzIiLCJ2aXNpdG9yX2lkIjoiNjMyMzAxNzYyNDgwNDc2Mjk5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0e02907ff8efa530e26c481620133db2219704b416dfd0e9e40fdf2246ea1472 |
| hovercard-subject-tag | pull_request:5327333567 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/cloudfall-dev/cloudfall/pull/401/files |
| twitter:image | https://avatars.githubusercontent.com/u/5600783?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/5600783?s=400&v=4 |
| og:image:alt | Plan Serves: quality bar Files: engine/ansible/roles/cloudfall_deploy/tasks/main.yml, engine/tests/test_deploy_role.py, changelog.d/374-env-file-diff.md Order: a static test over every role's ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1fb3ddc0b71892c329818732762bc26c09d4e193a34ef934888d4731e69c0173 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/cloudfall-dev/cloudfall git https://github.com/cloudfall-dev/cloudfall.git |
| octolytics-dimension-user_id | 339512759 |
| octolytics-dimension-user_login | cloudfall-dev |
| octolytics-dimension-repository_id | 1360999777 |
| octolytics-dimension-repository_nwo | cloudfall-dev/cloudfall |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1360999777 |
| octolytics-dimension-repository_network_root_nwo | cloudfall-dev/cloudfall |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 001eaa59a2e6bac6dc88d27c00f0240847562453 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width