Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tests/imagegen/e2e/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import { join } from 'node:path';
import { fileURLToPath } from 'node:url';
import { PNG } from 'pngjs';

// Each case renders a card in a subprocess, which exceeds the default 5s timeout.
setDefaultTimeout(30000);
// Each case renders a card in a subprocess, launching headless Chromium, which is
// slow enough on a loaded two-core CI runner to blow past a 30s budget.
setDefaultTimeout(120000);

const CLI = fileURLToPath(new URL('../../../scripts/changelog/imagegen/cli.ts', import.meta.url));

Expand Down
5 changes: 3 additions & 2 deletions tests/imagegen/integration/render.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import { beforeAll, describe, setDefaultTimeout, test } from 'bun:test';
import assert from 'node:assert/strict';
import { PNG } from 'pngjs';

// The render hook launches headless Chromium, which can exceed the default 5s on CI.
setDefaultTimeout(30000);
// The render hook launches headless Chromium, which is slow enough on a loaded
// two-core CI runner to blow past a 30s budget.
setDefaultTimeout(120000);

import { renderCard } from '../../../scripts/changelog/imagegen/render';
import { CARD_HEIGHT, CARD_WIDTH } from '../../../scripts/changelog/imagegen/template';
Expand Down
5 changes: 3 additions & 2 deletions tests/imagegen/integration/run.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import { afterAll, beforeAll, describe, setDefaultTimeout, test } from 'bun:test
import assert from 'node:assert/strict';
import { mkdtemp, readFile, rm } from 'node:fs/promises';

// The pipeline renders with headless Chromium, which can exceed the default 5s on CI.
setDefaultTimeout(30000);
// The pipeline launches a fresh headless Chromium per render. On a loaded
// two-core CI runner one launch has taken over 30s, so allow generous headroom.
setDefaultTimeout(120000);

import { tmpdir } from 'node:os';
import { join } from 'node:path';
Expand Down
Loading