mirror of
https://github.com/stablyai/orca.git
synced 2026-11-03 18:47:40 +00:00
test: remove two load-dependent CI flakes (#34613)
- git-binary-compatibility: give the docker image runs of the ref-pairing case a 90 s budget; each Git call is a docker exec and the case normally takes 22-25 s of the 30 s default. - claude-transcript-catch-up: fire the 5 ms catch-up deadline with fake timers only after the fallback lookup has started, instead of racing a real timer.
This commit is contained in:
@@ -50,6 +50,8 @@ const image = process.env.ORCA_GIT_COMPAT_IMAGE
|
||||
const binary = process.env.ORCA_GIT_COMPAT_BINARY
|
||||
const expectedVersion = process.env.ORCA_GIT_COMPAT_VERSION
|
||||
const describeBinaryCompatibility = image || binary ? describe : describe.skip
|
||||
const PAIRS_REFS_TEST =
|
||||
'pairs published, tracked and default refs with configured repositories, on the selected Git binary'
|
||||
|
||||
type GitResult = { stdout: string; stderr: string }
|
||||
|
||||
@@ -112,7 +114,8 @@ describeBinaryCompatibility('real Git binary compatibility', () => {
|
||||
}
|
||||
})
|
||||
|
||||
it('pairs published, tracked and default refs with configured repositories, on the selected Git binary', async () => {
|
||||
// Each Git call is a docker exec: image runs take 22-25 s of a 30 s default, so loaded runners tripped it.
|
||||
it(PAIRS_REFS_TEST, { timeout: image ? 90_000 : undefined }, async () => {
|
||||
const root = join(repoPath, 'copy-url')
|
||||
await mkdir(root)
|
||||
const cwd = image ? '/repo/copy-url' : root
|
||||
|
||||
Reference in New Issue
Block a user