Explicitly disable pantsbuild opt-in anonymous telemetry #5737
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Background
This is another part of introducing
pants
, as discussed in the TSC Meetings on 12 July 2022, 02 Aug 2022 and 06 Sept 2022. Pants has fine-grained per-file caching of results for lint, fmt (like black), test, etc. It also has lockfiles that work well for monorepos that have multiple python packages. With these lockfiles CI should not break when any of our dependencies or our transitive dependencies release new versions, because CI will continue to use the locked version until we explicitly relock with updates.To keep PRs as manageable/reviewable as possible, introducing pants will take a series of PRs. I do not know yet how many PRs; I will break this up into logical steps with these goals:
pants
to the st2 repo, andpants
step-by-step.Other pants PRs include:
pants_ignore
and bump pants to v2.14.0rc1 #5733BUILD
files with./pants tailor ::
#5738Overview of this PR
This PR is independent of other pantsbuild PRs.
This PR configures pants' anonymous telemetry so that it is explicitly disabled (it is already opt-in by default, but we explicitly disable it). It is also configured so that individual developers can enable it if they wish, but--again--it requires an explicit opt-in.
Documentation about anonymous telemetry is available here:
https://www.pantsbuild.org/docs/anonymous-telemetry
We need to either set the
repo_id
or explicitly disable telemetry to get rid of a non-fatal error pants prints on startup (shown below). I opted to set both so that I can still provide telemetry on my machine, but make the default state (opt-in) explicit to avoid any concerns in our community about telemetry.If, like me, someone wants to enable anonymous telemetry on their machine, they can add a
~/.pants.rc
file: