Skip to content

test(roadmap): verify a dotfiles item makes a draft PR in a live run #3511

Open

Description

@devops-cli-service

Split from #3484.

Problem: The implementation tests cannot prove the live dotfiles behavior offline. A live run needs the dotfiles repository, the runner image, and GitHub access. Why deferred: The main change can be delivered and tested offline without this run. Acceptance criteria: A dotfiles item runs the implement job with no docs declaration. The job skips the docs step and the archive step. The job ends with a draft pull request. The job comment names each skipped step. A read-only path stop does not use class ci_infra or action retry. Rule digest does not clear the stop on a new image.

Proposed design

Problem statement

The implement job of a dotfiles item must skip the docs and archive steps, name each skipped step, and end with a draft pull request. No offline test proves this live behavior. The change adds one live test module that the default suite skips. A person runs the module on demand against a dedicated test repository. The module also asserts that a read-only path stop takes class read_only_path.

Acceptance criteria

Requirement: Live module skips without credentials

The live test module SHALL skip each live test when DEVOPS_LIVE_REPO or DEVOPS_LIVE_TOKEN is unset.

Scenario: Offline run of the live module

  • WHEN uv run pytest tests/roadmap/implement/test_implement_live_dotfiles.py -q runs with both variables unset.
  • THEN pytest reports each live test as skipped and exits 0.

Requirement: Skip reason names both variables

The skip reason SHALL name DEVOPS_LIVE_REPO and DEVOPS_LIVE_TOKEN.

Scenario: Short skip summary

  • WHEN uv run pytest tests/roadmap/implement/test_implement_live_dotfiles.py -q -rs runs with both variables unset.
  • THEN the short summary shows a skip reason that names both variables, and pytest exits 0.

Requirement: Live module holds the two cases

The module SHALL hold one test for the dotfiles item and one test for the read-only path item.

Scenario: Collection of the live module

  • WHEN uv run pytest tests/roadmap/implement/test_implement_live_dotfiles.py --collect-only -q runs.
  • THEN the output names test_dotfiles_item_ends_with_a_draft_pull_request and test_read_only_path_stop_names_its_class.

Requirement: Pending a person after the merge

The live test SHALL assert the dotfiles and read-only outcomes when a person runs it with both live variables set.

Scenario: Live run against the test repository

  • WHEN a person sets DEVOPS_LIVE_REPO and DEVOPS_LIVE_TOKEN, seeds the two Planned items, and runs uv run pytest tests/roadmap/implement/test_implement_live_dotfiles.py.
  • THEN the test passes. It shows that the dotfiles item skips the docs and archive steps, names each skipped step, and ends with an open draft pull request. It shows that the read-only item stops with class read_only_path and stays Blocked.

Existing Tool Considered

No alternatives check has run. No open, maintained tool or library covers a live end-to-end run of this project's implement Job against a real GitHub repository and its runner image. vcrpy and pytest-recording replay HTTP only. act runs GitHub Actions workflows, not a Kubernetes Job. kind gives a local cluster but no GitHub. The change builds its own live test. The cost is about 20k tokens to build the test and its assertions. Each later fix costs about 2k tokens. The test repository and its token need upkeep. The run takes about one hour.

Key questions

  • Which class and action does a stop at a write to a read-only path get?: The class is read_only_path and the action is wait. The cause rules match Read-only file system or EROFS before the ci_infra fallback. ACTION_BY_CLASS maps read_only_path to wait and ci_infra to retry. [sources: src/devops_cli/roadmap/failure.py]
  • Does the digest round clear a stop whose action is not retry?: No. src/devops_cli/roadmap/stop_clear.py reads ACTION_BY_CLASS. It clears a stop only when the action is retry. read_only_path gives wait, so a new runner image leaves the item Blocked. [sources: src/devops_cli/roadmap/stop_clear.py, src/devops_cli/roadmap/failure.py]
  • How does the default suite keep the live test out of the required checks?: A separate module holds the live tests. Each test skips when DEVOPS_LIVE_REPO or DEVOPS_LIVE_TOKEN is unset. The required checks set neither variable, so they run no live test. (best practice) [sources: pyproject.toml, CONTEXT.md]
    • Chosen: Separate module with a skipif decorator. The default run collects the module and skips each test. A person selects the module by its path.
    • Rejected: Reuse the live marker. pyproject.toml describes live as tests that need local tool binaries. A GitHub test would make that description wrong.
    • Rejected: Add the live tests to the existing implement test module. The live tests would mix with the offline tests, and a person could not select them alone.
  • How does the test hold the dotfiles case apart from the read-only case?: The test repository holds two Planned items. One item reaches a draft pull request. The other item stops at a read-only path. A stop ends the job, so one item cannot show both outcomes. (best practice) [sources: src/devops_cli/roadmap/failure.py, CONTEXT.md]
    • Chosen: Two Planned items in the test repository. Each item shows one outcome, and the dotfiles item reaches its draft pull request.
    • Rejected: One item for both outcomes. A read-only path stop ends the job before the draft pull request.
    • Rejected: Check the read-only stop offline only. The issue asks for a live run of the stop.
  • How does the test find its two items?: The test repository holds one item for each case with a fixed title. The test finds each item by its title. It needs no third variable. (best practice) [sources: CONTEXT.md]
    • Chosen: Fixed titles in the dedicated test repository. The title finds the item with no extra secret or variable.
    • Rejected: A third variable DEVOPS_LIVE_ITEM. It adds a setting that a person must keep in step with the test repository.
    • Rejected: Create the items at run time. It needs a merged plan and the Planned state, which is outside the behavior under test.
  • How does the proposal cover rule digest?: The live run cannot set a new runner image digest, because the Service holds the digest. The stop-clear rule gets an offline test in a new issue. The live test asserts only the stop class and the Blocked state. (best practice) [sources: src/devops_cli/roadmap/stop_clear.py, tests/roadmap/test_roadmap_stop_clear.py]
    • Chosen: Offline test of the stop-clear rule in a new issue. The test controls the digest and runs offline on each check.
    • Rejected: Wait for a real runner image rollout. A rollout is an outside event, so the test cannot run on demand.
    • Rejected: Write a new digest into the stop record in the live test. The Service holds the digest, and the test cannot set it.
  • How does the live test know that the implement job ended?: The test polls the item on GitHub. It reads the labels and comments until the item leaves In Progress or the job comment appears. It uses a timeout and needs no cluster access. (best practice) [sources: CONTEXT.md]
    • Chosen: Poll the item on GitHub. The test needs no Kubernetes token and no cluster access.
    • Rejected: Read the runner Job. The test has no Kubernetes token and no cluster access.
    • Rejected: Wait a fixed time. A fixed wait is fragile and slow.
  • Does the runner Job mount a path read-only?: Yes. The comment of the read-only path rule names a path that the Job mounts read-only. The rule matches Read-only file system or EROFS. [sources: src/devops_cli/roadmap/failure.py]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/test
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 4, 2026
  2. devops-cli-service commented on Nov 4, 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: P2-Medium. The main fix ships without this test, but live verification is needed before full confidence.
    • Value: Medium. It proves the live dotfiles path works end to end, which offline tests cannot cover.
    • Effort: Medium. It needs the dotfiles repository, a runner image, and GitHub access to execute.
    • Related: fix(roadmap): a job runs a project step only where the repo has it #3484, which asks for a different change. Both concern the implement job skipping docs and archive steps for a dotfiles repo; #3484 delivers the fix, the candidate adds a live-run test for it.
  3. devops-cli-service commented on Nov 5, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at f481be8 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.

    • Which repository and token does the live run use? (a person decides)
  4. changed the title [-]test(roadmap): verify a dotfiles item reaches a draft pull request in a live run[/-] [+]test(roadmap): verify a dotfiles item makes a draft PR in a live run[/+] on Nov 6, 2026
  5. dan-petty commented on Nov 6, 2026

    @dan-petty
    Owner

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

    • Before: test(roadmap): verify a dotfiles item reaches a draft pull request in a live run
    • After: test(roadmap): verify a dotfiles item makes a draft PR in a live run
    • Source of the summary: the background model
  6. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at 4ef7c6f 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.

    • Which repository and token does the live run use? (a person decides)
  7. 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.

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

    @devops-cli-service
    ContributorAuthor

    Owner question: See the first point of Open questions 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

  9. devops-cli-service commented on Nov 25, 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.

  10. devops-cli-service commented on Dec 1, 2026

    @devops-cli-service
    ContributorAuthor

    Next step: the alternatives check records a verdict. See 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/mediumpriority/p2-mediumscope/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