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

リリースであればバージョンを追加し、それ以外であればlatestを追加する #290

Merged
merged 2 commits into from
Jan 18, 2022

Conversation

Hiroshiba
Copy link
Member

内容

リリースであればバージョンを追加し、それ以外であればlatestを追加するようにします。

関連 Issue

fix #289

その他

今はreleaseとmaster push以外は動かないようにしているから大丈夫だけど、将来それ以外でも動くようになると予想外の動きをしそうです。(今もdispatchで変な挙動しそう)
どうにかして防げないでしょうか。

@coveralls
Copy link

coveralls commented Jan 16, 2022

Pull Request Test Coverage Report for Build 1704606984

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 86.432%

Totals Coverage Status
Change from base Build 1702024161: 0.0%
Covered Lines: 688
Relevant Lines: 796

💛 - Coveralls

@github-actions
Copy link

github-actions bot commented Jan 16, 2022

Coverage Result

Resultを開く
Name Stmts Miss Cover
voicevox_engine/init.py 1 0 coverage-100%
voicevox_engine/acoustic_feature_extractor.py 85 0 coverage-100%
voicevox_engine/dev/synthesis_engine/init.py 2 0 coverage-100%
voicevox_engine/dev/synthesis_engine/mock.py 29 0 coverage-100%
voicevox_engine/full_context_label.py 167 5 coverage-97%
voicevox_engine/kana_parser.py 89 1 coverage-99%
voicevox_engine/model.py 71 7 coverage-90%
voicevox_engine/mora_list.py 4 0 coverage-100%
voicevox_engine/preset/Preset.py 12 0 coverage-100%
voicevox_engine/preset/PresetLoader.py 34 1 coverage-97%
voicevox_engine/preset/init.py 3 0 coverage-100%
voicevox_engine/synthesis_engine/init.py 5 0 coverage-100%
voicevox_engine/synthesis_engine/forwarder.py 76 66 coverage-13%
voicevox_engine/synthesis_engine/make_synthesis_engine.py 25 20 coverage-20%
voicevox_engine/synthesis_engine/synthesis_engine.py 107 0 coverage-100%
voicevox_engine/synthesis_engine/synthesis_engine_base.py 49 5 coverage-90%
voicevox_engine/utility/init.py 2 0 coverage-100%
voicevox_engine/utility/connect_base64_waves.py 35 3 coverage-91%
TOTAL 796 108 coverage-86%

Copy link
Member

@PickledChair PickledChair left a comment

Choose a reason for hiding this comment

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

問題なさそうでしたが、もっと短く書けそうだったので別の案を出してみました。

今はreleaseとmaster push以外は動かないようにしているから大丈夫だけど、将来それ以外でも動くようになると予想外の動きをしそうです。(今もdispatchで変な挙動しそう)
どうにかして防げないでしょうか。

workflow_dispatch に関しては https://docs.github.com/ja/actions/learn-github-actions/events-that-trigger-workflows#viewing-all-properties-of-an-event を見てみたところ、手動実行時に直接入力を渡せるオプションがありそうでした。使えそうでしょうか……?

.github/workflows/build-docker.yml Outdated Show resolved Hide resolved
@Hiroshiba
Copy link
Member Author

workflow_dispatch に関しては https://docs.github.com/ja/actions/learn-github-actions/events-that-trigger-workflows#viewing-all-properties-of-an-event を見てみたところ、手動実行時に直接入力を渡せるオプションがありそうでした。使えそうでしょうか……?

あ!将来このコードを変更する人が、latestとrelease tag以外で実行することを想定されていないコードだということに気づけないかもと思った次第です。
dispatchを防ぐならたしかにそちらのオプションを使う手がありそうです・・・!

Copy link
Member

@aoirint aoirint left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@PickledChair PickledChair left a comment

Choose a reason for hiding this comment

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

LGTMです!

@PickledChair PickledChair merged commit 2b74e18 into master Jan 18, 2022
@Hiroshiba Hiroshiba deleted the fix-289 branch January 18, 2022 11:36
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.

releaseが作成されるたびにdocker hub上のlatestが置き換わってしまう
4 participants