Skip to content

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

Merged
Hiroshiba merged 6 commits into
VOICEVOX:mainfrom
Hiroshiba:e2e系テストだけOS多めで、単体テストは1つのOSで
Jul 26, 2023

Hidden character warning

The head ref may contain hidden characters: "e2e\u7cfb\u30c6\u30b9\u30c8\u3060\u3051OS\u591a\u3081\u3067\u3001\u5358\u4f53\u30c6\u30b9\u30c8\u306f\uff11\u3064\u306eOS\u3067"
Merged

e2e系テストだけOS多めで、単体テストは1つのOSで#547
Hiroshiba merged 6 commits into
VOICEVOX:mainfrom
Hiroshiba:e2e系テストだけOS多めで、単体テストは1つのOSで

Conversation

@Hiroshiba

Copy link
Copy Markdown
Member

内容

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

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

rust-lang/cargo#10491 (comment)

関連 Issue

その他

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

@Hiroshiba

Copy link
Copy Markdown
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

Comment thread .github/workflows/test.yml Outdated
Comment thread .github/workflows/test.yml Outdated
Comment thread .github/workflows/test.yml
Co-authored-by: Ryo Yamashita <qryxip@gmail.com>
Comment thread .github/workflows/test.yml Outdated

@qryxip qryxip left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@Hiroshiba

Hiroshiba commented Jul 25, 2023

Copy link
Copy Markdown
Member Author

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

Hiroshiba commented Jul 26, 2023

Copy link
Copy Markdown
Member Author

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

@Hiroshiba

Copy link
Copy Markdown
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