)]}'
{
  "commit": "d72f9c8aea6817cdf1ca0ac10887f328de7f3da2",
  "tree": "73d2b80cb8ee41083f6e29c651cb2da7c9639211",
  "parents": [
    "5fddfab2d22270b0b4608bbb20e4ebb65c22af24"
  ],
  "author": {
    "name": "Dillon Sharlet",
    "email": "dsharlet@google.com",
    "time": "Tue Mar 31 14:21:41 2026"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Tue Mar 31 14:22:05 2026"
  },
  "message": "Add `--gtest_shard_index` and `--gtest_total_shards` command line arguments.\n\nThis uses the environment variables as the default value for the command line argument, so this is not a breaking change to most reasonable existing use cases. This *is* a breaking change if a process expects changes to the sharding environment variables to be visible after parsing the command line arguments.\n\nThe motivation for this is that some environments do not support environment variables, which prevents the usage of test sharding. These environments also run on simulators and other slow hardware, where sharding is especially important. I\u0027ve tried a few other things, like hacking together a fake implementation of `getenv`/`setenv`, but this is a pretty unreliable approach on the platform in question.\n\nThis also seems like an improvement in consistency to me. Currently, other test selection mechanisms (e.g. filtering, shuffling, repeat), `use arguments (or at least have command line arguments as an option), while as far as I can tell, sharding is the only mechanism which can *only* be specified with environment variables.\n\nPiperOrigin-RevId: 892324928\nChange-Id: I5cf814e46e16072e7c160e54c426b02300fe712b\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4218adebde20d8a6082e353563e9d7faa502d675",
      "old_mode": 33188,
      "old_path": "googletest/include/gtest/gtest.h",
      "new_id": "f4a91ee44d0aeb7022eb99dacb42ce68033a5c41",
      "new_mode": 33188,
      "new_path": "googletest/include/gtest/gtest.h"
    },
    {
      "type": "modify",
      "old_id": "6a39b93be132e2ac2433d67147770718dd4fe2bf",
      "old_mode": 33188,
      "old_path": "googletest/src/gtest-internal-inl.h",
      "new_id": "2ebfcd39ef5645e25d9ce7d841aa75e7057d39c0",
      "new_mode": 33188,
      "new_path": "googletest/src/gtest-internal-inl.h"
    },
    {
      "type": "modify",
      "old_id": "8a3801807e7dfafa727f22be899388a1bf7f0bdf",
      "old_mode": 33188,
      "old_path": "googletest/src/gtest.cc",
      "new_id": "ac90786a091b512673abef8ab8fc9e323112862d",
      "new_mode": 33188,
      "new_path": "googletest/src/gtest.cc"
    },
    {
      "type": "modify",
      "old_id": "5304c3ad9254041a14e5fa1a99be30892b73a313",
      "old_mode": 33188,
      "old_path": "googletest/test/gtest_unittest.cc",
      "new_id": "8ce64d3860709b4a120b670b262452fd7509ae72",
      "new_mode": 33188,
      "new_path": "googletest/test/gtest_unittest.cc"
    }
  ]
}
