)]}'
{
  "commit": "3f19e89679dc2d64108233b2d2370914130219bc",
  "tree": "17ef90b4c186f4ec61ce3a55ca0258e5179d9f20",
  "parents": [
    "31a09083dd967c2e31f590815ea40874174b6634"
  ],
  "author": {
    "name": "Jenn Magder",
    "email": "magder@google.com",
    "time": "Mon Nov 02 18:17:09 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Nov 02 18:17:09 2026 +0000"
  },
  "message": "Balance tool_integration_tests subshards by expected duration (#195628)\n\nTool `integration.shard` is currently split across subshards by file\ncount. Each file test duration ranges from under a second to 10.5\nminutes (the longest is `swift_package_manager_test`). Over the last 3\npostsubmit runs Mac subshards took 4.9 to 19.9 minutes and the Windows\nsubshard 2.0 to 24.9. A 2 minute test is a waste of a bot, since the\nsetup and teardown takes much longer than that.\n\nSplit by duration instead. With the current shard counts every Mac\nsubshard comes out near 12 minutes, Linux near 13, Windows near 15.\n\nFixes #185013 (second option).\nI\u0027d like to move more of the stand-alone tool tests from the devicelab\ninto this shard (example https://github.com/flutter/flutter/pull/195609)\nto preserve Macs in the CI pool so this balancing will let us add more\nwithout thinking too hard about it.\n\n### Where do these numbers come from?\n\nThe shard already runs `dart test` with `--file-reporter\u003djson`\n(`collectMetrics: true`) and `runDartTest` uploads every test result,\nwith its duration, to LUCI ResultDB (this was news to me).\n\nThe new `update_tool_integration_test_durations` reads those back. It\nasks Buildbucket for the `tool_integration_tests` builders and their\nrecent successful builds, then sums per-test durations by test file. No\nauth is needed to run this script. It only writes files present in the\ntree. Files CI hasn\u0027t run yet keep a hand-entered value or get the host\nmedian.\n\nA new test in dev/bots/test (runs in `framework_tests_misc` on all\nhosts) fails when the json and the files in `integration.shard`\ndisagree. Adding a test file without a json entry gives:\n```\nmacos lists exactly the files in integration.shard [E]\n  Not in \"macos\" of dev/bots/tool_integration_test_durations.json:\n    test/integration.shard/my_new_feature_test.dart\n  Either run:\n    dart dev/bots/update_tool_integration_test_durations.dart\n  or edit dev/bots/tool_integration_test_durations.json by hand. Each host needs an entry; use the\n  test\u0027s wall time in seconds, or 0 on hosts where it does not run.\n```\nDeleted or renamed files get the matching \"in the JSON but not in the\ntree\" message.\n\nA wrong number only affects balance. A missing or unparseable json fails\nthe shard and points at the script.\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 in-code documentation (doc comments with\n`///`).\n- [x] If this PR introduces a new feature or capability, I created and\nlinked a website documentation issue or PR in [flutter/website] (or\nverified none is needed).\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/CONTRIBUTING.ai.md\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[flutter/website]: https://github.com/flutter/website\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": "85002f182f6c19f4f5d80ba0bfebf4919732746a",
      "old_mode": 33188,
      "old_path": "dev/bots/test.dart",
      "new_id": "491b6cfbc582ae3ebbc5be551e987f63137bdec7",
      "new_mode": 33188,
      "new_path": "dev/bots/test.dart"
    },
    {
      "type": "modify",
      "old_id": "01ebe6688299b34c325bbeeb7d27f9036c0b0ddb",
      "old_mode": 33188,
      "old_path": "dev/bots/test/test_test.dart",
      "new_id": "f685590271751efac403c0814eac1cabbfec34fc",
      "new_mode": 33188,
      "new_path": "dev/bots/test/test_test.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e5b40e89c046581b74989e2ad8c6ddb59318c3c3",
      "new_mode": 33188,
      "new_path": "dev/bots/test/tool_integration_test_durations_test.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e9cee9da71f9080214513b49ac88aacbe8e222ee",
      "new_mode": 33188,
      "new_path": "dev/bots/tool_integration_test_durations.json"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "39ae99722ee39c4ffb47deeef3b5b0495962acea",
      "new_mode": 33188,
      "new_path": "dev/bots/update_tool_integration_test_durations.dart"
    },
    {
      "type": "modify",
      "old_id": "5442f6709203fcad3a2d78d8b7f246d8d05fc464",
      "old_mode": 33188,
      "old_path": "dev/bots/utils.dart",
      "new_id": "a1192173847408e6fe1f15429759f02359819d23",
      "new_mode": 33188,
      "new_path": "dev/bots/utils.dart"
    }
  ]
}
