Repository navigation
バージョンバンプでWearOSアプリのversionCodeも本体アプリ+1に追従させ衝突を解消 - #6616
Conversation
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01X5Yefa4SRgtPn1EnffuJTY
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 23 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
Comment |
概要
scripts/bump-version.jsがandroid/wearable/build.gradle.ktsを更新対象に含んでいなかったため、バージョンバンプで:appのversionCodeだけが進み、:wearableとの大小関係が壊れる問題を修正します。canary リリースの bump (#6615) で
:appが100000579→100000580に上がった結果、:wearableの100000580と完全に同値になっていました。同一applicationIdのマルチバンドル配信ではversionCodeが全体でユニークである必要があるため、この状態では Play が一方のアップロードを拒否します。変更の種類
変更内容
scripts/bump-version.jsが:wearableのversionCodeを常に「:appのversionCode+ 1」に更新するよう拡張(versionNameも同期)replaceKtsFlavorNumericSetting/replaceKtsFlavorStringSettingを追加:wearableを100000580→100000581):wearable側のコメントを、スクリプトが自動追従する旨に更新なぜ再発したか
#6613でwear = app + 1の採番規約を復元しましたが、bump-version.jsの更新対象は以下 3 ファイルのみで:wearableを含んでいませんでした。app.config.tsios/TrainLCD.xcodeproj/project.pbxprojandroid/app/build.gradleそのため bump が 1 回走るだけで
+1の差が食い潰され、規約が構造的に維持できない状態でした。今回スクリプト側で機械的に追従させることで、canary / release どちらの bump でも規約が保たれます。:wearableは Kotlin DSL のため Groovy 側 (versionCode 1) と構文が異なり (create("prod") { versionCode = 1 })、既存の置換関数が使えないので専用実装を追加しています。versionName\bの\bはversionNameSuffixへの誤マッチを防ぐためのものです。回帰リスクと対策
node scripts/bump-version.js 10.12.1を実行し、:app100000580→100000581、:wearable100000581→100000582(= app + 1)、versionName両者10.12.1に更新されることを確認(検証後に bump 分は revert し、本 PR には含めていません)。nextWearableVersionCodeは:appの次値から算出するため、:wearableの現在値に依存しません。scripts/はnpm run lintのスコープ外(biome check ./src)。参考としてnpx biome check scripts/bump-version.jsを実行したところ 6 件の指摘が出ますが、修正前の HEAD 版とルール・件数が完全に一致(行番号のみシフト)しており、本 PR による新規指摘は 0 件です。既存指摘(require('fs')のnode:プロトコル、未使用のtoNumberOrZero等)は本 PR のスコープ外としました。テスト
npm run lint/npm test/npm run typecheckに加え、以下を確認しました。node scripts/bump-version.js 10.12.1:app581 /:wearable582 / versionName 10.12.1 に更新./gradlew :wearable:bundleProdReleaseversionCode=100000581/versionName=10.12.0npm run lintが通ることnpm testが通ることnpm run typecheckが通ること関連Issue
スクリーンショット(任意)