Repository navigation
test: bind LSP merge inspection to the actual checkout - #16690
EffortlessSteven wants to merge 1 commit into
Conversation
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 34 minutes. View limit details
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Reviewed head 0c15feb, tree c635aec4bace6d5bfa06933b9bade4e4f353f22c. A separate Git fetch confirms exact equality with the independently inspected local commit. The two-file diff repairs the existing LSP merge-recovery test oracle and records the Internal / CI change.
The writer and independent source reviewer inspected the full live fixture, the unchanged merge-refusal producer, the shared host-aware command reader, the exact four-argument command/root check, and both captured native failures. Equivalent path spelling resolves to the same checkout; the new controls retain wrong-root, mutating-command, extra-argument and missing-root rejection. Real server, hover, disabled-action, MERGE_HEAD and staged-resolution checks remain. No material source finding remains.
Current-checkout diff, changelog-fragment, local-context, static-language and PR-shape checks pass using the documented retained policy executable where applicable. Candidate Rust compilation, hosted qualification and repaired native Windows execution have not run here; those results remain necessary for their respective acceptance claims. This source review admits the existing qualification route only. The complete inspection record and evidence limits are in the PR body.
There was a problem hiding this comment.
Code Review
This pull request updates the LSP merge-recovery test in lsp_lifecycle.rs to decode and canonicalize the inspect command's root path. This ensures that Windows path normalization is handled correctly while still rejecting incorrect roots, mutating commands, or extra arguments. A new helper function assert_merge_status_root and a corresponding unit test have been added to validate this behavior. I have no feedback to provide as there are no review comments.
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY
Final ordinary leaf review for H 0c15feb, source tree c635aec4bace6d5bfa06933b9bade4e4f353f22c. The complete inspection record and limitations are in the PR body.
The independently inspected required run 46407157430 attempt 1 executed P edb88e2 with verified parents [10ce9da,H]. Both shard/context/list receipts, combined JUnit, native conservation verifier and final Result establish 34,715 unique passing tests (17,348 + 17,367), zero failures/errors/skips/duplicates/missing/extras. The real merge-refusal LSP case passed in 0.349 seconds and the new exact-command/root oracle in 0.006 seconds. All required gates and final exact-head/request eligibility succeeded.
Source review preserves the disabled action, no-commit/hover refusal, merge state, index contents and exact read-only root binding. No material source or review finding remains. The latest inspected main movement is unrelated test relocation; actual queue integration still needs its required proof.
This accepts the bounded test-oracle repair. The governing #3922 sequence places native leaf proof after focused implementation merge. Repaired Windows execution, repeated native stability, the cross-seam packet and final release-candidate qualification remain unestablished; #15601 and #3922 remain open. No Windows or release acceptance is implied.
Summary
The native Windows LSP merge-recovery test rejects the correct checkout because it compares the command's normalized path spelling with Windows' native canonical-path display. Both repetitions in Windows Advisory run 46359136733 fail at that assertion even though the actual LSP action is disabled, contains no commit command, and prints the correct merge recovery and read-only inspection instructions.
Decode the inspect command with the existing host-aware test reader, require exactly
git -C ROOT status, and compare the canonical filesystem roots. Add focused controls that accept equivalent path spelling and reject a different checkout, a mutating command, an extra argument, or a missing root. Preserve the real-server, hover, merge-state, and staged-resolution assertions.Swarm / Source Boundary
This is a test-oracle repair in the development repository. It changes no production behavior or publication surface.
Source-of-truth Links
Proposal: #15601 native Windows repeat qualification and its observed LSP failure
Spec: existing #16440 / #16638 merge-recovery no-commit contract; no new product contract
ADR: none; reuse the existing host-aware printed-command test reader
Plan item: #3922 Windows evidence; #9271 release checkpoint
Governing issue or accepted claim: #15601, #15601 (comment)
Acceptance delta (one sentence): The real LSP merge-recovery test accepts a correctly normalized path to its actual checkout while still rejecting an unsafe command or a different root.
Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication):
fix/windows-lsp-merge-status-oracle-20261130Stack parent or prerequisite PR (if any): none; original product repair #16638 and follow-up #16652 are already landed
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): not applicable
Accepted winner and losing candidate disposition (when decided): not applicable
Scope
crates/ripr/tests/lsp_lifecycle.rsonly.Source inspection and evidence
Published head:
0c15feb9b5c7185c0eeb9a7abeddf02d21be64ed.Tree:
c635aec4bace6d5bfa06933b9bade4e4f353f22c.Parent:
438a99e49b90d028c2a1245c2ef9a55261be2dc0.Git Data publication and a separate Git fetch/diff confirm that the published tree is byte-identical to locally inspected commit
f0098abdc4afbfe0c50c25a9ff363f975b9c36de.The writer and an independent source reviewer inspected the full live fixture,
unsafe_commit_start_reason, the existingcommon/printed_words.rsdecoder, the new root/command oracle, and both captured native failures. The original test blob was unchanged between native tested source3b7bf9ec4e9d3ff2acbdcac3ac8ee3f840cb801aand this candidate's parent. Independent decoding of both captured actions confirms that the read-only command names the same root as the real diagnostic URI. That is diagnostic evidence of the old assertion defect, not execution of the repaired Rust test.Initial local and baseline proof
git diff --check: pass.e491b446xtask executable:check-changelog-fragments,check-local-context, andcheck-static-language: pass against this checkout.The retained xtask executable has SHA-256
89d29ecacc630f7bf9996f6f480b1d60df5d0697f5f5fed55f894da3c9a96b00; its policy-owner sources for the listed checks are unchanged frome491b446through the candidate parent. It was not built from this candidate. These checks use the current working directory.Unrun locally: Rust compilation, formatting, the added oracle test, the real LSP regression, full precommit, and native Windows execution. This executor has no Cargo/rustc. The local environment did not establish hosted or repaired native execution; the subsequently completed hosted qualification is recorded below.
Initial inspection record before hosted qualification
Spec-Test-Code Traceability
real_seam_start_prints_no_commit_during_a_merge.merge_status_root_oracle_keeps_root_and_read_only_command_binding.changelog.d/15601-windows-lsp-merge-status-oracle.md, Internal / CI.CI Economics
The existing Rust Small qualification route covers the two-file test-only change. No workflow, trigger, required check, budget, or artifact contract changes. Native Windows replay of the existing regression is still needed to close the Windows evidence item. A green Linux result alone cannot establish that closure.
Claim Boundary and Rollback
This change repairs the test's command/root comparison while preserving the no-commit guarantee. It does not establish complete Windows qualification or release readiness. Revert the two changed files through the ordinary protected path if the candidate fails to preserve that acceptance.
Completed ordinary qualification and final leaf review
Required run 46407157430, attempt 1 completed successfully on this published head. Its actual executed merge subject was
edb88e2303f64053d838af114bf68075249b796d, tree1630e025f77c8052f610a68ecba440feb3b9595c, with independently verified parents10ce9da684840e1bbaf53b768f6cf10d357a94aband reviewed H0c15feb9b5c7185c0eeb9a7abeddf02d21be64ed.Independent artifact inspection established 34,715 unique passing cases = 17,348 + 17,367. Each shard's executed identities exactly match its selected partition; the combined identities exactly match the full workspace list. Failures, errors, skips, duplicate, missing and outside-list identities are all zero. Both contexts name the same run, attempt and executed subject, Rust/Cargo 1.95 and nextest 0.9.149, and all four qualification input blobs match that subject.
real_seam_start_prints_no_commit_during_a_mergemerge_status_root_oracle_keeps_root_and_read_only_command_bindingActual gate job
141808985557passed formatting, policy/precommit, architecture, evidence honesty, skills, both Clippy modes, goldens/fixtures, capabilities, verdict corpora, current-base merge, PR evidence and schema sweep. Hosted shards own the Rust tests; the gate's own test-step skip is expected. Actual conservation verifier141831070836and final Result141831291308passed; the Result rechecked the exact head and request46407157430-1. VSCode e2e was explicitly unselected.Combined artifact
15375178003was independently downloaded in memory and matched its metadata: 1,005,076 bytes, SHA-256c3d6be7b4ab925a73767c0bdc7cef62a9021380e19c9bfc838ead3f8a6ef66b7. The combined sorted test-identity digest equals the full-list digesta322b6f3d13ce0df4e72c3905a8fdd98ca50d01387c2f6468253e42989a5b471. Both individual shard archives were likewise size/digest checked. No retained compiler or successful workflow envelope was substituted for actual test execution.Current inspection record
The governing #3922 sequence is focused implementation merge, then native exact-head leaf proof, then the cross-seam packet and candidate cut/repeat. No governing repaired-Windows-before-leaf-merge condition was found. Accordingly, ordinary leaf review can complete on the source reasoning, native baseline and full Linux execution above. Repaired Windows evidence remains missing, and #15601/#3922 stay open. Actual queue integration still requires its own successful proof and protected landing.