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

disable spanner client metrics in tests #49803

Closed

Conversation

GavinFrazar
Copy link
Contributor

@GavinFrazar GavinFrazar commented Dec 4, 2024

This PR is to unblock the version bump #49767

For context, the "metrics" here in the newer version of the spanner client attempt to load application default credentials even though the test configured insecure test credentials.
The workaround is just to disable these metrics in tests.

I tested against a real spanner instance as well (using the latest spanner client version) to be sure that we don't need any changes outside of test code.
(in a real deployment you have to actually provide application default credentials anyway)

edit: I'll just add this to the version bump, since this field doesn't exist in the older version of the client.

@GavinFrazar GavinFrazar added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v15 backport/branch/v16 backport/branch/v17 labels Dec 4, 2024
@github-actions github-actions bot requested a review from smallinsky December 4, 2024 23:44
@github-actions github-actions bot added database-access Database access related issues and PRs size/sm labels Dec 4, 2024
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-49803.d3pp5qlev8mo18.amplifyapp.com

@GavinFrazar GavinFrazar closed this Dec 5, 2024
@GavinFrazar GavinFrazar deleted the gavinfrazar/workaround-spanner-metrics-bug branch December 5, 2024 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v15 backport/branch/v16 backport/branch/v17 database-access Database access related issues and PRs no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant