)]}'
{
  "commit": "5d1bf6ab597d1ebfc4284bcb7df6648c17535464",
  "tree": "1f57a604f9f3e9420e8d7bde27d8ae5fed31ea98",
  "parents": [
    "275facf8c7a5f3dc826e27e75a6122226acd5694"
  ],
  "author": {
    "name": "Jan Schär",
    "email": "jan@monogon.tech",
    "time": "Tue Nov 12 13:34:40 2024 +0100"
  },
  "committer": {
    "name": "Jan Schär",
    "email": "jan@monogon.tech",
    "time": "Tue Nov 12 13:14:50 2024 +0000"
  },
  "message": "build/ci: add bazel mod tidy step\n\nRunning `bazel mod tidy` on the current main branch causes a change in\nbuild/bazel/rust.MODULE.bazel. If `bazel run //:go -- mod tidy` changes\ngo.mod, it will also also run `bazel mod tidy`, which means that this\nwill eventually be noticed in a later unrelated change. But it is better\nif this is noticed and fixed immediately, so I added `bazel mod tidy` to\nthe steps run by CI. It looks like we then don\u0027t need `bazel mod deps`\nanymore.\n\nI also moved the git status step to the post always block, such that it\nis run even if one of the previous steps fails. For example,\n`bazel run //:gazelle -- update` can fail if a change to\nMODULE.bazel.lock is necessary. This should make it easier to understand\nwhy the pipeline failed, because you can then still see which files have\nchanged, and the \"Unclean working directory\" message is printed.\nI tested that this works, and that the pipeline still fails if a step\nin the always block fails.\n\nChange-Id: I05e3f1a5d9e45ba16058cc6758b0acb106458cae\nReviewed-on: https://review.monogon.dev/c/monogon/+/3609\nTested-by: Jenkins CI\nReviewed-by: Tim Windelschmidt \u003ctim@monogon.tech\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "59b2463928a74d54e967cf3408cae5e49c00c9f3",
      "old_mode": 33188,
      "old_path": "MODULE.bazel.lock",
      "new_id": "203a352458031a0bb62cecf48062d4cfd37e66aa",
      "new_mode": 33188,
      "new_path": "MODULE.bazel.lock"
    },
    {
      "type": "modify",
      "old_id": "eeedb06597051e806d265a0c8e4daec17534ae0b",
      "old_mode": 33188,
      "old_path": "build/bazel/rust.MODULE.bazel",
      "new_id": "4d29efe0737e967f4ff24843074fca7f12fc8bce",
      "new_mode": 33188,
      "new_path": "build/bazel/rust.MODULE.bazel"
    },
    {
      "type": "modify",
      "old_id": "3b9e719502618ff2982c883d80e163e593a4d28f",
      "old_mode": 33188,
      "old_path": "build/ci/jenkins-presubmit.groovy",
      "new_id": "4d85229121d25c8bc8c8663adf06f0b0f9a00957",
      "new_mode": 33188,
      "new_path": "build/ci/jenkins-presubmit.groovy"
    }
  ]
}
