Skip to content

test(service): verify no credential failures after release #6276

Open

Description

@devops-cli-service

Split from #5529.

Problem: The code fix removes the startup race, but only a released Service pod can show that Loki has no Repository not found lines in the first 5 minutes. Why deferred: this check waits on the next release and a live cluster, so it cannot pass in the pull request. Acceptance criteria: - After the next release, query Loki for devops_cli.server.service ERROR lines with Repository not found from the new pod's first 5 minutes. - The query returns 0 lines. - If it returns a line, open a new issue with the pod name, time and repository.

Proposed design

Problem statement

The startup race fix removes the Repository not found credential failures in code. Only a released Service pod can show that the fix holds in its first 5 minutes. This item runs the Loki query after the next release and files an issue on any match.

Acceptance criteria

Requirement: Pending a person after the merge

After the next release, the check MUST query Loki for devops_cli.server.service ERROR lines with Repository not found from the new Service pod's creation time to 5 minutes after it.

Scenario: Clean first five minutes

  • WHEN a person runs the LogQL query {namespace="devops", pod="<pod>"} |= "devops_cli.server.service" |= "Repository not found" on Loki after the next release, from the pod creation time to 5 minutes after it
  • THEN the query returns 0 lines

Requirement: Pending a person after the merge

The post-release check MUST open a new issue when the Loki query returns a line.

Scenario: Credential failure found

  • WHEN the live Loki query returns at least one line
  • THEN a new issue, filed with devops gh issue create, records the pod name, the log time and the repository from the line

Existing Tool Considered

No alternatives check has run. Grafana Loki is the open, maintained tool that covers the log query, and the repository already queries Loki with the k8s_logql MCP tool. Loki lacks an automatic issue opener, so a person files the failure issue with devops gh issue create. The proposal builds no code, so it has no build cost.

Key questions

  • Does the repository already query Loki logs, so the check adds no query code?: Yes. The k8s_logql MCP tool queries Loki, and tests/ai/mcp/test_k8s_logql.py covers it. The check adds no query code. [sources: tests/ai/mcp/test_k8s_logql.py, AGENTS.md]
  • How does the check define the new Service pod's first 5 minutes and select its logs?: Start at the pod creation timestamp from the Kubernetes API and add 5 minutes. Filter Loki by namespace devops and the exact pod name. The Service runs in namespace devops. (best practice) [sources: docs/adr/0004-ci-is-the-authoritative-gate.md]
    • Chosen: Pod creation timestamp. It is the start of the pod's life and does not depend on the first log line.
    • Rejected: Release time. It is earlier than the pod start and includes image pull and scheduling delay.
    • Rejected: First log line. The first log line can arrive after the failure, so the window can miss it.
  • How does the check file the failure issue?: A person runs devops gh issue create with the pod name, the log time and the repository. AGENTS.md rule 7 forbids bare gh. The check builds no code for this rare failure. (best practice) [sources: AGENTS.md]
    • Chosen: devops gh issue create. AGENTS.md rule 7 requires devops gh, and the command creates the issue with no new code.
    • Rejected: Bare gh issue create. AGENTS.md rule 7 forbids bare gh.
    • Rejected: Automate issue creation in a script. It adds code and a token path for a rare failure.
    • Rejected: devops roadmap intake. Intake places candidates on the roadmap and may reject the report as a duplicate.

Fit

Fits in one pull request.

Suspected block

The next release and a live cluster.

Dependencies

#5529

Activity

  1. added
    type/test
    source/agent
    status/new
    on Nov 18, 2026
  2. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    ContributorAuthor
  3. added
    value/medium
    effort/low
    scope/service
    priority/p2-medium
    on Nov 18, 2026
  4. changed the title [-]test(service): verify no private repository credential failures after release[/-] [+]test(service): verify no credential failures after release[/+] on Nov 18, 2026
  5. devops-cli-service commented on Nov 18, 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(service): verify no private repository credential failures after release
    • After: test(service): verify no credential failures after release
    • Source of the summary: the background model
  6. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at 29e3a03 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.

  7. devops-cli-service commented on Nov 22, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  8. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

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/servicesource/agentstatus/newtype/testvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions