Commit c78c136
fix(tests): prevent Chrome OOM in e2e incident lifecycle test
Split the alert polling into two phases to avoid Chrome OOM (exit code 137):
Phase 1: Poll the Thanos Querier API via cy.exec/oc to check if the alert
is actually firing. This is lightweight — a single shell command per
iteration with zero Chrome DOM interaction or Cypress command log growth.
Phase 2: Once the alert is confirmed firing, use the UI traversal to find
the incident, but with doubled interval (2 min) and fewer max iterations.
This reduces the number of heavy DOM traversals that accumulate Cypress
command snapshots in Chrome memory.
Also fix poll-ci-status.py to use --repo openshift/monitoring-plugin flag
so it queries the upstream repo instead of the local fork.
CI run: https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/openshift_monitoring-plugin/860/pull-ci-openshift-monitoring-plugin-main-e2e-incidents/2036818563108442112
Classifications: INFRA_OOM (2 consecutive runs)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent d5cdd03 commit c78c136
2 files changed
Lines changed: 28 additions & 7 deletions
File tree
- .claude/commands/cypress/scripts
- web/cypress/e2e/incidents
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
47 | 65 | | |
48 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
49 | 70 | | |
50 | 71 | | |
51 | | - | |
52 | | - | |
53 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
54 | 75 | | |
55 | 76 | | |
56 | 77 | | |
| |||
0 commit comments