dispatcher: stage the Windows bootstrap script in chunks and run it as a file (command line too long) #8

Merged
founder merged 1 commit from windows-readiness-probe into main 2026-08-17 06:49:53 +00:00
Owner

pywinrm run_ps sends the script through powershell -EncodedCommand; the bootstrap exceeded the ~32 KiB command line ('The command line is too long.', key.store runs 18499/18535). Chunks are appended to $env:TEMP<name>.b64 with short run_ps calls, decoded to .ps1 and executed with -File; only the last call is long-running. TestWindowsWinRMScriptRoundTrip green on the forge (28 s).

pywinrm run_ps sends the script through powershell -EncodedCommand; the bootstrap exceeded the ~32 KiB command line ('The command line is too long.', key.store runs 18499/18535). Chunks are appended to $env:TEMP\<name>.b64 with short run_ps calls, decoded to .ps1 and executed with -File; only the last call is long-running. TestWindowsWinRMScriptRoundTrip green on the forge (28 s).
dispatcher: stage the Windows bootstrap script on the guest in chunks and run it as a file (pywinrm run_ps goes through the ~32 KiB command line: 'The command line is too long.')
Some checks failed
Build Container / Image (amd64) (pull_request) Waiting to run
Build Container / Image (arm64) (pull_request) Waiting to run
Build Container / Publish Manifest (pull_request) Blocked by required conditions
Build Go / Go Test (namespace-profile-linux-large) (pull_request) Waiting to run
Build Go / Go Test (namespace-profile-macos-large) (pull_request) Waiting to run
Build Go / Nix Build (pull_request) Waiting to run
Build Container / Image (amd64) (push) Has been cancelled
Build Container / Image (arm64) (push) Has been cancelled
Build Container / Publish Manifest (push) Has been cancelled
Build Go / Go Test (namespace-profile-linux-large) (push) Has been cancelled
Build Go / Go Test (namespace-profile-macos-large) (push) Has been cancelled
Build Go / Nix Build (push) Has been cancelled
1c2c9de05a
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
key-store/forgejo-nsc!8
No description provided.