Title: ci(auto-format): workflow-only exit never records success — LAST_SUCCESS_SHA stalls and every 15-min run re-diffs the same range · Issue #4752 · developing-today/code · GitHub
Open Graph Title: ci(auto-format): workflow-only exit never records success — LAST_SUCCESS_SHA stalls and every 15-min run re-diffs the same range · Issue #4752 · developing-today/code
X Title: ci(auto-format): workflow-only exit never records success — LAST_SUCCESS_SHA stalls and every 15-min run re-diffs the same range · Issue #4752 · developing-today/code
Description: Finding In .github/workflows/auto-format.yml, the workflow-only early exit introduced by PR #3198 never records success, so the AUTO_FORMAT_LAST_SUCCESS_SHA fast path never engages after a workflow-only head. PR #3198 (merged 5018339, fo...
Open Graph Description: Finding In .github/workflows/auto-format.yml, the workflow-only early exit introduced by PR #3198 never records success, so the AUTO_FORMAT_LAST_SUCCESS_SHA fast path never engages after a workflow...
X Description: Finding In .github/workflows/auto-format.yml, the workflow-only early exit introduced by PR #3198 never records success, so the AUTO_FORMAT_LAST_SUCCESS_SHA fast path never engages after a workflow...
Opengraph URL: https://github.com/developing-today/code/issues/4752
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ci(auto-format): workflow-only exit never records success — LAST_SUCCESS_SHA stalls and every 15-min run re-diffs the same range","articleBody":"## Finding\n\nIn `.github/workflows/auto-format.yml`, the workflow-only early exit introduced by PR #3198 never records success, so the `AUTO_FORMAT_LAST_SUCCESS_SHA` fast path never engages after a workflow-only head.\n\nPR #3198 (merged 5018339fd, for #3118) partitioned changed files into `format_files` / `skipped_workflow_files` and added this branch:\n\n```bash\nif ((${#format_files[@]} == 0)); then\n echo \"Only workflow files changed; nothing for the auto-format bot to push.\"\n exit 0\nfi\n```\n\nThe 2026-11-02 scheduled redesign added `record_success` (which stores the current HEAD in the repo variable `AUTO_FORMAT_LAST_SUCCESS_SHA`) to every other terminal success path in the same run block — verified on current main (two independent reads of the file via the contents API, full text + grep):\n\n- no changed files → `record_success` then exit (lines 93–94)\n- treefmt made no changes → `record_success` then exit (lines 122–123)\n- after a successful push → `record_success` (line 142)\n- **workflow-only branch → plain `exit 0` (line 115), no `record_success`**\n\n## Why it matters\n\nThe workflow header states the design intent: \"a run whose HEAD still equals it [LAST_SUCCESS_SHA] exits immediately\". After any merge whose changed-file range is workflow-only, that never happens: every 15-minute scheduled run re-checks out the repo, installs Nix, re-diffs the same range, and re-logs the same skipped workflow files, until an unrelated non-workflow change happens to land and a later branch records success. The variable is documented as an optimization rather than a correctness input, so nothing breaks — it is pure recurring CI burn (up to 96 scheduled runs/day) plus noisy duplicate \"Skipping workflow file(s)\" logs that make the skip look unhandled.\n\n## Acceptance criteria\n\n- The workflow-only branch calls `record_success` before exiting (or an equivalent advance of `AUTO_FORMAT_LAST_SUCCESS_SHA`), matching the other no-op success branches.\n- A subsequent scheduled run with an unchanged HEAD takes the \"main is unchanged since the last successful format pass\" fast path.\n- Workflow files are still never formatted/staged by the bot (the #3118 behavior PR #3198 added is unchanged), and the skipped files are still logged on the run that first sees them.\n- The existing `scripts/tests/test_auto_format_workflow.py` coverage for the workflow-only exit still passes, ideally extended to assert the success recording.\n\nFound by the pr-diff-review job reviewing PR #3198 (batch #3190–#3217, developing-today/code). Deduped: #3118 (closed) is the original push-rejection bug this branch fixed; no open or closed issue mentions `record_success` or the workflow-only stall.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-03T03:37:56Z","url":"https://github.com/developing-today/code/issues/4752"}
| 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:b7d2e091-d846-011c-7fa3-9888e817dec7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F46:2BB16:C974EA:103DBF8:6B063F35 |
| html-safe-nonce | 73edbfdd4ba4e6f6283217a64f4598cfce2173154d6e165c4c9ea4ed7dc46a29 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjQ2OjJCQjE2OkM5NzRFQToxMDNEQkY4OjZCMDYzRjM1IiwidmlzaXRvcl9pZCI6IjI3NjE5NDQ0Nzc0Mzc2NzMyNjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 38a9ccbbe35a8e3716c8d7855bfe04b7fd90f4becca632770a04e7233c30a0ad |
| hovercard-subject-tag | issue:6175797920 |
| 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/developing-today/code/4752/issue_layout |
| twitter:image | https://opengraph.githubassets.com/538960ae639bc2435af2b378a08b2235c9284056600b17079d340f5afd888789/developing-today/code/issues/4752 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/538960ae639bc2435af2b378a08b2235c9284056600b17079d340f5afd888789/developing-today/code/issues/4752 |
| og:image:alt | Finding In .github/workflows/auto-format.yml, the workflow-only early exit introduced by PR #3198 never records success, so the AUTO_FORMAT_LAST_SUCCESS_SHA fast path never engages after a workflow... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | dcf72c457c022486d23c3cbb0dd21aba537a87611ca9ddabd1799cf2eaa9b297 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| 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 | 0f38f5735226749ec5e08a8649dce4cb2613d9ad |
| 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