Idea: checking the behavioral compatibility in the libraries in the LTS BOM
@suztomo đang làm issue này rồi.
Từ ngày 9/3/2021.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Problem
We'd like to see the libraries in LTS BOM are compatible with each other. This is not just for Java class file signature but also for behavioral change.
Idea: run the tests with LTS BOM
To capture behavioral change, we can leverage the tests in the repository of the each library in LTS BOM.
For example, if I want to check the compatibility of protobuf-java in LTS BOM and grpc-protobuf, then I can modify build.gradle to include api enforcedPlatform('com.google.cloud:gcp-lts-bom:0.1.0-SNAPSHOT') to see the compatibility.
I checkout grpc-java Git repository and insert the enforcedPlatform to one of build.gradle:
suztomo@suztomo:~/grpc-java$ git diff
diff --git a/protobuf/build.gradle b/protobuf/build.gradle
index af7f51c83..1c00e0a63 100644
--- a/protobuf/build.gradle
+++ b/protobuf/build.gradle
@@ -10,6 +10,8 @@ plugins {
description = 'gRPC: Protobuf'
dependencies {
+ api enforcedPlatform('com.google.cloud:gcp-lts-bom:0.1.0-SNAPSHOT')
+
api project(':grpc-api'),
libraries.jsr305,
libraries.protobuf
If the tests pass, then the LTS BOM is compatible with the grpc-protobuf.
suztomo@suztomo:~/grpc-java$ ./gradlew :grpc-protobuf:check
*** Skipping the build of codegen and compilation of proto files because skipCodegen=true
* Skipping the build of Android projects because skipAndroid=true
BUILD SUCCESSFUL in 3s
19 actionable tasks: 1 executed, 18 up-to-date
Implementation Design
Repositories
Checkout the following repositories with a release tag.
- Beam
- org.apache.beam:beam-sdks-java-core
- org.apache.beam:beam-sdks-java-extensions-google-cloud-platform-core
- org.apache.beam:beam-runners-google-cloud-dataflow-java
- org.apache.beam:beam-sdks-java-io-google-cloud-platform
- grpc-java
- java-spanner
- google-cloud-spanner
Checking out a specific revision
For example, to checkout java-spannner repository with a specific release tag, run the following command:
git clone -b v4.0.1 --depth=1 https://github.com/googleapis/java-spanner
For Gradle project
For the target modules, insert the BOM after keyword "dependencies":
dependencies {
so that it would look like:
dependencies {
+ api enforcedPlatform('com.google.cloud:gcp-lts-bom:0.1.0-SNAPSHOT')
+
For Maven project
- Ngôn ngữ chính
- Java
- Star
- 163
- Fork
- 81
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của GoogleCloudPlatform/cloud-opensource-java
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
GoogleCloudPlatform/cloud-opensource-java#2419 · 1 bình luận · 2 reaction ·
-
best practices
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
-
JLBP-14 additional reason Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 42/100
-
Add a presubmit CI check for LTS Đang mởenhancement p2
GoogleCloudPlatform/cloud-opensource-java#2468 · 1 bình luận · 1 người được giao ·
Tất cả issue của GoogleCloudPlatform/cloud-opensource-java
Issue tương tự
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
apache/flink-agents#1152 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
jenkinsci/blueocean-plugin#5417 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
objectionary/eo-graphs#75 ·