Repository navigation
test(authoring): check snapshot cleanup and native error identity - #1132
Conversation
|
Strix is installed on this repository, but we couldn't run this PR security review because this workspace's trial has ended. Add a card to resume code reviews here. So far, Strix has reviewed 392 pull requests, surfaced 113 security issues (1 critical/high) and blocked 3 risky merges across this workspace. |
|
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 6 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. |
Integrate the reviewed fixes from PRs #1131 and #1132 after the Windows ARM64 native lane exposed the same inherited snapshot-observer failures in TestSkillRootAndParentReplacement and TestSkillStageReplacementPreservesUnrelatedContent. Preserve production guards, replacement attacks and all enterprise-policy code. The resulting tree exactly matches the previously computed conflict-free merge tree.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1132 +/- ##
=======================================
Coverage 64.38% 64.38%
=======================================
Files 2353 2353
Lines 143080 143080
=======================================
+ Hits 92121 92125 +4
+ Misses 37894 37892 -2
+ Partials 13065 13063 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Problem
Focused lint of the #1131 snapshot observer found unchecked close results in three new test defers and two native-error comparisons flagged by
errorlint. The full local CLI lint process had previously been killed before it could report these findings.Change
Check the three snapshot-root close results and fail the test if cleanup fails. Express the two Windows native-error assertions using
errors.Istogether with exact dynamic-type equality. The type check preserves the existing refusal contract: a wrapped matching error is still rejected, and the raw native error must have the exact expected value.This touches only the same two Scaffold test files. Complete snapshots, guard lifetime, replacement attacks, production code, native error acceptance, lint configuration and the legacy baseline are unchanged. There are no new suppressions or exemptions.
Verification
All checks below completed on the reviewed file contents before publication:
864829036a932a8c22ab7074b94b79dc70ff8021, covering the complete original observer change as well as this correction.git diff --check, and independent review: pass/no findings.syscall.Errnoand pinnedwindows.NTStatussemantics: the type-and-value predicates still reject wrappers.The broader local
make lintattempt was killed in CLI analysis after four module size/architecture passes and the root changed-line pass. Localmake test-coredid not pass: it encountered missing contained-process prerequisites, forbidden socket fixtures, sanitized Git setup errors and temporary-storage exhaustion; its final CLI stage was not reached. These partial local runs do not replace the ordinary full CI gates.Reviewed local commit
1229bcab7cf1f54729554667afb90e020a903509and published head5742cfc7f0377cad934233e4b0d24d129c9fccedshare exact tree3a4dc37a3237807e8a20ddbee5e48688e5cb25e7, based on mainf75a1b9ee3d1518c519f74d0f8b9c562c3af3503. Fresh selected Required, Authoring and Native Client Runtime checks remain necessary. No CI rerun, cancellation, dispatch, runner change or protection override was used.Follow-up for #1087 and #1131. Ordinary early merge is authorized; E2E completion remains pending until the required source-bound checks finish successfully.
Native Windows ARM64 verification — 2026-11-27
Authoring job 140340957950 completed successfully at 07:22:11 UTC. The actual checkout and both builds are
5742cfc7f0377cad934233e4b0d24d129c9fcced, tree3a4dc37a3237807e8a20ddbee5e48688e5cb25e7, with clean VCS metadata and native Go 1.26.10 Windows/ARM64.The actual raw test events contain all 366 discovered top-level tests passing: 1,352 primary pass events including subtests, 15 passing packages, zero failures and zero skips. Both new snapshot tests, all three former replacement-test leaves, both concurrency leaves, all 14 reader-process leaves and both ordinary/guarded stage controls explicitly pass. Two supplementary digest tests also pass.
Native artifact
15179198767(119,976 bytes, SHA-256b95444b25e0b06b3de9dc18f352d8bad0dcd35cde578630534099c264b12d85f) and volume artifact15179652174(1,358 bytes, SHA-256957cfb2d8ebef528bd15881cd78847d9683246c4cc7cbdc9b63b69282f8a8fa6) were downloaded and verified against official metadata, upload logs and every member CRC. The distinct NTFS volume identities match the actual passing cross-volume test; only the owned VHD was removed. The artifacts do not include executable bytes, so recorded binary hashes are joined to build/E2E records rather than independently rehashed.Windows AMD64, the remaining selected jobs and later source commits retain separate qualification. This result does not close the remaining Claude shared-profile lifecycle issue.
Native Windows AMD64 verification — 2026-11-27
Authoring job 140340957948 completed successfully at 07:55:38 UTC on actual checkout/build
5742cfc7f0377cad934233e4b0d24d129c9fcced, exact tree3a4dc37a3237807e8a20ddbee5e48688e5cb25e7. Native Go 1.26.10 ran on Windows Server 2022 AMD64/NTFS; both build records have clean VCS metadata.All 369 discovered top-level tests join to actual passing events: 1,359 primary pass events including subtests, 15 passing packages, zero failures and zero skips; two supplementary digest tests also pass. Explicit raw events confirm both new snapshot tests, all three former replacement leaves, both concurrency leaves, all 14 reader-process controls, both stage controls and the distinct-NTFS-volume test.
Artifact
15181038395was read and verified: 121,028 bytes, SHA-256d389d0cde03fd46d1c6f6d4cb3738e31bbd066c625660384552c0f3cfa00b538, all 14 member CRCs valid. Its summary matches the official log; discovery, raw test events, source/build records and compiled E2E markers are joined. Executable bytes are not included, and no separate AMD64 volume artifact was inspected; the actual passing cross-volume test output is preserved.Both Windows architectures now have separate native evidence for this source. Linux AMD64, packed Authoring, the remaining selected Required/Native checks and the Claude Marketing issues retain their own outstanding qualification. No CI rerun, cancellation, dispatch, runner or protection change was used.