Repository navigation
Description
Split from #4406.
Problem. The LiteLLM upgrade changes the provider paths of the hosted model groups. No offline test reaches a provider, so only a short live call shows that a group still answers. ## Why deferred. The calls need the upgraded gateway in the cluster and the provider keys of the Secret llm-gateway-secrets. The cluster runs v1.103.10 until the bump issue merges. ## Acceptance criteria. - One short chat call to claude-sonnet-5-5 returns a reply with ANTHROPIC_API_KEY. - One short chat call to claude-haiku-5-5 returns a reply with ANTHROPIC_API_KEY. - One short chat call to gemini-3.8-flash returns a reply with GEMINI_API_KEY. - One short chat call to deepseek-v4.1-flash-1017 returns a reply with OPENROUTER_API_KEY. - A call to claude-sonnet-5-5 with response_format returns a valid structured reply. - Each result is a comment on this issue, and a failed call opens a fix issue.
Proposed design
Problem statement
The LiteLLM upgrade changes the provider path of each hosted model group. No offline test reaches a provider. k8s/README.md documents one curl call for gemini-3.8-flash only. A person types the other four calls by hand and records no result. This change documents the five calls and the steps that run them and record each result. An offline test checks that text. The live run after the gateway rolls is a separate issue.
Acceptance criteria
Requirement: A documented call for each hosted group
k8s/README.md SHALL give one chat-completion curl call for each of the four hosted model groups.
Scenario: Each group has its call
- WHEN A test reads
k8s/README.md. - THEN The file holds a call to
/v1/chat/completionswith the modelclaude-sonnet-5-5,claude-haiku-5-5,gemini-3.8-flashanddeepseek-v4.1-flash-1017.
Requirement: The provider key of each group is named
The documented text SHALL name the provider key that each hosted group uses.
Scenario: Each group names its provider key
- WHEN A test reads the documented calls in
k8s/README.md. - THEN The text names
ANTHROPIC_API_KEYfor both Claude groups,GEMINI_API_KEYfor the Gemini group andOPENROUTER_API_KEYfor the DeepSeek group.
Requirement: Only the gateway key is in each call
Each documented call MUST send the gateway master key in Authorization and MUST send no provider key.
Scenario: No provider key reaches the gateway
- WHEN A test reads each documented call in
k8s/README.md. - THEN Each call holds
Authorization: Bearer $KEYand no header names a provider key.
Requirement: A documented structured call
k8s/README.md SHALL give one call to claude-sonnet-5-5 with a response_format of type json_schema.
Scenario: The structured call is in the file
- WHEN A test reads
k8s/README.md. - THEN The file holds a call to
claude-sonnet-5-5whose body hasresponse_formatwith typejson_schemaand a schema of a small object.
Requirement: The documented run and its record
k8s/README.md SHALL give the steps that run the five calls after the gateway rolls, record each result and file a fix issue.
Scenario: The steps name the record and the fix issue
- WHEN A test reads
k8s/README.md. - THEN The file names the roll onto the new image, a comment on the upgrade issue for each result, and
devops gh issues createwith the labelsource/agentand no priority label for a failed call.
Existing Tool Considered
No alternatives check has run. curl is open and maintained. It sends one chat-completion call to a gateway group, which is the whole need. k8s/README.md documents it for gemini-3.8-flash. It lacks a per-group PASS or FAIL line, a check that a structured reply parses, and a fix issue on failure. A person reads each reply and files the issue with devops gh issues create. Building a devops ai gateway smoke command instead costs about 50,000 tokens. It costs about 3,000 tokens for each later change and about 6,000 tokens for each fix. It takes about one day of work.
Key questions
- Which model and provider key does each hosted group use?:
claude-sonnet-5-5andclaude-haiku-5-5useANTHROPIC_API_KEY.gemini-3.8-flashusesGEMINI_API_KEY.deepseek-v4.1-flash-1017usesOPENROUTER_API_KEY. [sources: k8s/llm/gateway/config.yaml, k8s/llm/gateway/deployment.yaml, k8s/README.md] - Which key does a documented call send in
Authorization?: The call sends the gateway master key of Secretllm-gateway-secretskeymaster-key. The keyring holds it asllm_gateway_master_key. The provider keys are environment variables of the gateway pod, so no caller sends them. [sources: k8s/README.md, k8s/llm/gateway/deployment.yaml, k8s/llm/gateway/config.yaml] - Where does the documented smoke check live?: The five calls go into the LLM Gateway section of
k8s/README.md. An offline test intests/k8s/test_gateway_smoke_docs.pyreads the file and asserts each call. (best practice) [sources: k8s/README.md, CONTRIBUTING.md, src/devops_cli/commands/ai_gateway.py]- Chosen: Documented
curlcalls ink8s/README.mdwith an offline test.curlis open, maintained and already the documented check. It sends each call with no new runtime code. A test can read the file offline. - Rejected: New
devops ai gateway smokecommand. About 50,000 tokens to build, 3,000 for each later change and 6,000 for each fix, for five calls thatcurlalready sends. Its stub tests prove the stub, not a provider. - Rejected: PEP 723 script in
scripts/. CONTRIBUTING.md allows it, but it repeats the key and URL handling, and no test can run it. - Rejected: pytest module with a live marker. No test of
src/reaches the network. A live marker would not run in CI.
- Chosen: Documented
- Does each documented call stream?: No. Each call asks for 16 tokens, so its reply comes in about a second. That is well below the 125 s idle cut of the Cloudflare edge.
curlprints the whole reply. (best practice) [sources: k8s/README.md, k8s/llm/gateway/config.yaml]- Chosen: No
streamfield, a short call. The reply comes in about a second, below the 125 s edge cut, andcurlprints the whole body. - Rejected:
streamtrue. It adds SSE parsing to a short call that a person reads, with no gain.
- Chosen: No
- Does
claude-sonnet-5-5return a structured reply?: Yes. Both Claude groups setsupports_native_structured_outputandsupports_response_schema. Aresponse_formatof typejson_schemabecomes Anthropicoutput_format, not the forced tool call that Sonnet 5.5 refuses. [sources: k8s/llm/gateway/config.yaml, k8s/README.md]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Alternatives check of 2026-11-12: not-applicable.
Class: test, no search.
Tool: none found.
Activity
devops-cli-service commentedon Nov 10, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
testprefix of the title gives the type.(k8s)scope of the title gives the scope.The check shows that the hosted groups still answer after the upgrade, but the bump issue must merge first.The smoke test finds broken provider paths that no offline test reaches.The work is five short live calls and a comment for each result.Both items come from the LiteLLM upgrade plan; item 4406 plans the upgrade and the candidate adds a live smoke test after it.[-]test(k8s): smoke-test the hosted gateway groups after the LiteLLM upgrade[/-][+]test(k8s): Smoke-test gateway groups after LiteLLM upgrade[/+]devops-cli-service commentedon Nov 10, 2026
The job shortened the title of this item. The summary had 62 characters, and the limit is 60. The type and the scope stay.
test(k8s): smoke-test the hosted gateway groups after the LiteLLM upgradetest(k8s): Smoke-test gateway groups after LiteLLM upgradedevops-cli-service commentedon Nov 10, 2026
Refine cannot set this item to Ready at 1ca0133 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
The next refine round also looks at the item again when a commit on the default branch changes one of these files:
k8s/llm/gateway/deployment.yaml,k8s/llm/gateway/config.yaml.devops-cli-service commentedon Nov 11, 2026
Refine cannot set this item to Ready at 54743c4 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
The next refine round also looks at the item again when a commit on the default branch changes one of these files:
k8s/llm/gateway/deployment.yaml.devops-cli-service commentedon Nov 12, 2026
Status set to Ready at c3130a3 (see proposed design in issue body).
Moved to new items: #4885.
devops-cli-service commentedon Nov 12, 2026
Alternatives check: not-applicable
Class: test. The check makes no search and no model call for an item of this class.
Tool: none found
Checked on 2026-11-12. A person decides what this means for the item. The check changes no label and closes no issue.
docs(k8s): document the gateway smoke calls (#4428)