Skip to content

test(k8s): Smoke-test gateway groups after LiteLLM upgrade #4428

Closed

Description

@devops-cli-service

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/completions with the model claude-sonnet-5-5, claude-haiku-5-5, gemini-3.8-flash and deepseek-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_KEY for both Claude groups, GEMINI_API_KEY for the Gemini group and OPENROUTER_API_KEY for 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 $KEY and 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-5 whose body has response_format with type json_schema and 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 create with the label source/agent and 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-5 and claude-haiku-5-5 use ANTHROPIC_API_KEY. gemini-3.8-flash uses GEMINI_API_KEY. deepseek-v4.1-flash-1017 uses OPENROUTER_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 Secret llm-gateway-secrets key master-key. The keyring holds it as llm_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 in tests/k8s/test_gateway_smoke_docs.py reads the file and asserts each call. (best practice) [sources: k8s/README.md, CONTRIBUTING.md, src/devops_cli/commands/ai_gateway.py]
    • Chosen: Documented curl calls in k8s/README.md with an offline test. curl is 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 smoke command. About 50,000 tokens to build, 3,000 for each later change and 6,000 for each fix, for five calls that curl already 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.
  • 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. curl prints the whole reply. (best practice) [sources: k8s/README.md, k8s/llm/gateway/config.yaml]
    • Chosen: No stream field, a short call. The reply comes in about a second, below the 125 s edge cut, and curl prints the whole body.
    • Rejected: stream true. It adds SSE parsing to a short call that a person reads, with no gain.
  • Does claude-sonnet-5-5 return a structured reply?: Yes. Both Claude groups set supports_native_structured_output and supports_response_schema. A response_format of type json_schema becomes Anthropic output_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

  1. added
    source/agent
    type/test
    scope/k8s
    status/new
    value/medium
    effort/low
    on Nov 10, 2026
  2. devops-cli-service commented on Nov 10, 2026

    @devops-cli-service
    ContributorAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/test. The test prefix of the title gives the type.
    • Scope: scope/k8s. The (k8s) scope of the title gives the scope.
    • Priority: P2-Medium. The check shows that the hosted groups still answer after the upgrade, but the bump issue must merge first.
    • Value: Medium. The smoke test finds broken provider paths that no offline test reaches.
    • Effort: Low. The work is five short live calls and a comment for each result.
    • Related: chore(k8s): plan the LiteLLM upgrade beyond 1.103 #4406, which asks for a different change. Both items come from the LiteLLM upgrade plan; item 4406 plans the upgrade and the candidate adds a live smoke test after it.
  3. changed the title [-]test(k8s): smoke-test the hosted gateway groups after the LiteLLM upgrade[/-] [+]test(k8s): Smoke-test gateway groups after LiteLLM upgrade[/+] on Nov 10, 2026
  4. devops-cli-service commented on Nov 10, 2026

    @devops-cli-service
    ContributorAuthor

    The job shortened the title of this item. The summary had 62 characters, and the limit is 60. The type and the scope stay.

    • Before: test(k8s): smoke-test the hosted gateway groups after the LiteLLM upgrade
    • After: test(k8s): Smoke-test gateway groups after LiteLLM upgrade
    • Source of the summary: the background model
  5. devops-cli-service commented on Nov 10, 2026

    @devops-cli-service
    ContributorAuthor

    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.

    • Are the three provider keys in the Secret before the run? (a person decides)

    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.

  6. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    ContributorAuthor

    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.

    • Are the three provider keys in the Secret before the run, and who runs the five calls? (a person decides)

    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.

  7. added
    status/ready
    and removed
    status/new
    on Nov 12, 2026
  8. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    ContributorAuthor

    Status set to Ready at c3130a3 (see proposed design in issue body).

    Moved to new items: #4885.

  9. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    ContributorAuthor

    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.

  10. added
    status/in-progress
    status/in-review
    and removed
    status/ready
    status/in-progress
    on Nov 15, 2026
  11. removed
    status/in-review
    on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/k8ssource/agenttype/testvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions