commit | a790c172fbc15bafc20417a6e6a235f4abd9fc9a | [log] [tgz] |
---|---|---|
author | ajurkowski <ajurkowski@google.com> | Fri Apr 02 13:36:39 2021 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Apr 02 13:37:50 2021 -0700 |
tree | a1d97e5a3451dd4f659fcf165dd8d0efaca7f871 | |
parent | 8b2f14fd9283684bbe80d5aaa30e71fd4d2a8e14 [diff] |
Delete stale archived tree artifacts before running actions. Every action, before we execute it will proactively clean up files it can produce in order to prevent picking up ones leftover from prior evaluation. A great example of that are tree artifact files, which after a change may no longer be produced. The remedy for that is to [delete the directory before we run the action](https://github.com/bazelbuild/bazel/blob/5bff601f1444598b48fe41075d25866dc436a56c/src/main/java/com/google/devtools/build/lib/actions/AbstractAction.java#L362-L369). Archived tree artifacts do not have the same logic available, meaning that we can potentially be using a stale one. Extend the cleanup logic to allow cleaning up archived tree artifacts if the action produces them. PiperOrigin-RevId: 366504382
{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