Repository navigation
Disable telemetry during CI tests - #11072
Victor Vazquez (vhvb1989) wants to merge 1 commit into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Azure Pipelines: Successfully started running 3 pipeline(s). 24 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
🟡 Changes recommended
Telemetry test scripts leave synthetic failures available for later upload, while the job-wide opt-out causes first-notice tests to pass without exercising their intended branches.
2 open issues
What changed in this PR
Disables telemetry by default across azd CI and functional tests, retaining explicit opt-in where telemetry assertions require it.
Changes:
- Propagate telemetry opt-out through jobs, subprocesses, and containers.
- Add harness defaults and regression coverage.
- Document explicit opt-in behavior and possible test-event uploads.
| File | Description |
|---|---|
ext/devcontainer/test/azd/with_extensions/Dockerfile |
Disable telemetry during container builds. |
ext/devcontainer/test/azd/with_extensions.sh |
Disable telemetry during extension tests. |
ext/devcontainer/test/azd/test.sh |
Disable telemetry during feature tests. |
ext/devcontainer/test/azd/scenarios.json |
Use the telemetry-disabled Dockerfile. |
eng/scripts/Test-LinuxPackages.ps1 |
Pass opt-out into package containers. |
eng/pipelines/templates/steps/template-test-run-job.yml |
Preserve opt-out through template tests and sudo. |
eng/pipelines/templates/stages/verify-installers.yml |
Disable telemetry in installer validation jobs. |
eng/pipelines/templates/stages/publish-extension.yml |
Disable telemetry during snapshot refresh. |
eng/pipelines/templates/stages/build-and-test.yml |
Disable telemetry during cross-build validation. |
eng/pipelines/templates/jobs/vscode-build.yml |
Set job-wide opt-out. |
eng/pipelines/templates/jobs/verify-installers.yml |
Set installer-test opt-out. |
eng/pipelines/templates/jobs/run-template-tests.yml |
Set template-test job opt-out. |
eng/pipelines/templates/jobs/cross-build-azd-extension.yml |
Disable extension-validation telemetry. |
eng/pipelines/templates/jobs/build-cli.yml |
Set CLI build/test opt-out. |
eng/pipelines/templates/jobs/build-azd-extension.yml |
Set extension build/test opt-out. |
eng/pipelines/templates/jobs/azuredevops-build.yml |
Set Azure DevOps extension opt-out. |
eng/pipelines/ext-azure-ai-agents-live.yml |
Disable telemetry in live scenario tests. |
cli/installer/test-telemetry-functions.sh |
Explicitly enable telemetry assertions. |
cli/installer/test-telemetry-functions.ps1 |
Temporarily enable telemetry assertions. |
cli/installer/test-installer-containers.ps1 |
Pass opt-out into installer containers. |
cli/azd/test/functional/vs_server_test.go |
Disable direct server-subprocess telemetry. |
cli/azd/test/functional/telemetry_test.go |
Test default opt-out and explicitly enable tracing. |
cli/azd/test/functional/mcp_test.go |
Disable MCP telemetry and check absent storage. |
cli/azd/test/functional/experiment_test.go |
Explicitly enable telemetry assertions. |
cli/azd/test/functional/cli_test.go |
Remove cleanup-diagnostic telemetry emission. |
cli/azd/test/azdcli/cli.go |
Default commands to telemetry opt-out. |
cli/azd/test/azdcli/cli_test.go |
Verify environment override behavior. |
cli/azd/docs/recording-functional-tests-guide.md |
Document opt-in and upload implications. |
.github/workflows/vscode-ci.yml |
Disable test-job telemetry. |
.github/workflows/verify-ext-providers.yml |
Set workflow-wide opt-out. |
.github/workflows/test-ext-azure-ai-agents.yml |
Disable agent-test telemetry. |
.github/workflows/shared-foundry.yml |
Disable shared Foundry test telemetry. |
.github/workflows/scripts-ci.yml |
Disable script-test telemetry. |
.github/workflows/lint-ext-azure-resources.yml |
Disable extension-test telemetry. |
.github/workflows/lint-ext-azure-ai-evaluations.yml |
Disable evaluation unit-test telemetry. |
.github/workflows/ext-telemetry-ci.yml |
Set workflow-wide opt-out. |
.github/workflows/ext-registry-ci.yml |
Set registry-test opt-out. |
.github/workflows/devops-ext-ci.yml |
Disable extension build/test telemetry. |
.github/workflows/devcontainer-feature-test.yml |
Set workflow-wide opt-out. |
.github/workflows/cli-ci.yml |
Set workflow-wide opt-out. |
.github/actions/vally-eval/action.yml |
Disable telemetry during tests and evaluations. |
Review effort: Max
| set -e | ||
| set -u | ||
|
|
||
| export AZURE_DEV_COLLECT_TELEMETRY=yes |
|
|
||
| variables: | ||
| ${{ insert }}: ${{ parameters.Variables }} | ||
| AZURE_DEV_COLLECT_TELEMETRY: "no" |
Azure Dev CLI Install InstructionsInstall scriptsMacOS/Linux
bash: pwsh: WindowsPowerShell install MSI install Standalone Binary
MSI
Documentationlearn.microsoft.com documentationtitle: Azure Developer CLI reference
|

Summary
Trace-file tests use the normal exporter when enabled, so those test events may still upload.
Validation