Repository navigation
fix(flow): keep ir within its import-time budget (main is red) - #2466
Conversation
…he browser helper on use
Independent adversarial review: APPROVEFrom: Grok Scope: Question asked: does any caller rely on
Exact-head evidence (Linux x86_64,
Mutants: restoring the top-level import is killed by the budget tests (the control above). Deleting Generality gate: a generic lazy import with no app-, site- or task-specific logic, and no change to verdict, readback or launch arguments. P3 (non-blocking): nothing pins the CI at review time: 11 pass, 14 pending, 21 skipping. |
Main is red.
tests/test_import_direction.py::test_import_time_budgetfails onorigin/main(de6c0bb6):openadapt_flow.irloads 45 modules against a budget of 44.openadapt_flow.receiptloads 46 against 45.Cause. The merge order. #2427 set the budgets from a tree without F1 (#2454). F1 split
qualification.pyinto a package, soopenadapt_flow.qualification.modelsis now one more module onir's import path. Comparingsys.modulesbefore and after shows that module is the only addition. Budgets never rise, so this PR takes one module back out.Fix.
runtime/effects/ui_readback.pyusedlaunch_rendering_readyin a single method, when it opens a browser. Importingirloaded_browser_readinessonly because of that one import. It is now imported inside that method, the waytaskgen,qualify,rl_envandbrowser_teachalready import it.ui_readback.launch_rendering_readystill resolves, through a module__getattr__, and it is the same object as before.Verified.
test_import_direction.pypasses again:irloads 44 modules andreceipt45, both exactly at budget.test_import_layers.py: its diagnostics are unchanged apart from one line-number shift, and debt rows don't depend on line numbers.test_fresh_imports.pytest_consumer_import_surface.pyui_readbacktests