Idea: checking the behavioral compatibility in the libraries in the LTS BOM
@suztomo 已经在做这个了。
开始于 2021年3月9日。
评估
这个 Issue 还没有评估数据。
描述
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
- 主要语言
- Java
- 星标
- 163
- 派生
- 81
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
GoogleCloudPlatform/cloud-opensource-java 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
GoogleCloudPlatform/cloud-opensource-java#2419 · 1 条评论 · 2 个 reaction ·
-
best practices
难度 1/5 1 小时以内 新手友好度 62/100
-
难度 3/5 1-2 天 新手友好度 55/100
-
难度 2/5 1-3 小时 新手友好度 42/100
-
enhancement p2
GoogleCloudPlatform/cloud-opensource-java#2468 · 1 条评论 · 已指派 1 人 ·
查看 GoogleCloudPlatform/cloud-opensource-java 的全部 Issue
相似的 Issue
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
apache/flink-agents#1152 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 70/100
jenkinsci/blueocean-plugin#5417 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
objectionary/eo-graphs#75 ·