Repository navigation
fix(aggregator): refuse empty/conflicting github-result reports; posted is terminal (#1686) - #3062
Conversation
…; posted is terminal
|
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. |
Codex Review SummaryThis 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: bea8b4e25b
ℹ️ 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 PR 3062: markGithubResult flips the in-memory state before persist(); if that write failed, a repeat report hit the idempotent early return (posted+same url, failed repeat) and acknowledged success while the on-disk comment stayed pending — after a restart it would post again and duplicate the GitHub comment. Both early returns now persist first (persist snapshots the full current state, so the flush lands the earlier un-persisted result too). Regression test breaks the filesystem under the store mid-report (directory replaced by a regular file), forces the first persist to fail, then verifies the repeat lands posted/failed on disk — fails pre-fix, passes now. slice3: 21 pass, only the pre-existing manifest uniqueness failure (#2580) remains.
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! 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". |
Fixes #1686 (queue task 4247, per triage task 1905's confirmed reproduction).
CommentsStore.markGithubResultmapped any url-less report tofailed— an empty{}report wrote a pending comment off unposted, and flipped a posted comment back to failed with its githubUrl still set.Pinned rules (store-level; the endpoint already maps a store throw to 400):
urlnorerror→ refused, state unchanged; both → refused.postedis terminal: a later error or empty report is refused; the same url repeats as an idempotent no-op; a different url is a conflicting report, refused — the first posted result stands.failedis not terminal against success: a retry that lands moves failed → posted; a repeat failure is an idempotent no-op.Tests (
bun test test/slice3.test.tson laptop): 20 pass / 1 fail — the failure is the pre-existing manifest route-uniqueness test owned by PR #2604 / #2580. New regression test covers empty-on-pending, empty-on-posted, url+error, repeat/conflicting reports, and the failed→posted retry path.Need help on this PR? Tag
@codesmith-botwith what you need.