test: remove redundant browser and transport coverage (#33757)

* test: remove redundant browser and transport coverage

* test: retire deleted suites from reliability manifest

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
This commit is contained in:
OrcaWin
2026-10-25 20:46:39 -07:00
committed by GitHub
co-authored by OrcaWin
parent 7b5f50d917
commit 852dfcd282
64 changed files with 23 additions and 3567 deletions
@@ -1,7 +1,5 @@
import { describe, expect, it } from 'vitest'
import {
RECOVERABLE_CODES,
RECOVERABLE_MESSAGE_FRAGMENTS,
isRecoverableRemoteRuntimeConnectionError,
isRuntimeRpcQueueOverloadError,
toRemoteRuntimeClientErrorLike
@@ -64,33 +62,6 @@ describe('remote runtime client error classification', () => {
expect(isRecoverableRemoteRuntimeConnectionError(error)).toBe(true)
})
it('pins the recoverable codes and message fragments', () => {
expect([...RECOVERABLE_CODES].toSorted()).toEqual([
'reconnecting',
'remote_runtime_busy',
'remote_runtime_unavailable',
'runtime_rpc_queue_overloaded',
'runtime_timeout',
'runtime_unavailable',
'timeout'
])
expect(RECOVERABLE_MESSAGE_FRAGMENTS).toEqual([
'could not connect to the remote orca runtime',
'remote orca runtime closed the connection',
'remote orca runtime connection closed',
'remote orca runtime is not connected',
'remote runtime call queue is full',
'remote runtime connection closed',
'remote runtime connection wait limit reached',
'remote runtime request limit reached',
'remote runtime subscription limit reached',
'remote runtime subscription memory limit reached',
'remote runtime subscription closed before it started',
'remote terminal stream is not connected',
'timed out waiting for the remote orca runtime'
])
})
it.each([
'runtime_manually_disconnected',
'ssh_user_disconnected',
@@ -99,17 +70,4 @@ describe('remote runtime client error classification', () => {
])('does not treat client code %s as recoverable', (code) => {
expect(isRecoverableRemoteRuntimeConnectionError({ code, message: 'refused' })).toBe(false)
})
it.each(RECOVERABLE_MESSAGE_FRAGMENTS)(
'recovers a code-stripped message containing %s',
(fragment) => {
expect(
isRecoverableRemoteRuntimeConnectionError(
toRemoteRuntimeClientErrorLike(
new Error(`Error invoking remote method 'x': Error: ${fragment}.`)
)
)
).toBe(true)
}
)
})