From 36587a38e36988bf540875c8e468ac4bc563d848 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Nov 2026 13:58:08 +0000 Subject: [PATCH] test(scenarios): split the three-shape no-skip refresh case into one case per shape Each shape runs a full gallery refresh; three in one case outgrew the default 5s per-test budget on a loaded merge-queue shard. Same assertions per shape (kind committed, exactly one run plan). Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01Utp6CaysxGzF62ACvZ1x9x --- .../qa/scenarios/test/export/refresh.test.ts | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/packages/qa/scenarios/test/export/refresh.test.ts b/packages/qa/scenarios/test/export/refresh.test.ts index c8c329f352c..dd59ae1b791 100644 --- a/packages/qa/scenarios/test/export/refresh.test.ts +++ b/packages/qa/scenarios/test/export/refresh.test.ts @@ -135,14 +135,18 @@ describe('galleryRefresh — the quiet skip', () => { expect(remoteRefs(remote)).toBe(refs); }); - it('does not skip when one listed app is on an older version, or when the index lists no app', async () => { - for (const apps of [[app('crm_account_with_contacts', PINNED), app('order_to_cash', '18.2.0')], [], undefined]) { - const { dir } = gallery(apps); - const h = harness(PINNED); - const out = await galleryRefresh(options(dir), h.deps); - expect(out.kind).toBe('committed'); - expect(h.plans).toHaveLength(1); - } + // One case per gallery shape: each runs a full refresh (git init, the crm run, a commit), so a + // loop over all three in one case outgrew the default per-test budget on a loaded CI shard. + it.each<[string, () => GalleryApp[] | undefined]>([ + ['one listed app is on an older version', () => [app('crm_account_with_contacts', PINNED), app('order_to_cash', '18.2.0')]], + ['the index lists no app', () => []], + ['the gallery has no index', () => undefined], + ])('does not skip when %s', async (_shape, apps) => { + const { dir } = gallery(apps()); + const h = harness(PINNED); + const out = await galleryRefresh(options(dir), h.deps); + expect(out.kind).toBe('committed'); + expect(h.plans).toHaveLength(1); }); it('skips when a remote-tracking export/ branch exists: that refresh awaits review', async () => {