)]}'
{
  "commit": "cf3cdc146ec77d41a9e4c45643384d6b941f93bb",
  "tree": "07fa9f83221591d96b91722f6dad49b273070180",
  "parents": [
    "5b529ff6de0a789ac6aaa32d99ccc0e811e6a0b8"
  ],
  "author": {
    "name": "Richard Levasseur",
    "email": "rlevasseur@google.com",
    "time": "Tue Oct 10 21:41:47 2023 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Oct 11 04:41:47 2023 +0000"
  },
  "message": "test(bzlmod): Make some tests bzlmod compatible with Bazel@HEAD (#1482)\n\nA few tests weren\u0027t compatible with bzlmod, so would fail when it was\nenabled. The various causes and fixes are:\n\n* Under bzlmod, `runfiles.CurrentRepository()` returns the empty string\nfor the main repository. To fix, an environment variable is used to tell\nthe test whether bzlmod is enabled or not.\n\n* Accessing data files through `TEST_SRCDIR` directly is error-prone\nunder bzlmod because the directory name within runfiles changes from the\nworkspace name to `_main`. To fix, use the runfiles libraries, which\nknow how to map apparent repo names to the actual directory name. In the\nintegration tests, the runfiles library isn\u0027t available, so just check\nfor the `_main` directory instead.\n\nWork towards #1469",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "81422d37c32d4ece13a9557991c42618440b92be",
      "old_mode": 33188,
      "old_path": "examples/wheel/BUILD.bazel",
      "new_id": "ab4f3a3ef012cbce9af18378e04397e9c7ab3fa2",
      "new_mode": 33188,
      "new_path": "examples/wheel/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "671bd8ad8473adfb3e7b45d5637b417741d53033",
      "old_mode": 33188,
      "old_path": "examples/wheel/wheel_test.py",
      "new_id": "8c0f53e6ff1c0ddfcdded09664ccb36e095ba5ea",
      "new_mode": 33188,
      "new_path": "examples/wheel/wheel_test.py"
    },
    {
      "type": "modify",
      "old_id": "150e1a99df1c5324d4853386a28173074771867d",
      "old_mode": 33188,
      "old_path": "python/tests/toolchains/run_acceptance_test.py.tmpl",
      "new_id": "57480473805a4d7423a5d2a2dfcdc853e2f5bdb1",
      "new_mode": 33188,
      "new_path": "python/tests/toolchains/run_acceptance_test.py.tmpl"
    },
    {
      "type": "modify",
      "old_id": "d62e1792110f341c180cb2f865dd466784da15a9",
      "old_mode": 33188,
      "old_path": "tests/runfiles/BUILD.bazel",
      "new_id": "6193ee95f904d56ba8876843fc0709696376e29b",
      "new_mode": 33188,
      "new_path": "tests/runfiles/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "3a1f49201be23978812936789c0819a67721f9cd",
      "old_mode": 33188,
      "old_path": "tests/runfiles/runfiles_test.py",
      "new_id": "5cc95688dff216976bddba081ca56c763fbfd795",
      "new_mode": 33188,
      "new_path": "tests/runfiles/runfiles_test.py"
    }
  ]
}
