Skip to content
This repository was archived by the owner on Aug 30, 2026. It is now read-only.

chore: reduce test time by skipping mtls - #4022

Closed
olavloite wants to merge 3 commits into
mainfrom
speed-up-tests
Closed

chore: reduce test time by skipping mtls#4022
olavloite wants to merge 3 commits into
mainfrom
speed-up-tests

Conversation

@olavloite

Copy link
Copy Markdown
Contributor

The Google Auth libraries have added support for mtls. A check for what type of MtlsProvider is available is executed multiple times every time a Spanner client is created, and this check is relatively expensive. This causes all mock server tests to become slow.

This change introduces a temporary hack to work around this, until we have a solution in the auth libraries that allow us to turn off this feature during tests that do not care about mtls.

The Google Auth libraries have added support for mtls. A check for what type
of MtlsProvider is available is executed multiple times every time a Spanner
client is created, and this check is relatively expensive. This causes all
mock server tests to become slow.

This change introduces a temporary hack to work around this, until we have a
solution in the auth libraries that allow us to turn off this feature during
tests that do not care about mtls.
@olavloite
olavloite requested review from a team August 18, 2025 15:50
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. api: spanner Issues related to the googleapis/java-spanner API. labels Aug 18, 2025
@olavloite olavloite closed this Sep 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: spanner Issues related to the googleapis/java-spanner API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants