Skip to content

ci: fix mutex and pull strategy #995

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

Merged
merged 2 commits into from
Jan 11, 2022

Conversation

tsuyoshicho
Copy link
Contributor

@tsuyoshicho tsuyoshicho commented Dec 16, 2021

fix #993
fix #994

元の #918 にありますが、masterへのファイルデプロイとgh-pagesへのページ生成デプロイが併走することによる対策としてmutexを入れていました。

mutexは除去し、concurrent制御と、並列jobを直列化しています。
これでvimdoc-jaへのアクセスはつねに1つだけが行うことになり問題は出なくなる(予定)です。

pull_strategyについては、推奨にそってpullへ改訂しています。
(不要になるか考えてみましたが、たしか、素で動くだけでも他repoだとNGだった覚えがあるので、現状はまだあったほうがいいかなと)

手元での動確が(tokenではなくなったので)ちょっとできていませんが...

@tsuyoshicho tsuyoshicho requested review from thinca and koron December 16, 2021 11:41
@tsuyoshicho tsuyoshicho self-assigned this Dec 16, 2021
@tsuyoshicho tsuyoshicho requested a review from k-takata December 17, 2021 13:54
@tsuyoshicho

This comment has been minimized.

Copy link
Member

@k-takata k-takata left a comment

Choose a reason for hiding this comment

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

よさそうだと思うので、マージして動くか見ましょう。

@k-takata k-takata merged commit 305ba32 into vim-jp:master Jan 11, 2022
@tsuyoshicho tsuyoshicho deleted the ci/20211216/mutex-pull branch January 11, 2022 10:09
@tsuyoshicho
Copy link
Contributor Author

次にマージされた syntax.jax の更新
#977

にて動作したGHA
https://github.com/vim-jp/vimdoc-ja-working/actions/runs/1682012421

それによるデプロイコミット
master vim-jp/vimdoc-ja@c95df45
gh-pages vim-jp/vimdoc-ja@5f9dbb1

@k-takata とりあえず、通常動作は問題ないようです。
複数マージが同時(に近い時間)で動いたときが問題なので、そうなったときに注意して観察する必要がありますが...たぶんわすれそうw

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.

use pull instead of pull_strategy actions-mutex is duplicated, use concurrency instead of it
2 participants