next.js
a2409549 - [test] Add regression test for segment cache prefetch memory leak (#89756)

Commit
44 days ago
[test] Add regression test for segment cache prefetch memory leak (#89756) Follow-up to #89610. Adds an e2e test that detects linear heap growth caused by unclosed prefetch response streams. The test cycles through mounting/unmounting links to trigger repeated prefetches and LRU evictions, then uses CDP heap profiling with linear regression to verify the heap plateaus rather than growing steadily. ![heap-growth-chart](https://github.com/user-attachments/assets/6151c0e4-7ae1-4526-b094-8d76154be664)
Author
Parents
Loading