Skip to content

Route today's new PowerShell test calls through the shared runner - #11285

Merged
danielhanchen merged 1 commit into
mainfrom
fix/pwsh-shared-runner-new-tests
Sep 18, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fix/pwsh-shared-runner-new-tests

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

tests/studio/test_pwsh_calls_use_the_shared_runner.py is red on main: Repo tests (CPU, studio) fails on every PR branched off it.

Two changes that landed today added pwsh calls through subprocess.run:

Both share one $XDG_CACHE_HOME/powershell startup cache with every other xdist worker, which is the failure the convention test exists to prevent: pwsh dies at startup with Stack overflow. or The given assembly name was invalid, and check = True renders that as the script having failed, so it reads as a Windows-installer regression.

run_pwsh takes the argv the call site already built, so each is a one-word change: no invocation flags move, no test body changes.

Locally: tests/studio/test_pwsh_calls_use_the_shared_runner.py 6 passed (1 failed before), tests/test_studio_install_workspace_guard.py 98 passed 1 skipped, tests/python/test_compiler_watch_temp_scan.py 22 passed. ruff and the repo formatter clean on both files.

tests/studio/test_pwsh_calls_use_the_shared_runner.py is red on main. Two changes that landed
today added pwsh calls through subprocess.run: the stale-copy sweep and helper tests in #11248,
and the temp-scanner tests carried over in #11280. Both share one $XDG_CACHE_HOME/powershell
startup cache with every other xdist worker, which is the failure mode that test exists to
prevent, and which reads as a Windows-installer regression when it hits.

run_pwsh takes the argv the call site already built, so each is a one-word change and no
invocation flags move.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-18T18:17:53.386751Z c2c239c Manual request
🔒 Security Review ✅ Completed 2026-09-18T18:17:18.265196Z c2c239c Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex security review

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: c2c239c0a1

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: c2c239c0a1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen

Copy link
Copy Markdown
Member Author

Check status for this branch.

Green and relevant: Repo tests (CPU, studio) passes here, which is the check this PR exists to restore. It is the only job that runs either of the two files touched.

Red and pre-existing, none of it reachable from this diff:

  • (Python 3.13, a-k) and (Python 3.13, rest): tests/test_diffusion_backend.py::test_begin_load_rejects_concurrent, RuntimeError: cannot join thread before it is started. Same failure on other open branches and on Carry over five temp-scanner fixes that landed after #11217 merged #11280 when it merged.
  • Core zoo, all three matrix legs: failures inside unsloth_zoo at its pinned SHA e98383b, tests/test_relative_imports_resolve.py on mlx/preference.py and mlx/utils.py, plus the mlx group glob matching no files. That is a different repository and this branch does not pin it.

This PR only routes four pwsh invocations in two test files through the existing run_pwsh helper, so no non-Windows job changes behaviour.

@danielhanchen
danielhanchen merged commit e05acf5 into main Sep 18, 2026
23 of 28 checks passed
@danielhanchen
danielhanchen deleted the fix/pwsh-shared-runner-new-tests branch September 18, 2026 22:06
shaojun pushed a commit to shaojun/unsloth that referenced this pull request Sep 29, 2026
…slothai#11285)

tests/studio/test_pwsh_calls_use_the_shared_runner.py is red on main. Two changes that landed
today added pwsh calls through subprocess.run: the stale-copy sweep and helper tests in unslothai#11248,
and the temp-scanner tests carried over in unslothai#11280. Both share one $XDG_CACHE_HOME/powershell
startup cache with every other xdist worker, which is the failure mode that test exists to
prevent, and which reads as a Windows-installer regression when it hits.

run_pwsh takes the argv the call site already built, so each is a one-word change and no
invocation flags move.
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