Revert "fix(memory): bound OOM-prone accumulators (#10179)" (#10255)

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Neil
2026-07-23 18:35:31 -07:00
committed by GitHub
co-authored by Orca
parent 6eb70d8370
commit aab112933e
1577 changed files with 15167 additions and 91655 deletions
@@ -34,7 +34,6 @@ import {
waitForSystemSshForwardStop
} from './system-ssh-forward-process'
import type { SshTarget } from '../../shared/ssh-types'
import { SYSTEM_SSH_OUTPUT_TAIL_MAX_BYTES } from './system-ssh-output-tail'
const SYSTEM_SSH_PATH =
process.platform === 'win32' ? 'C:\\Windows\\System32\\OpenSSH\\ssh.exe' : '/usr/bin/ssh'
@@ -248,22 +247,6 @@ describe('system SSH forward process', () => {
await expect(pending).rejects.toThrow('bind: Address already in use')
})
it('keeps only a bounded stderr tail while waiting for forward startup', async () => {
vi.useFakeTimers()
const child = createFakeProcess()
connectMock.mockReturnValue(createFakeSocket())
const pending = waitForSystemSshForwardStartup(child as never, 3000)
child.stderr.emit(
'data',
Buffer.from(`HEAD${'x'.repeat(SYSTEM_SSH_OUTPUT_TAIL_MAX_BYTES)}TAIL`)
)
child.emit('exit', 255)
await expect(pending).rejects.toThrow('TAIL')
await expect(pending).rejects.not.toThrow('HEAD')
})
it('rejects startup when the ssh process emits an error', async () => {
vi.useFakeTimers()
const child = createFakeProcess()