)]}'
{
  "commit": "db1a8456167249f95b854a1cd24c6b553d0f1567",
  "tree": "ed599e17c3077e534a616ddd01ed40e3fcc5aaa9",
  "parents": [
    "338f44af3c92ef665bf740a8127a2d69c872b52a"
  ],
  "author": {
    "name": "Lily Chen",
    "email": "chlily@google.com",
    "time": "Wed Oct 15 17:20:50 2025 -0400"
  },
  "committer": {
    "name": "Boringssl LUCI CQ",
    "email": "boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Wed Oct 15 14:35:13 2025 -0700"
  },
  "message": "Add a PRESUBMIT.py script to check pregenerated files\n\nThis adds a PRESUBMIT.py script that calls the existing go script to\ncheck pregenerated files. The goal is to catch errors due to\nmissing/out-of-date pregenerated files earlier, upon commit or upload.\nThis works with the presubmit API provided by depot_tools, and will only\nhelp you if you use depot_tools to manage local boringssl changes via\n`git cl upload`.\n\n(We already run the pregenerate script on CQ via the boringssl.py\nrecipe. If we had a dedicated builder to run PRESUBMIT.py files on\nboringssl CQ via the presubmit recipe (which we don\u0027t yet), this script\nwould also help catch the errors on dry run even earlier, even for folks\nnot using depot_tools.)\n\n\nOutput looks something like this:\n\nRunning presubmit commit checks on branch my-branch-name ...\n** Presubmit ERRORS: 1 **\nFound out-of-date generated files. Run `go run ./util/pregenerate` to update them.\n  Error in file \"gen/crypto/chacha-armv4-linux.S\": missing file\n  Error in file \"gen/crypto/aes128gcmsiv-x86_64-linux.S\": file out of date\n  Error: some files had errors\n  exit status 1\n\nPresubmit checks took 1.7s to calculate.\nThere were presubmit errors.\nWas the presubmit check useful? If not, run \"git cl presubmit -v\"\nto figure out which PRESUBMIT.py was run, then run \"git blame\"\non the file to figure out who to ask for help.\n\nChange-Id: Iad268831ad7353eb15c796906b3f73c12ab8cf80\nReviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/82867\nAuto-Submit: Lily Chen \u003cchlily@google.com\u003e\nCommit-Queue: Lily Chen \u003cchlily@google.com\u003e\nReviewed-by: David Benjamin \u003cdavidben@google.com\u003e\nCommit-Queue: David Benjamin \u003cdavidben@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "4f13a4e9f637957c846d77ccc6d54089f5ebb179",
      "new_mode": 33188,
      "new_path": "PRESUBMIT.py"
    }
  ]
}
