perf: 릴리스 프론트엔드 빌드를 안전하게 캐시

Gateway와 Profile 릴리스의 타입검사와 Vite 번들을 별도 Turbo 작업으로 캐시한다. DB 보존 DEPLOY는 game-api만 빌드하고 기본 동시성 1과 기존 산출물 계약은 유지한다.
This commit is contained in:
2026-08-19 18:05:38 +00:00
parent 9390195d5f
commit b9d5edbb3d
14 changed files with 261 additions and 24 deletions
+23
View File
@@ -4,6 +4,7 @@ import { describe, expect, it } from 'vitest';
import {
buildTurboReleaseCommand,
buildTurboReleaseTaskCommand,
MAX_BUILD_OUTPUT_CHARS,
PnpmBuildRunner,
resolveReleaseTurboCacheDir,
@@ -58,6 +59,28 @@ describe('Turbo release build plan', () => {
env: { NODE_ENV: 'production' },
});
});
it('uses the same bounded cache policy for a release-specific task', () => {
expect(
buildTurboReleaseTaskCommand(
'/srv/core/profile-worktrees/commit',
'/srv/core/repository',
'build:release',
['@sammo-ts/game-frontend'],
{ VITE_APP_BASE_PATH: '/che' }
).args
).toEqual([
'exec',
'turbo',
'run',
'build:release',
'--filter=@sammo-ts/game-frontend',
'--cache-dir=/srv/core/repository/.turbo/release-cache',
'--concurrency=1',
'--ui=stream',
'--output-logs=new-only',
]);
});
});
describe('PnpmBuildRunner', () => {