Skip to content

auth: Use pre-existing private key in test#12010

Merged
ejona86 merged 1 commit intogrpc:masterfrom
ejona86:auth-fast-test
Apr 8, 2025
Merged

auth: Use pre-existing private key in test#12010
ejona86 merged 1 commit intogrpc:masterfrom
ejona86:auth-fast-test

Conversation

@ejona86
Copy link
Copy Markdown
Member

@ejona86 ejona86 commented Apr 8, 2025

Generating a KeyPair is very expensive when running with TSAN, because TSAN keeps the JVM in interpreted mode. This speeds up the test running on my desktop from .368s to .151s; faster, but nobody cares. With TSAN, the speedup is from 150-500s to 4-6s. Within Google the test was timing out because it was taking so long. While we can increase the timeout, it seems better to speed up the test in this easy way.

Generating a KeyPair is very expensive when running with TSAN, because
TSAN keeps the JVM in interpreted mode. This speeds up the test running
on my desktop from .368s to .151s; faster, but nobody cares. With TSAN,
the speedup is from 150-500s to 4-6s. Within Google the test was timing
out because it was taking so long. While we can increase the timeout,
it seems better to speed up the test in this easy way.
@ejona86 ejona86 requested a review from larry-safran April 8, 2025 16:26
@ejona86 ejona86 merged commit a6aec27 into grpc:master Apr 8, 2025
15 of 16 checks passed
@ejona86 ejona86 deleted the auth-fast-test branch April 8, 2025 18:03
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants