-
Notifications
You must be signed in to change notification settings - Fork 174
Disable microsoft/go build telemetry #8481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable microsoft/go build telemetry #8481
Conversation
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
@pchila could you give this a review also please, as I believe you are the most familiar with the Elastic Agent build parts and it is important to always opt out. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding MS_GOTOOLCHAIN_TELEMETRY_ENABLED
env var in the fips settings should be enough to pass it to golang-crossbuild when building the elastic-agent binary.
I wonder if this is needed also when running fips unit tests as I think that the microsoft/go runtime is used there as well. @michel-laterman could you please check ?
Shouldn't we also check for elastic-agent/dev-tools/packaging/testing/package_test.go Lines 804 to 821 in ac9ee9a
|
I don't think we need to check for the MS toolchain var in the binary; the var controls what the go binary does, not what we produce |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we consider using the pre-command
hook instead? I'm not a big fan of the pre-command
hook, but I feel enabling that env variable everywhere by default could be helpful. WDYT?
I think that having it in the fips bk pipeline is much clearer then using a hook |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Could the environment variable be defined at the beginning of the env
section? Instead of the step itself?
buildkite test this |
1 similar comment
buildkite test this |
|
💛 Build succeeded, but was flaky
Failed CI StepsHistory
|
* Disable microsoft/go build telemetry * Pass env var to FIPS integration tests (cherry picked from commit 8803a02)
What does this PR do?
Disable microsoft/go build telemetry in the spec and magefile.