Skip to content

Add pants.remote-cache.toml#11394

Merged
Eric-Arellano merged 2 commits into
pantsbuild:masterfrom
Eric-Arellano:remoting-cache-toml
Jan 1, 2021
Merged

Add pants.remote-cache.toml#11394
Eric-Arellano merged 2 commits into
pantsbuild:masterfrom
Eric-Arellano:remoting-cache-toml

Conversation

@Eric-Arellano
Copy link
Copy Markdown
Contributor

Toolchain is making improvements to remote caching, and this change facilitates setting that up to be used.

There are two contexts where we often use remote caching:

  1. Locally, typically by spinning up a local server.
  2. In CI

These have different settings, such as which server to point to. Instead of having two separate config files, we leave out the context-specific settings. Developers can use .envrc to automatically set them, and in CI, we can set .travis.yml appropriately.

[ci skip-build-wheels]
[ci skip-rust]

[ci skip-build-wheels]
[ci skip-rust]
Copy link
Copy Markdown
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.

Split out of #11384. I removed all the setup for CI.

Comment thread pants.remote-cache.toml
remote_instance_name = "main"

# Normally, we wouldn't want this, but it's helpful while we iterate on remote caching to force the remote to be used.
process_execution_use_local_cache = false
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This might be controversial to set in the config file. But I figure we can override it.

By the time we are confident enough to turn this on production, we can toggle it off.

Comment thread pants.remote-cache.toml Outdated
Comment thread pants.remote-cache.toml
Comment on lines +17 to +19
remote_store_initial_timeout = 250
remote_store_timeout_multiplier = 1.5
remote_store_maximum_timeout = 5000
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should these be adjustments to the default values? If not, explaining why we set them to non-defaults would be good.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I have no idea. Blindly copied from Tom's PR.

# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@Eric-Arellano Eric-Arellano merged commit eec50c7 into pantsbuild:master Jan 1, 2021
@Eric-Arellano Eric-Arellano deleted the remoting-cache-toml branch January 1, 2021 00:32
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.

2 participants