Commit 44d7134
fix(tests): prevent OOM and infinite hangs in incident search loop
Three layered defenses against Chrome/Node.js OOM (exit 137) and
infinite hangs in findIncidentWithAlert's retry loop:
1. cy.reload() at start of each search iteration — releases browser
DOM from previous iteration, preventing browser-side accumulation.
2. _quietSearch/_qLog() pattern — suppresses Cypress command logging
(and DOM snapshot serialization, ~1-5 MB each) during search.
Without this, ~40 commands * 15+ iterations = 600+ snapshots OOM.
3. Hard timeout safety net (35 min) — Date.now()-based kill switch
that fires if cy.waitUntil's timeout breaks due to cy.reload()
interfering with the Cypress command queue.
Also adds warmUpForPlugin() page object method for plugin loading
race condition (used by subsequent commit).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 0234fa4 commit 44d7134
2 files changed
Lines changed: 137 additions & 77 deletions
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
0 commit comments