-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI (test, build) をいくらか改善する #50
Merged
Merged
Conversation
This file contains 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
ciscorn
force-pushed
the
feature/improve-test
branch
3 times, most recently
from
December 7, 2023 09:38
f475577
to
d70dd55
Compare
ciscorn
force-pushed
the
feature/improve-test
branch
from
December 7, 2023 09:39
d70dd55
to
efed683
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅ Additional details and impacted files
📢 Thoughts on this report? Let us know! |
ciscorn
commented
Dec 7, 2023
ciscorn
commented
Dec 7, 2023
ciscorn
force-pushed
the
feature/improve-test
branch
from
December 7, 2023 23:52
270fb5a
to
8dc0488
Compare
sorami
approved these changes
Dec 8, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! いいですね
ciscorn
added a commit
that referenced
this pull request
Dec 27, 2023
#49 常にTauriを含めて全体のテストをまわすとビルドが肥大化するようなので、ワークフローを以下の3つに分離した: - ライブラリ群 (`nusamai-*`) のテスト → ライブラリ部分を変更するPRに対して実行する。 - Tauri app (`app`) のテスト → tauri 部分を変更するPRに対して実行する。 - Tauri app とそこから参照されるライブラリ、のビルド → 常に実行する。 これでテストの実行はいまよりは高速になる。CIキャッシュも、2GBくらいあったものが → 200MB や 500MB 程度になった。(Actionsのキャッシュはリポジトリあたり上限10GBで、超えると古いものからevictされる) #49 で挙げている問題をすべて解消できているわけではない。テストが重いコンポーネントは、さらにテストワークフローを分離するか、汎用性高く実装できている箇所を別のリポジトリに切り出すのがいいと思う。
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.
#49
常にTauriを含めて全体のテストをまわすとビルドが肥大化するようなので、ワークフローを以下の3つに分離した:
nusamai-*
) のテスト → ライブラリ部分を変更するPRに対して実行する。app
) のテスト → tauri 部分を変更するPRに対して実行する。これでテストの実行はいまよりは高速になる。CIキャッシュも、2GBくらいあったものが → 200MB や 500MB 程度になった。(Actionsのキャッシュはリポジトリあたり上限10GBで、超えると古いものからevictされる)
#49 で挙げている問題をすべて解消できているわけではない。テストが重いコンポーネントは、さらにテストワークフローを分離するか、汎用性高く実装できている箇所を別のリポジトリに切り出すのがいいと思う。