Skip to content

ci: mainブランチではすべてのCIを実行する#1229

Merged
qryxip merged 1 commit intoVOICEVOX:mainfrom
qryxip:pr/ci-run-all-of-the-ci-on-main-branch
Dec 8, 2025
Merged

ci: mainブランチではすべてのCIを実行する#1229
qryxip merged 1 commit intoVOICEVOX:mainfrom
qryxip:pr/ci-run-all-of-the-ci-on-main-branch

Conversation

@qryxip
Copy link
Member

@qryxip qryxip commented Dec 8, 2025

内容

0.16.2のリリースのときにDiscordでも言ったが、現状のcan_skip_in_simple_testの考えかただと、一番壊れやすい部分がCIされずにリリース直前になって壊れていることが発覚するということが起こる。というか頻発している。

そのためmainブランチ上でのCIは"simple_test"としないこととする。CI時間については、 #382 のようにワークフローを分割したりキャッシュを(もちらん適切に)効かせるといった方向で対処するべき。

関連 Issue

その他

@qryxip qryxip requested a review from Hiroshiba December 8, 2025 17:23
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です!!

実装はなんかミスあり得るかもだからAI君にレビューしてもらうと良いかも。

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR modifies the CI workflow configuration to ensure comprehensive testing runs on the main branch. Previously, only manual workflow dispatches (and releases in build_and_deploy.yml) would execute the full test suite, which caused issues to be discovered late in the release cycle. Now, pushes to the main branch will also trigger complete CI execution, helping catch problems earlier.

Key changes:

  • Updated IS_SIMPLE_TEST logic to exclude main branch from simple testing
  • Consistent implementation across both test and build/deploy workflows

Reviewed changes

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

File Description
.github/workflows/test.yml Modified IS_SIMPLE_TEST to run full tests on main branch and workflow_dispatch events
.github/workflows/build_and_deploy.yml Modified IS_SIMPLE_TEST to run full tests on main branch, release events, and workflow_dispatch events

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@qryxip qryxip merged commit bda6cb6 into VOICEVOX:main Dec 8, 2025
35 checks passed
@qryxip qryxip deleted the pr/ci-run-all-of-the-ci-on-main-branch branch December 8, 2025 17:48
path: java_artifact

build_xcframework:
if: ${{ !(github.event_name != 'release' && github.event_name != 'workflow_dispatch') }} # !env.IS_SIMPLE_TEST と同じ
Copy link
Member

Choose a reason for hiding this comment

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

@qryxip
AI君によると、ここのコメントが実態と合ってないとのことでした!
挙動を合わせるならこっちも変える必要がありそう。

envで計算するとここのifで使えないので、config jobでIS_SIMPLE_TESTを計算するようにすると共通化できそう。

qryxip added a commit that referenced this pull request Dec 9, 2025
#1229 では`build_xcframework`と`build_java_package`が対象外になってし
まったので、この二つも動くようにする。
#1229 (comment)

このPRでは問題箇所の修正のみに留める。
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