Skip to content

[6.0.0] Keep credentials cached across build commands.#16881

Merged
ShreeM01 merged 2 commits intobazelbuild:release-6.0.0from
tjgq:cache-creds-6.0.0
Nov 29, 2022
Merged

[6.0.0] Keep credentials cached across build commands.#16881
ShreeM01 merged 2 commits intobazelbuild:release-6.0.0from
tjgq:cache-creds-6.0.0

Conversation

@tjgq
Copy link
Copy Markdown
Contributor

@tjgq tjgq commented Nov 29, 2022

When using a credential helper, the lifetime of the credential cache is currently tied to an individual command, which causes the helper to be called for every command resulting in poor incremental build latency for builds using a non-trivial helper.

Since the cache must be shared by RemoteModule and BazelBuildServiceModule, I've introduced a new CredentialModule whose sole purpose is to provide access to it.

Closes #16822.

PiperOrigin-RevId: 491598103
Change-Id: Ib668954b635a0e9498f0a7418707d6a2dfae0265

When using a credential helper, the lifetime of the credential cache is currently tied to an individual command, which causes the helper to be called for every command resulting in poor incremental build latency for builds using a non-trivial helper.

Since the cache must be shared by RemoteModule and BazelBuildServiceModule, I've introduced a new CredentialModule whose sole purpose is to provide access to it.

Closes bazelbuild#16822.

PiperOrigin-RevId: 491598103
Change-Id: Ib668954b635a0e9498f0a7418707d6a2dfae0265
@tjgq tjgq requested a review from ShreeM01 as a code owner November 29, 2022 15:38
@ShreeM01 ShreeM01 merged commit b471bbd into bazelbuild:release-6.0.0 Nov 29, 2022
@ShreeM01 ShreeM01 added the team-Remote-Exec Issues and PRs for the Execution (Remote) team label Dec 5, 2022
@tjgq tjgq deleted the cache-creds-6.0.0 branch December 8, 2022 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-Remote-Exec Issues and PRs for the Execution (Remote) team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants