Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add downstream check for spring-cloud-gcp #3092

Merged
merged 7 commits into from
Aug 29, 2024

Conversation

diegomarquezp
Copy link
Contributor

@diegomarquezp diegomarquezp commented Aug 9, 2024

Fixes #2534

The check takes 2 minutes

@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Aug 9, 2024
@diegomarquezp
Copy link
Contributor Author

diegomarquezp commented Aug 9, 2024

Using our custom setttings.xml incurs in the following:

Error:      Non-resolvable import POM: The following artifacts could not be resolved: io.prometheus:prometheus-metrics-bom:pom:1.2.1 (absent): Could not find artifact io.prometheus:prometheus-metrics-bom:pom:1.2.1 in google-maven-central (https://maven-central.storage-download.googleapis.com/maven2/) @ org.springframework.boot:spring-boot-dependencies:3.3.1, /home/runner/.m2/repository/org/springframework/boot/spring-boot-dependencies/3.3.1/spring-boot-dependencies-3.3.1.pom, line 2457, column 19 -> [Help 2]

Removing the following line for now:

@blakeli0 maybe you can help me understand why our Google mirror doesn't have this dependency?

@diegomarquezp diegomarquezp marked this pull request as ready for review August 12, 2024 13:33
@burkedavison
Copy link
Member

LGTM

Co-authored-by: Burke Davison <40617934+burkedavison@users.noreply.github.com>


# Generate showcase autoconfig
bash scripts/generate-showcase.sh
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just do ./scripts/generate-showcase.sh?

# Download and configure spring-cloud-gcp for testing
last_release=$(find_last_release_version "spring-cloud-gcp" "main" "GoogleCloudPlatform")
git clone "https://github.com/GoogleCloudPlatform/spring-cloud-gcp.git" --depth=1 --branch "v$last_release"
update_all_poms_dependency "spring-cloud-gcp" "gapic-generator-java-bom" "${GAPIC_GENERATOR_VERSION}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lqiu96 This update_all_poms_dependency looks like a nice util that maybe we can reuse in testing protoc.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The script I wrote to update the poms is pretty much a copy of this implementation. When I originally wrote it, I had the limitation where i couldn't use xmllint or xmlstartlet in kokoro.

Co-authored-by: Burke Davison <40617934+burkedavison@users.noreply.github.com>
@diegomarquezp diegomarquezp added the automerge Merge the pull request once unit tests and other checks pass. label Aug 29, 2024
Copy link

Copy link

Quality Gate Passed Quality Gate passed for 'java_showcase_integration_tests'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@gcf-merge-on-green gcf-merge-on-green bot merged commit bd5ef74 into main Aug 29, 2024
49 of 50 checks passed
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Aug 29, 2024
@gcf-merge-on-green gcf-merge-on-green bot deleted the downstream-check-spring branch August 29, 2024 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a downstream check for spring-cloud-gcp
4 participants