Repository navigation
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/serviceThe long-running devops Service and its lanessource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Description
Problem or Motivation
The owner raised the Service's GitHub request budget from 500 to 2000 requests an hour on 2026-10-30. The change cannot be made through the project's own tools:
k8s/configmap.py(_service_block) copies onlyrepos,github_app,drain_timeout_secondsandpoll_interval_secondsfrom the active settings into ConfigMapdevops-cli-config.service.github_requests_per_houris not copied, so everydevops k8s deploy-stack --stack devopsrenders a ConfigMap without it, and the Service falls back to the default of 500.- The field
ServiceConfig.github_requests_per_hourhas noVariable()marker and no description, so no environment variable names it anddevops config showdoes not list it. - The alert
RoadmapServiceGitHubRequestsHighink8s/monitoring/prometheus-values.yamlfires above 450 requests in an hour, which is 90 percent of the default budget. With a budget of 2000 it fires for a normal hour.
The live ConfigMap now holds github_requests_per_hour: 2000, patched by hand on 2026-10-30. The next deploy-stack renders the template again and removes it.
Proposed Solution & Architectural Design
_service_blockcopiesgithub_requests_per_hourlikedrain_timeout_secondsandpoll_interval_seconds. The ConfigMap renders it when the active settings give it.- The field gets a
Variable()marker and a description, so it appears indevops config show,docs/ENV_VARS.mdanddocs/CONFIGURATION.md. - The alert compares the sent requests with the limit that the Service reports (
devops_cli_service_budget_limit_requests): more than 90 percent of the limit in an hour. The rule text andk8s/README.mdsay so, and a promtool test covers a limit of 500 and a limit of 2000.
Target Subsystem
src/devops_cli/k8s/configmap.py, src/devops_cli/config/settings.py, k8s/monitoring/prometheus-values.yaml, tests/fixtures/prometheus_rules/.
Existing Tool Considered
The existing ConfigMap renderer and the metric devops_cli_service_budget_limit_requests that the Service already exports. promtool for the rule test (already pinned). Nothing new is built.
Acceptance criteria
- With the active settings at 2000, the rendered ConfigMap holds
github_requests_per_hour: 2000. With the default, it holds none. DEVOPS_CLI_SERVICE_GITHUB_REQUESTS_PER_HOURsets the field, and the generated documents list it.- The alert fires at more than 90 percent of the reported limit: it stays quiet at 900 sent requests for a limit of 2000, and fires at 1900.
uv run devops cipasses, anddevops docs generate --sync-readmeis run.
Metadata
Metadata
Assignees
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/serviceThe long-running devops Service and its lanessource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Activity
dan-petty commentedon Oct 30, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(service)scope of the title gives the scope.The next deploy-stack removes the hand-patched ConfigMap value and the alert fires at a wrong threshold, but the Service still runs.It restores correct config propagation and stops false alerts at the raised budget, which matters for daily operations.Three source files change, plus a promtool test and a docs sync, but no new tool is built.Both modify the RoadmapServiceGitHubRequestsHigh rule in prometheus-values.yaml, but 2505 fixes the increase() first-value gap while the candidate changes the threshold to follow the reported limit.fix(service): render and alert on the hourly request budget (#2760)
chore(main): release 0.22.1 (#2765)