Repository navigation
Tests: fix three checks that fail for reasons other than a regression - #13265
Conversation
- test_varlen_int32_overflow_guard: since #12740 SDPA attends packed rows one segment length at a time, so the guarded fallback is two SDPA calls (the one-token documents and the padded tail). Assert that only SDPA ran. - compare_installer_evidence: drop a full winget download bar that repeats the line right before it. A staging run of the same uv download left it once on one side and twice on the other. - test_studio_api test_help_output: render help at 200 columns. At Rich's 80-column default the option cell is cut to --max-seq-lengt...
|
You have reached your Codex usage limits for security reviews. Please try again later. |
|
@codex review |
Codex Review SummaryThis 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. |
Codex Review SummaryThis 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. |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
…solver checks hold on every host (#14116) Follow-up to #13265, #13395 and #13701. Each one was rechecked on other hosts and environments, and these four gaps showed up. Each one reproduces on `main` and is fixed here. No product code changes. ## Studio `--help` test (#13265) `COLUMNS=200` is not enough. Typer passes an inherited `TERMINAL_WIDTH` to Rich as an explicit width. `GITHUB_ACTIONS`, `FORCE_COLOR` or `PY_COLORS` force terminal mode, whose colour codes split every flag (`--model` no longer appears as a substring). On staging, the test fails on `ubuntu-latest` and `macos-15` for exactly this reason. The test now also sets `TERMINAL_WIDTH=200` and `_TYPER_FORCE_DISABLE_TERMINAL=1` (both present from Typer 0.19, the floor), and it decodes the child's output as UTF-8 so a CJK Windows code page cannot break the decode. | Environment | `main` | Here | | --- | --- | --- | | none | pass | pass | | `TERMINAL_WIDTH=80` | fail | pass | | `GITHUB_ACTIONS=true` | fail | pass | | `FORCE_COLOR=1` | fail | pass | | `PY_COLORS=1` | fail | pass | | `GITHUB_ACTIONS=true TERM=dumb` | fail | pass | ## Media scan tests (#13395) `test_media_model_index_accounts.py` and `test_openai_catalog.py` cleared `HF_HOME` and redirected `XDG_CACHE_HOME`. The scan also reads: - `hf_default_cache_dir()`, which is `Path.home() / ".cache" / "huggingface" / "hub"` and ignores `XDG_CACHE_HOME`; - the LM Studio, Hermes, Ollama and oMLX model folders, including the system-wide Ollama paths; - `./models` under the working directory. So the most common developer setup, an image model in the default HF cache, still added rows. Both fixtures now point those helpers at the test's temp dir and run from it. Patching the helpers rather than `HOME` means the fix works the same on Windows (`USERPROFILE`), macOS and Linux. Result with a fake image model planted in each location (33 tests in each case): | Case | `main` | Here | | --- | --- | --- | | clean | 33 passed | 33 passed | | model in `~/.cache/huggingface/hub`, `~/.lmstudio/models`, `OLLAMA_MODELS` | 4 failed | 33 passed | | pytest run from a folder with `models/<x>/model_index.json` | 4 failed | 33 passed | ## Installer differential comparer (#13265) The rule that drops a repeated 100% bar (a winget redraw) compared lines after sizes were normalised. That made two genuinely different events collapse into one bar and compare equal: - a second transfer with no header line, where a partial frame sits between the two full bars; - two finished downloads of different sizes. A repeat is now dropped only when no partial frame was seen since the kept bar and the raw numbers match. Two new tests cover these cases; they fail on `main` and pass here. The existing redraw test still passes (94 passed). ## Node harness resolver (#13701) #13701 lets a `const` bound to an arrow or function expression be lifted even when some of its references cannot be. Two shapes could now load-crash a harness: - an eagerly evaluated const that calls such a helper on load (`const TABLE = { v: f() }`, directly or through another helper); - an immediately invoked `const v = function () { ... }();`, which runs on load. The first is now dropped like a const that reads the missing reference itself. A const that only names the helper (`[g]`) is kept. The second stays eager. No current frontend source has either shape: a sweep of every top-level declaration in `studio/frontend/src` found no harness that loads only on one side. All 278 tests that use the resolver pass, and the two new tests fail with the old resolver. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Summary
Three checks on main fail for reasons that are not a regression. Each one was reproduced on main, and the cause traced to the change that broke it.
Changes
tests/utils/test_varlen_int32_overflow_guard.pytest_padded_tail_segment_counts_toward_the_bound[xformers|flash_varlen]fails on main withassert ['sdpa', 'sdpa'] == ['sdpa'].5babb22c69~1and fails on5babb22c69.tests/utilsis not in any CPU CI shard, which is why this was not caught..github/scripts/compare_installer_evidence.py██████ <size> / <size>). The head side, downloading the same uv 0.13.0 zip, has it once.Downloadingline between the bars, still fails when one of its bars is lost.studio/backend/tests/test_studio_api.pytest_help_outputfails withMissing flag '--max-seq-length'.--max-seq-length, --context-lengthcell to--max-seq-lengt….COLUMNS=200for that one subprocess. This file is a live-server script that no CI job runs.Testing
test_varlen_int32_overflow_guard.pytest_installer_differential_comparer.pycompare_installer_evidence.py --self-teste12c24fb33vs62ea2d7b52)test_studio_api.py::test_help_outputNo product code changes.