)]}'
{
  "commit": "7283cee49de09c16db21c3a854138d692775079e",
  "tree": "02c29ef3fd24b269c89f60e5259a0ee7ec391080",
  "parents": [
    "ffc70804987bf5c1ce32f8fee5bb54ad3da3e092"
  ],
  "author": {
    "name": "Geoffrey Martin-Noble",
    "email": "gcmn@google.com",
    "time": "Mon Jul 27 13:04:19 2020 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Jul 27 13:04:19 2020 -0700"
  },
  "message": "Avoid running docker builds as root (#2663)\n\nInstead of mounting the user\u0027s existing Bazel cache, create a fake home\r\ndirectory under the Kokoro root directory.\r\n\r\nThis is another attempt at https://github.com/google/iree/pull/2566\r\nwhich had to be rolled back for the Bazel integrations build because it\r\nmade it three times slower. It turns out the root cause there is that\r\nthe docker container volumes are by default mounted in /tmpfs which on\r\nKokoro is a local-ssd. The home directory, on the other hand, is a\r\npersistent SSD. The integrations job is running Bazel with 64 cores,\r\nwhich means it\u0027s IO bound. The difference turns out to be substantial.\r\n\r\nFixes https://github.com/google/iree/issues/2653\r\n\r\nTested:\r\nRan simulate_kokoro on the core build locally to confirm this doesn\u0027t\r\nbreak RBE cloud credentials.\r\nThe integrations presubmit on this PR takes 20 minutes, as before.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "19af9654fd06c3498f35d759e92df5a5ea983236",
      "old_mode": 33261,
      "old_path": "build_tools/kokoro/gcp_ubuntu/bazel/linux/x86/integrations/build_kokoro.sh",
      "new_id": "c35d897306e1e4a8cef923f99136d2f595ec1c3d",
      "new_mode": 33261,
      "new_path": "build_tools/kokoro/gcp_ubuntu/bazel/linux/x86/integrations/build_kokoro.sh"
    },
    {
      "type": "modify",
      "old_id": "fbc896fd5c391994f1e118dab3b319a7547f6ae6",
      "old_mode": 33188,
      "old_path": "build_tools/kokoro/gcp_ubuntu/docker_common.sh",
      "new_id": "d0b15dd543cb54810c922bc0d9268466b239fe2c",
      "new_mode": 33188,
      "new_path": "build_tools/kokoro/gcp_ubuntu/docker_common.sh"
    }
  ]
}
