Repository navigation
fix: bound PR canonical index encoding before growth - #1831
EffortlessSteven merged 4 commits into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 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:
Comment |
There was a problem hiding this comment.
Code Review
This pull request adds test cases to verify the handling of oversized entries and byte limits during PR evidence generation in both "crates/ripr/src/app/pr_evidence.rs" and "xtask/src/reports/pr_evidence.rs". The feedback recommends replacing the hardcoded magic number "128 * 1024" with the named constant "REVIEW_INPUT_MAX_BYTES" in both test files to improve code maintainability and consistency.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent exact-source review of22de7ad3459cccfe0b725e9a6c939baab987188f/treeb009c1dd3f61b0bb04b593bd528cc3d56c782cd2 found no actionable source, import, integration or safeguard defect. Shared producer helper retains4096/2MiB, admits entries before unchanged projection, refuses encoded length before reservation/copy, uses manuallyclamped geometric try_reserve_exact, and emits count/digest only after complete serialization. Legacy successful bytes/order/digest, undercap errors and consumer duplicate rejection are preserved; publicAPI record additive, protected gate implementation unchanged. Reviewer challenged two weak tests; corrected rejected2049total leaves buffer/request1024 unchanged underlimit2048, and successful3000limit forces1024→2048→3000→3000. Private all-or-error write_all override preserves firstfailure even on emptyretry. Actual bothproducer admittedbaseline→named indexrefusals→savedcheck/directreview refusal→recovery controls retained. Root observed terminal test-onlyCI37919457356/job113783603676 intendedred: old projection error where entryguard expected, with unchanged production. Disposition REVIEW_INCOMPLETE until exact published-head formatting/compiler/writer+xtask controls and producer/check/review receipts. Bounded encodedlength/admittedrequests only; decoded/projection/evidence allocations, consumerencoding, physicalcapacity/RSS, fullcarrier and complete-route remain outside claim. COMMENT on authoredPR, not approval.
|
Carrier coordination readback for exact head Please retain existing writer ownership, apply the formatter output in a normal scoped successor, reconcile the two named-presentation-constant review threads, and qualify the exact new head/tree through mandatory formatting/compiler/tests, both actual producer controls and producer/check/review proof. Independent exact-source inspection found no concrete semantic blocker; this remains REVIEW_INCOMPLETE, not complete-route qualification. No coordinator source edits or reruns were made, and this does not request any build in the paused old task or desktop. Separately, current carrier e81fd Perl/release job113782824770 is terminalfailure after103Perl tests and release phases: nativeproducerexit2 / stepexit1, 518,606changedRustlines across961files versus5,400, analysis not run. This is fresh e81fd evidence, not the historical77c3 denominator. Required Rust/coverage/analytics/broadWindows remain active; full issue1627 route is still disabled and owned by the existing writer. Current successor readback and independent local proof (11:40UTC): Writer published Because the hosted artifact endpoint remained technically blocked, carrier coordination independently regenerated the normal exact e81fd→8b0/treeabbd producer/check/review/check/annotations/check in a measured isolated cloud worktree with the repository-declared Rust1.95.0, unchanged lockfile and locked/offline serial compile. All seven native stages exited0. Check schema0.2 SHA256 Retained exact reports, compiler-artifact-selected executable hashes, verified source bundle, per-ID dispositions and resource receipts are preserved. Owned target/worktree/tools were released only after terminal consumers and byte/hash readback: peak private process-tree RSS3.23GB, minimum free21.60GB, required10GiB reserve intact; free29.49GB after closeout. No old-task/desktop build, competing source edit, cap increase or new remote CI run was requested. This is local alternative evidence, not hosted ZIP byte equivalence or full-producer heap/full-carrier/complete-route qualification. Existing writer retains the next guard-before-deep-clone slice; complete route remains NEEDS_REVISION/DO NOT ENABLE. Terminal successor qualification and integration (12:17 UTC): Exact8b0/treeabbd is independently REVIEW_READY for this bounded source prerequisite. Current Routed37921898892 child113791642920 passed13,240tests/5skipped, both actual producer transaction controls and all four shared writer controls; normalized aggregate113811274758 native Previous e81carrier runs are now terminal: Rust13,236passed/5skipped and release phases passed, then producer refused518,606Rustlines/961files/5,400guard with analysis not run; Perl matched that guard refusal after103passed. Coverage/analytics passed. BroadWindows37919221011 cancelled at90minutes: run1 nativeexit101 with observed failures; run2 status_missing/unknown exit and trustworthy-summary refusal. These are retained native verdicts, not successor017db proof. Existing writer now owns published guard-before-deep-clone PR1833 atd4522c8c/treec2a325fe/base017db; current CI37928614956 and Routed37928844223 are active. Complete route stays NEEDS_REVISION/DO NOT ENABLE; no cap increase, duplicate writer, old-task/desktop build or publication. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Current exact-source review: 8b0db37 / tree abbd455ad132584bca5ed76ac1324e85c07588fc, parent 22de. All thirteen formatting hunks match actual completed Routed formatter output. The two test preconditions now use existing REVIEW_INPUT_MAX_BYTES constants, both still 128 KiB; verified replies and resolved thread readback recorded. Production semantics, shared helper, public API record, cap/refusal behavior and writer controls are unchanged. No actionable finding. Root observed terminal intended old-code red and repair22de Rust-only green: four new boundary/growth/equivalence controls plus installed producer control passed, 7,497 unit tests passed/0 failed/2 ignored with integration/docs. Test subject641d4ff9f8e59b723ea8751cd1463e2394e12ed5 has parents e81+22de and exact22de treeb009. Those historical results do not qualify current8b. Disposition REVIEW_INCOMPLETE pending fresh formatting/compiler/tests, xtask controls and actual producer/check/review receipts on current8b. Complete route remains disabled; no full-carrier, physical-capacity or RSS claim.
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY for exact8b0db371bfb0d8f0af9ade4221eeb8602b6f3806/treeabbd455ad132584bca5ed76ac1324e85c07588fc, basee81fd3adbc3d528548600f2a0fe6583f64e29977. Independent reviewer inspected the complete4file source/consumer/oracle delta and independently fetched terminal logs/current checks; no actionable source/contract/oracle findings.
Routed37921898892/job113791642920 SUCCESS:13240passed5skipped, all4helper/writer controls and both installed/xtask producer transaction controls PASS; fmt/check/clippy/recorded gates completed. Actual literal e81→8b producer→savedcheck→review→reviewcheck succeeded with contract confirmations. Normalized113811274758 verdict=passed bound to basee81, PRhead8b/treeabbd and syntheticf5442f22/treeabbd; syntheticparents e81+8b/treeexactabbd independently verified. Artifact identities/digests confirmed from metadata/logs only, archives not materialized. All36currentchecks terminal23success13skip; boththreadsresolved with verifiedreplies. Final independenthead/base read12:10:42UTC remains exact/Ready/clean.
No remaining blocker for ordinary protected integration of this leaf. Logical encoded length/admitted reservation requests is the claim; no physicalcapacity/RSS/globalValue/projection bound, complete-route activation, full-carrier or RC qualification claim.
017dbb5
into
sync/history-ripr-engineering-20261004
Both PR producers now admit the existing 4,096-entry limit before canonical projection and enforce the existing 2 MiB encoded-byte limit before growing the index buffer. Successful bytes, order and digests remain identical; an oversized ten-item presentation cannot rescue a failed exhaustive index.
Qualified head
8b0db371bfb0d8f0af9ade4221eeb8602b6f3806, treeabbd455ad132584bca5ed76ac1324e85c07588fc, carrier basee81fd3adbc3d528548600f2a0fe6583f64e29977. The shared review_input helper feeds installed and xtask producers, with an additive public API record. A private sticky fallible encoder clamps geometric reservation requests and preserves the first failure across empty retries. Digest/count derive only from complete encoding; duplicate derivation retains downstream rejection. Separate ten-entry/128 KiB presentation guards, subject-first revocation and subject-last publication remain.Observed proof:
Controls cover frozen successful encoding/order/digest, empty/Unicode/escape data, exact 2 MiB/+1, raw-size versus escaped-size expansion, 4,096/+1 pre-projection admission, duplicate consumer refusal, sticky refusal before growth and non-power-of-two reservation clamp. Actual producer controls include 4,096 unique findings whose full index exceeds 2 MiB while ten presentation items fit, and malformed 4,097 input; stale same-subject saved-check/direct-review refusal and recovery remain.
Governing issue/ownership/design: #1627 (comment). This integrates one reviewed source prerequisite into existing carrier #1818; dependent guard #1833 remains separate. No cap, schema, workflow, toolchain, protected-check, permission, runner or security change. Rollback is review_input.rs, both producer files and the additive API record.
Claim bounded logical encoded length/admitted reservation requests only. Physical capacity, RSS, decoded Value/projection/evidence allocations, complete full-carrier production and RC readiness remain outside this proof. Complete route stays DISABLED and canonical ab614 qualification remains NOT_ESTABLISHED. Local execution remains unavailable at the recorded pre-process helper_unknown_error; hosted proof is retained remotely.