Title: Gate a deploy on the command health check and receipt it (S-009-2..9, 11, 12) · Issue #164 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: Gate a deploy on the command health check and receipt it (S-009-2..9, 11, 12) · Issue #164 · cloudfall-dev/cloudfall
X Title: Gate a deploy on the command health check and receipt it (S-009-2..9, 11, 12) · Issue #164 · cloudfall-dev/cloudfall
Description: Builds part of spec S-009, docs/specs/009-command-health-check.md (feature issue #152): the acceptance criteria below. Each needs a test that names its id (test_s009_
Open Graph Description: Builds part of spec S-009, docs/specs/009-command-health-check.md (feature issue #152): the acceptance criteria below. Each needs a test that names its id (test_s009_
X Description: Builds part of spec S-009, docs/specs/009-command-health-check.md (feature issue #152): the acceptance criteria below. Each needs a test that names its id (test_s009_<k>_..., or a proves: S-0...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/164
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Gate a deploy on the command health check and receipt it (S-009-2..9, 11, 12)","articleBody":"Builds part of spec S-009, `docs/specs/009-command-health-check.md` (feature issue #152): the acceptance criteria below. Each needs a test that names its id (`test_s009_\u003ck>_...`, or a `proves: S-009-2` comment line).\n\nThis is the command check in the deploy's health gate, its rescue, and the release receipt's `healthCheck`.\n\n- S-009-2: The command check runs after the `Switch the current release symlink` and `Restart the component service` tasks, inside the block whose `rescue` restores the previous release, as the application's `linuxUser`, with working directory `\u003cinstallRoot>/current`, the service unit's `EnvironmentFile=-` line and `RuntimeMaxSec=` equal to `timeoutSeconds`\n- S-009-3: A relative first element of `command` runs as `\u003cinstallRoot>/current/\u003celement>`, and an absolute one runs unchanged\n- S-009-4: A command check that exits 0 lets `deploy --yes` exit 0 with a receipt carrying `healthCheckPassed: true` and `healthCheck` with the command, `attempts: 1`, `exitCode: 0` and `timedOut: false`\n- S-009-5: A command check that exits 3 on every attempt makes `deploy --yes` exit `ENGINE_STEP_FAILED` with an `error.message` naming the command health check and exit code 3; afterwards `current` points at the previous release, the service was restarted on it, and the receipt at `\u003creleases>/\u003ccomponent>.json` validates against the schema with `healthCheckPassed: false`, `healthCheck.exitCode: 3`, `release` the failed release and `previousRelease` the restored one\n- S-009-6: The same failure on a first release stops the service and writes a receipt with `healthCheckPassed: false` and `previousRelease: null`\n- S-009-7: A run still going after `timeoutSeconds` is stopped and counts as a failed attempt; when the last attempt timed out, the deploy fails the same way, the `error.message` names the timeout, and the receipt has `timedOut: true` and `exitCode: null`\n- S-009-8: A check that fails twice and then passes with `attempts: 3` passes and records `attempts: 3`; a check that always fails runs exactly `attempts` times, 3 seconds apart\n- S-009-9: A check that prints a marker string on stdout and stderr and exits 1 leaves the marker in neither the receipt, the `ansible-playbook` output nor the `deploy` error, and the receipt schema refuses a `healthCheck` with any key besides `type`, `command`, `attempts`, `exitCode` and `timedOut`\n- S-009-11: The receipt schema refuses `healthCheckPassed: false` without a command `healthCheck`, or with `exitCode: 0`, and still accepts every receipt the deploy writes today\n- S-009-12: Components with `type: http` and `type: none` run the same gate tasks as before, their receipts have no `healthCheck` key, and a failed `http` or `none` gate writes no receipt\n\nDepends on cloudfall-dev/cloudfall#161\n\n\u003c!-- shipmill:agent -->","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-10-30T13:34:00Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/164"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8a73a6d3-1931-3734-8184-477abf0d9d0f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C48C:197A8C:F470A0:14E4925:6B0558A5 |
| html-safe-nonce | 8a2d5ac59c605ae236ea5a9185a82063a5c8c5005d81a9134a352c65018862df |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDhDOjE5N0E4QzpGNDcwQTA6MTRFNDkyNTo2QjA1NThBNSIsInZpc2l0b3JfaWQiOiIzNDYxMTQ1NTQyNDA1NzQwNzA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3ddc7906b45e22d72b21ae8a516a3fbe0b1495f428c9372a997684ed26cfd6bf |
| hovercard-subject-tag | issue:6120051557 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/cloudfall-dev/cloudfall/164/issue_layout |
| twitter:image | https://opengraph.githubassets.com/18361f94531fff30b8e304851f191c2cdd511075f99a70e800b4d334ef1d8ad3/cloudfall-dev/cloudfall/issues/164 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/18361f94531fff30b8e304851f191c2cdd511075f99a70e800b4d334ef1d8ad3/cloudfall-dev/cloudfall/issues/164 |
| og:image:alt | Builds part of spec S-009, docs/specs/009-command-health-check.md (feature issue #152): the acceptance criteria below. Each needs a test that names its id (test_s009_ |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shipmill-romamo[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | a79a02b7e7546ea306864e922ed2103ef4c04fac63168e11c2b2d4d816793080 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 10dff83edfd4f3617a7792a152d44991587b434c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width