Skip to content

Repair the studio-install checks red on main - #14995

Merged
danielhanchen merged 1 commit into
mainfrom
ci-studio-install-reds
Oct 23, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci-studio-install-reds

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Repo tests (CPU, studio-install) fails on main (c5482a5). Four tests fail in two groups, and both reproduce on a clean main checkout.

test_uv_boolish_parity.py::test_every_resolver_variable_in_shipped_powershell_goes_through_a_reader[install.ps1, setup.ps1]

#14686 added Test-MirrorConfigured's uv config discovery. It decides UV_NO_SYSTEM_CONFIG and UV_NO_CONFIG with an inlined copy of uv's boolish set, because setup.ps1 reaches that code before it defines Test-UvEnvFlag. The guard exists so every UV_* / PIP_* switch goes through the one reader, so the code is what needed to change:

  • Both scripts now call Test-UvEnvFlag 'UV_NO_SYSTEM_CONFIG' and Test-UvEnvFlag 'UV_NO_CONFIG'.
  • setup.ps1 defines Test-UvEnvFlag / Test-PipEnvFlag ahead of Test-MirrorConfigured. The block moved unchanged, with one added comment line. install.ps1 already defines it earlier in the same function.
  • New test test_setup_defines_the_uv_reader_before_its_first_mirror_probe pins that order. This hazard is what led to the inline copy in the first place.

Behaviour is unchanged. Under Set-StrictMode -Version Latest, Test-MirrorConfigured -Tool uv returns the same answer on base and head, in both scripts, with a user uv.toml carrying an index and UV_NO_CONFIG set to each of unset, off, 0, no, YES, 1, true.

test_rocm_native_linux_lib_dirs.py::TestLlamaCppRuntimeNativeOrdering

#14933 now holds the native-Linux ROCm dirs in _system_rocm, so it can skip them when they hide the GPU. The source check still looked for the old one-line lib_dirs.extend(_native_linux_system_rocm_lib_dirs(binary_dir)). The test was out of date. It now finds the helper call, follows the local it is assigned to, and still asserts two orderings:

  • helper call, then lib_dirs.extend(...), then lib_dirs.append(binary_dir)
  • the WSL DXG decision comes before the native dirs

Verification

  • tests/studio/install/test_rocm_native_linux_lib_dirs.py and test_uv_boolish_parity.py: 4 failed on main, 581 passed on this branch.
  • tests/studio/install/test_denied_llama_cpp_preflight.py (byte parity of the shared install/setup helpers): passes.
  • pwsh tests/studio/test_mirror_fallback.ps1: 142 PASS, 0 FAIL.
  • Sabotage checks:
    • Moving lib_dirs.append(binary_dir) above the native block fails the ROCm ordering test.
    • Restoring main's setup.ps1 fails both the reader test and the new ordering test.

- install.ps1 / setup.ps1: read UV_NO_SYSTEM_CONFIG and UV_NO_CONFIG through Test-UvEnvFlag instead of an inlined copy (#14686). setup.ps1 now defines Test-UvEnvFlag and Test-PipEnvFlag ahead of Test-MirrorConfigured, which Invoke-MirrorFallback -SpareOnly reaches before the old definition ran; a new test pins that order.
- test_rocm_native_linux_lib_dirs: follow #14933, which holds the native-Linux ROCm dirs in a local before extending lib_dirs. Still asserts they land ahead of binary_dir and after the WSL DXG decision.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 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-10-23T15:47:52.623298Z d965b77 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: d965b77ea0

ℹ️ 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
danielhanchen merged commit 4af53cb into main Oct 23, 2026
33 of 56 checks passed
@danielhanchen
danielhanchen deleted the ci-studio-install-reds branch October 23, 2026 15:53
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