Repository navigation
Done
Labels
effort/mediumEffort Mediumpriority/p0-criticalPriority P0: a release blocker or a critical defectscope/serviceThe long-running devops Service and its lanessource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/highValue High: the delivery of the item matters much
Description
Problem Description
The status row redeliver halts the roadmap Service, so each job of each repository stops. Two defects cause this.
redeliver_failed_deliveries(src/devops_cli/github/hook_redelivery.py) signs one App JWT and uses it for the list request and for each attempt of the round. The JWT is valid for 600 s at most (gidgethub.apps.get_jwt), and the session paces each write. A round that lasts longer gets HTTP 401, which the Service reads as a refused identity.- The deliveries of
/app/hook/deliveriesbelong to the App, but the row runs for each repository ofservice.reposwith a ledger of its own. Each repository asks for each redelivery again, which multiplies the requests and the length of each round.
Reproduction Steps
- Run the Service for 9 repositories while the App has about 30 failed deliveries.
- Wait 10 minutes.
Expected vs Actual Behavior
Expected: the App asks for each redelivery one time in a round, each request has a valid JWT, and one refused delivery does not stop the others.
Actual: each repository asks for each redelivery. About 600 s after the rounds start, GitHub answers HTTP 401, the Service writes service-halt.json, and no round starts again.
Environment Diagnostics
roadmap Service in the cluster, 2026-11-30 UTC. Evidence from Loki, Tempo and Prometheus.
Logs, Traces, or Terminal Output
- 19:09:20: 8 spans
service.row redeliverstart. A ninth starts at 19:10:18. - Each of the 9 spans ends with an error 600 s to 618 s after its start.
devops_cli_github_requests_total{row="redeliver"}: 9 GET with status 200, 110 POST with status 202, 9 POST with status 401.- 19:19:25:
redeliver: GitHub refused the session's token for POST /app/hook/deliveries/<id>/attempts (HTTP 401), then the identity halt. - 19:26: each of the 9 ledgers held the same 32 pending ids.
Refs #4560 (the row), #7911 (the 403 rate-limit class), #7920 (no cap and no page limit of the row).
Metadata
Metadata
Assignees
Labels
effort/mediumEffort Mediumpriority/p0-criticalPriority P0: a release blocker or a critical defectscope/serviceThe long-running devops Service and its lanessource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/highValue High: the delivery of the item matters much
Activity
dan-petty commentedon Nov 30, 2026
The Service halts and no round starts again, so all jobs of all repositories stop.dan-petty commentedon Nov 30, 2026
From the review of the fix of #7911. Offline tests with the fake GitHub API on the head of that fix, with the clock of the JWT moved forward:
redeliver_failed_deliveriesraisesGitHubUnauthenticatedError.GET.restcall is not enough.The fix of #7911 changes a 403 with a rate-limit message from a halt into up to 2 resends, each after 60 s or more. These waits add to the age of the JWT. A release that holds the fix of #7911 and not the fix of this issue can still halt the Service.
fix(service): read a 403 that names a rate limit as one (#7940)
devops-cli-service commentedon Nov 30, 2026
Released in v0.265.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.265.0
devops-cli-service commentedon Nov 30, 2026
Live since 2026-11-30 22:54 UTC