mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-07-25 22:34:49 +02:00
* docs: design backend diagnostics memory noise handling * chore(gh): tweak workflow * docs: clarify shared heap snapshot reporting * docs: plan backend diagnostics memory noise handling * chore: ignore local worktrees * feat(diagnostics): add independent delta summary * feat(diagnostics): make heap snapshot deltas noise-aware * docs: correct heap snapshot threshold plan * fix(diagnostics): suppress backend memory noise * ci: refine backend diagnostics sampling * test(diagnostics): address final review * wip * Update heap-snapshot-sampling.ts * wip * wip * docs: design frontend metric noise reporting * docs: plan frontend metric noise reporting * fix(diagnostics): suppress frontend metric noise * docs: remove temporary frontend metric plans * test(diagnostics): cover frontend metric thresholds * docs: design shared diagnostics metric table * docs: plan shared diagnostics metric table * refactor(diagnostics): simplify independent delta statistics * feat(diagnostics): add shared metric table renderer * refactor(diagnostics): use shared heap snapshot table * refactor(diagnostics): use shared backend metric table * refactor(diagnostics): use shared frontend metric table * docs: remove temporary metric table plans * tweak * docs: design metric table no-data output * fix(diagnostics): show marker for empty metric tables * chore: remove temporary diagnostics design
packages-private
packages-private は、CIなどで使用するためのユーティリティなどを格納する場所です。この配下にあるものは**プロダクションの /packages**の依存となるものではありません。
パッケージ一覧
| パッケージ | 用途 |
|---|---|
diagnostics-shared |
計測系パッケージが共有する統計・書式整形・V8 heap snapshot解析のユーティリティ |
diagnostics-backend |
バックエンドのメモリ使用量をbase/headで比較し、PRコメント用のMarkdownを生成する |
diagnostics-frontend |
フロントエンドをブラウザで起動した際のメトリクスと生成されたchunk情報等をbase/headで比較する |
changelog-checker |
CHANGELOG.md の追記内容を検証する |
GitHub Actionsからの呼び出し方
ワークフロー側にロジックを持たせず、各パッケージのnpm scriptを呼ぶだけにしている。
CLIに渡すパスはすべて呼び出し側のカレントディレクトリ基準で解決されるため、
ワークフローからは $GITHUB_WORKSPACE / $RUNNER_TEMP を使った絶対パスを渡すこと。
- name: Generate report
working-directory: head
run: >-
pnpm --filter diagnostics-frontend run render-md
"$GITHUB_WORKSPACE/base" "$GITHUB_WORKSPACE/head"
"$REPORT_DIR/base-bundle-stats.json" "$REPORT_DIR/head-bundle-stats.json"
"$REPORT_DIR/base-browser.json" "$REPORT_DIR/head-browser.json"
"$REPORT_DIR/report.md"
base/head を比較する計測では、head側のチェックアウトにあるハーネスで両方を計測する (計測コードの差分ではなくビルド成果物の差分だけが結果に出るようにするため)。