Repository navigation
Repair authenticated Hosted multipart imports and legacy capture recovery - #3135
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
Smoke Summary⏭️ Runtime smoke is not required
|
Static Analysis Summary✅ Static analysis checks passed
CodeQL breakdown
|
Security Summary✅ Security checks passed or were intentionally skipped
|
Validation Summary✅ All validation checks passed
Coverage reports and failure logs are available in the workflow artifacts. |
CodeRabbit can publish a Hosted result in multiple explicitly linked batches. Importing the first batch alone can omit later findings, and completed-attempt replay can hide that omission. This change waits for one complete authenticated publication and imports its owned findings into one result, retaining the primary response identity and using the last batch's submission time for coverage.
Publication validation requires consistent publication and attempt identifiers, unique batch membership, the exact reviewed head and captured trigger window, and an explicit actionable-comment count matching the attached root comments. Owned comments must retain valid original timestamps, review ownership, and original commit identity. Multiple eligible complete publications, missing ownership/count evidence, and conflicting identities fail closed. Summary-only outside-diff and duplicate findings remain separate evidence.
For an older completed but unfinalized partial native capture, sync can add the missing batch evidence and findings to its existing run. The original archives, import payload, decisions, source head, and round/quota identities remain intact. Recovered findings stay unresolved until adjudicated. Supplemental evidence and a recovery receipt are retained; changed findings and finalized partial runs are refused. Unmarked completed legacy results retain their existing replay behavior.
Compatibility and operational limits:
Validation:
bash dev-tools/tests/pr-review-controller-contract.shpassed.python3 -m unittest discover -s dev-tools/validation -p 'test_pr_review_*.py'passed: 1,345 tests, 34.187 seconds of reported test time (38.05 seconds elapsed).