Repository navigation
Atlas refresh: count failed weeks at >=168 h, keep state of failed runs, say recorded checks - #313
Conversation
…ns, say recorded checks Code, tests and protocol only; no Atlas data.
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 87fad69990
ℹ️ 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".
…er week Codex P1 on 87fad69: a retry after a run that counted the 2nd week but lost the closure stayed live. A valid last_counted_at with failed_weeks >= 2 and a still-failing check now closes the card without adding a week; legacy history without a valid count time is never treated as earned.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5f585e03e1
ℹ️ 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".
…hing Codex P1 on 5f585e0: state_before was taken after adopting a --state-from candidate, so a same-week rerun carrying a PR's state wrote nothing and the superseded PR branch was deleted with its counters. The run now compares with the state on disk.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c31e3aa93a
ℹ️ 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".
Codex P2 on c31e3aa: failure() is evaluated when a step's turn comes, so the upload placed before Open PR could not see a failure of Open PR or of the cleanup. It is now the last step; a structural test pins the order and the condition.
|
@codex review |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Code, tests and protocol text only. No Atlas data or generated files (PR #311 is untouched).
Why
The Nov 15 refresh run failed after the Refresh step, so its failed-week counters were never saved and the Nov 21 run counted from older state. Also, every failed run added a "week", so a manual dispatch plus the Sunday schedule or a retry could close an entry in one week, and the closed card said "2 consecutive" while its claim said 3.
Changes
last_counted_at). An older entry with exactly 1 failed week usesfirst_failed_at(this script sets it only when it creates the entry and counts it in the same run). When the previous count time is unknown or unreadable, the check does not count:interval_baseline_atis set as the start of the 7 days;failed_weeksandfirst_failed_atare kept. No tolerance for schedule drift, so a Sunday run that starts earlier than the previous counted one can wait one more week; it never closes early.refresh-state.jsonis uploaded as artifactatlas-refresh-state(21 days).atlas/tools/carry_failed_state.py(read only) scans the last 100 runs of refresh.yml on main with conclusion failure or timed_out, checks the artifact's branch, takes the newest valid state byupdated_at, and skips anything missing, expired, undownloadable or malformed.refresh.py --state-fromis repeatable; the newest validupdated_atwins, so an older state never overrides a newer one. No PR is opened by a failed run and no generated data is published.last_counted_atqualifies; legacy history without one is never treated as earned, and the check must still fail.failure()also sees a failure of Open PR or of the cleanup; a structural test pins the order and the condition.Checks
New tests: tests/test_refresh_state_wording.py and tests/test_carry_failed_state.py (offline, fake
gh, patched clock; same-week reruns, exactly 7 days, unknown/bad last-count time, failed Refresh then retry, newest-by-timestamp selection, expired/missing/malformed artifacts, branch/event provenance). Full suite: 537 tests OK locally; site build and check.py pass.Not verified
The workflow itself has not run on GitHub: the
failure()condition and job-timeout behavior, artifact upload/download,gh run list/downloadand the artifacts API shapes in this repo, and token permissions. That needs one real failing run on a branch, not done here. A run that adopts a carried state and changes nothing writes no state; the artifact expires after 21 days. Takes effect only after this lands on main; the existing four closed cards keep their old claim text.No Codex request, merge or deploy is part of this PR.