ci: マイナー横断ビルドで yarn.lock を差し替え版へ作り直す - #53
Merged
Merged
Conversation
kotlin-js-store/yarn.lock はカタログの宣言版で解決した npm 依存の固定であり、 -PkotlinVersionOverride で版を差し替えると一致しない。このため横断ビルドは kotlinStoreYarnLock で失敗し、ルートビルドの検証がそこで止まっていた。 マイナー更新ではロックを作り直して取り込む運用のため、横断ビルドでもその 作り直しを両ビルドの先頭で行う。照合との順序を定めるため起動を分ける。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
PR #52 で版整合の偽陽性を解いた後、kotlin-prerelease は次の段で落ちた
(run 33243606296)。
kotlin-js-store/yarn.lockはカタログの宣言版で解決した npm 依存を固定したものであり、-PkotlinVersionOverrideで版を差し替えれば一致しない。前回と同じく、リポジトリが宣言版に対して固定している状態と、差し替えた版とのズレである。
変更
マイナー更新の際はロックを作り直して取り込む運用のため、横断ビルドでもその作り直しを
両ビルド(ルート / integration-test)の先頭で行う。作り直した結果は取り込まない。
ビルドと同じ起動に混ぜると作り直しと照合の順序が定まらないため、起動は分ける。
確認
2.4.20-RC2 を差し替えたクローンでの実測。
kotlinStoreYarnLock(作り直し無し)kotlinUpgradeYarnLock→kotlinStoreYarnLock作り直しで両ロックとも 16 行が入れ替わり、ズレが版由来であることも確認した。
あわせて、2.4.20-RC2 でのプラグイン 3 モジュールのビルドとテストが通ることも確認した
(
:compiler-plugin:build/:gradle-plugin:build/:maven-plugin:build→ BUILD SUCCESSFUL)。CI 側では前回の run で runtime-api の全 K/N ターゲット・JS・Wasm のコンパイルまで到達している。
🤖 Generated with Claude Code