Skip to content

Conversation

hiranya911
Copy link
Contributor

Our nightly builds intermittently fail due to the race conditions outlined in googleapis/google-auth-library-java#692. As a possible fix I'd like to try setting the auth token in the request header instead of the URL. This way we do not have to directly interact with GoogleCredentials or auth tokens at all (which seems to be the source of the race condition). Instead we can get the HttpRequestFactory API to handle all that internally, just like our service client implementations do.

At the same time, I'm also refactoring the IntegrationTestUtils.AppHttpClient class into a top-level RulesClient class, and reducing its visibility to the database integration tests package.

@hiranya911 hiranya911 added the release:stage Stage a release candidate label Aug 24, 2021
Copy link
Member

@lahirumaramba lahirumaramba left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM!

@hiranya911 hiranya911 merged commit 9f57c9a into master Aug 25, 2021
@hiranya911 hiranya911 deleted the hkj-rules-client branch August 25, 2021 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:stage Stage a release candidate

2 participants