Skip to content

Restore check: labels say Sunday, as deployed (schedule unchanged) - #316

Merged
cw-instinct[bot] merged 1 commit into
mainfrom
fix/restore-check-sunday-labels
Nov 22, 2026
Merged

cw-instinct[bot] merged 1 commit into
mainfrom
fix/restore-check-sunday-labels

Conversation

@cw-instinct

@cw-instinct cw-instinct Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Docs/labels only: the weekly restore check has always run on Sunday; comments and docs said Monday. The cron expression is intentionally unchanged, so no schedule and no live trigger moves.

Root cause: the expression 30 4 * * 1 was written intending standard-cron Monday, but Cloudflare's cron parser counts the weekday field from 1 = Sunday. Documented in Cloudflare's own Cron Triggers reference (https://developers.cloudflare.com/workers/configuration/cron-triggers/, "Supported cron expressions"):

Weekdays: 1-7, case-insensitive 3-letter abbreviations ("MON", "fri", etc.)
"Days of the week go from 1 = Sunday to 7 = Saturday, which is different on some other cron systems (where 0 = Sunday and 6 = Saturday)."
Example given there: 0 17 * * sun or 0 17 * * 1 = 17:00 (UTC) on Sunday.

Verified live 2026-11-22 against production:

  • The deployed Worker's trigger list reads "At 04:30 AM on Sunday" (next run Sun 29 Nov 2026 04:30).
  • The weekly restore check ran on Sundays Nov 1, 8, 15 and 22 (prod/checks/2026-11-*.json in R2; the 2026-11-22 check passed: 38 tables, 80,680 rows, no problems).
  • The same discrepancy was already flagged in docs/DEPENDABOT-UPDATE-LIFECYCLE.md (2026-11-06 follow-ups); that note now records this fix as prepared-in-branch, not deployed.

Changes (8 files, labels/comments/docs only):

  • platform/wrangler.toml: comment Monday→Sunday + one-line dialect note. All three crons = [...] arrays are byte-identical — the diff touches zero cron values.
  • platform/src/backup.ts: header comment, a note above RESTORE_CHECK_CRON (value unchanged), "Monday check" → "weekly check runs on Sunday".
  • platform/src/openapi.ts: GET /v1/admin/backups description Monday→Sunday (the only user-visible text that changes on the next deploy — wording only, no API shape change).
  • platform/README.md, platform/docs/ops/BACKUP-RESTORE.md: schedule table, "Verify the weekly check" section (adds the dialect note and a "do not 'fix' it to Monday without a deploy decision" warning), three phrasings, staging checklist line.
  • platform/test/backup.test.ts: one test title (assertions unchanged).
  • platform/CHANGELOG.md: new entry per repo convention ("Not yet deployed").
  • docs/DEPENDABOT-UPDATE-LIFECYCLE.md: the 2026-11-06 open note marked as fixed-in-branch with the live verification.

Validation: npx tsc --noEmit clean; full suite npx vitest run = 82 files, 944 passed / 3 skipped (same as current main).

No behavior, schedule, configuration, migration or dependency change. Backup cadence, retention and the 8-day staleness threshold are untouched. Cloudflare is not changed by this PR; on the next deploy wrangler will sync the same expression that is already live.

Cloudflare's cron parser counts the weekday field 1 = Sunday
(https://developers.cloudflare.com/workers/configuration/cron-triggers/),
so '30 4 * * 1' has always fired the weekly restore check on Sunday
04:30 UTC, not Monday as comments and docs said. Verified live
2026-11-22: the production trigger reads "At 04:30 AM on Sunday" and
the check ran on Sundays Nov 1, 8, 15 and 22.

The expression is intentionally unchanged, so this changes no schedule
and no live trigger. Comments, README, the OpenAPI description of
GET /v1/admin/backups, the ops runbook and one test title now say
Sunday / weekly check. No behavior, configuration, migration or
dependency change.
@cw-instinct
cw-instinct Bot requested a review from nerd27dk as a code owner November 22, 2026 11:39
@github-actions github-actions Bot added the outside-signal Report or PR from outside the Commonworld team; picked up by our sweep label Nov 22, 2026
@cw-instinct

cw-instinct Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

@nerd27dk

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T12:02:26.107802Z 1ba4a94 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 1ba4a94ff1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@cw-instinct
cw-instinct Bot merged commit db25623 into main Nov 22, 2026
15 checks passed
@cw-instinct
cw-instinct Bot deleted the fix/restore-check-sunday-labels branch November 22, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

outside-signal Report or PR from outside the Commonworld team; picked up by our sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant