Idea: checking the behavioral compatibility in the libraries in the LTS BOM
@suztomo arbeitet bereits daran.
Seit 09.3.2021.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
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
- Vorherrschende Sprache
- Java
- Sterne
- 165
- Forks
- 82
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus GoogleCloudPlatform/cloud-opensource-java
-
Class file versions 65 in linkage checkerEvtl. wieder frei @priyanshuvishwakarma273403 hat das vor 112 Tagen übernommen, und es ist kein Pull Request offen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
GoogleCloudPlatform/cloud-opensource-java#2419 · 1 Kommentar · 2 Reaktionen ·
-
best practices
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 62/100
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 42/100
-
Add a presubmit CI check for LTSEvtl. wieder frei @diegomarquezp hat das vor 188 Tagen übernommen, und es ist kein Pull Request offen. Offenenhancement p2
GoogleCloudPlatform/cloud-opensource-java#2468 · 1 Kommentar · 1 zugewiesene Person ·
Alle Issues in GoogleCloudPlatform/cloud-opensource-java
Ähnliche Issues
-
[BUG] 增量 SSE 解析器未识别单独 CR 换行,导致事件无法及时交付Evtl. vergeben @king-wwwhhh hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
langchain4j/langchain4j#6669 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
OpenAPITools/openapi-generator#25237 ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs-area-label
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
quelea-projection/Quelea#711 ·
-
bug pdd
Schwierigkeit 2/5 Unter einer Stunde Anfängerfreundlichkeit 67/100
objectionary/eo#9450 ·
Maintainer antworten meist innerhalb von 1 Tag