Skip to content

test(roadmap): confirm the stage error is gone after the rollout #4663

Open

Description

@devops-cli-service

Split from #4628.

Split from #4628.

Problem Description

The stage fails for most items in the 6 other repositories with Staged source moved or missing. The fix in #4628 reads the runner tools and the failure taxonomy from the installed modules, and it reads the Dockerfile and the pod manifest only for a devops-cli commit. A unit test holds the new behavior, but the production result is unconfirmed.

Why this part is deferred

The confirmation waits on the rollout of the runner image and on 24 h of production traffic. No offline test and no pull request can check it, so it moves to this issue.

Acceptance Criteria

  • The Loki query {service_name="roadmap-service"} |= "Staged source moved or missing" over 24 h after the rollout gives 0 lines.
  • dan-petty/dotfiles#1, dan-petty/homelab#1 and dan-petty/homelab#2 get a stage verdict that is not this error.

Dependencies

Proposed design

Problem statement

The stage job failed with Staged source moved or missing in the 6 other repositories. The fix in #4628 reads the runner tools and the failure taxonomy from the installed modules, and a unit test holds it. No offline test shows the result of the rolled-out runner image. This item holds that production evidence: a 24 h Loki query and the stage verdicts of three items. The owner froze the stage work on 2026-11-20, so this item waits on #6521 and on the rollout.

Acceptance criteria

Requirement: No stage error in 24 h

The stage job SHALL report no Staged source moved or missing error in the 24 h after the runner image rollout.

Scenario: Loki query over 24 h

Requirement: Three items get a stage verdict

The stage job SHALL give dan-petty/dotfiles#1, dan-petty/homelab#1 and dan-petty/homelab#2 a stage verdict that is not the Staged source moved or missing error.

Scenario: Stage verdicts after the rollout

  • WHEN the runner image that holds the fix of fix(roadmap): stage context reads runner facts from the package #4628 is live, and uv run devops gh api repos/dan-petty/dotfiles/issues/1/comments --paginate --jq '.[].body', uv run devops gh api repos/dan-petty/homelab/issues/1/comments --paginate --jq '.[].body' and uv run devops gh api repos/dan-petty/homelab/issues/2/comments --paginate --jq '.[].body' read the comments of each item.
  • THEN Each read shows a stage plan comment or a rejection reason, and none holds Staged source moved or missing.

Existing Tool Considered

No alternatives check has run for this item. Grafana Loki (open source, maintained) covers the 24 h LogQL query, and the project sends that query through uv run devops k8s logs (docs/commands/k8s.md:109). Loki lacks the GitHub issue read, so the GitHub CLI reads the stage comments through uv run devops gh api (docs/commands/gh.md:7). The change builds no code, so it has no build cost.

Key questions

  • How does the item confirm that the stage error is gone after the rollout?: Run the 24 h Loki query for the error text through uv run devops k8s logs, and read the stage verdict of the three items from their issue comments through uv run devops gh api --paginate. Add no offline test, because the result depends on the rolled-out runner image and on production traffic. (best practice) [sources: docs/SERVICE_PATTERNS.md:29, docs/guidelines/production-readiness.md:86, docs/CLUSTER.md:189, docs/commands/k8s.md:109, docs/commands/gh.md:7, openspec/changes/archive/2026-11-11-4628-stage-context-reads-runner-facts-from/proposal.md:34]
  • Where did the error appear before the rollout, and which items did it name?: In the Service log stream {service_name="roadmap-service"}: 2 lines over 24 h on 2026-11-11. The line of 14:37Z names dan-petty/dotfiles#1, and the line of 15:19Z names dan-petty/homelab#1 and #2. Each line names src/devops_cli/roadmap/runner_tools.py. [sources: openspec/changes/archive/2026-11-11-4628-stage-context-reads-runner-facts-from/proposal.md:34, openspec/changes/archive/2026-11-11-4628-stage-context-reads-runner-facts-from/proposal.md:5]
  • What does the stage job write on an issue as a stage verdict?: A plan-state comment and a run comment on the issue for a planned item, or a rejection for a refused item. The plan-state comment holds the branch, the pull request, the task groups with their measures and the open findings, so the stage verdict is read from the issue comments. [sources: docs/roadmap/stage.md:13, docs/roadmap/stage.md:14, docs/roadmap/stage.md:16, docs/commands/gh.md:7]
  • What does the item wait on before it can run?: It waits on the hold issue chore(roadmap): hold incremental stage and implement work #6521 that the freeze of refactor(roadmap): re-architect stage and implement on Coder #6519 recorded for the stage, implement and fix-checks jobs. chore(roadmap): hold incremental stage and implement work #6521 has no sub-issue and no type/epic label, so the refine and stage rules treat it as an open blocker and leave the item out. When chore(roadmap): hold incremental stage and implement work #6521 closes, the item waits on the rollout of the runner image that holds the fix of fix(roadmap): stage context reads runner facts from the package #4628 and on 24 h of production traffic. [sources: docs/roadmap/refine.md:21, docs/roadmap/refine.md:29, docs/roadmap/stage.md:30, openspec/changes/archive/2026-11-20-6451-read-only-blockers-in-a-dependencies/design.md:8]

Fit

Fits in one pull request.

Suspected block

The rollout of the runner image that holds the fix of #4628, then 24 h of production traffic.

Dependencies

#6521

Activity

  1. added
    source/agent
    type/test
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 11, 2026
  2. devops-cli-service commented on Nov 11, 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/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P3-Low. The item only confirms a result after the rollout and needs no code change.
    • Value: Medium. The confirmation shows that the stage error stopped for most items in 6 repositories.
    • Effort: Low. The work is one Loki query and a check of three repositories.
    • Related: fix(roadmap): stage context reads runner facts from the package #4628, which asks for a different change. Both items cover the stage failure, but #4628 changes the stage code and the candidate confirms the result in production.
  3. added
    priority/p3-low
    on Nov 11, 2026
  4. devops-cli-service commented on Nov 19, 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

  5. dan-petty commented on Nov 20, 2026

    @dan-petty
    Owner

    Frozen on 2026-11-20. The stage, implement and fix-checks jobs grade under 60%, so the owner rule asks for a re-architecture before more fixes inside the current design (tracker #6519). This item is incremental work on those jobs, so its Dependencies section now names #6521 first. Stage and implement leave this item while #6521 is open. When the experiments of #6519 decide, a person closes #6521 (this item can then continue) or closes this item as not planned.

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

    @devops-cli-service
    ContributorAuthor

    Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.

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/p3-lowscope/roadmapsource/agentstatus/newtype/testvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions