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

chore: voicevox_onnxruntime関係のログをすべてまとめてartifact化 #65

Merged

Conversation

qryxip
Copy link
Member

@qryxip qryxip commented Dec 30, 2024

内容

voicevox_onnxruntimeに関係する次の4つのステップのログを、apeendしてひとまとめにしてartifact化するようにする。

  1. checkout
  2. prepare.bashの実行
  3. voicevox_onnxruntimeのビルド
  4. ビルドディレクトリのtree(1)

関連 Issue

Refs: VOICEVOX/voicevox_project#24, #62 (comment)

スクリーンショット・動画など

その他

@qryxip qryxip requested a review from Hiroshiba December 30, 2024 13:00
@Hiroshiba Hiroshiba requested a review from Copilot December 30, 2024 13:09

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

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

LGTM!!

1点コメントしましたが、どちらでもという感じです!

Comment on lines +448 to +476
- name: Encrypt log
if: |
failure()
&& (
steps.switch-to-production.outcome == 'failure'
|| steps.prepare.outcome == 'failure'
|| steps.build.outcome == 'failure'
|| steps.inspect-build-dir.outcome == 'failure'
)
&& env.TARGET_LIBRARY == 'voicevox_onnxruntime'
run: |
for file in ./${{ matrix.artifact_name }}_{stdout,stderr}.txt; do
gpg -ef ./builder/log-encryption-pub.asc "$file"
done

- name: Upload the encrypted log
if: |
failure()
&& (
steps.switch-to-production.outcome == 'failure'
|| steps.prepare.outcome == 'failure'
|| steps.build.outcome == 'failure'
|| steps.inspect-build-dir.outcome == 'failure'
)
&& env.TARGET_LIBRARY == 'voicevox_onnxruntime'
uses: actions/upload-artifact@v4
with:
name: log_${{ matrix.artifact_name }}
path: ${{ matrix.artifact_name }}_*.txt.gpg
Copy link
Member

@Hiroshiba Hiroshiba Dec 30, 2024

Choose a reason for hiding this comment

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

ifの中はfailure()env.TARGET_LIBRARY == 'voicevox_onnxruntime'だけにしたほうがid足し忘れとかで困らなくてメンテしやすいかも・・・?

あいや、voicevox_onnxruntimeだったら常にアップロードする形でも良い気がしました!

まあでもとりあえずそのままでも動くと思うのでマージでも良さそう!

Copy link
Member

@Hiroshiba Hiroshiba Dec 30, 2024

Choose a reason for hiding this comment

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

もう1回見て同じこと思いました!
まあたぶんvoicevox_onnxruntimeのときは常にアップロードする形がメンテナンス性高くて実装もスリムそう!
(重いとかない限り)

まあそれでもなお変更必須ではなさそう!

Copy link
Member Author

Choose a reason for hiding this comment

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

ですね。あと成功したビルドのログも見たくなるときがあるかも。まあ別PRでですね。

@qryxip
Copy link
Member Author

qryxip commented Dec 30, 2024

be26499 (#65): CUDA版およびARM Linuxが壊れていたので修正

@qryxip qryxip force-pushed the chore-export-all-voicevox-onnxruntime-related-log branch 4 times, most recently from a38950d to 0a24d97 Compare December 30, 2024 16:42
@qryxip qryxip force-pushed the chore-export-all-voicevox-onnxruntime-related-log branch from 0a24d97 to 7ca1122 Compare December 30, 2024 17:01
@qryxip
Copy link
Member Author

qryxip commented Dec 30, 2024

以下の変更を加えました。お手数なのですがそこそこ大きいのでご確認願えますでしょうか。

  • be26499 (#65): CUDA版とARM Linux版がぶっ壊れてしまっていたので修正
  • 7ca1122 (#65): cache-build-resultが復元したビルドディレクトリをactions/checkoutが問答無用で消し飛ばしていたので、ワークアラウンド

voicevox_onnxruntimeでのビルド:
https://github.com/VOICEVOX/onnxruntime-builder/actions/runs/12549741607

@qryxip qryxip requested a review from Hiroshiba December 30, 2024 17:22
Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

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

LGTM!!

Comment on lines +448 to +476
- name: Encrypt log
if: |
failure()
&& (
steps.switch-to-production.outcome == 'failure'
|| steps.prepare.outcome == 'failure'
|| steps.build.outcome == 'failure'
|| steps.inspect-build-dir.outcome == 'failure'
)
&& env.TARGET_LIBRARY == 'voicevox_onnxruntime'
run: |
for file in ./${{ matrix.artifact_name }}_{stdout,stderr}.txt; do
gpg -ef ./builder/log-encryption-pub.asc "$file"
done

- name: Upload the encrypted log
if: |
failure()
&& (
steps.switch-to-production.outcome == 'failure'
|| steps.prepare.outcome == 'failure'
|| steps.build.outcome == 'failure'
|| steps.inspect-build-dir.outcome == 'failure'
)
&& env.TARGET_LIBRARY == 'voicevox_onnxruntime'
uses: actions/upload-artifact@v4
with:
name: log_${{ matrix.artifact_name }}
path: ${{ matrix.artifact_name }}_*.txt.gpg
Copy link
Member

@Hiroshiba Hiroshiba Dec 30, 2024

Choose a reason for hiding this comment

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

もう1回見て同じこと思いました!
まあたぶんvoicevox_onnxruntimeのときは常にアップロードする形がメンテナンス性高くて実装もスリムそう!
(重いとかない限り)

まあそれでもなお変更必須ではなさそう!

@qryxip qryxip merged commit 66663e3 into VOICEVOX:main Dec 31, 2024
2 checks passed
@qryxip qryxip deleted the chore-export-all-voicevox-onnxruntime-related-log branch December 31, 2024 04:04
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