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(projector): integrated queue/PM view, machine face (#7078) by dezren39 · Pull Request #8481 · 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 56 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: ✅ 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. |
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: c4608268fb
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.
| export function claimTimestamp(task: QueueTaskRecord): string | null { | ||
| return task.claimed_at ?? task.progress?.last_checkpoint?.at ?? null; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Use an authoritative claim timestamp for rich broker rows
When the input comes from the broker's rich list response, progress.last_checkpoint.at is not the claim time: verb_checkpoint overwrites it on every checkpoint (pkgs/fleet/crates/fleet-queue/src/turso_queue.rs:4662–4676), while claim updates retain existing checkpoint progress. Consequently, a task claimed before the window but checkpointed within it is reported as newly claimed, and a newly reclaimed task carrying an old checkpoint can be omitted entirely. Obtain the actual claimed_at for these rows, or represent it as unknown rather than substituting an unrelated activity timestamp.
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 fdd3625. claimTimestamp now returns only the record's own claimed_at; the progress.last_checkpoint.at substitution is removed (you are right that verb_checkpoint overwrites it, so it mis-dated claims in both directions). Rich rows without claimed_at now report claimed_at: null (unknown) and are listed as now-facts instead of being dated by a checkpoint. The old fallback test was replaced with an oracle covering exactly your cases: in-window checkpoint + no claimed_at → listed, null; stale checkpoint + no claimed_at → listed, null; claimed_at before the window + in-window checkpoint → excluded. Queue-view suite 7/7, full projector suite 120 pass.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| const until = new Date(); | ||
| const since = new Date(until.getTime() - windowHours * 3_600_000); | ||
| const consumer = arg("consumer") ?? "queue-view"; | ||
| const consumed = await consumeHotList(db, consumer); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Pin the hot-list high-water before choosing the window end
If a webhook event is appended after until is captured but before consumeHotList reads its high-water, that event is included in the consumed batch but removed by buildQueueView's window filter. The subsequent acknowledgement still advances through its sequence, so the event is never emitted and cannot be recovered by the next invocation using the same consumer. Capture the window end after pinning the high-water, or otherwise ensure the checkpoint does not advance past events excluded because they arrived after the cutoff.
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 fdd3625. The queue-view CLI now calls consumeHotList first — pinning the hot-list high-water — and only then captures the window end (until) and derives since. Every consumed event therefore has received_at <= pin <= until, so no consumed event can be excluded by the window filter and acked past; anything appended after the pin is neither consumed nor acked and is picked up by the next run. The ordering is documented at the call site. Queue-view suite 7/7, full projector suite 120 pass.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…before window end (#7078) Codex findings on PR #8481 (both P2): (1) claimTimestamp substituted progress.last_checkpoint.at for claimed_at on rich broker rows, but verb_checkpoint overwrites that timestamp on every checkpoint, mis-dating claims both directions — now claimed_at only, unknown reported as null and listed as a now-fact. (2) The queue-view CLI captured its window end before consumeHotList pinned the hot-list high-water, so an event appended after until but before the pin could be consumed, window-filtered out, and acked past (lost) — the CLI now consumes first and captures until after the pin. Tests: queue-view suite 7/7 (fallback test replaced with the authoritative-claimed_at oracle, incl. the in-window-checkpoint exclusion case); full projector suite 120 pass.
Read-only queue-view CLI + join module (#2072 slice 3, first landable piece): joins fleet queue task records with the slice-2 hot list consumed through a consumer checkpoint (pin high-water, ack after emit). Emits queued items in broker claim order, items claimed in the window with claiming worker/lane/platform, snapshot counts by status, and links to the existing aggregator/projector trend stores. No new ingestion, no new collectors, no writes.
…before window end (#7078) Codex findings on PR #8481 (both P2): (1) claimTimestamp substituted progress.last_checkpoint.at for claimed_at on rich broker rows, but verb_checkpoint overwrites that timestamp on every checkpoint, mis-dating claims both directions — now claimed_at only, unknown reported as null and listed as a now-fact. (2) The queue-view CLI captured its window end before consumeHotList pinned the hot-list high-water, so an event appended after until but before the pin could be consumed, window-filtered out, and acked past (lost) — the CLI now consumes first and captures until after the pin. Tests: queue-view suite 7/7 (fallback test replaced with the authoritative-claimed_at oracle, incl. the in-window-checkpoint exclusion case); full projector suite 120 pass.
fdd3625 to
cf87bc4
Compare
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: cf87bc4913
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.
| test("taskRef prefers payload repo+issue, falls back to the dedupe key", () => { | ||
| expect(taskRef(task({}))).toBe("developing-today/code#100"); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Add property-based coverage for the new parser invariants
The new taskRef parser is covered only by three fixed examples, despite root AGENTS.md requiring property-based tests for parsers with meaningful invariants. Add generated repo/issue references and malformed dedupe keys, checking round-trip extraction, payload precedence, and rejection against an explicit oracle; retain these examples as smoke coverage rather than the sole validation.
AGENTS.md reference: AGENTS.md:L41-L45
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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.