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

Add --remote-cache-warnings and make remote cache warnings less chatty (Cherry-pick of #11859) #11863

Merged
merged 1 commit into from Apr 8, 2021

Conversation

Eric-Arellano
Copy link
Contributor

No description provided.

…tty (pantsbuild#11859)

pantsbuild#11740 added new aggregation of remote cache logs. It was a fine start, but did not work properly for several error messages because we were dumping the headers, which included unique values like timestamps or the digest value:

> 23:16:17.28 [WARN] Failed to write to remote cache (1 occurrences so far): Error from server in response to find_missing_blobs_request: Status { code: PermissionDenied, message: "insufficient permissions", metadata: MetadataMap { headers: {"server": "awselb/2.0", "date": "Mon, 05 Apr 2021 23:16:17 GMT", "content-type": "application/grpc", "content-length": "0"} } }

Further, these headers were extremely noisy and most users don't care about them. They're now short:

> 23:16:17.28 [WARN] Failed to write to remote cache (1 occurrences so far): PermissionDenied:  "insufficient permissions"

Likewise, for most use cases, it was still too noisy to dump every increment. Our average use case should only log the very first time so that people are aware of the problem, but don't get flooded. In CI, users can set to log more frequently, which is now implemented via exponential backoff based on the exponent of 2.

[ci skip-build-wheels]
@Eric-Arellano Eric-Arellano requested a review from tdyas April 8, 2021 19:52
@Eric-Arellano Eric-Arellano merged commit a61fce4 into pantsbuild:2.4.x Apr 8, 2021
@Eric-Arellano Eric-Arellano deleted the cp-logs branch April 8, 2021 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants