Skip to content

perf: publish を build --incremental で生成し、例の sessions は show の出力をキャッシュする - #36

Merged
yktsnet merged 1 commit into
mainfrom
feat/publish-incremental
Nov 3, 2026
Merged

yktsnet merged 1 commit into
mainfrom
feat/publish-incremental

Conversation

@yktsnet

@yktsnet yktsnet commented Nov 3, 2026

Copy link
Copy Markdown
Owner

変更内容

  • publish が build --incremental を呼ぶ。前回の public/ を残し、入力の変わったリポだけを作り直す。出力が全体の作り直しと同じことは既存の保証(test_incremental_build_matches_full_build)が持つ
  • --incremental が何も書かずに終わる判定に、拡張の fingerprint() を足す。拡張のページだけが変わった回は、リポのページを使い回して拡張のページを書き直す
  • examples/plugins/sessions.py: ccreel show の出力をキャッシュし、ページだけを作り直す回(本体のコード・Issue の状態の変化)は呼び直さない(priv-codeview#32 と同じ)

背景

これまでの publish は、1つのリポにコミットが入っただけでも全リポ(約6,300ファイル)を作り直していた

先に入れるもの

  • priv-codeview#33(.codeview-build.json の ignore)。入れないと記録が未追跡のファイルとして残り、repo-sync が priv-codeview を進めなくなる

保証

  • publish は変わったリポだけを作り直す → test_publish_rebuilds_only_changed_repos
  • 拡張の指紋の変化で拡張のページを書き直す → test_incremental_build_follows_plugin_fingerprint
  • 例の sessions はページだけ作り直すときにキャッシュした出力を使う → test_rebuilt_page_reuses_cached_show、test_issue_link_follows_issue_state

静的確認結果

  • nix develop -c pytest -q: 88 passed

publish は何か1つ変わるたびに全リポを作り直していた。build --incremental に替え、変わったリポだけを作り直す。incremental が丸ごと飛ばす判定に拡張の fingerprint() を足し、拡張のページだけが変わる回を取り落とさない。例の sessions は priv-codeview と同じく、ページを作り直すときに ccreel show を呼び直さない。
@yktsnet
yktsnet merged commit 5de0cb0 into main Nov 3, 2026
3 checks passed
@yktsnet
yktsnet deleted the feat/publish-incremental branch November 3, 2026 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant