GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat(pm-stack): scheduled-history collector — per-run history for OpenChamber scheduled tasks (#2174 Gap 1) by dezren39 · Pull Request #8437 · developing-today/code Conversation
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 58 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review Summary: ❌ FailedThis 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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 044d40f77a
Your 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".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if lookup is not None and row.get("tokens") is None and row.get("session_id"): | ||
| got = lookup(row["session_id"]) | ||
| if got: | ||
| row.update(got) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Refresh usage while the session is still accumulating tokens
When the first poll finds a session that is still running, this condition permanently freezes its current token counts, cost, and session_updated_at: every later poll skips the lookup because tokens is already non-null. This also affects sessions that outlive the scheduler’s terminal transition, explicitly acknowledged in the README, so long-running tasks can retain zero or partial usage indefinitely and corrupt the comparison/watchdog dataset. Refresh session enrichment on subsequent polls independently of the scheduler outcome.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 3ffc41c (task 17227 shepherd pass) — see the merge-ready note on this PR for the per-finding disposition and the new regression checks in test_collect.py (19/19 pass).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| Description=Run the scheduled-task history collector every 5 minutes — code#2174 Gap 1 | ||
|
|
||
| [Timer] | ||
| OnCalendar=*:0/5 |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Register the collector timer in the fleet schedule registry
This introduces a recurring laptop systemd schedule, but doc/fleet-schedule-registry.md has no entry for scheduled-history.timer, and this commit does not update the registry. Because the registry supplies the fleet placement audit’s inventory, this collector’s recurring work will be invisible to that review. Add its registry row in the same change, as required for new laptop timers.
AGENTS.md reference: AGENTS.md:L53-L58
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 3ffc41c (task 17227 shepherd pass) — see the merge-ready note on this PR for the per-finding disposition and the new regression checks in test_collect.py (19/19 pass).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if args.since and started < args.since: | ||
| continue | ||
| if args.until and started > args.until: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Compare parsed timestamps when filtering run history
When --since or --until uses an ISO timestamp with Z or a non-UTC offset, these string comparisons can include or exclude the wrong runs because stored timestamps always use +00:00. For example, a run starting at 2026-11-11T12:30:00+00:00 is excluded by --since 2026-11-11T13:00:00+01:00, even though that bound means 12:00 UTC. Parse and normalize both bounds and stored timestamps before comparing them so the documented inclusive time window operates on instants rather than their textual representations.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 3ffc41c (task 17227 shepherd pass) — see the merge-ready note on this PR for the per-finding disposition and the new regression checks in test_collect.py (19/19 pass).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| os.makedirs(os.path.dirname(path), exist_ok=True) | ||
| doc = {"schema": "scheduled-history/v1", "rows": rows} | ||
| fd, tmp = tempfile.mkstemp(dir=os.path.dirname(path), suffix=".tmp") |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Resolve bare store filenames before creating their directory
When the collector is invoked with a bare relative store filename, such as --store history.json collect --dir /project, os.path.dirname(path) returns an empty string and os.makedirs('') raises FileNotFoundError. Consequently this --store override never saves any collected history, even though the same path works with list. Normalize the store path or resolve its parent to . consistently for both directory creation and temporary-file placement.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 3ffc41c (task 17227 shepherd pass) — see the merge-ready note on this PR for the per-finding disposition and the new regression checks in test_collect.py (19/19 pass).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
agent-note:v1 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…--until, bare store filename, registry row (Codex P1/P2 on #8437)
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
agent-note:v1
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…s 2/4 Criteria 1-2 of #15339 verified 2026-11-26: all three Muse jobs recorded disabled and absent from this seat's live scheduler (primary seat unreachable, #15131); gap 1 closed (PR #8437), gap 3 closed (PR #11158), gap 2 OPEN (#2072), gap 4 OPEN/unverified. Verdict: the port stays gated until gaps 1-4 close. Registry rows re-reviewed in the same pass; check_gating_record.py guards the record against drift.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.