)]}'
{
  "commit": "081c0affd196fb5e77b6190b0bedc31babf6a619",
  "tree": "afc52b026dcc827d7648634f0cb7f39fdbc0ec05",
  "parents": [
    "cb960e61e95c69207a1038d36829e67c90202b43"
  ],
  "author": {
    "name": "Luca Milanesio",
    "email": "luca.milanesio@gmail.com",
    "time": "Tue Dec 16 23:41:30 2025 +0000"
  },
  "committer": {
    "name": "Luca Milanesio",
    "email": "luca.milanesio@gmail.com",
    "time": "Wed Dec 17 00:07:33 2025 -0800"
  },
  "message": "Throw HealthCheckFailedException upon failures or timeouts\n\nThrow a proper exception whenever a health check fails or does not\ncomplete within the expected time limit.\n\nPreviously, the check was returning a 500 status code with a JSON\npayload, which Gerrit Response API tolerated; however, since the\nintroduction of Ib1a259f9c05, the response cannot be a 500.\n\nAll APIs are expected to throw a proper exception to notify that the\nexecution has failed. To keep the response JSON payload, the healthcheck\nplugin needs to register an exception hook that recognises its\nHealthCheckFailedException and properly format the JSON\npayload.\n\nBug: Issue 469458273\nChange-Id: Ic6aca61070457b79c52579284a7931bb6d2963b5\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "81a3dfcda50dc3ade1f3765a5729fb2bf208a5a8",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/healthcheck/HealthCheckExceptionHook.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "ee917eada97019333871e93149bafb83c519e505",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/healthcheck/HealthCheckFailedException.java"
    },
    {
      "type": "modify",
      "old_id": "54cd5a0d0d3c2b93c3c60fe1b6dc095ca2489843",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/healthcheck/Module.java",
      "new_id": "d13108a6266236481fea1c6cbcf840c899e96603",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/healthcheck/Module.java"
    },
    {
      "type": "modify",
      "old_id": "58ab01b06c838ec8674ab6e2482b8da652527b02",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/healthcheck/api/HealthCheckStatusEndpoint.java",
      "new_id": "fe73cc5f6aaf2c5e3c9e0aa545da18ed4e22dc61",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/healthcheck/api/HealthCheckStatusEndpoint.java"
    },
    {
      "type": "modify",
      "old_id": "1b52d4ccdfad7822fe4e14bbd1c3b017482ad2ef",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/healthcheck/filter/HealthCheckStatusFilter.java",
      "new_id": "994da242119b8ec30106e01b4d245d1838e6eefd",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/healthcheck/filter/HealthCheckStatusFilter.java"
    },
    {
      "type": "modify",
      "old_id": "af09d0714aae5810d3a6f6daf2cbb846190b7f20",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/healthcheck/HealthCheckStatusEndpointTest.java",
      "new_id": "4185a21d26241f7d6e24b9eed2a690ecb3b416a0",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/healthcheck/HealthCheckStatusEndpointTest.java"
    },
    {
      "type": "modify",
      "old_id": "9d44f2128149f5ca3dfbcd1dceda7f231149bb19",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/healthcheck/filter/HealthCheckStatusFilterTest.java",
      "new_id": "6dc606d3a6b5dc48da99499355d89a30ece7d434",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/healthcheck/filter/HealthCheckStatusFilterTest.java"
    }
  ]
}
