commit | 4e29042fd77eae565a711655df6150500cb6e915 | [log] [tgz] |
---|---|---|
author | Chi Wang <chiwang@google.com> | Tue Aug 03 17:56:19 2021 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Aug 03 17:57:26 2021 -0700 |
tree | 905667ce5d7bbce7a7b02e7de999c734c4f58fa1 | |
parent | f913ef1a4ab5078a059dcb9e3f25dda01a59430a [diff] |
Save remote output metadata to ActionCache and load them before checking action cache This PR extends `ActionCache.Entry` to store output metadata by having a map of <Path, Metadata>. This map is updated after action execution when we update action cache so that metadata of all outputs of the action are saved. Before checking the action cache (when executing actions), we will load the output metadata into output store if it is remote and the correspondingly local one is missing. With this change, remote output metadata is saved to disk so build without bytes can use them among server restarts. We can also download outputs after action execution since remote output metadata can be accessed outside. Part of https://github.com/bazelbuild/bazel/issues/12665. Fixes https://github.com/bazelbuild/bazel/issues/8248. Closes #13604. PiperOrigin-RevId: 388586691
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel rebuilds only what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md