Skip to content

Log budget: measure the FLUX.3 prompt upsampler status poll - #14167

Merged
danielhanchen merged 1 commit into
mainfrom
fix/log-budget-prompt-upsampler
Oct 18, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fix/log-budget-prompt-upsampler

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

(Python 3.13, l-r) fails on main at 6069a27a, and on PRs based on it such as #14151:

studio/backend/tests/test_log_budget.py::test_every_classified_path_is_in_a_scenario
AssertionError: these paths are classified in loggers/handlers.py but no scenario in tests/log_budget/session.py polls them, so their log volume is unmeasured:
    /api/inference/images/prompt-upsampler/status

#14137 (FLUX.3 prompt upsampling) added /api/inference/images/prompt-upsampler/status to _QUIET_SUCCESS_PATHS in loggers/handlers.py, with the note "Polled by the Images page while the FLUX.3 prompt upsampler downloads". It did not add the path to either log-budget scenario. The guard is right to fail: every classified poll needs a cadence so the idle and busy envelopes stay honest. The product is fine.

Change

studio/backend/tests/log_budget/session.py adds the path to BUSY_POLLS at (1.0, "declared").

The cadence comes from usePromptUpsamplerStatus in studio/frontend/src/features/images/prompt-enhance-panel.tsx:

  • It reads the status once when the panel becomes active.
  • After that it reads every 1000 ms only while download.downloading is true.

It is therefore busy-only, at the same 1 s as the other download-progress polls. tests/studio/playwright_declared_polls.py reads the same ALL_POLLS, so the browser check knows the path too.

Testing

  • studio/backend/tests/test_log_budget.py: 8 passed. On main without this change, test_every_classified_path_is_in_a_scenario fails with the error above.
  • test_log_signal_floor.py and test_research_runs_hardening.py, which also import the scenario module: 328 passed.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-18T23:14:14.289430Z 7002e6f Manual request
🔒 Security Review ⚠️ Failed 2026-10-18T23:13:20.084298Z 7002e6f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 7002e6f2c2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant