Repository navigation
test(cross-version-wire): compare published fields per frame - #17301
Conversation
Greptile SummaryThe PR corrects the cross-version terminal-wire compatibility oracle so repeated
Confidence Score: 5/5The PR appears safe to merge, with no concrete correctness, security, or independently actionable quality issues identified. The changed helper’s callers are fully migrated, journey ordering and occurrence counts are validated before comparison, and the regression mutation exercises the production oracle without modifying shared reference data.
|
| Filename | Overview |
|---|---|
| tests/e2e/cross-version-wire/published-field-shape.ts | Replaces sequence-wide key unioning with single-frame extraction and count-checked positional comparison. |
| tests/e2e/cross-version-wire/cross-version-terminal-wire.unit.test.ts | Applies occurrence-specific comparisons to validated journey records and proves reveal-only field removal is detected. |
| tests/e2e/cross-version-wire/published-field-shape.unit.test.ts | Covers sorted extraction, occurrence-specific removals, unequal counts, and existing skew behavior. |
| docs/reference/remote-wire-compatibility.md | Documents occurrence-by-occurrence comparison and the masking defect caused by unioning repeated frame fields. |
Reviews (1): Last reviewed commit: "test(cross-version-wire): compare publis..." | Re-trigger Greptile
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe wire field helpers now read keys from individual frames and compare older and newer frames by position. They reject mismatched occurrence counts. Terminal wire tests apply these checks to initial, reveal, and reconnect Merge Risk: ⚪ Minimal · up to This PR makes repeated wire-frame compatibility checks compare each corresponding frame instead of combining them, improving detection of test regressions without changing production behavior. No actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 3 files. (1 skipped: 1 unsupported.) Full details: Description checkExplanation The description is detailed and relevant. It explains the root cause, changes, rationale, regression proof, testing, visual impact, AI use, and scope. It also references linked issue
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 |
ELI5
The cross-version test checked which fields Orca publishes by combining all three snapshot-start frames into one set. That let one healthy frame hide a field missing from another. The test now compares initial to initial, reveal to reveal, and reconnect to reconnect.
Root cause
publishedFieldNames()unioned keys across everySnapshotStartoccurrence. If the reveal frame stopped publishingseq, the initial and reconnect frames still contributedseqto the union, so the additive-only compatibility oracle stayed green.This was an oracle defect, not a wire defect. The correction belongs in the cross-version test helper and adds no production behavior.
What changed
seq, removes only that field, and verifies the oracle fails withrevealandseqin the diagnostic.Follow-up to #17178.
Red / green proof
Before the helper change, the reveal-only mutation failed its proving test:
The aggregate oracle saw no removal because sibling frames still published
seq.After the change, the same shape is detected at the reveal occurrence. The committed regression runs through the exact
expectSnapshotStartFieldsRemainPublished → comparePublishedFieldOccurrencespath used by the real baseline/current gate.Exact-head verification
Published head:
5abd60553f397343869922a1babb1bdb425ef5edpnpm tc: passed.pnpm run check:code-quality:changed: zero code, type-aware, and React Doctor findings across 3 changed code files.pnpm run check:reliability-gates: 99 gates valid.pnpm exec oxfmt --checkon all four changed files: passed.git diff --check: passed.Readiness and code elegance
Independent audits found zero proven P0/P1/P2 findings; counsel was unnecessary because there were no candidates.
seqexists only as a mutation of the current build's observed contract.cross-version-terminal-wire.unit.test.ts, which the dedicated cross-version CI job actually executes.Native-host and Electron verification are N/A because this PR changes only test-oracle and documentation code.
Visual proof
N/A — no rendered Orca UI surface changes.
AI disclosure
AI-assisted implementation, mutation construction, and review were used. All claims above are tied to the exact committed diff and test output.
Checklist
33282334469on5abd60553f3completed cleanly (18 successful, 9 skipped, 0 failed or pending).