Repository navigation
test(windows): select the Windows host through HOST_PLATFORM in the native-control capability test - #11088
Merged
Conversation
…ative-control capability test
19 tasks
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
[Low impact] The test-only change appears safe to merge. SummaryUpdates the Windows capability test to select its host through
Reviews (2) · Last reviewed commit: "test(windows): select the Windows host t..." · Reviewed by Greptile |
19 tasks
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.
Summary
tests/process-global/windowsNativeControlCapability.test.tsfails on main: it selects Windows by redefiningprocess.platform, but since #11038src/processtakes the host from the frozenHOST_PLATFORM, so the owned launcher never takes the Windows native path. The test now mocksHOST_PLATFORM(the patternsrc/process/ProcessOwnership.movedProbe.test.tsalready uses) and exercises the same refusal again. HostPlatform migration (W8) follow-up.Problem and expected behavior
Observed on main (29dd58c): the test expects
capability_unavailable("does not support Job Object memory limits") and receives the unclassifiedexecution_failure. Expected: an admitted Windows artifact without the Job Object memory-limit control is refused before any native launch.Change and scope
vi.mock("../../src/platform/HostPlatform.js")selects{ platform: "win32", architecture: "x64" }; theprocess.platformredefinition and its restore are removed.process.platformpass on main (their modules still read it) and move with their folders' migrations.Contract and boundary impact
src/platform/HostPlatform(test seam only).docs/public/product-catalog.json), package, or installation impact: none.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
tests/process-global/windowsNativeControlCapability.test.ts.Validation performed
npm run test:focused --every test file that redefinesprocess.platform/process.arch(23 files) on main — 22 passed,windowsNativeControlCapability.test.tsfailed.npm run test:focused -- tests/process-global/windowsNativeControlCapability.test.tswith this change — 1 passed.npx oxfmt --check,npx oxlinton the file — passed; pre-push hook passed.Compatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.