Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
test: warm the text renderer outside the first lettering test's budget (#12802)
[._.]/ Adam Eivyc268edba27a8
diff --git a/server/services/musicVideo/coverArt.test.js b/server/services/musicVideo/coverArt.test.jsindex 2917ebafbe..78915df6d6 100644--- a/server/services/musicVideo/coverArt.test.js+++ b/server/services/musicVideo/coverArt.test.js@@ -5,7 +5,7 @@* image job, and its completion composes the cover from the result, or* records why it failed. The lettering itself renders through real sharp once.*/-import { describe, expect, it, vi, afterAll, beforeEach } from 'vitest';+import { describe, expect, it, vi, afterAll, beforeAll, beforeEach } from 'vitest';import { existsSync } from 'node:fs';import { mkdir, readFile, writeFile } from 'node:fs/promises';import { join } from 'node:path';@@ -23,6 +23,13 @@ const { composeCoverArt } = await import('./coverArtCompose.js');afterAll(() => cleanupTempDataRoots());+// The first text render pays one-time renderer setup (fontconfig builds its font cache on a cold+// Windows runner, #12802). Pay it here, under its own hook budget, not inside the lettering test.+beforeAll(async () => {+ const sharp = (await import('sharp')).default;+ await sharp({ text: { text: 'Example Song', rgba: true } }).png().toBuffer();+}, 120_000);+const compose = vi.fn(async ({ out }) => { await writeFile(out, 'jpeg'); return { width: 3000, height: 3000 }; });const enqueue = vi.fn(async () => ({ jobId: 'job-example' }));const jobStatus = vi.fn(async () => 'queued');diff --git a/server/services/musicVideo/youtubeThumbnail.test.js b/server/services/musicVideo/youtubeThumbnail.test.jsindex 29377161d2..be82eb15ab 100644--- a/server/services/musicVideo/youtubeThumbnail.test.js+++ b/server/services/musicVideo/youtubeThumbnail.test.js@@ -7,7 +7,7 @@* job whose prompt carries the brief as a labeled addition, and its landing* makes the painted image the thumbnail, bare.*/-import { describe, expect, it, vi, afterAll } from 'vitest';+import { describe, expect, it, vi, afterAll, beforeAll } from 'vitest';import { existsSync } from 'node:fs';import { mkdir, readFile } from 'node:fs/promises';import { join } from 'node:path';@@ -26,6 +26,13 @@ const sharp = (await import('sharp')).default;afterAll(() => cleanupTempDataRoots());+// The first text render pays one-time renderer setup (fontconfig builds its font cache on a cold+// Windows runner, which once outlasted the 30s test timeout on the first lettering test, #12802).+// Pay it here, under its own hook budget, so no test's budget carries it.+beforeAll(async () => {+ await sharp({ text: { text: 'Example Song', rgba: true } }).png().toBuffer();+}, 120_000);+async function projectWithFrame() {const { id } = await projects.createProject({ name: 'Example Song' });await mkdir(PATHS.videoThumbnails, { recursive: true });