Show the backlog of build asks per language and kind: waiting, held by a node, and the oldest waiting ask's age (issue 1887 A8a)

This commit is contained in:
2026-10-23 16:14:00 +02:00
parent a8ba5c2fd5
commit 79ef768ea4
9 changed files with 361 additions and 2 deletions
@@ -171,7 +171,8 @@ func TestWatchmanWhole(t *testing.T) { // 1135/AC8
askSubject, _ := delivery.AskSubject(delivery.AskGo, delivery.AskCheck)
putAsk := func(id string) {
t.Helper()
body, err := json.Marshal(delivery.StepAsk{V: delivery.StepAskVersion, ID: id, Kind: delivery.AskCheck, Language: delivery.AskGo, Asker: "mesh-delivery-checker", At: time.Now().UTC()})
body, err := delivery.EncodeStepAsk(delivery.StepAsk{ID: id, Kind: delivery.AskCheck, Language: delivery.AskGo, Asker: "mesh-delivery-checker", At: time.Now().UTC(),
Check: &delivery.CheckJob{Fetch: map[string]any{"repository": "novox/x", "commit": "0123456789abcdef0123456789abcdef01234567"}, Levels: []string{delivery.LevelUnit}}})
if err != nil {
t.Fatal(err)
}