Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
Don't upload large files to remote-cache
Browse files Browse the repository at this point in the history
Fixes #1855
  • Loading branch information
alexeagle committed May 20, 2021
1 parent d18033b commit ef71203
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions container/layer_tools.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,12 @@ def assemble(
arguments = [args],
tools = inputs,
outputs = [output],
execution_requirements = {
# This action produces large output files, but doesn't require much CPU to compute.
# It's not economical to send this to the remote-cache, instead local cache misses
# should just run join_layers again.
"no-remote-cache": "1",
},
mnemonic = "JoinLayers",
)

Expand Down
6 changes: 6 additions & 0 deletions skylib/zip.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ def _gzip(ctx, artifact, out, decompress, options, mnemonic):
) + (options or []),
inputs = [artifact],
outputs = [out],
execution_requirements = {
# This action produces large output files, but doesn't require much CPU to compute.
# It's not economical to send this to the remote-cache, instead local cache misses
# should just run gzip again.
"no-remote-cache": "1",
},
mnemonic = mnemonic,
tools = ctx.attr._zipper[DefaultInfo].default_runfiles.files,
)
Expand Down

0 comments on commit ef71203

Please sign in to comment.