Repository navigation
Core zoo: key the Inductor cache on the CPU target that built it - #19300
Merged
Merged
Conversation
Member
Author
|
@codex review |
Codex Review Summary: ✅ CompletedThis 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. You're on a roll. 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". |
danielhanchen
added a commit
that referenced
this pull request
Nov 24, 2026
…r cache guard unfiltered (#19321) ## Problem Two guards fail on main: 1. `tests/studio/test_ui_font_scale_contract.py::test_no_raw_pixel_text_utilities` ``` Raw px text utilities ignore the UI font size preference; use the text-ui-* / leading-ui-* tokens in index.css instead: ['features/chat/components/chat-files-menu.tsx: text-[13px]'] ``` From #19172 (Files menu). The guard is right and the code is wrong here: a fixed `text-[13px]` does not follow the Settings font size, so file names in the Files menu stay at 13px whatever the user picks. 2. `tests/studio/test_workflow_guards_run_unfiltered.py::test_every_workflow_reading_guard_runs_in_the_unfiltered_job` ``` these guards read a workflow file but are not run by workflow-trigger-lint, the only job with no paths filter: ['test_zoo_inductor_cache_is_cpu_keyed.py'] ``` From #19300, which added that guard for the Core zoo Inductor cache key but did not list it in `workflow-trigger-lint.yml`. A PR that edits only `consolidated-tests-ci.yml` would then never collect it. ## Fix - `chat-files-menu.tsx`: `text-[13px]` to `text-ui-13` (`calc(0.8125rem * var(--ui-font-scale, 1))`). At the default scale this is still 13px, so the menu renders exactly as before; at other scales the file names now scale with everything else. - `workflow-trigger-lint.yml`: run `tests/studio/test_zoo_inductor_cache_is_cpu_keyed.py` in the workflow guard step. ## Verification - Both guards fail on main (`fc1d0fa0b2`) and pass with this change; `test_zoo_inductor_cache_is_cpu_keyed.py` itself still passes. - `tests/studio` in full: 17,035 passed. The only other failure in that run, `test_installed_runtime_health_matrix.py::test_a_tree_full_of_unrelated_files_is_still_answered_fast`, is a wall-clock check that failed once under `-n 8` load and passed 3 of 3 runs on its own. - `studio/frontend/tests/chat-files.test.ts`: 15 passed. Strict i18n parity: clean.
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.
Problem
Since #19126 added a restored Inductor cache to Core zoo, almost every Core zoo leg on a PR has failed. Over the last day: 20 failed runs against 33 green, with the failures starting right after #19126 merged. In the failing jobs 12 to 17 pytest workers die inside compiled kernels:
(some legs show
*** buffer overflow detected ***instead), and xdist then ends the session withINTERNALERROR ... KeyError: <WorkerController gwN>.Cause
zoo-inductor-v1-*cache. The four failing jobs that ran without one (before the first save, or on a miss) had no worker crash.zoo-inductor-v1-t4576-trl0latest-...-a9f1c604...at 16:04 ran the suite green with it; Studio: read S3 dataset manifests saved with a UTF-8 BOM #19286 restored that exact key a few minutes later and lost 4 workers.test_frozen_table_store.py,test_tiling_inductor_short_tail.py,test_moe_stacked_expert_lora_reaches_forward.py,test_cpu_ce_compile.py,test_grpo_rollout_correction.py,test_moe_swap_weights_restores_parameters.py) run cold, warm and warm again against one cache dir on one machine with 291 passed in all three arms.Inductor builds CPU kernels with
-march=native, and its own cache key does not name the CPU. GitHub'subuntu-24.04pool mixes Intel Xeon and AMD EPYC generations, so a cache saved on one model was being handed to PRs on another. #19126's A/B ran cold and warm on the same runner, which could not see this.Fix
inductor-stackhash now also coversgcc -march=native -Q --help=target, the target gcc actually resolves for-march=native. A cache is restored only on the CPU target that built it; another model misses cleanly and runs cold. If gcc prints nothing the step fails instead of keying without the CPU.-march, so a future crash can be matched to the runner it came from.zoo-inductor-v1-tozoo-inductor-v2-, so none of the existing entries are restored again.cache-janitor.yml: comment only; thezoo-inductor-*family rule already strips just the trailing zoo SHA.Test
tests/studio/test_zoo_inductor_cache_is_cpu_keyed.py:zoo-inductor-v1-key remains;inductor-stackstep in bash with a stubgccandpython: two CPU targets give two different stack hashes, the same target gives the same hash, and an emptygccanswer fails the step without writing a key.On the old workflow all three tests fail; with the change, 3 passed. Every test that reads
consolidated-tests-ci.ymlorcache-janitor.yml: 315 passed, 4 skipped.Follow up
This PR's own Core zoo legs run cold, since no v2 entry exists yet. After it merges, main pushes save one v2 generation per CPU target as they go green. If a PR leg still loses workers after restoring a v2 entry, the printed CPU line will show whether it matched the saver, and the restore should then be dropped rather than keyed further.