Repository navigation
fix(test): package extraction check fails on Windows - #188955
Merged
Merged
Conversation
Windows stat reports 0666 for the extracted module. Keep the exact 0755 normalization assertion on POSIX and run the valid, digest-mismatch, and link-rejection variants on every platform. Repairs the test introduced by #188661. Co-authored-by: steipete <[email protected]> Co-authored-by: galiniliev <[email protected]>
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
roboclaw-bot
marked this pull request as ready for review
October 31, 2026 01:56
roboclaw-bot
enabled auto-merge (squash)
October 31, 2026 02:00
Collaborator
Author
|
Merged via squash auto-merge.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 31, 2026
…88955) Related: openclaw#188661. ## What Problem This Solves Fixes Windows CI failing the digest-bound package extraction test introduced by openclaw#188661 because Windows reports file mode `0666` rather than POSIX `0755`. ## User Impact No runtime behavior changes. Package validation tests can run on Windows while POSIX still requires exact `0755` executable permissions. ## Why This Change Was Made Apply the platform condition only to the executable-bit assertion. Keep manifest validation and all valid extraction, digest-mismatch and link-rejection variants on every platform. ## Evidence - Reused the exact [Windows failure](https://github.com/openclaw/openclaw/actions/runs/41151564335/job/124389364304) on `cb1240c260d61535a11d0c830b0064cdff46e56e`; cached log integrity verified, no redownload. - Node 24.22.1: all 84 owner cases pass (42.287s). Pinned Bun: 82 cases pass, and the two pnpm-produced fixture cases pass through the same installed pnpm 12.15.0 JavaScript entrypoint (3.951s), qualifying its shebang-less host launcher. - A real POSIX extraction mutation still fails the exact `0755` assertion; restored production bytes and the focused valid/digest/link case pass. Scoped strict typecheck, typed lint, oxfmt/Bun parity and ratchets pass; no baseline or allocation growth. - Fresh-context independent P0–P2 source review found no actionable issues. The canonical helper stalled at host Python startup; the explicitly authorized fallback lacks helper-owned isolation and validated machine status. It did not independently rerun tests. - Native Windows proof belongs to PR CI `checks-windows-node-test-4` if that shard runs. The current exact-head PR run has a skipped Windows matrix and does not include that shard, so native Windows green remains unverified. Local Linux proof does not establish it. ## Worked on by - @steipete - @galiniliev Requested by @steipete ## Work sessions - [Discussion, implementation and verification](https://team.openclaw.ai/chat/roboclaw/~key/dashboard/b5679712-7777-4ff7-a05a-81c1efab2069) Co-authored-by: steipete <[email protected]> Co-authored-by: galiniliev <[email protected]>
giodl73-repo
pushed a commit
that referenced
this pull request
Nov 1, 2026
Related: #188661. ## What Problem This Solves Fixes Windows CI failing the digest-bound package extraction test introduced by #188661 because Windows reports file mode `0666` rather than POSIX `0755`. ## User Impact No runtime behavior changes. Package validation tests can run on Windows while POSIX still requires exact `0755` executable permissions. ## Why This Change Was Made Apply the platform condition only to the executable-bit assertion. Keep manifest validation and all valid extraction, digest-mismatch and link-rejection variants on every platform. ## Evidence - Reused the exact [Windows failure](https://github.com/openclaw/openclaw/actions/runs/41151564335/job/124389364304) on `ac897d3b339ee8c91eac5dab2a853d48364eb808`; cached log integrity verified, no redownload. - Node 24.22.1: all 84 owner cases pass (42.287s). Pinned Bun: 82 cases pass, and the two pnpm-produced fixture cases pass through the same installed pnpm 12.15.0 JavaScript entrypoint (3.951s), qualifying its shebang-less host launcher. - A real POSIX extraction mutation still fails the exact `0755` assertion; restored production bytes and the focused valid/digest/link case pass. Scoped strict typecheck, typed lint, oxfmt/Bun parity and ratchets pass; no baseline or allocation growth. - Fresh-context independent P0–P2 source review found no actionable issues. The canonical helper stalled at host Python startup; the explicitly authorized fallback lacks helper-owned isolation and validated machine status. It did not independently rerun tests. - Native Windows proof belongs to PR CI `checks-windows-node-test-4` if that shard runs. The current exact-head PR run has a skipped Windows matrix and does not include that shard, so native Windows green remains unverified. Local Linux proof does not establish it. ## Worked on by - @steipete - @galiniliev Requested by @steipete ## Work sessions - [Discussion, implementation and verification](https://team.openclaw.ai/chat/roboclaw/~key/dashboard/b5679712-7777-4ff7-a05a-81c1efab2069) Co-authored-by: steipete <[email protected]> Co-authored-by: galiniliev <[email protected]> (cherry picked from commit 5ca51dc)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #188661.
What Problem This Solves
Fixes Windows CI failing the digest-bound package extraction test introduced by #188661 because Windows reports file mode
0666rather than POSIX0755.User Impact
No runtime behavior changes. Package validation tests can run on Windows while POSIX still requires exact
0755executable permissions.Why This Change Was Made
Apply the platform condition only to the executable-bit assertion. Keep manifest validation and all valid extraction, digest-mismatch and link-rejection variants on every platform.
Evidence
ac897d3b339ee8c91eac5dab2a853d48364eb808; cached log integrity verified, no redownload.0755assertion; restored production bytes and the focused valid/digest/link case pass. Scoped strict typecheck, typed lint, oxfmt/Bun parity and ratchets pass; no baseline or allocation growth.checks-windows-node-test-4if that shard runs. The current exact-head PR run has a skipped Windows matrix and does not include that shard, so native Windows green remains unverified. Local Linux proof does not establish it.Worked on by
Requested by @steipete
Work sessions