A webhook for one test run
Three lifelines: planner, test-runner and the planner webhook receiver on port 41250. The planner sends SendMessage with returnImmediately and a push configuration, and gets back the task in TASK_STATE_SUBMITTED at once. test-runner then posts eight notifications to the receiver: the working status with an Authorization Bearer header, five artifactUpdate chunks of test-log.txt, the summary.json artifact, and the completed status. The receiver answers each POST with 204 No Content. After the task has finished, the planner lists, reads, and deletes the push configuration, whose server-assigned id is 92c697ef.
planner
client agent
test-runner
localhost:41241
webhook receiver
:41250/a2a-events
1
SendMessage
returnImmediately, webhook config
2
task d7d3dceb SUBMITTED
the call returns at once
3
POST statusUpdate WORKING
Authorization: Bearer hook_secret_91d2
4
5 POSTs ยท artifactUpdate
five chunks of test-log.txt
5
POST artifactUpdate
summary.json, a data part
6
POST statusUpdate COMPLETED
1 failed, 11 passed
7
204 No Content
the answer to every POST
8
ListTaskPushNotificationConfigs
sent after the task finished
9
one config, id 92c697ef
the id the server assigned
10
GetTaskPushNotificationConfig
taskId and id
11
the same config
12
DeleteTaskPushNotificationConfig
13
result: {}
no more POSTs for this config