Repository navigation
Fix the exec-literal, encoding and formatter gates left red on main - #13543
Conversation
|
@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. 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". |
Problem
Three gates fail on
main(8a0e453). All of them are reproduced locally and all of them sit in every PR's Backend CI and workflow-trigger lint jobs:tests/security/test_lint_exec_literals.py::test_the_baseline_matches_the_tree_it_was_recorded_against: 2 dynamic-execution call sites are not in the baseline. They arestudio/backend/core/inference/diffusion_autoopt/patches.py:174(compile) and:175(exec), added by Studio: diffusion auto-optimizer core shared by the image and video load paths #13520.tests/test_source_read_encoding.py: four checked-in file reads/writes use the platform default encoding:test_diffusion_autoopt_parity.py:490(Studio: diffusion auto-optimizer core shared by the image and video load paths #13520)test_diffusion_family_data_freeze.py:191-192(Studio: per-family diffusion tables move into the family registries #13536)tests/studio/playwright_chat_ui.py:2826(Studio: run the Shutdown cleanup off the event loop #13534)tests/test_formatter_fixed_point.py: six files from Studio: per-family diffusion tables move into the family registries #13536 are not a fixed point of theruff-format-with-kwargshook.Test or product?
splice_functionrebuilds a diffusers function from its owninspect.getsource. It edits the source only by exact-once literal needle replacements, checks that the result parses to a single function, and checks that every global resolves. Then it compiles and executes it into a copy of the original globals. That is the same pattern as the already-baselined HunyuanImage / HunyuanVideo rebuild indiffusion_capture_safe.py, and it never sees user or model input. So both sites are recorded withscripts/lint_exec_literals.py --update, with the reasons written into the entries. Regenerating moved exactly those two entries and nothing else.encoding = "utf-8", including the/proc/<pid>/statread, which is ASCII anyway.scripts/run_ruff_format.pyonly.Verification
test_lint_exec_literals.py+test_source_read_encoding.pytest_formatter_fixed_point.pyfamily_data_freeze,video_families,diffusion_memory,autoopt_parity,video_backend,diffusion_backend,vae_tile_fixture_coverage)The
test_diffusion_autoopt_parity.pyfailures seen on #13520's own run pass on current main and are not touched here.