fix(infra): Windows Kotlin 빌드 실패 수정 #46#47
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (5)
📜 Recent review details🧰 Additional context used📓 Path-based instructions (2)**/{BUILD.bazel,*.bzl}📄 CodeRabbit inference engine (Custom checks)
Files:
**/*.bzl⚙️ CodeRabbit configuration file
Files:
🔇 Additional comments (5)
📝 WalkthroughWindows 환경에서
WalkthroughMODULE.bazel의 grpc-java 의존성 버전이 갱신되고, kotlin.bzl의 spring_allopen 플러그인 대상이 rules_kotlin 제공 대상으로 교체되었다. configuration-application, identity-adapter-in, identity-application 세 모듈의 deps.bzl에서 KOTLIN_DEPS에 Maven/로컬 의존성이 추가되었다. ChangesBazel 및 Kotlin 의존성 변경
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested labels: 🚥 Pre-merge checks | ✅ 9 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (9 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Caution Review failedAn error occurred during the review process. Please try again later. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@CodeRabbit review |
✅ Action performedReview finished.
|
Summary
bazel build //systems/identity/...가 실패하던 Kotlin/Bazel 설정을 수정했습니다.@Transactional컴파일 의존성 누락을 수정했습니다.grpc-java를 업데이트해 configuration gRPC adapter 빌드 중 발생하던 Windows C++ plugin 컴파일 오류를 해결했습니다.bazel build //...전체 빌드가 통과하는 것을 확인했습니다.Related Issue
Root Cause
.bazelrc의build --package_path=%workspace%:설정에 trailing separator가 있어 recursive target expansion 중 동일 패키지가 중복 수집됐습니다.rules_kotlin@2.1.0은 Windows 환경에서 Kotlin stdlib classpath를 runfile 경로 하나처럼 처리해Rlocation failed오류를 발생시켰습니다.rules_kotlin@2.4.0적용 후 기존 Maven 기반kotlin-allopen-compiler-plugin:2.1.0이 Kotlin compiler와 호환되지 않았습니다.configuration-application은org.springframework.transaction.annotation.Transactional을 사용하지만spring-tx를 직접 의존하지 않았습니다.grpc-java@1.70.0은 현재 resolved protobuf/abseil 조합에서 Windows C++ plugin 컴파일 오류가 발생했습니다.Fix Description
.bazelrc의--package_path값을%workspace%로 정리했습니다.rules_kotlin을2.4.0으로 업데이트하고MODULE.bazel.lock을 갱신했습니다.spring_allopencompiler plugin dependency를@rules_kotlin//kotlin/compiler:allopen-compiler-plugin으로 변경했습니다.configuration-application에@maven//:org_springframework_spring_tx를 추가했습니다.grpc-java를1.82.0으로 업데이트하고 lock 파일을 갱신했습니다.Testing
bazel build //systems/admin/...성공bazel build //systems/application/...성공bazel build //systems/configuration/...성공bazel build //systems/gateway/...성공bazel build //systems/identity/...성공bazel build //systems/notification/...성공bazel build //systems/observability/...성공bazel build //...성공Risk & Impact
rules_kotlin과grpc-java버전이 변경되므로 CI 환경에서도 전체 빌드 확인이 필요합니다.Checklist
Notes
contracts:configuration_java_protodeprecation warning과 Kotlin language version 2.1 deprecation warning은 남아 있지만 빌드는 통과합니다.