Skip to content

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

test: cut the publishKit fixture's frame count so real encodes stay inside the per-test limit under load (#10479)

[._.]/ Adam Eivy27e800e1e825
diff --git a/server/services/musicVideo/publishKit.test.js b/server/services/musicVideo/publishKit.test.js
index 54d8c80d42..c66e3893cf 100644
--- a/server/services/musicVideo/publishKit.test.js
+++ b/server/services/musicVideo/publishKit.test.js
@@ -51,12 +51,13 @@ afterAll(() => cleanupTempDataRoots());
const cue = (text, startSec, endSec) => ({ id: `lc-${startSec}`, text, startSec, endSec });
const scene = (startSec, endSec, sectionLabel, shotMode = 'performance') => ({ sceneId: `mvs-${startSec}`, order: startSec, startSec, endSec, sectionLabel, shotMode, takes: [] });
+// 6 fps: the encodes upscale to 1080p, so frame count (the 25s teaser floor pins duration) sets the CPU cost under load (#10479).
async function renderedProject() {
const created = await projects.createProject({ name: 'Example Song' });
await mkdir(PATHS.videos, { recursive: true });
const filename = `master-${created.id.slice(3, 11)}.mp4`;
const made = await runFfmpegProcess({ bin: ffmpeg, args: ['-hide_banner', '-loglevel', 'error',
- '-f', 'lavfi', '-i', 'testsrc2=s=320x180:r=24:d=36', '-f', 'lavfi', '-i', 'sine=frequency=440:duration=36',
+ '-f', 'lavfi', '-i', 'testsrc2=s=320x180:r=6:d=36', '-f', 'lavfi', '-i', 'sine=frequency=440:duration=36',
'-c:v', 'libx264', '-pix_fmt', 'yuv420p', '-c:a', 'aac', '-shortest', '-y', join(PATHS.videos, filename)] });
expect(made.ok).toBe(true);
await saveHistory([{ id: 'render-1', filename, durationSec: 36 }]);