)]}'
{
  "commit": "7a230fddd4db33bccc0ae99f46a91b48a668edbb",
  "tree": "966d18a5bf96ca93c2b9195ce15cc99bbb705023",
  "parents": [
    "8b5ed8aac2b25180fbfac0ff27ebe3998a61209a"
  ],
  "author": {
    "name": "Richard Levasseur",
    "email": "rlevasseur@google.com",
    "time": "Fri Jun 17 14:19:32 2022 -0700"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Fri Jun 17 14:20:50 2022 -0700"
  },
  "message": "Make Bazel tests compatible with Starlark implementation of Python rules\n\nSummary of changes:\n\n* Remove usage of Python rules where not necessary; the Python rules\n  were/are being used to test features that aren\u0027t specific to the Python\n  rules.\n* Use regex matching for failures instead of exact strings. The Starlark\n  rules have slightly different phrasing or orderings of elements that\n  don\u0027t affect behavior. This also makes the tests less brittle overall.\n* Disable attempting to use the Starlark implementation in all the tests\n  requiring Python 2 (e.g. srcs_version checking etc). The Starlark\n  implementation doesn\u0027t currently (and probably never will) support Python\n  2. https://github.com/bazelbuild/bazel/issues/15684 filed to track removal\n  of it in Bazel.\n* Disable attempting to use the Starlark implementation where toolchain\n  resolution is required. This will eventually be implemented, but isn\u0027t\n  is use at Google and otherwise blocks switching internally.\n* Tests verifying warnings are printed were removed; Starlark doesn\u0027t\n  provide a warning facility.\n* Stamping is disabled in various tests because, with the Starlark implementation,\n  it requires remote execution of actions, which some tests aren\u0027t setup for\n  (they never needed it previously). Rather than set this up, stamping was\n  disabled (affected tests don\u0027t require stamping anyways).\n\nPiperOrigin-RevId: 455695015\nChange-Id: I82822eff05b6c0a66e65f131c9e1c8784b1573ac\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "228da6740de82c60be7ac5221b4f8f70d3c1e6f7",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/rules/cpp/CcBinary.java",
      "new_id": "f826b849de65e5dfdd5cfd526bba1c3b95e8b422",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/rules/cpp/CcBinary.java"
    },
    {
      "type": "modify",
      "old_id": "5f1ec405a43cd775ac7bab9e2b1e61ab6dd66fd1",
      "old_mode": 33188,
      "old_path": "src/test/java/com/google/devtools/build/lib/rules/python/PyBaseConfiguredTargetTestBase.java",
      "new_id": "810853d84ee94bdc98e32d0e0e969f668d6e400e",
      "new_mode": 33188,
      "new_path": "src/test/java/com/google/devtools/build/lib/rules/python/PyBaseConfiguredTargetTestBase.java"
    },
    {
      "type": "modify",
      "old_id": "7afa8e11aadbdcf826449ce1c3958d537b266a0f",
      "old_mode": 33188,
      "old_path": "src/test/java/com/google/devtools/build/lib/rules/python/PyBinaryConfiguredTargetTest.java",
      "new_id": "4e2ea704941a5137f65333ec7cc9880ceebdd71b",
      "new_mode": 33188,
      "new_path": "src/test/java/com/google/devtools/build/lib/rules/python/PyBinaryConfiguredTargetTest.java"
    },
    {
      "type": "modify",
      "old_id": "d52bc388dd4de834304654e795c467a3e5333842",
      "old_mode": 33188,
      "old_path": "src/test/java/com/google/devtools/build/lib/rules/python/PyExecutableConfiguredTargetTestBase.java",
      "new_id": "c59bb897db8335551fb43e2ab4d2611ba106898a",
      "new_mode": 33188,
      "new_path": "src/test/java/com/google/devtools/build/lib/rules/python/PyExecutableConfiguredTargetTestBase.java"
    },
    {
      "type": "modify",
      "old_id": "d7ef07e0d32454a1ab68617a701101c849d88f42",
      "old_mode": 33188,
      "old_path": "src/test/java/com/google/devtools/build/lib/rules/python/PyLibraryConfiguredTargetTest.java",
      "new_id": "4e767a39995326ba4b99f7857168991a6a460520",
      "new_mode": 33188,
      "new_path": "src/test/java/com/google/devtools/build/lib/rules/python/PyLibraryConfiguredTargetTest.java"
    },
    {
      "type": "modify",
      "old_id": "a80db9474b6b799f74dfa081518b369c93848dc4",
      "old_mode": 33188,
      "old_path": "src/test/java/com/google/devtools/build/lib/rules/python/PythonSrcsVersionAspectTest.java",
      "new_id": "3ae0f09dbf8604bd130e21fd918e68e75fd6e95d",
      "new_mode": 33188,
      "new_path": "src/test/java/com/google/devtools/build/lib/rules/python/PythonSrcsVersionAspectTest.java"
    },
    {
      "type": "modify",
      "old_id": "8614eb3c3e35dc81547356b5e9bbb004ed705213",
      "old_mode": 33188,
      "old_path": "src/test/java/com/google/devtools/build/lib/rules/python/PythonStarlarkApiTest.java",
      "new_id": "d82059f4184ff115067800e10920dab9d5f37c4c",
      "new_mode": 33188,
      "new_path": "src/test/java/com/google/devtools/build/lib/rules/python/PythonStarlarkApiTest.java"
    },
    {
      "type": "modify",
      "old_id": "b8a9b1dcc3b531943fb5a0e6246e5ea46d33384b",
      "old_mode": 33188,
      "old_path": "src/test/java/com/google/devtools/build/lib/starlark/StarlarkRuleContextTest.java",
      "new_id": "0a3d510392ca2b11873f859322488d82a8857e94",
      "new_mode": 33188,
      "new_path": "src/test/java/com/google/devtools/build/lib/starlark/StarlarkRuleContextTest.java"
    },
    {
      "type": "modify",
      "old_id": "eee4a152550b87e7ce5b81e00350bda43f6c446b",
      "old_mode": 33261,
      "old_path": "src/test/shell/integration/aquery_test.sh",
      "new_id": "ba6f553883d4fc83f73ac2495ffa5e0485ffc91d",
      "new_mode": 33261,
      "new_path": "src/test/shell/integration/aquery_test.sh"
    },
    {
      "type": "modify",
      "old_id": "28e485ef0bb60aee8d3aefa85943606c9de9d2bd",
      "old_mode": 33261,
      "old_path": "src/test/shell/integration/modify_execution_info_test.sh",
      "new_id": "80c1d460be83ce9bfe467acd862639ca66748e53",
      "new_mode": 33261,
      "new_path": "src/test/shell/integration/modify_execution_info_test.sh"
    },
    {
      "type": "modify",
      "old_id": "734e20ade2c63785202be4fcdd8e7bb98d8e9c2d",
      "old_mode": 33261,
      "old_path": "src/test/shell/integration/python_stub_test.sh",
      "new_id": "42e16bedb2aa70741dac3d9b5f3231f6e3a270a8",
      "new_mode": 33261,
      "new_path": "src/test/shell/integration/python_stub_test.sh"
    },
    {
      "type": "modify",
      "old_id": "a8538be799969b4dc97fc412f3d038dbfae90d5b",
      "old_mode": 33261,
      "old_path": "src/test/shell/integration/python_test.sh",
      "new_id": "34b19b3350d28da9b4f9d3bc39458e2b1a4e2f22",
      "new_mode": 33261,
      "new_path": "src/test/shell/integration/python_test.sh"
    },
    {
      "type": "modify",
      "old_id": "16f2ec683fa69864a170f72f0055eced5c9b35d0",
      "old_mode": 33261,
      "old_path": "src/test/shell/integration/runfiles_test.sh",
      "new_id": "8138d61ae98b333dae68d99e4ac19ba8af8682b4",
      "new_mode": 33261,
      "new_path": "src/test/shell/integration/runfiles_test.sh"
    }
  ]
}
