ci: add snapshot lane headroom

This commit is contained in:
Tianyi Cui
2026-07-21 23:56:53 +08:00
parent 53a9459609
commit 710f062586
4 changed files with 39 additions and 11 deletions

View File

@@ -26,10 +26,19 @@ describe('snapshot lanes', () => {
expect(new Set(ordinary).size).toBe(ordinary.length)
expect(acp.map(lane => lane.files)).toEqual(Array.from(
{ length: 6 },
{ length: 8 },
() => ['examples/acp-agent/tests/acp.snapshot.ts'],
))
expect(acp.map(lane => lane.scenarioShard)).toEqual(['1/6', '2/6', '3/6', '4/6', '5/6', '6/6'])
expect(acp.map(lane => lane.scenarioShard)).toEqual([
'1/8',
'2/8',
'3/8',
'4/8',
'5/8',
'6/8',
'7/8',
'8/8',
])
expect([...ordinary, 'examples/acp-agent/tests/acp.snapshot.ts'].sort()).toEqual(discovered)
})

View File

@@ -28,10 +28,10 @@ export const snapshotLanes: readonly SnapshotLane[] = [
'examples/headless-agent/tests/headless.snapshot.ts',
],
},
...Array.from({ length: 6 }, (_, offset) => ({
...Array.from({ length: 8 }, (_, offset) => ({
name: `acp-${offset + 1}`,
files: ['examples/acp-agent/tests/acp.snapshot.ts'],
scenarioShard: `${offset + 1}/6`,
scenarioShard: `${offset + 1}/8`,
})),
]