From 9bddfa529f8b6982fcb94ecbea9176c10e065ba1 Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Thu, 5 Nov 2026 01:26:27 +0900 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=EC=8B=9C=EA=B0=81=20=EA=B3=A8?= =?UTF-8?q?=EB=93=A0=20=EB=B9=8C=EB=93=9C=EA=B0=80=20CI=EC=9D=98=20?= =?UTF-8?q?=EB=B9=8C=EB=93=9C=C2=B7release=20=EC=8B=9D=EB=B3=84=EA=B0=92?= =?UTF-8?q?=EC=9D=84=20=EB=AC=BC=EB=A0=A4=EB=B0=9B=EC=A7=80=20=EC=95=8A?= =?UTF-8?q?=EB=8A=94=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 문제 홈 화면과 플랫폼 구성 화면은 build id와 release id를 글자로 그린다. CI는 workflow 전체에 VITE_BUILD_ID·VITE_COMMIT_SHA·RELEASE_ID를 준다. 그래서 test:visual(FE-GATE-008)의 build가 골든과 다른 글자를 그려, 셸 넓은 화면· 좁은 서랍·플랫폼 구성 3장이 1,109~1,545 px 달라 항상 실패한다. 깨끗한 clone에 CI env를 준 merge 단계 재실행에서 찾았다(af312de와 같은 원인, 1103/11-07). 고른 방법 - playwright.visual.config.ts webServer env로 로컬 식별값(local-build, local, local-release)을 준다. 골든은 템플릿의 모양 계약이고 그 값으로 찍었다. - 버린 대안: 식별값 글자를 화면마다 가리기. 가릴 곳이 화면마다 늘고, 식별값을 그리는 새 화면이 생길 때마다 다시 빠진다. 위험·한계 - 시각 테스트의 build는 CI 식별값을 쓰지 않는다. 식별값 표시 자체는 e2e(compact smoke, 11-06)가 CI 값으로 본다. 검증 - VITE_BUILD_ID=gitea-1-1·VITE_COMMIT_SHA·RELEASE_ID를 주고 test:visual 6/6, env 없이 6/6 통과. 수정 전 CI env에서 3건 실패. Refs: docs/reviews/2026-11-03-maturity-review/README.md 13절 11-07 --- playwright.visual.config.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/playwright.visual.config.ts b/playwright.visual.config.ts index 103bf402..3a5f1981 100644 --- a/playwright.visual.config.ts +++ b/playwright.visual.config.ts @@ -46,6 +46,16 @@ export default defineConfig({ }, }, webServer: { + // The home page and the platform overview print the build and release + // identity. CI sets VITE_BUILD_ID, VITE_COMMIT_SHA and RELEASE_ID for the + // whole workflow, so its build drew other text than the goldens and every + // CI run failed here. The goldens are the template's shape, captured with + // the local identity. + env: { + VITE_BUILD_ID: "local-build", + VITE_COMMIT_SHA: "local", + RELEASE_ID: "local-release", + }, command: "corepack pnpm build && corepack pnpm preview --host 127.0.0.1 --port 4174", url: "http://127.0.0.1:4174",