Skip to content

fix(test): package extraction check fails on Windows - #188955

Merged
roboclaw-bot merged 1 commit into
mainfrom
main-ci/l128-windows-mode
Oct 31, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
main-ci/l128-windows-mode

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

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 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

Requested by @steipete

Work sessions

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]>
@clawsweeper

clawsweeper Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 31, 2026 01:56
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 31, 2026 02:00
@roboclaw-bot
roboclaw-bot merged commit 5ca51dc into main Oct 31, 2026
138 checks passed
@roboclaw-bot
roboclaw-bot deleted the main-ci/l128-windows-mode branch October 31, 2026 02:04
@roboclaw-bot

Copy link
Copy Markdown
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant