-
Notifications
You must be signed in to change notification settings - Fork 14
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
chore: voicevox_onnxruntime関係のログをすべてまとめてartifact化 #65
Conversation
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.
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
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!!
1点コメントしましたが、どちらでもという感じです!
- 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 |
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.
ifの中はfailure()
とenv.TARGET_LIBRARY == 'voicevox_onnxruntime'
だけにしたほうがid足し忘れとかで困らなくてメンテしやすいかも・・・?
あいや、voicevox_onnxruntime
だったら常にアップロードする形でも良い気がしました!
まあでもとりあえずそのままでも動くと思うのでマージでも良さそう!
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.
もう1回見て同じこと思いました!
まあたぶんvoicevox_onnxruntime
のときは常にアップロードする形がメンテナンス性高くて実装もスリムそう!
(重いとかない限り)
まあそれでもなお変更必須ではなさそう!
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.
ですね。あと成功したビルドのログも見たくなるときがあるかも。まあ別PRでですね。
|
a38950d
to
0a24d97
Compare
0a24d97
to
7ca1122
Compare
以下の変更を加えました。お手数なのですがそこそこ大きいのでご確認願えますでしょうか。
voicevox_onnxruntimeでのビルド: |
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!!
- 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 |
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.
もう1回見て同じこと思いました!
まあたぶんvoicevox_onnxruntime
のときは常にアップロードする形がメンテナンス性高くて実装もスリムそう!
(重いとかない限り)
まあそれでもなお変更必須ではなさそう!
内容
voicevox_onnxruntimeに関係する次の4つのステップのログを、apeendしてひとまとめにしてartifact化するようにする。
checkout
tree(1)
関連 Issue
Refs: VOICEVOX/voicevox_project#24, #62 (comment)
スクリーンショット・動画など
その他