-
Notifications
You must be signed in to change notification settings - Fork 327
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
chore: add runtime hints for sql autoconfigure and sql-mysql samples to native ci #2384
Conversation
@@ -168,6 +168,7 @@ jobs: | |||
verify | |||
env: | |||
DB_PASSWORD: ${{ secrets.SPRING_CLOUD_GCP_CI_DB_ROOT_PASSWORD }} | |||
GOOGLE_CLOUD_PROJECT: spring-cloud-gcp-ci |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the GOOGLE_CLOUD_PROJECT
needed here, but not in the equivalent native env block? Both use setup-gcloud
to set the project_id
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. On a second look, I updated this pr to use GCP_PROJECT
which is commonly setup in both workflows.
IntegrationTest.yaml is using "google-github-actions/setup-gcloud@v0" vs. NativeTests.yaml using "google-github-actions/setup-gcloud@v1". That might have caused the slight difference in env vars setup.
Integration
CLOUDSDK_METRICS_ENVIRONMENT: github-actions-setup-gcloud
GCLOUD_PROJECT: spring-cloud-gcp-ci
CLOUDSDK_CORE_PROJECT: spring-cloud-gcp-ci-native
CLOUDSDK_PROJECT: spring-cloud-gcp-ci-native
GCLOUD_PROJECT: spring-cloud-gcp-ci-native
GCP_PROJECT: spring-cloud-gcp-ci-native
GOOGLE_CLOUD_PROJECT: spring-cloud-gcp-ci-native
CLOUDSDK_METRICS_ENVIRONMENT: github-actions-setup-gcloud
CLOUDSDK_METRICS_ENVIRONMENT_VERSION: 1.1.1
I'll raise a separate pr to upgrade this github action version for integration yaml.
@@ -160,6 +162,8 @@ jobs: | |||
id: intTest | |||
run: | | |||
MODULE_UNDER_TEST="${{ matrix.it }}" ./.github/workflows/scripts/native-image-tests.sh | |||
env: | |||
DB_PASSWORD: ${{ secrets.SPRING_CLOUD_GCP_CI_NATIVE_DB_ROOT_PASSWORD }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
Kudos, SonarCloud Quality Gate passed! |
Followup to comment [here](#2384 (comment)), upgrades `google-github-actions/setup-gcloud` to be consistent with [nativeTests.yaml](https://github.com/GoogleCloudPlatform/spring-cloud-gcp/blob/main/.github/workflows/NativeTests.yaml) following example [here](https://github.com/google-github-actions/setup-gcloud#service-account-key-json). This also fixes deprecation warnings on integration test workflows. ``` "service_account_key" has been deprecated. Please switch to using google-github-actions/auth which supports both Workload Identity Federation and Service Account Key JSON authentication. For more details, see https://github.com/google-github-actions/setup-gcloud#authorization ```
Changes in this PR:
Add runtime hints for
GcpCloudSqlProperties.class
in sql autoconfigure.Other changes:
sql-mysql-sample
,sql-postgres-sample
andsql-postgres-r2dbc-sample
to native ci.maven-surefire-plugin
innativeTest
profile.)spring-cloud-gcp-ci
project and native tests run inspring-cloud-gcp-ci-native
project.Todos: