Skip to content

Disable .NET CLI telemetry - #26570

Open
rolfbjarne wants to merge 2 commits into
mainfrom
dev/rolf/disable-telemetry
Open

Disable .NET CLI telemetry#26570
rolfbjarne wants to merge 2 commits into
mainfrom
dev/rolf/disable-telemetry

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member

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

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
Copilot AI lite review requested due to automatic review settings September 7, 2026 11:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 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_OPTOUT to the shared Azure DevOps variables template (common.yml).
  • Export DOTNET_CLI_TELEMETRY_OPTOUT=1 in Make.config for local make-based builds.
  • Set DOTNET_CLI_TELEMETRY_OPTOUT at 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

Comment thread .github/workflows/autoformat-v2.yml
Comment thread .github/workflows/maestro-changelog.yml
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
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ API diff for current PR / commit

NET (empty diffs)

✅ API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: 069833845b503d00cadb8fb10c54d22fdc43c972 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@rolfbjarne
rolfbjarne enabled auto-merge (squash) September 7, 2026 14:20
@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🚀 [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
✅ cecil: All 1 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ framework: All 2 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ generator: All 5 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ introspection: All 7 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ linker (iOS): All 31 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ linker (MacCatalyst): All 31 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ linker (macOS): All 21 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ linker (tvOS): All 31 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ monotouch (iOS): All 25 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 25 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ monotouch (macOS): All 20 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ monotouch (tvOS): All 25 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ sharpie: All 1 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ windows: All 3 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ xtro: 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
✅ Tests on macOS Sequoia (15): All 5 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ Tests on macOS Tahoe (26): All 5 tests passed. [attempt 2] Html Report (VSDrops) Download

Linux Build Verification

Linux build succeeded

Pipeline on Agent
Hash: 069833845b503d00cadb8fb10c54d22fdc43c972 [PR build]

@rolfbjarne rolfbjarne added the ready-to-review This PR is ready to review/merge. label Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

copilot ready-to-review This PR is ready to review/merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants