Disable .NET CLI telemetry - #26570
Conversation
Set DOTNET_CLI_TELEMETRY_OPTOUT=1 for make-based local builds, Azure pipeline variables, and GitHub Actions workflows that install or run dotnet. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 16bf5b8c-c510-40b2-986e-6ff14ee3fa32
There was a problem hiding this comment.
🟢 Approval recommended
The changes are scoped to environment configuration for telemetry opt-out and do not introduce behavioral risk beyond disabling telemetry.
Pull request overview
This PR disables .NET CLI telemetry across common build entry points in dotnet/macios by setting DOTNET_CLI_TELEMETRY_OPTOUT=1 for local make-based builds, Azure DevOps pipeline variable templates, and GitHub Actions workflows that run dotnet.
Changes:
- Add
DOTNET_CLI_TELEMETRY_OPTOUTto the shared Azure DevOps variables template (common.yml). - Export
DOTNET_CLI_TELEMETRY_OPTOUT=1inMake.configfor local make-based builds. - Set
DOTNET_CLI_TELEMETRY_OPTOUTat the workflow level in the GitHub Actions workflows that install/run .NET.
File summaries
| File | Description |
|---|---|
| tools/devops/automation/templates/variables/common.yml | Adds DOTNET_CLI_TELEMETRY_OPTOUT=1 to shared Azure pipeline variables. |
| Make.config | Exports DOTNET_CLI_TELEMETRY_OPTOUT=1 for make-driven local builds. |
| .github/workflows/maestro-changelog.yml | Sets telemetry opt-out at workflow scope for dotnet run usage. |
| .github/workflows/autoformat-v2.yml | Sets telemetry opt-out at workflow scope for setup-dotnet/formatting runs. |
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 2
- Review effort level: Lite
Quote GitHub Actions DOTNET_CLI_TELEMETRY_OPTOUT values to match string env variable conventions. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 16bf5b8c-c510-40b2-986e-6ff14ee3fa32
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
🚀 [CI Build #0698338] Test results 🚀Test results✅ All tests passed on VSTS: test results. 🎉 All 264 tests passed 🎉 Tests counts✅ assembly-processing: All 1 tests passed. [attempt 2] Html Report (VSDrops) Download macOS tests✅ Tests on macOS Sonoma (14): All 5 tests passed. [attempt 2] Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
Set DOTNET_CLI_TELEMETRY_OPTOUT=1 for make-based local builds, Azure pipeline variables, and GitHub Actions workflows that install or run dotnet.
🤖 Pull request created by Copilot