)]}'
{
  "commit": "f375a3346870e7a92fec9c2dc543de7dfba7608a",
  "tree": "7359589daf788cdc5e9d978e7d31ab7fd01149da",
  "parents": [
    "fbc045fcad87469d9115d4d4ea1f66d92ec7cc0f"
  ],
  "author": {
    "name": "Anthony Rocha",
    "email": "anthony.rocha@amd.com",
    "time": "Sun Nov 15 00:41:18 2026 -0800"
  },
  "committer": {
    "name": "Anthony Rocha",
    "email": "anthony.rocha@amd.com",
    "time": "Sun Nov 15 01:19:27 2026 -0800"
  },
  "message": "util/service: wait for the deadline when every channel is deferred\n\nThe kernel rejects object_wait on a WaitGroup with no members\n(InvalidArgument). A ServiceLoop whose channels were all deferred and which had\nno added source therefore failed its next call to `next`, so a server with a\nsingle deferred channel could not wait for its own deadline to complete the\nreply: its loop returned an error and the server exited.\n\n`next` now notices that no channel is serving and no source was added, and\nwaits on a parked channel\u0027s own handle for Signals::ERROR (never raised on a\nhandler) until the deadline, then returns Event::Deadline. With Instant::MAX\nnothing could ever wake the loop, so it returns FailedPrecondition instead of\nhanging. The new path runs exactly when the WaitGroup is empty, which is exactly\nwhen the old code failed, so a loop that worked before behaves the same.\n\nuserspace::time::sleep_until is not used: it waits on handle 0 assuming that is\nthe process, but in an app handle 0 is the first declared object.\n\nTests: a host test for the helper that decides this, and a QEMU regression test,\nutil_service/deferred_single_channel, with a one-channel server that defers each\nrequest for 50 ms and a client that makes two blocking calls. Without the fix\nthe server\u0027s `next` returns InvalidArgument, the server exits and the client\u0027s\ncall times out; with it the test passes. The source counter uses saturating_add.\n./pw presubmit passes.\n\nCo-Authored-By: Claude Sonnet 5.5 \u003cnoreply@anthropic.com\u003e\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "4439abccb807091b7f1a5029594a32005e841d9e",
      "new_mode": 33188,
      "new_path": "target/ast10x0/tests/util_service/deferred_single_channel/BUILD.bazel"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "bacd4d782cc383d1486489503c4a40485ba93d8b",
      "new_mode": 33188,
      "new_path": "target/ast10x0/tests/util_service/deferred_single_channel/client_main.rs"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "b9086f9de201a977bd8a1cf017d3c9e7ab091932",
      "new_mode": 33188,
      "new_path": "target/ast10x0/tests/util_service/deferred_single_channel/server_main.rs"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "4ad3ab6f21e2bb3fdbf66bd15ee83fb294127842",
      "new_mode": 33188,
      "new_path": "target/ast10x0/tests/util_service/deferred_single_channel/system.json5"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "f65b9b2c4d79f82d27543a4cb1058daac02bfb29",
      "new_mode": 33188,
      "new_path": "target/ast10x0/tests/util_service/deferred_single_channel/target.rs"
    },
    {
      "type": "modify",
      "old_id": "8a82c9aa68d16993c3d5cf96be3673041943d56b",
      "old_mode": 33188,
      "old_path": "util/service/channels.rs",
      "new_id": "63c17d0dc3b4bf72d5fd54fe1bf1abefd3229dd2",
      "new_mode": 33188,
      "new_path": "util/service/channels.rs"
    },
    {
      "type": "modify",
      "old_id": "48f8837399f6056f524b7573a23247426df59b9a",
      "old_mode": 33188,
      "old_path": "util/service/lib.rs",
      "new_id": "1620b518e88f56c49c65e6ace33983f6a4bf19f4",
      "new_mode": 33188,
      "new_path": "util/service/lib.rs"
    }
  ]
}
