Idea: checking the behavioral compatibility in the libraries in the LTS BOM
@suztomo y travaille déjà.
Depuis le 9/3/2021.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
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
- Langage dominant
- Java
- Étoiles
- 165
- Forks
- 82
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de GoogleCloudPlatform/cloud-opensource-java
-
Class file versions 65 in linkage checkerPeut-être à nouveau libre @priyanshuvishwakarma273403 l’a pris il y a 111 jours, et aucune pull request n’est ouverte. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
GoogleCloudPlatform/cloud-opensource-java#2419 · 1 commentaire · 2 réactions ·
-
best practices
Difficulté 1/5 Moins d'une heure Accessibilité débutants 62/100
-
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
-
JLBP-14 additional reasonOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 42/100
-
Add a presubmit CI check for LTSPeut-être à nouveau libre @diegomarquezp l’a pris il y a 186 jours, et aucune pull request n’est ouverte. Ouverteenhancement p2
GoogleCloudPlatform/cloud-opensource-java#2468 · 1 commentaire · 1 personne assignée ·
Toutes les issues de GoogleCloudPlatform/cloud-opensource-java
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 64/100
utopia-rise/godot-jvm#1004 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
spring-projects/spring-grpc#442 ·
-
Expose numberOfPermits in RateLimiterEvent.toString() and the ratelimiterevents actuator DTOPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
resilience4j/resilience4j#2547 ·
Les mainteneurs répondent en général sous 9 jours
-
Clock.MakeDate continues execution and returns a rolled-over instant after dispatching error on invalid datePeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 82/100
mit-cml/appinventor-sources#4155 ·
Les mainteneurs répondent en général sous 1 jour