Skip to content

test(authoring): check snapshot cleanup and native error identity - #1132

Merged
777genius merged 1 commit into
mainfrom
fix/e2e-windows-snapshot-lint-20261127
Nov 27, 2026
Merged

777genius merged 1 commit into
mainfrom
fix/e2e-windows-snapshot-lint-20261127

Conversation

@777genius

@777genius 777genius commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

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.Is together 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:

  • Pinned golangci-lint 2.13.2, Linux AMD64: whole-package size/architecture pass and changed-line correctness/style pass, both 0 issues.
  • The same two passes under Windows AMD64: both 0 issues.
  • Both changed-line passes use base 864829036a932a8c22ab7074b94b79dc70ff8021, covering the complete original observer change as well as this correction.
  • Go 1.26.11 Scaffold and Skills tests: 172 pass events, zero failures, zero skips.
  • Windows AMD64 Scaffold test binary: cross-compilation passed. This does not claim Windows execution.
  • Pinned gofmt, git diff --check, and independent review: pass/no findings.
  • Independent review checked concrete syscall.Errno and pinned windows.NTStatus semantics: the type-and-value predicates still reject wrappers.

The broader local make lint attempt was killed in CLI analysis after four module size/architecture passes and the root changed-line pass. Local make test-core did 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 1229bcab7cf1f54729554667afb90e020a903509 and published head 5742cfc7f0377cad934233e4b0d24d129c9fcced share exact tree 3a4dc37a3237807e8a20ddbee5e48688e5cb25e7, based on main f75a1b9ee3d1518c519f74d0f8b9c562c3af3503. 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, tree 3a4dc37a3237807e8a20ddbee5e48688e5cb25e7, 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-256 b95444b25e0b06b3de9dc18f352d8bad0dcd35cde578630534099c264b12d85f) and volume artifact 15179652174 (1,358 bytes, SHA-256 957cfb2d8ebef528bd15881cd78847d9683246c4cc7cbdc9b63b69282f8a8fa6) 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 tree 3a4dc37a3237807e8a20ddbee5e48688e5cb25e7. 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 15181038395 was read and verified: 121,028 bytes, SHA-256 d389d0cde03fd46d1c6f6d4cb3738e31bbd066c625660384552c0f3cfa00b538, 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.

@strix-security

Copy link
Copy Markdown

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.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between f75a1b9 and 5742cfc.

Files selected for processing: 2

  • cli/internal/authoring/scaffold/skill_plan_test.go
  • cli/internal/authoring/scaffold/stage_skill_windows_test.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@777genius
777genius merged commit 2e8b2eb into main Nov 27, 2026
49 of 53 checks passed
@777genius
777genius deleted the fix/e2e-windows-snapshot-lint-20261127 branch November 27, 2026 04:46
777genius added a commit that referenced this pull request Nov 27, 2026
Include the existing guarded Windows authoring snapshot fixes from #1131 and #1132 after the old-head native authoring check reproduced that baseline failure. Preserve all eight reviewed #1129 file blobs.
777genius added a commit that referenced this pull request Nov 27, 2026
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

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.38%. Comparing base (f75a1b9) to head (5742cfc).
⚠️ Report is 1 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant