A 1 TB Test: Building a Memory Watchdog for go test
A runaway test binary hit about 1 TB of commit charge and took my desktop down. Here's the PowerShell and POSIX sh wrapper I put around go test, and the bug in it that the Windows box couldn't show me.
On August 16th a server.test.exe from shipmates climbed to
roughly 1 TB of commit charge on my Windows workstation. Windows Terminal was hosting several agent sessions in
tabs. It hard-faulted with E_OUTOFMEMORY, and every one of those sessions died at the same moment. It wasn’t the
first time either. An earlier one hit about 236 GB through an infinite filepath.Dir loop.
