Skip to content

test(viewer): the memory cap of the office read is set from the open's and the read's measured peaks - #1540

Merged
DrunkOnJava merged 2 commits into
mainfrom
ci/viewer-memory-cap-from-measurement
Nov 9, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
ci/viewer-memory-cap-from-measurement

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Summary

parameters-row.spec.ts's office read under a capped browser hard-coded a 927 MiB cap to sit between two measured figures, the open's peak (910 MiB) and a read's (943 MiB). Any change that adds a little to the open's peak then fails the job with "Ran out of memory", which says nothing about that change being wrong: #1500's full CI failed that way. The test now measures both peaks in an uncapped browser first and sets the cap halfway between them. If there is less than 8 MiB between them it reports NOT MEASURED instead of failing. A capped open that runs out now stops at once instead of waiting 15 minutes.

Testing

Full CI run 42536857781 at 210d0c6c, leg 1/3: the open's peak was 910 MiB and a read's 929 MiB, so the test chose a cap of 919 MiB. Under that cap the file opened, the read failed with the viewer's named out-of-memory message, and the test passed.

@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 8, 2026 23:47
@DrunkOnJava
DrunkOnJava force-pushed the ci/viewer-memory-cap-from-measurement branch from ce3c883 to 210d0c6 Compare November 8, 2026 23:47
@DrunkOnJava
DrunkOnJava force-pushed the ci/viewer-memory-cap-from-measurement branch from 210d0c6 to 26627e6 Compare November 9, 2026 00:50
@DrunkOnJava
DrunkOnJava merged commit 572e9ab into main Nov 9, 2026
37 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/viewer-memory-cap-from-measurement branch November 9, 2026 01:04
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.

1 participant