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

Skip loading of local cache data when possible (Cherry-pick of #17495) #17524

Merged

Conversation

Eric-Arellano
Copy link
Contributor

Closes #17448.

Copy link
Contributor Author

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

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

Not a clean cherry-pick because symlinks aren't in 2.15

Copy link
Member

@stuhood stuhood left a comment

Choose a reason for hiding this comment

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

Thanks!

let fetch_result = in_workunit!("eager_fetch_action_cache", Level::Trace, |_workunit| store
.ensure_downloaded(
HashSet::from([response.stdout_digest, response.stderr_digest]),
HashSet::from([response.output_directory])
Copy link
Member

Choose a reason for hiding this comment

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

Don't change it here obviously, but for next time:

Suggested change
HashSet::from([response.output_directory])
[response.output_directory].into()

should work? From and Into are implemented in terms of one another.

@Eric-Arellano Eric-Arellano merged commit 0c620f1 into pantsbuild:2.15.x Nov 10, 2022
@Eric-Arellano Eric-Arellano deleted the cherry-pick-17495-to-2.15.x branch November 10, 2022 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants