Skip to content

chore(frontend): 移行完了済みのソース全文SHA-256ピン止めテストを撤去し現行ソース検証へ簡素化 - #376

Open
tamaina wants to merge 1 commit into
developfrom
chore/drop-source-hash-oracles
Open

tamaina wants to merge 1 commit into
developfrom
chore/drop-source-hash-oracles

Conversation

@tamaina

@tamaina tamaina commented Nov 25, 2026

Copy link
Copy Markdown
Owner

背景

VVI / globalLocale 移行時に 1 バイト単位の互換性を検証するため導入されたソース全文 SHA-256 復元レイヤー(global-catalog-pilot-baseline.ts 約 17,000 行、catalog-history.json 約 650 KB、*-source-rebase.json 群)が、移行完了後も残っていたため、SFC や翻訳を 1 行変更するたびに無関係なユニットテストや locale-migration が連鎖失敗し、PR ごとに逆パッチを再計算する過剰な保守コストになっていました。

変更内容

  • SHA-256 ソース逆復元レイヤー(計 18 ファイル)を削除:
    • global-catalog-pilot-baseline.ts
    • catalog-history.ts / catalog-history.json
    • upstream-develop-source-rebase.ts
    • shared-global-locale-escapes.json
    • feature-update-*-source-rebase.json / upstream-sync-*-source-rebase.json / upstream-sync-crowdin-18171-delta.json
  • 現行ソース+VVI ローダーの整合性検証へ置き換え:
    • pruned-global-locale-baseline.ts: 過去の SHA-256 復元を通さず、現行の i18n 辞書と現在のコンポーネント <locale> ブロックを直接合成して result-locale・storybook-locale・browser-feature テストへ提供。
    • global-catalog-promotion.test.ts: 履歴ハッシュ照合を外し、catalog-retention.json との一致・設定内検索用ローカルキー保持・88 権限キー・getNoteSummary・VVI ローダーの実解決を検証。
    • embed-boot.test.ts: 既に import 済みの boot-messages.json を直接参照。

検証(ローカル直列実行)

  • packages/frontend ユニットテスト(101 ファイル、embed-boot / embed-entry-locales / main-entry-locales / global-catalog-promotion / result-locale / storybook-locale 含む)通過
  • test/browser-feature/run.mjs --build-only 通過
  • vue-tsc --noEmit で変更・関連テストファイルに型エラーなしを確認

@github-actions

Copy link
Copy Markdown
Contributor

🖥 Frontend Diagnostics Report

(No significant changes)

View details

Requests by resource type
Type Requests Encoded bytes
Base Head Δ Base Head Δ
Document 2 2 0 37 KB 37 KB 0 B
Script 179 179 0 3.3 MB 3.3 MB 0 B
Stylesheet 62 62 0 282 KB 282 KB 0 B
Fetch 23 23 0 76 KB 76 KB 0 B
Image 11 11 0 70 KB 70 KB 0 B
Font 2 2 0 119 KB 119 KB 0 B
Other 9 9 0 173 KB 172 KB $\color{green}{\text{-613 B}}$
V8 heap snapshot statistics
Metric @ Base @ Head Δ MAD
$\color{gray}{\rule{8pt}{8pt}}$ Total 14 MB
± 11 KB
14 MB
± 17 KB
$\text{+8.6 KB}$
$\text{+0.1\%}$
20 KB
$\color{orange}{\rule{8pt}{8pt}}$ Code 3.3 MB 3.3 MB $\text{-1.8 KB}$ 2.7 KB
$\color{red}{\rule{8pt}{8pt}}$ Strings 1.6 MB 1.6 MB $\text{+132 B}$ 79 B
$\color{cyan}{\rule{8pt}{8pt}}$ JS arrays 130 KB 130 KB 0 B 99 B
$\color{green}{\rule{8pt}{8pt}}$ Typed arrays 0 B 0 B 0 B 0 B
$\color{yellow}{\rule{8pt}{8pt}}$ System objects 0 B 0 B 0 B 0 B
$\color{violet}{\rule{8pt}{8pt}}$ Other JS objs 2.7 MB 2.7 MB $\text{+28 B}$ 472 B
$\color{pink}{\rule{8pt}{8pt}}$ Other non-JS objs 6.1 MB 6.1 MB $\text{+8.4 KB}$ 11 KB

Download representative heap snapshot: base / head

📦 Bundle Stats

Chunk size diff (0 updated, 0 added, 0 removed)
Chunk Base Head Δ Δ (%)
(total) 17 MB 17 MB 0 B 0%
(other generated chunks) 2.5 MB 2.5 MB 0 B 0%
Startup chunk size (0 updated, 0 added, 0 removed)
Chunk Base Head Δ Δ (%)
(total) 130 KB 130 KB 0 B 0%
(other generated chunks) 124 KB 124 KB 0 B 0%
(other) 5.3 KB 5.3 KB 0 B 0%

Startup chunks are the Vite entry for src/_boot_.ts and its static imports.

Bundles Modules Entries Imports Size
Static Dynamic Rendered Gzip Brotli
Base 538 3,214 24 10,884 389 24 MB 6.3 MB 5 MB
Head 538 3,214 24 10,884 389 24 MB 6.3 MB 5 MB
Δ 0 0 0 0 0 0 B $\text{-64 B}$ $\text{-72 B}$
Δ (%) 0% 0% 0% 0% 0% 0% $\text{-0\%}$ $\text{-0\%}$

Open treemap HTML

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant