Repository navigation
Studio: drop three frontend dependencies nothing imports - #15634
Merged
Merged
Conversation
danielhanchen
added a commit
that referenced
this pull request
Oct 28, 2026
## Summary `pip scan-packages :: extras` now fails on unrelated PRs (#15634, #15635) with one unbaselined finding: ``` [1] HIGH Advanced obfuscation (marshal/compile/zlib) + exec/eval Package: triton File: triton/_compile_warmup_pool.py Evidence: Obfusc: L149: code = compile(jit_function.src, function.__name__, "exec") Evidence: Exec: L151: exec(code, namespace) ``` `triton/_compile_warmup_pool.py` is new in triton 3.9.0, which the extras lane now resolves. ## Review Lines 131-156 of that file, in `_JITFunctionPickler._reduce_jit_codegen_fn`: - When triton cloudpickles a `@triton.jit` function to its compile-warmup process pool and the function's code object name differs from its own name, it recompiles that function's own source (`jit_function.src`). - It runs that source in a scratch namespace built from the function's globals, to discover which globals the pickled function needs. - No downloaded or external input reaches `compile` / `exec`. It is the same first-party codegen pattern as the already-baselined `triton/runtime/interpreter.py` entry, so it is baselined rather than pinned away. ## Change `scripts/scan_packages_baseline.json`: one entry for `(triton, triton/_compile_warmup_pool.py, "Advanced obfuscation (marshal/compile/zlib) + exec/eval")` with evidence hash `d9e13c23...`. - The entry was generated by `scan_packages.py triton==3.9.0 --write-baseline` and inserted after the other triton entries. - The rest of the file is byte-identical. - If the matched code changes, the hash stops matching and the finding reopens. ## Testing - `python scripts/scan_packages.py triton==3.9.0`: `1 HIGH`, exit 1, on main; exit 0 with this entry (only 3 MEDIUM remain). - `tests/security/test_scan_packages.py` and `tests/studio/install/test_diffusers_pin.py`: 209 passed.
wasimysaid
added a commit
to wasimysaid/unsloth
that referenced
this pull request
Oct 28, 2026
danielhanchen
marked this pull request as ready for review
October 28, 2026 12:35
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. |
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.
Three dependencies in
studio/frontend/package.jsonare not used by anything: not by the app, tests, configs, npm scripts, CSS, CI workflows or the Tauri build.What changes
npm uninstallof:@tauri-apps/plugin-updater: nothing in the repo references it. The last import went away in Studio: update in the background and restart when ready #9890; the frontend calls the app's own Rust commands now. The Rust crate is separate and untouched.@radix-ui/[email protected]and@radix-ui/[email protected]: nothing imports them. The bundle only uses the copies nested underradix-ui, never these top-level ones.The lockfile loses exactly these 3 entries; nothing is added or changed.
How it was checked
vite.config.tsproduction build, plus a TypeScript AST pass over every source, test, config file, script and CSS@import,tsconfigpaths, npm script commands, peer requirements, and files outside the frontend (workflows, Tauri config). Transitive dependencies expanded withnpm ls --all, so packages used only as peers, config plugins, type-only imports or CLIs in scripts were not flagged.npm cipasses and leaves a clean tree. The productiondist/(871 files) is byte identical to main.bundle:check: 6,802.0 KB raw / 2,053.2 KB transfer / 110 chunks on both sides. Typecheck passes on both; lint gives the identical set of findings on both (main already has them). Frontend tests: 14,249 passed, 0 failed on both.tests/studio/test_frontend_dep_removal.pyand the lockfile audit pass.This is tidying, not a speed change: none of the three was in the bundle, and they are 39 KB of
node_modules.