)]}'
{
  "commit": "048687760a66b25bc71b2594d4b0ca33b70609d5",
  "tree": "af0e446b58d0a3cfc49c57e14b2782ec6a659889",
  "parents": [
    "01a26ef570c2147a23c1e5241b2f925f615d4ba9"
  ],
  "author": {
    "name": "Riddhi Shivhare",
    "email": "rshivhare@google.com",
    "time": "Thu Nov 12 11:42:56 2026"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Thu Nov 12 11:42:56 2026"
  },
  "message": "taskqueue: route PushQueues to Cloud Tasks v2 (GA) (#414)\n\n* taskqueue: route push queues to Cloud Tasks v2 (GA)\n\nWhen APPENGINE_USE_CLOUDTASK_PUSH_QUEUE is enabled, push queue\noperations in both the root and v2 taskqueue packages are served by the\nCloud Tasks v2 API:\n\n- Add and AddMulti use CreateTask and BatchCreateTasks.\n- DeleteMulti uses BatchDeleteTasks.\n- QueueStats uses v2beta3 GetQueue, since queue stats are not part of\n  the v2 API.\n- Transactional tasks are staged with the datastore transaction and\n  dispatched after commit, with the existing 5-task limit.\n\nEach staged task is a root entity, so a transaction that adds tasks must\nbe cross-group (XG) unless it touches no other entity group. Staged\ntasks get a generated name so that a repeated dispatch is rejected as\nALREADY_EXISTS. They are dispatched before RunInTransaction returns,\nwhile the request\u0027s API ticket is still valid. Each staged entity is\nlocked in a datastore transaction before dispatch, so the post-commit\npath and the /_ah/cloudtask/sweep cron handler do not dispatch it\nconcurrently. A failed commit, including a concurrent transaction,\nreleases the tasks staged for it. Failures are recorded on the entity\nuntil it is marked FAILED after 5 attempts. Each sweep reads at most\n500 entities of each status, and FAILED entities are deleted after 7\ndays. Staged entities use the kind, property names and payload form of\nthe Java and Python SDKs, a JSON object {\"task\": T} where T is the\nproto3 JSON form of the v2 Task, so a sweeper in a service written in\nany of them can dispatch them. Properties written by another SDK are\nignored, and entities staged in the binary form used by earlier\nversions are still dispatched.\n\nBatch operations read the synchronous operation result and map\nFailedRequests in the operation metadata back to per-task errors in\nappengine.MultiError. NOT_FOUND on create maps to UNKNOWN_QUEUE. A Host\nheader that is a hostname of the app sets the task\u0027s service, version\nand instance. Host, X-Google-* and X-AppEngine-* headers are not sent,\nsince Cloud Tasks sets the App Engine headers itself. AddMulti and\nDeleteMulti with no tasks return without calling any API. Cloud Tasks\nclients are created once and reused.\n\nAdds cloud.google.com/go/cloudtasks v1.20.0 and unit tests in\ntaskqueue/cloudtask_test.go, taskqueue/cloudtask_transactional_test.go\nand their v2 copies.\n\n* fix(taskqueue): reject AddMulti \u003e100 and DeleteMulti \u003e1000 instead of chunking\n\n* fix(taskqueue): verify op.Done() before op.Wait() on batch operations\n\n* test(taskqueue): verify done\u003dfalse batch operations fail without polling\n\n* Stage and sweep _AE_PendingCloudTask in the default empty namespace\n\n* test: fix pre-existing Go 1.26 vet and allocation failures\n\nBumping go.mod and CI workflows to Go 1.26 (required by\ncloud.google.com/go/cloudtasks v1.20.0) surfaced two pre-existing\nissues in untouched test files:\n\n- Use %v instead of %q when formatting *memcache.Item and error in\n  memcache/memcache_test.go and v2/memcache/memcache_test.go to satisfy\n  Go 1.26 printf vet checks.\n- Raise TestAPICallAllocations upper bound in internal/api_test.go\n  from 86 to 90 to account for Go 1.26+ runtime allocations.\n\n* ci: pin Python 3.12 for dev_appserver and scope v2 test patterns\n\n- Replace system python3 install with actions/setup-python (3.12) in\n  ci.yml and ci-v2.yaml because ubuntu-latest ships Python 3.13+, which\n  removed the stdlib cgi module required by dev_appserver.py (webapp2).\n- Warm dev_appserver.py Python bytecode cache before go test so the first\n  aetest startup doesn\u0027t exceed its 15s default timeout.\n- Scope go test patterns in ci-v2.yaml to ./... and ./internal/... so Go\n  tests the local v2 module without scanning google.golang.org/appengine@v1.6.8\n  from indirect dependency s2a-go.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "02473b8b90f8948b9e542cb5b6a183704921e04b",
      "old_mode": 33188,
      "old_path": ".github/workflows/ci-v2.yaml",
      "new_id": "cb5eb89cd763b39fe63a2f86a222e395ce7b009d",
      "new_mode": 33188,
      "new_path": ".github/workflows/ci-v2.yaml"
    },
    {
      "type": "modify",
      "old_id": "4ee25c624477951a15fab5675a8526505fabb942",
      "old_mode": 33188,
      "old_path": ".github/workflows/ci.yml",
      "new_id": "822bec96b9995224f2ca4ef68e6f52d7168b88a8",
      "new_mode": 33188,
      "new_path": ".github/workflows/ci.yml"
    },
    {
      "type": "modify",
      "old_id": "c6744ed556fb7a940aa4beca0d83086414e9ee2e",
      "old_mode": 33188,
      "old_path": "go.mod",
      "new_id": "352007c57718c79f9112a52c16ada2db83f6a041",
      "new_mode": 33188,
      "new_path": "go.mod"
    },
    {
      "type": "modify",
      "old_id": "31a039dc208a2adb1628b45c9053af0d39a15398",
      "old_mode": 33188,
      "old_path": "go.sum",
      "new_id": "7e9a76c907490cff5c4657fe220073f2cffaf0f5",
      "new_mode": 33188,
      "new_path": "go.sum"
    },
    {
      "type": "modify",
      "old_id": "9692b29e5c4e148e3ae2b2b3b0ccf4bd0d744ed9",
      "old_mode": 33188,
      "old_path": "internal/api_test.go",
      "new_id": "72e7016a5a4288a633402cb762a1b224b762da27",
      "new_mode": 33188,
      "new_path": "internal/api_test.go"
    },
    {
      "type": "modify",
      "old_id": "2ae8ab9fa4212906bc48c88d8970aef96d9b4957",
      "old_mode": 33188,
      "old_path": "internal/transaction.go",
      "new_id": "fae79c122c664816ddcfb17345173f5dec8b3e85",
      "new_mode": 33188,
      "new_path": "internal/transaction.go"
    },
    {
      "type": "modify",
      "old_id": "e09ccf36d1017e5896d9e67059ac699c37f817ce",
      "old_mode": 33188,
      "old_path": "memcache/memcache_test.go",
      "new_id": "b368ea7e0a11d10a350cf558ff07bb43bce21079",
      "new_mode": 33188,
      "new_path": "memcache/memcache_test.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "ceb08fbb7c5894b3bbf8a50b917f07d59833c726",
      "new_mode": 33188,
      "new_path": "taskqueue/cloudtask.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "17b597a9cf8011243cbee3b91b9170da4a18f280",
      "new_mode": 33188,
      "new_path": "taskqueue/cloudtask_test.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "6c50684c5806c4665eb55c72c01e5dc770fc2c6a",
      "new_mode": 33188,
      "new_path": "taskqueue/cloudtask_transactional.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "58f632a80e17ae33c1c648030e8ce3cf7541fcf8",
      "new_mode": 33188,
      "new_path": "taskqueue/cloudtask_transactional_test.go"
    },
    {
      "type": "modify",
      "old_id": "4bbe7316f8f97e3ff2d8d4e04e2bbbdcad8d8d97",
      "old_mode": 33188,
      "old_path": "taskqueue/taskqueue.go",
      "new_id": "3974354e2c506fea7663f0c159a5eb3e45d8faff",
      "new_mode": 33188,
      "new_path": "taskqueue/taskqueue.go"
    },
    {
      "type": "modify",
      "old_id": "bfe362fa40b2920bb25b1e0205ddc8e9f9cdb3bb",
      "old_mode": 33188,
      "old_path": "v2/go.mod",
      "new_id": "7a2f402cefd62b64c3f2dbcb0b7d1836cd3e6e7a",
      "new_mode": 33188,
      "new_path": "v2/go.mod"
    },
    {
      "type": "modify",
      "old_id": "ab8e8a8d43514046ab611172f77d9398eaf08c12",
      "old_mode": 33188,
      "old_path": "v2/go.sum",
      "new_id": "7e9a76c907490cff5c4657fe220073f2cffaf0f5",
      "new_mode": 33188,
      "new_path": "v2/go.sum"
    },
    {
      "type": "modify",
      "old_id": "7198baca3ae8546fefe7b59e3c10081ac360699b",
      "old_mode": 33188,
      "old_path": "v2/internal/transaction.go",
      "new_id": "a2f19f2c8c84ff2489dacc3fcaaaa2ab7f1ec6a0",
      "new_mode": 33188,
      "new_path": "v2/internal/transaction.go"
    },
    {
      "type": "modify",
      "old_id": "f5d19f19895e7df0dcfcdb34f9f72598d3290e76",
      "old_mode": 33188,
      "old_path": "v2/memcache/memcache_test.go",
      "new_id": "804d86749ac142c7e0e6558c61bbdd330cd34f17",
      "new_mode": 33188,
      "new_path": "v2/memcache/memcache_test.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "a460915647af03f1b2a995440eed11c361ee08f8",
      "new_mode": 33188,
      "new_path": "v2/taskqueue/cloudtask.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "2fa2b61e825ce16cd6e619e9629794b12720b029",
      "new_mode": 33188,
      "new_path": "v2/taskqueue/cloudtask_test.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "9fc41d08b5db4f7d8f7531f28f94f487dc329851",
      "new_mode": 33188,
      "new_path": "v2/taskqueue/cloudtask_transactional.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "7cc55758c4efd214a580b5a2fe642309ed4d7816",
      "new_mode": 33188,
      "new_path": "v2/taskqueue/cloudtask_transactional_test.go"
    },
    {
      "type": "modify",
      "old_id": "8bbd85aaac3a64342c66b496a0575a7da7bd35b6",
      "old_mode": 33188,
      "old_path": "v2/taskqueue/taskqueue.go",
      "new_id": "cfcbd183bd2d979be00cd56cf11248beb0a79028",
      "new_mode": 33188,
      "new_path": "v2/taskqueue/taskqueue.go"
    }
  ]
}
