Repository navigation
fix(upscale): report a refused export of a clip Flow already rendered (#1570) - #1595
Conversation
…#1570) Exporting a clip again at a scale Flow has already rendered sends no p0UkFb; Flow serves the stored file through as29s. The export listener now maps a PUBLIC_ERROR_UNUSUAL_ACTIVITY frame on as29s to the scale's refusal (upscale_refusal) instead of waiting out the capture budget. Any other as29s error is still ignored, because the page also uses as29s for its own reads. The upscale e2e gains a stored-export scenario that replaces as29s replies only once the export's capture hooks are installed.
…t rpcs Addresses the code and lean reviews: a single branch maps the refusal; the e2e arms its as29s replacement from the capture hook itself and fails on a real timeout; ERRORS.md notes an as29s refusal during a fresh export.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 11 minutes. View limit details
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…port Addresses the council review on #1595: ERRORS.md states that an as29s refusal after an accepted 720p/270p export reads wait, FLOW_WIRE_RPCS.md names the stored-export use of as29s, and the unit test is a row of the existing refusal parametrize.
|
Council review at ac39098: soft YELLOW, no must-fix (D0, D2, D3, D4, D5, D6, D9, D12, D14 green; D1 yellow on an undocumented outcome). Folded in at 557e4c3:
Filed separately: the direct path's |
Summary
Exporting a video clip again at a scale Flow has already rendered sends no export RPC (
p0UkFb/jwpduf); Flow serves the stored file throughas29s(measured 2026-11-28). APUBLIC_ERROR_UNUSUAL_ACTIVITYrefusal on that path was not mapped, so the export waited out its budget and ended as a capture timeout.The export listener (
migrated_video_upscale._export_refusal_listener) now maps a refusal frame onas29sthe same way as one on the export RPCs:upscale_refusal(...), exit 10, with the scale'scharged/next_action(1080pno/wait, 720p and 270pmaybe/wait, 4Kmaybe/reconcile). Any otheras29serror is still ignored, because the page also usesas29sfor its own reads; addingas29sto the export RPC list would have turned those into exit 7. Anas29srefusal during a fresh export ends it the same way, since it means the page itself is refused.Closes #1570.
Verification
/gflow:checkgates: all green;pytest -n 4: 9683 passed, 52 skipped, coverage 94.09%.as29srefusal during the export raises the 1080p refusal (no/wait, routebatchexecute:as29s); anas29serror with another reason does not end the export. The first fails without the fix (the export runs into the capture timeout).tests/e2e/test_upscale_refusal_contract_bdd.py(@e2e_auth, $0) gains a stored-export scenario: a control export of a clip Flow has already rendered (nop0UkFbis sent and the file is written), then the same clip's export with itsas29sreplies replaced by a refusal frame from the moment the export's capture hooks are installed (so page loading and hydration are untouched). All three scenarios passed on a live profile. The scenario cannot single out the export's ownas29srequest from a page poll answered in the same window; both reach the listener the same way./code-review xhighand/ponytail-review xhighby fresh agents; no important findings. Folded in: one refusal branch for both RPC groups, the e2e arms its replacement from the capture hook itself,_storedfails on a real timeout instead of skipping, and ERRORS.md notes the fresh-export case.Summary by CodeRabbit