Repository navigation
perf: publish を build --incremental で生成し、例の sessions は show の出力をキャッシュする - #36
Merged
Merged
Conversation
publish は何か1つ変わるたびに全リポを作り直していた。build --incremental に替え、変わったリポだけを作り直す。incremental が丸ごと飛ばす判定に拡張の fingerprint() を足し、拡張のページだけが変わる回を取り落とさない。例の sessions は priv-codeview と同じく、ページを作り直すときに ccreel show を呼び直さない。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
変更内容
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ファイル)を作り直していた
先に入れるもの
.codeview-build.jsonの ignore)。入れないと記録が未追跡のファイルとして残り、repo-sync が priv-codeview を進めなくなる保証
test_publish_rebuilds_only_changed_repostest_incremental_build_follows_plugin_fingerprinttest_rebuilt_page_reuses_cached_show、test_issue_link_follows_issue_state静的確認結果
nix develop -c pytest -q: 88 passed