Prevent stability ping values from freezing on long tests - #851
Conversation
Co-authored-by: sstidl <12804296+sstidl@users.noreply.github.com>
PR Summary by QodoPrevent frozen stability ping values by clearing resource timings
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1.
|
There was a problem hiding this comment.
🟡 Changes recommended
The regression test’s cross-origin response lacks the required CORS header and may time out.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Prevents stale ping measurements during long stability tests by clearing resource-timing entries after reads.
Changes:
- Adds cleanup with fallback-safe timing behavior.
- Adds browser-worker regression coverage for cleanup.
File summaries
| File | Description |
|---|---|
tests/e2e/stability.spec.js |
Adds regression coverage for resource-timing cleanup. |
stability_worker.js |
Clears resource timings after ping measurements. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Fixed in |
Stability tests repeatedly read
performance.getEntries()for ping precision. The browser resource-timing buffer can fill during long runs, leaving the worker to reuse a stale entry and report a frozen ping value.clearResourceTimings()and verifies it runs after a successful ping.