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

remote caching: upload stdout/stderr content to remote cache #11049

Merged
merged 2 commits into from Oct 27, 2020

Conversation

tdyas
Copy link
Contributor

@tdyas tdyas commented Oct 26, 2020

[ci skip-build-wheels]

Problem

With remote caching enabled, stdout and stderr outputs were not uploaded to the remote cache.

Solution

Teach make_action_result to include the digests for stdout and stderr content in the list of digests to upload.

make_action_result now returns that list of digests so it can be verified in a unit test.

Result

Added unit test.

&self,
command: &Command,
result: &FallibleProcessResultWithPlatform,
store: &Store,
) -> Result<ActionResult, String> {
) -> Result<(ActionResult, Vec<Digest>), String> {
// Keep track of digests that need to be uploaded.
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps add a comment explaining that this may contain both File Digests and Directory Digests. (If those are the correct terms). I could see that not being immediately obvious. Perhaps have that in the docstring to describe the return type.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. It actually includes Tree digests and not Directory digests.

[ci skip-build-wheels]
@coveralls
Copy link

coveralls commented Oct 26, 2020

Coverage Status

Coverage remained the same at 0.0% when pulling ec57f03 on tdyas:upload_stdout_stderr_to_cache into 5c1aaa0 on pantsbuild:master.

@tdyas tdyas merged commit 97d67e0 into pantsbuild:master Oct 27, 2020
@tdyas tdyas deleted the upload_stdout_stderr_to_cache branch October 27, 2020 02:05
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

3 participants