Skip to content
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

e2e系テストだけOS多めで、単体テストは1つのOSで #547

Conversation

Hiroshiba
Copy link
Member

内容

テスト時間を減らすためのプルリクエストです。
endtoendテストだけは全OSで行って、単体テストは単一のOSのみで行うようにしてみました。

テスト指定方法はこちらのコメントを参考にさせていただきました。

rust-lang/cargo#10491 (comment)

関連 Issue

その他

長いのはendtoendテストな気がするし、あまりあまり意味がないかも・・・。

@Hiroshiba
Copy link
Member Author

まあ合計で10分ほど(並列だと1~2分ほど?)早くなった・・・かなぁ?ってとこでした。
このPRのテスト結果 https://github.com/VOICEVOX/voicevox_core/actions/runs/5632906332/job/15261296674
mainのテスト結果 https://github.com/VOICEVOX/voicevox_core/actions/runs/5631047828/job/15261341584

.github/workflows/test.yml Outdated Show resolved Hide resolved
.github/workflows/test.yml Outdated Show resolved Hide resolved
.github/workflows/test.yml Outdated Show resolved Hide resolved
Copy link
Member

@qryxip qryxip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Hiroshiba
Copy link
Member Author

Hiroshiba commented Jul 25, 2023

e2eがエラーになってますね、linkingエラー・・・?
もしかしたらキャッシュキー指定をなくしてしまった影響かも。キャッシュキーを一部復活させてみます。

↓win2019

error: linking with `link.exe` failed: exit code: 1120
...
error: could not compile `voicevox_core_c_api` (test "e2e") due to previous error

↓ubuntu-22

error: linking with `cc` failed: exit status: 1

@Hiroshiba
Copy link
Member Author

Hiroshiba commented Jul 26, 2023

テスト通ってますがなんか不安なので再実行してみます。
https://github.com/VOICEVOX/voicevox_core/actions/runs/5661592222

@Hiroshiba
Copy link
Member Author

成功してそうだったのでマージします!!
レビューありがとうございます! 🙏

@Hiroshiba Hiroshiba merged commit cb8e83c into VOICEVOX:main Jul 26, 2023
@Hiroshiba Hiroshiba deleted the e2e系テストだけOS多めで、単体テストは1つのOSで branch July 26, 2023 00:26
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.

2 participants