Repository navigation
test(omp-images): give the two-20-MiB-record picture test the 30 s budget of its neighbour - #2372
Conversation
…dget of its neighbour On the Windows runner the test writes a 40 MiB transcript and reads a picture out of it twice: passing runs took 4.36, 4.47 and 4.83 s and three hit the default 5 s (5002, 5002 and 5010 ms), the last on #2368. It asserts allocation, not time, so give it the 30 s its 40 MiB neighbour already has.
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Set and document test timeout server/omp-images.test.ts, changelog.d/unit-flake-omp-images-large-record.md |
The test sets a 30,000 ms timeout and documents its allocation assertion. The changelog describes the timeout change and reported Windows run timings. |
Priority:
Estimated code review effort: 1 (Trivial) | ~3 minutes
Change: Other · Severity of issue fixed: Low
Merge Risk: 
Minimal · up to 06e01
-
The localized test-timeout adjustment is ready to merge.
Pre-merge checks: 
5
-
Full details: Description check
-
Explanation
The description explains the problem, cause, change, validation results, and regression guard. The required Validation heading is absent, but the Proof section provides the required validation details.
Full details: Docstring Coverage
-
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files. (1 skipped: 1 unsupported.)
-
Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
|
Merging 06e0166. Test-only: server/omp-images.test.ts's two-20-MiB-record picture test gets the 30 s budget of its neighbour (it asserts the allocation, not time; writing and twice reading 40 MiB takes about 4.5 s on Windows), the flake that failed #2368's Native Windows job once. Diff read by the merge pass; no CodeRabbit review needed. |
Found by the flake-hunt lane: Native Windows install failed and passed on a rerun with no code change on run 40921939545 (#2368, 2026-10-29):
server/omp-images.test.ts"omp's pictures reach the chat > holds a window, a record's shape and the picture, never a record whole however large"this test timed out after 5000ms.Cause (test flake)
The test writes a transcript with two 20 MiB records and reads a picture out of it twice, then asserts that no read allocated more than 1 MiB. It ran on bun's default 5 s budget. On the hosted Windows runner it is slow, not stuck:
server/codex-images.tsfinishAsync), so it cannot spin in place.Change
The test gets the 30 s budget its 40 MiB neighbour ("lets the event loop run between windows...") already has, with the same comment that counts, not time, are asserted.
Proof
server/omp-images.test.tspasses 21/21 locally, andbun run check fastis ok.recordShapeStepsto read a whole record in a scratch worktree, and the test failed on the allocation check (20971866 > 1048576), not on time.Test-only.
Reviews
Buffer.alloc, so a regression reading a whole record throughBuffer.allocUnsafeorreadFileSyncwould pass it. Left as is.