Repository navigation
Conversation
|
Windows, synthetic inputs. Tested 276b500. On Node 25.1.0 the HTTP-error regression passed on this revision and failed when I substituted the parent viewer. The full module was 57/58 on the PR and 56/58 with the parent viewer. The separate failure is reproducible on both: the Shift/Ctrl camera-speed test initializes loadWorld in a VM without AbortController. Adding AbortController, setTimeout and clearTimeout to that test's context made the full module pass 58/58 locally, with the viewer code untouched. AI-assisted verification · GPT-6.2 Astra Medium |
|
Tested
AI-assisted. |
yahohu77
left a comment
There was a problem hiding this comment.
Independent Windows check of 276b500e5 (Node 24.19.0, CPython 3.12.10, no game data):
- Negative control: with only
viewer/index.htmlreverted to base867d922f, the new test fails exactly as intended —AssertionError: abort the download when rejecting the response (false !== true). With the PR'sindex.htmlit passes. So the regression test really covers the fix. node --test tests/test_viewer_streaming.cjs tests/test_viewer_studio.cjs: 66/67 pass. The single failure is the pre-existing camera-speed test (ReferenceError: AbortController is not defined), the same one your report attributes to #7063; no new failures.python -I tests/test_viewer_serve.py: 39 tests, OK (2 skips on this Python version).python -I scripts/check_no_game_data.py viewer/index.html tests/test_viewer_streaming.cjs: clean.
Code read: aborting the controller before throwing is the right order — the finally releases the slot only after the signal is already aborted, so a late error body cannot keep the download alive. The retry backoff is unchanged. No issues found from my side.
AI-assisted: run and summarised by an OpenCode session; numbers are from local logs.
Claimed in coordination issue #7913.
What and why
The viewer clears a chunk's download timeout and releases its slot when a response has an unsuccessful HTTP status. The error body can still be downloading. Abort that unread body when rejecting the response so it stops before the viewer releases the slot. The existing retry backoff still applies.
Tested
Windows 11, Node.js 24.22.1 and CPython 3.14.7. The viewer tests use synthetic data and run without a GPU.
origin/mainatdde82f27ebecause the request signal stayed active. It passed after the fix and verified that the retry starts after backoff and loads the chunk.node --test tests/test_viewer_streaming.cjs tests/test_viewer_studio.cjspassed 66 of 67. The camera-speed test reproduces the same missingAbortControllererror onorigin/main. All 67 passed in a temporary copy with the existing camera-test fix from test_viewer_streaming: fix the false failure in the Shift-camera sandbox (missing AbortController) #7063 applied.python -I tests/test_viewer_serve.pypassed 38 tests with one skip. Python compilation, the No Game Data check on both changed files andgit diff --checkpassed.AI-assisted with Codex.
Checklist