Skip to content

test(viewer): pass AbortController and timers into camera-speed vm context - #5692

Open
iepurash wants to merge 1 commit into
ItsNotRexed:mainfrom
iepurash:fix/viewer-streaming-abortcontroller
Open

iepurash wants to merge 1 commit into
ItsNotRexed:mainfrom
iepurash:fix/viewer-streaming-abortcontroller

Conversation

@iepurash

Copy link
Copy Markdown
Contributor

Claimed in #5581 (#5581 (comment)).

What changed and why

Tests run (Windows, CPU only, Node.js v26.13.1, no game files, no GPU)

  • node --test tests/test_viewer_streaming.cjs: 57/57 pass (0 fail; previously 56/57 pass, 1 fail)
  • node --test tests/test_viewer_studio.cjs: 3/3 pass

AI-assisted.

@whattheflop

Copy link
Copy Markdown
Contributor

AI-assisted Windows Node 24.16.0 check at 9313de84. The exact round-44 base 561b65a8 and the asset-index branch #4763 at 298c43ce both reproduced the single AbortController is not defined failure. At #5692 alone, Streaming 57/57 and Studio 3/3 passed.

Applying only #5692’s one-file patch to a disposable #4763 snapshot passed all 70 tests, including Assets 10/10 alongside Streaming 57/57 and Studio 3/3. No skips. The patched file matched the exact #5692 Git blob byte for byte. Synthetic inputs, CPU only.

@Joaovenera

Copy link
Copy Markdown

Tested 9313de8 on Node 24.3.0, Windows 11: node --test tests/test_viewer_streaming.cjs passes 57/57 (56/57 on main 561b65a, the AbortController is not defined failure). Read the diff: one line, same sandbox keys as the other two vm contexts in the file. AI-assisted (Claude Code).

@Mortify7612

Copy link
Copy Markdown

Tested 9313de8 merged onto 561b65a on Linux (Debian 12), Node 22.23.5: node --test tests/test_viewer_streaming.cjs passes 57/57 (56/57 on main: the AbortController is not defined failure in the Shift/Ctrl freecam test). AI-assisted (Claude Code).

@Daazd

Daazd commented Nov 23, 2026

Copy link
Copy Markdown

Independent check (Linux, Python 3.12.3, Node 24.13, CPU only, no game files): head 9313de84c merged onto main 6a4299563: merges clean.

  • node --test tests/test_viewer_streaming.cjs: ℹ pass 57 ℹ fail 0 (exit 0)

Fixes the red viewer test on main (Shift speeds the camera up...: AbortController is not defined). Same fix as #7063 and #7085; all three pass.

AI-assisted (Claude Code).

@Racurs156

Copy link
Copy Markdown

AI-assisted Windows verification using the exact one-line patch from head 9313de8 on main 23fc0c9. The patch applied cleanly. With Node v24.22.3, the viewer streaming suite went from 56/57 (Shift/Ctrl camera speed stopped at AbortController is not defined) to 57/57. The Studio suite passed 9/9 both times. No game files or GPU were used.

@Victorbriez

Copy link
Copy Markdown

Tested locally on Windows 11, Node.js v24.19.0:

  • main at 37398f98d: node --test tests/test_viewer_streaming.cjs gives 56/57, with "Shift speeds the camera up and Ctrl slows it down" failing on ReferenceError: AbortController is not defined.
  • This PR's head (9313de84c): 57/57 pass.
  • This PR merged onto origin/main at 3ae065426: no conflicts, 57/57 pass.

For reference, #7063 makes the same one-line change and #7085 covers the same failure.

(Test run with AI assistance.)

@Prateek-Goyal17

Copy link
Copy Markdown

Verified on macOS arm64 with Node.js 25.2.1 (CPU only, synthetic inputs).

  • On main at dde82f2, the streaming suite passed 56/57. The Shift/Ctrl camera test stopped in loadWorld() with ReferenceError: AbortController is not defined.
  • With the patch from 9313de8 applied to that checkout, node --test tests/test_viewer_streaming.cjs tests/test_viewer_studio.cjs passed 66/66 with zero skips.
  • To check that the test reaches the movement assertions, I temporarily changed the viewer’s Shift multiplier from 5 to 4. The test failed with 16 is not 20. Restoring the multiplier brought the combined suite back to 66/66.

AI-assisted verification with Codex.

@2968412091-ui

Copy link
Copy Markdown

Verified #5692 on Windows with Node.js 22.13.0. On main at 867d922f09b86583859796a174df89555fb32da8, node --test tests/test_viewer_streaming.cjs passed 56/57. The Shift/Ctrl camera test stopped at AbortController is not defined. With this PR’s one-line change applied to that checkout, node --test tests/test_viewer_streaming.cjs tests/test_viewer_studio.cjs passed 67/67 with zero skips. Synthetic inputs only. AI-assisted verification.

@naxhh

naxhh commented Nov 23, 2026

Copy link
Copy Markdown

Tested merged onto main 867d922 (Windows 11, Node 26.13.1): test_viewer_streaming.cjs goes from 56/57 (AbortController is not defined) to 57/57. AI-assisted test run.

@mrbean56

Copy link
Copy Markdown

Ran 9313de84cc with Node 24: pass (test-only change).

  • node tests/test_viewer_streaming.cjs: 0 failures, 0 cancelled, 0 skipped; duration 73 ms.
  • The single added line passes AbortController and timers into the camera-speed view-model context, which is the follow-up the title names. Nothing in the viewer source changed.

No GPU, no game data. AI-assisted.

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.