Skip to content

Disable dry-run telemetry using documented environment opt-outs - #71032

Merged
pelikhan merged 2 commits into
mainfrom
copilot/update-dry-run-compilation
Oct 22, 2026
Merged

pelikhan merged 2 commits into
mainfrom
copilot/update-dry-run-compilation

Conversation

Copilot AI commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Dry-run compilation removes telemetry configuration but does not explicitly opt tools out of collection. This change adds documented environment controls.

  • Opt-outs: Emit the following workflow environment:
    env:
      DO_NOT_TRACK: "1"
      GH_TELEMETRY: "false"
      OTEL_SDK_DISABLED: "true"
      DISABLE_TELEMETRY: "1"
      DISABLE_ERROR_REPORTING: "1"
      CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: "1"
  • Overrides: Replace conflicting job, step, container, and service environment values. Preserve unrelated mappings, scripts, and normal compilation behavior.
  • Coverage and documentation: Cover environment edge cases, override enforcement, and idempotence; clarify that opt-outs affect only tools that honor them.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title Disable dry-run telemetry using known environment variables Disable dry-run telemetry using documented environment opt-outs Oct 22, 2026
Copilot AI requested a review from pelikhan October 22, 2026 04:18
@github-actions

Copy link
Copy Markdown
Contributor

Hey @Copilot 👋 — this PR is agent-generated, but per CONTRIBUTING.md traditional PRs are not enabled for non-core members; please route via an issue with an agentic plan for a core member.

Generated by ✅ Contribution Check · copilot · auto · 31.7 AIC · ⌖ 0.645 AIC · ⊞ 8.7K · ◷

@pelikhan
pelikhan marked this pull request as ready for review October 22, 2026 05:15
Copilot AI max review requested due to automatic review settings October 22, 2026 05:15
@pelikhan
pelikhan merged commit 150e251 into main Oct 22, 2026
4 checks passed
@pelikhan
pelikhan deleted the copilot/update-dry-run-compilation branch October 22, 2026 05:16

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.

🟡 Changes recommended

Generated sandbox exclusions and Codex’s shell policy can prevent the enforced telemetry opt-outs from reaching tools.

2 open issues
What changed in this PR

Adds explicit telemetry opt-outs to gh-aw’s dry-run compiler, complementing the existing removal of telemetry configuration.

Changes:

  • Emit six opt-outs and replace conflicting environment values during dry-run compilation.
  • Add override, preservation, and idempotence coverage; document that tools must honor the variables.
  • Refresh generated workflow version metadata and Claude installation pins.
File Description
pkg/​workflow/​compiler_yaml.go Apply opt-out rewriting during dry-run YAML generation.
pkg/​workflow/​compiler_development_telemetry.go Add opt-outs and enforce environment overrides.
pkg/​workflow/​compiler_development_telemetry_test.go Cover overrides, preservation, and idempotence.
docs/​src/​content/​docs/​reference/​compilation-process.md Explain opt-outs and their limitations.
.github/​workflows/​workflow-skill-extractor.lock.yml Refresh Copilot version metadata.
.github/​workflows/​visual-regression-checker.lock.yml Refresh Copilot version metadata.
.github/​workflows/​uk-ai-operational-resilience.lock.yml Refresh Copilot version metadata.
.github/​workflows/​squad-game-planner.lock.yml Refresh Copilot version metadata.
.github/​workflows/​smoke-work-queue.lock.yml Refresh Copilot version metadata.
.github/​workflows/​smoke-issues.lock.yml Refresh Copilot version metadata.
.github/​workflows/​smoke-copilot-small.lock.yml Refresh Copilot version metadata.
.github/​workflows/​smoke-copilot-sdk-routed.lock.yml Refresh Copilot version metadata.
.github/​workflows/​smoke-copilot-sdk-routed-claude.lock.yml Refresh Copilot version metadata.
.github/​workflows/​smoke-copilot-routed.lock.yml Refresh Copilot version metadata.
.github/​workflows/​smoke-copilot-routed-steering.lock.yml Refresh Copilot version metadata.
.github/​workflows/​smoke-copilot-routed-claude.lock.yml Refresh Copilot version metadata.
.github/​workflows/​smoke-copilot-auto.lock.yml Refresh Copilot version metadata.
.github/​workflows/​smoke-claude-sub-agents.lock.yml Update Claude installation pin and metadata.
.github/​workflows/​smoke-claude-copilot.lock.yml Update Claude installation pin and metadata.
.github/​workflows/​smoke-claude-copilot-auto.lock.yml Update Claude installation pin and metadata.
.github/​workflows/​smoke-claude-auto.lock.yml Update Claude installation pin and metadata.
.github/​workflows/​pr-description-caveman.lock.yml Refresh Copilot version metadata.
.github/​workflows/​objective-impact-report.lock.yml Refresh Copilot version metadata.
.github/​workflows/​layout-spec-maintainer.lock.yml Refresh Copilot version metadata.
.github/​workflows/​firewall.lock.yml Refresh Copilot version metadata.
.github/​workflows/​eslint-factory-dispatcher.lock.yml Refresh Copilot version metadata.
.github/​workflows/​engine-conformance-dispatcher.lock.yml Refresh Copilot version metadata.
.github/​workflows/​engine-conformance-copilot.lock.yml Refresh Copilot version metadata.
.github/​workflows/​engine-conformance-claude.lock.yml Update Claude installation pin and metadata.
.github/​workflows/​daily-work-queues-report.lock.yml Refresh Copilot version metadata.
.github/​workflows/​daily-work-queue-formal-verification.lock.yml Refresh Copilot version metadata.
.github/​workflows/​daily-team-status.lock.yml Refresh Copilot version metadata.
.github/​workflows/​daily-spec-coverage-kiro.lock.yml Refresh Copilot version metadata.
.github/​workflows/​daily-schema-audit-cursor.lock.yml Refresh Copilot version metadata.
.github/​workflows/​daily-report-dispatcher.lock.yml Refresh Copilot version metadata.
.github/​workflows/​daily-regression-audit-kiro.lock.yml Refresh Copilot version metadata.
.github/​workflows/​daily-pr-review-cursor.lock.yml Refresh Copilot version metadata.
.github/​workflows/​daily-byok-ollama-test.lock.yml Refresh Copilot version metadata.
.github/​workflows/​aw-issue-clustering.lock.yml Refresh Copilot version metadata.

Review effort: Max

@@ -220,7 +220,7 @@ func (c *Compiler) generateYAML(data *WorkflowData, markdownPath string) (string
return "", nil, nil, err
}
if c.dryRun {
bodyContent, err = removeDryRunTelemetryEnv(bodyContent)
bodyContent, err = disableDryRunTelemetryEnv(bodyContent)
@@ -220,7 +220,7 @@ func (c *Compiler) generateYAML(data *WorkflowData, markdownPath string) (string
return "", nil, nil, err
}
if c.dryRun {
bodyContent, err = removeDryRunTelemetryEnv(bodyContent)
bodyContent, err = disableDryRunTelemetryEnv(bodyContent)
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.93.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants