)]}'
{
  "commit": "a1cac6acda7cb724b2e511758a64abc681238f64",
  "tree": "8b93f372cc6c1d3988bf78da89ad6cedd003b27e",
  "parents": [
    "3d438d93de1642c681741dc62ede01f561303b2e"
  ],
  "author": {
    "name": "Xùdōng Yáng",
    "email": "wyverald@gmail.com",
    "time": "Wed Oct 21 15:59:16 2026 -0400"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Oct 21 15:59:16 2026 -0400"
  },
  "message": "Skip cloning the repo in the first step of Google Bazel Presubmit, take 2 (#2938)\n\nReland of https://github.com/bazelbuild/continuous-integration/pull/2930\n\n### Original change description\n\nBy default, all \"command\" steps in a Buildkite job will clone the git\nrepo associated with the Buildkite pipeline. We can skip this checkout\nby setting `checkout: skip: true` in the step config.\n\nWe do this for the first step of Google Bazel Presubmit, which doesn\u0027t\nactually need more than the presubmit.yml file (except for checking if\nmodified files include sensitive yaml files -- which we now disable with\nan environment variable). To get the presubmit.yml, we directly fetch it\nfrom googlesource, though it\u0027s base64-encoded -- so we decode it.\n\n### Difference from\nhttps://github.com/bazelbuild/continuous-integration/pull/2930\n\nIt turns out `checkout: skip: true` is implemented as setting the\nenvironment variable `BUILDKITE_SKIP_CHECKOUT`, which propagates to all\nprinted steps. So the fix is simply to print all steps in bazelci.py\nwith `checkout: skip: false` by default. Conveniently, we can also skip\nthe checkout for the very last step (\"print shard summary\").\n\nAlso, the printed steps inherit the `--file_config` flag from the first\nstep, so we actually have to use `.bazelci/presubmit.yml` instead of\njust `presubmit.yml`.\n\n### Tested\n\nbazel-testing run:\nhttps://buildkite.com/bazel-testing/bazel-bazel-github-presubmit/builds/394/list?sid\u003d01a120c8-0420-4491-8245-685cfdbbcadf\u0026tab\u003doutput",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3b8385ea2fde267a70c84b23fc7e4b453c878e45",
      "old_mode": 33261,
      "old_path": "buildkite/bazelci.py",
      "new_id": "39d30a3edf054ef9883d7474286c77937cbcd92b",
      "new_mode": 33261,
      "new_path": "buildkite/bazelci.py"
    },
    {
      "type": "modify",
      "old_id": "d766125ac7ab4ec2ea6bf6dd5fba483819a35ae6",
      "old_mode": 33261,
      "old_path": "buildkite/bazelci_test.py",
      "new_id": "4dc1e4f27acdbb0dcdc19ad0e45b45ac47c30323",
      "new_mode": 33261,
      "new_path": "buildkite/bazelci_test.py"
    },
    {
      "type": "modify",
      "old_id": "74702f1176b905f60ecd3726742236611817639c",
      "old_mode": 33188,
      "old_path": "buildkite/terraform/bazel/pipeline.yml.tpl",
      "new_id": "b651729203b56cdef1a7b15f0c906b7850b4f583",
      "new_mode": 33188,
      "new_path": "buildkite/terraform/bazel/pipeline.yml.tpl"
    },
    {
      "type": "modify",
      "old_id": "b4c0a3744bacf5ee630f87ff27982868e07940e9",
      "old_mode": 33188,
      "old_path": "buildkite/terraform/bazel/pipelines_bazel.tf",
      "new_id": "0f50803c018c3c8bae8397fc0dfcc5ee4d07dde0",
      "new_mode": 33188,
      "new_path": "buildkite/terraform/bazel/pipelines_bazel.tf"
    }
  ]
}
