mirror of
https://github.com/stablyai/orca.git
synced 2026-11-15 02:17:31 +00:00
Since #34683 a move journal promotes the WSL hosts gate to serve-only, so startup recovery now runs and undoes a move interrupted before blobs-transferred. The spec restarted at source-fenced and expected the fence to survive; assert the undo there, fence from blobs-transferred, and expect the committed refusal to name the host (#34880). Route fence and recovery sources to the spec. Co-authored-by: Claude <noreply@anthropic.com>
42 lines
2.3 KiB
JavaScript
42 lines
2.3 KiB
JavaScript
import { isUnitTestSupportSource } from './pr-code-change-scope.mjs'
|
|
|
|
const isProductSource = (file) => !/\.test\.tsx?$/.test(file) && !isUnitTestSupportSource(file)
|
|
|
|
export const PR_WSL_E2E_SOURCE_ROUTES = [
|
|
{
|
|
id: 'wsl-host.fake-connector',
|
|
specs: ['tests/e2e/wsl-host-fake-transport.spec.ts', 'tests/e2e/wsl-host-chat.spec.ts'],
|
|
matches: (file) => file === 'src/main/wsl/host-lifecycle/wsl-host-e2e-fake-connector.ts'
|
|
},
|
|
{
|
|
// Remove runs through the fake transport spec; its peer check asks the server who else uses it.
|
|
id: 'wsl-host.remove',
|
|
specs: ['tests/e2e/wsl-host-fake-transport.spec.ts'],
|
|
matches: (file) =>
|
|
/^src\/main\/wsl\/host-lifecycle\/(?:wsl-host-server-stop|wsl-host-peer-desktops|wsl-host-removal)\.ts$/.test(
|
|
file
|
|
)
|
|
},
|
|
{
|
|
// Startup recovery decides which journaled moves still fence after a restart.
|
|
id: 'wsl-move.fence',
|
|
specs: ['tests/e2e/wsl-move-fence.spec.ts'],
|
|
matches: (file) =>
|
|
/^src\/(?:main\/(?:persistence\/moving-wsl-projects\/wsl-move-(?:scope-guard|fence|reset|startup|startup-rewrite|cutover-journal)|ipc\/pty\/host-env\/spawn-cwd|wsl\/host-lifecycle\/wsl-host-gate(?:-startup)?)|shared\/wsl-move\/wsl-move-cutover)\.ts$/.test(
|
|
file
|
|
)
|
|
},
|
|
{
|
|
id: 'terminal.windows-wsl-launch-and-paste',
|
|
specs: [
|
|
'tests/e2e/golden-tab-bar-agent-launch.spec.ts',
|
|
'tests/e2e/terminal-windows-shell-paste-ownership.spec.ts'
|
|
],
|
|
matches: (file) =>
|
|
isProductSource(file) &&
|
|
/^(?:config\/scripts\/(?:runtime-verification\/participation\/)?(?:verify-wsl-e2e-participation|verify-wsl-no-background-boot-participation|verify-playwright-participation)\.mjs$|config\/scripts\/(?:runtime-verification\/participation\/)?runtime-verification\/participation\/verify-playwright-participation\.mjs$|src\/main\/(?:wsl[/-]|pty\/.*wsl|providers\/wsl)|src\/shared\/(?:wsl-|windows-terminal-shell|shell\/launch\/shell-argument-quoting)|src\/renderer\/src\/.*(?:terminal-paste|pty-paste)|tests\/e2e\/(?:golden-tab-bar-agent-launch\.spec|terminal-windows-shell-paste-ownership\.spec|terminal-inline-images-windows\.spec|wsl-bridge-no-background-boot\.spec|helpers\/(?:wsl-golden-stub-agent|golden-stub-agent))|\.github\/(?:actions\/setup-wsl-test-runtime\/|workflows\/windows-wsl-e2e\.yml))/.test(
|
|
file
|
|
)
|
|
}
|
|
]
|