Skip to content

feat(service): roadmap-service runs at one replica, and each model call in the cluster is sent at most two times - #2500

Merged
dan-petty merged 3 commits into
mainfrom
feat/2494-roadmap-service-one-replica
Oct 28, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/2494-roadmap-service-one-replica

Conversation

@dan-petty

@dan-petty dan-petty commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

What

  • k8s/devops/roadmap-service/deployment.yaml sets replicas: 1. Its comment names the identity the Service acts as (GitHub App devops-cli-service, ADR 0015) and points to the stop switch in k8s/README.md, "Roadmap service".
  • k8s/devops/configmap.example.yaml sets ai.max_retries: 1. The render of devops k8s deploy-stack replaces only the service section, so the value gets to ConfigMap devops-cli-config when deploy-stack runs. Argo CD does not apply that ConfigMap.
  • k8s/README.md, "Roadmap service", replaces the note that held the Service at replicas: 0 with a go-live check and a stop switch. The go-live check first runs devops k8s deploy-stack --stack devops from main, reads max_retries: 1 from the live ConfigMap, and restarts the pod, because on a cluster that Argo CD manages deploy-stack applies the ConfigMap but does not restart the pod. Then it checks the pod, up{job="roadmap-service"}, a test ping to a hook, and the first hour inside the 500 requests/h budget. The stop switch suspends the installation, turns off automated sync for bootstrap, cluster and devops, scales to 0, deletes the running devops-cli Jobs, and turns off the hooks. The go-live check sends a fired alert of the rule group roadmap-service to its row in "Alerts".
  • "LLM Gateway" says that the template sets the retry count for the in-cluster services and that deploy-stack applies it. The install check of "Argo Workflows" no longer says that roadmap-service is at 0 replicas.
  • The new capability roadmap-service-deployment holds the two requirements.

Why

The labels item (#2399) that the hold waited on has merged, and the App devops-cli-service holds the Service's identity. Argo CD self-heals the deployment, so only a change in git starts the Service. devops-background serves one request at a time, and with the default ai.max_retries of 4 a model call can be sent 5 times; with 1 it is sent at most two times. k8s/devops/kustomization.yaml lists no ConfigMap, so the retry count gets to the pod only after a deploy-stack run and a restart.

The stop switch pauses Argo CD with spec.syncPolicy.automated.enabled: false, the field that devops k8s volume move and "Pausing an Application" use, not with automated: null, which also removes prune and selfHeal from the live object.

Merge condition

A person merges this only after the work of #2473 (scoped installation tokens) and #2472 (alert rules) has merged, and each managed repository's webhook sends only the Issues event.

Closes #2494

…ll in the cluster is sent at most two times

deployment/roadmap-service sets replicas: 1. Its comment names the identity the Service acts as (GitHub App devops-cli-service, ADR 0015) and points to the stop switch in k8s/README.md. The ConfigMap template sets ai.max_retries: 1, because devops-background serves one request at a time. k8s/README.md "Roadmap service" replaces the hold note with a go-live check and a stop switch.

Refs #2494
@dan-petty
dan-petty force-pushed the feat/2494-roadmap-service-one-replica branch from 019c8d4 to 000114e Compare October 28, 2026 19:08
… and the Argo Workflows check names no replica count

Argo CD syncs k8s/devops/, which holds no ConfigMap, so a sync of replicas: 1 does not bring ai.max_retries: 1 to the cluster. The go-live check of "Roadmap service" now runs devops k8s deploy-stack --stack devops from main, reads max_retries from the live ConfigMap, and restarts the pod, because on a cluster that Argo CD manages deploy-stack does not restart it. "LLM Gateway" says that deploy-stack applies the template's retry count. The install check of "Argo Workflows" no longer says that roadmap-service is at 0 replicas. The proposal says that embedding calls go to qwen3-embedding:0.6b, not to devops-background.

Refs #2494
@dan-petty
dan-petty force-pushed the feat/2494-roadmap-service-one-replica branch from 000114e to 17eee55 Compare October 28, 2026 19:27
@dan-petty
dan-petty marked this pull request as ready for review October 28, 2026 19:37
@dan-petty
dan-petty merged commit 2d32dae into main Oct 28, 2026
20 of 21 checks passed
@dan-petty
dan-petty deleted the feat/2494-roadmap-service-one-replica branch October 28, 2026 19:38
dan-petty pushed a commit that referenced this pull request Oct 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.11.0](v0.10.1...v0.11.0)
(2026-10-28)


### Features

* **monitoring:** the roadmap Service's identity refusals, failing and
stalled jobs, restarts, and GitHub and model request volume raise alerts
([#2496](#2496))
([0137f23](0137f23)),
closes [#2472](#2472)
* **service:** roadmap-service runs at one replica, and each model call
in the cluster is sent at most two times
([#2500](#2500))
([2d32dae](2d32dae)),
closes [#2494](#2494)


### Bug Fixes

* **cli:** every command reports a DevOpsCLIError through one exit seam
([#2502](#2502))
([eadd55f](eadd55f)),
closes [#2487](#2487)
* **github:** pr monitor waits until the checks settle and names every
blocker, and pr ready reads the merge-readiness verdict
([#2498](#2498))
([43326ea](43326ea))
* **k8s:** a pod that does not call the Kubernetes API mounts no service
account token
([#2522](#2522))
([305d3ba](305d3ba))
* **k8s:** the cloudflared tunnel replicas prefer different nodes and
keep one up through a drain
([#2499](#2499))
([d4edaf6](d4edaf6)),
closes [#1023](#1023)
* **k8s:** the grafana, prometheus, argo cd and loki clients dial
through the egress-checked factory, and their pre-flight address checks
go ([#2497](#2497))
([e7ca1d5](e7ca1d5))
* **monitoring:** the roadmap Service alerts count a series that starts
in the hour, and a lane of a new pod can stall
([#2514](#2514))
([c7692b2](c7692b2)),
closes [#2505](#2505)
* **review:** a review's scanners leave out the rules that never gave a
valid finding here
([#2508](#2508))
([fe953ac](fe953ac))
* **roadmap:** a refine round leaves an outside account issue to a
person, and refine neutralizes comment openers, www links and
cross-repository references
([#2507](#2507))
([e6230dc](e6230dc)),
closes [#2478](#2478)
* **sandbox:** the metrics scrape and the whitelist NetworkPolicy
resolve each host one time, through the egress check
([#2521](#2521))
([7c01426](7c01426))
* **security:** the subprocess environment guard refuses the zsh and
interpreter keys that make a child run code
([#2510](#2510))
([459621a](459621a))
* **service:** a restart keeps the halt, the budget window and the
failure ledger, and a rate limit or a suspended installation stops every
worker ([#2515](#2515))
([3630de1](3630de1)),
closes [#2474](#2474)


### Code Refactoring

* **config:** settings resolve in one declared order through
pydantic-settings sources
([#2518](#2518))
([6a5447a](6a5447a)),
closes [#2445](#2445)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(service): roadmap-service runs again at one replica, with one model retry in the cluster

1 participant