)]}'
{
  "commit": "2d69fbc724ebe12a3cf9f077394988798ec00706",
  "tree": "23682f3f9b9487e4e54a50457555630344865677",
  "parents": [
    "1787981a1b8d700eed9398fb3ae3fe83d9d16c39"
  ],
  "author": {
    "name": "Phil Quitslund",
    "email": "pq@users.noreply.github.com",
    "time": "Tue Jun 02 15:40:46 2026 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Jun 02 22:40:46 2026 +0000"
  },
  "message": "[flutter tool] propagate analytics env to sub-tools (#186780)\n\nUpdates the Flutter CLI to propagate unified analytics environment\nvariables down to all spawned subprocesses, achieving parity with\n`dartdev`(see:\nhttps://github.com/dart-lang/sdk/commit/04c6612781bfa0951d3159cadd62aacd63644ff6).\n\nIt automatically propagates:\n\n\n* `DASH__SUPPRESS_ANALYTICS`: Set to `\u0027true\u0027` if analytics is disabled\nin the parent tool context (e.g. via config setting, bot detection, or\n`FLUTTER_SUPPRESS_ANALYTICS`), otherwise `\u0027false\u0027`.\n* `DASH__TOOL`: Identifies the top-level tool calling the sub-tool,\ndefaulting to `\u0027flutter-tool\u0027`.\n### Architectural Rationale \u0026 Full Coverage\nRather than wrapping the environment map inside individual high-level\nwrappers (such as `ProcessUtils`), the propagation logic is centralized\ndirectly inside **`ErrorHandlingProcessManager`**\n(`error_handling_io.dart`), which is the single context-injected gate\nfor process execution.\n\nThis centralized placement guarantees **100% coverage** because:\n1. Every workflow in the codebase that executes processes via\n`globals.processUtils` delegates its calls directly to the context\nprocess manager.\n2. Any workflow that directly invokes process manager execution (e.g.\ncalling `globals.processManager.start(...)` directly instead of\n`processUtils`) is also intercepted, securing full propagation coverage\nacross the entire toolchain.\n\nFixes: https://github.com/flutter/flutter/issues/186696\n\n\n## Pre-launch Checklist\n\n- [x] I read the [Contributor Guide] and followed the process outlined\nthere for submitting PRs.\n- [x] I read the [AI contribution guidelines] and understand my\nresponsibilities, or I am not using AI tools.\n- [x] I read the [Tree Hygiene] wiki page, which explains my\nresponsibilities.\n- [x] I read and followed the [Flutter Style Guide], including [Features\nwe expect every widget to implement].\n- [x] I signed the [CLA].\n- [x] I listed at least one issue that this PR fixes in the description\nabove.\n- [x] I updated/added relevant documentation (doc comments with `///`).\n- [x] I added new tests to check the change I am making, or this PR is\n[test-exempt].\n- [x] I followed the [breaking change policy] and added [Data Driven\nFixes] where supported.\n- [x] All existing and new tests are passing.\n\nIf you need help, consider asking for advice on the #hackers-new channel\non [Discord].\n\nIf this change needs to override an active code freeze, provide a\ncomment explaining why. The code freeze workflow can be overridden by\ncode reviewers. See pinned issues for any active code freezes with\nguidance.\n\n**Note**: The Flutter team is currently trialing the use of [Gemini Code\nAssist for\nGitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code).\nComments from the `gemini-code-assist` bot should not be taken as\nauthoritative feedback from the Flutter team. If you find its comments\nuseful you can update your code accordingly, but if you are unsure or\ndisagree with the feedback, please feel free to wait for a Flutter team\nmember\u0027s review for guidance on which automated comments should be\naddressed.\n\n\u003c!-- Links --\u003e\n[Contributor Guide]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview\n[AI contribution guidelines]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#ai-contribution-guidelines\n[Tree Hygiene]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md\n[test-exempt]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests\n[Flutter Style Guide]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md\n[Features we expect every widget to implement]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement\n[CLA]: https://cla.developers.google.com/\n[flutter/tests]: https://github.com/flutter/tests\n[breaking change policy]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes\n[Discord]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md\n[Data Driven Fixes]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4a048813f4b18791cda8b01608f4784939076d27",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/lib/src/base/error_handling_io.dart",
      "new_id": "e1d4ad16e6f862a7659db60e6c7702d26078e7c6",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/base/error_handling_io.dart"
    },
    {
      "type": "modify",
      "old_id": "d099a6bc02a205d358e0ff4e110acef466ae3909",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/lib/src/context_runner.dart",
      "new_id": "8bf48a52b1f4ff8f6a81266260ddd1afb53b5bb3",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/context_runner.dart"
    },
    {
      "type": "modify",
      "old_id": "43b728c55dce3dfc86bbac6408845640b818abf9",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/test/general.shard/base/error_handling_io_test.dart",
      "new_id": "d61289f8e08c02623cafa62189b9cffd0fadbe85",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/test/general.shard/base/error_handling_io_test.dart"
    },
    {
      "type": "modify",
      "old_id": "fb887fe20a352d0b1d00ed7d00eda1b0e7b4e154",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/test/general.shard/base/process_test.dart",
      "new_id": "246f234439b96c1b7cf2c0617605606f1e3568eb",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/test/general.shard/base/process_test.dart"
    }
  ]
}
