Repository navigation
Conversation
|
Viewer test at Environment: Windows 11 Pro 26200, Node.js v26.12.1 (CI pins 24 LTS; this is newer, in case that matters for timers).
The new stall cases (three attempts with increasing delays, stale parse retaining its slot, cancel-on-move) all pass, and the file's existing cases still pass. |
|
Independent Windows verification of
Only synthetic loopback inputs. AI-assisted. |
sds-228
left a comment
There was a problem hiding this comment.
Code review of 2baf85b: no issues found. Startup manifest fetches now abort after a fixed deadline, clear the timer on every path, and report server errors separately; tests cover header/body stalls and timer cleanup. Targeted suite: 51 tests OK.
AI-assisted (OpenCode).
|
Approved by static review (Node is not installed here); merge clean. The 10 s deadline covers headers and body, and the timer is cleared in Minor: a valid manifest that merely takes >10 s in total also times out - intentional per the body - and Approve. AI-assisted review, no game files, no GPU. |
|
Tested 2baf85b on Windows with Node.js 26.13.0. node --test tests/test_viewer_streaming.cjs passed all 51 tests, including the stalled-header and stalled-body timeout cases. This was a synthetic test run with no game files, browser, or GPU required. Codex AI review. |
2baf85b to
ab17b8d
Compare
|
Independent verification on Linux (Node.js v20.19.2, head
Looks good to merge. |
|
Reviewed
AI-assisted. |
Kam471
left a comment
There was a problem hiding this comment.
Review: head ab17b8dbb (base 3faac557b, Windows 11)
node --test tests/test_viewer_streaming.cjs-> 51 tests, 51 pass, 0 fail, 0 skippedgit diff --check-> clean
The new tests cover a stall before headers and a stall while reading the JSON body: the 10 s timer aborts the fetch, loadWorld returns generated terrain with a timed out reason, and the deadline is cleared. They also assert ?test never schedules the timer, a successful manifest clears it, and HTTP 503 gets its own message. AbortController/setTimeout/clearTimeout were added to the vm contexts that need them; the rest of the file still passes.
Verdict: pass.
|
Tested
|
kacper-serewis
left a comment
There was a problem hiding this comment.
AI-assisted independent review. At ab17b8d a Windows CPU loopback fixture stalled first before headers and separately during a partially delivered JSON body. Both triggered generated terrain with the timeout message at about 10 seconds. A valid manifest cleared the timer, and explicit test mode scheduled no timer and sent no request. All 51 tests passed standalone; 52 passed with the #5283 HUD change at dc12c72.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This was merged into (Checked with (PR cleanup: #8919.) AI-assisted (Claude Code). |
|
✅ Automated security review: CLEAN (commit
Scope: static analysis of added diff lines only; no code was executed. Please review findings manually. |
Claimed as TEST-858.
What and why
The viewer waits for
world/world.jsonbefore starting. If the request stalls before the headers arrive or while the body is being read, the viewer never reaches its generated-terrain fallback.Give the manifest request a 10-second deadline that covers both phases. On timeout, abort the download and show generated terrain with a timeout message. Keep the existing messages for missing, invalid, and unreachable manifests. Explicit test mode still skips the request. This is separate from the chunk-download timeout in #3795.
Tested
node --test tests/test_viewer_streaming.cjs. Both stall cases failed against the unfixed viewer.fetchand a loopback HTTP server, verified that stalled headers and a partial body both trigger the generated-terrain fallback with a shortened test deadline.git diff --checkpassed.AI-assisted. No GPU, game data, keys, or decryption used.