Skip to content

fix(roadmap): ready the phase code for the read-only run folder #6743

Description

@dan-petty

Problem

The three-container runner Job of #3700 mounts the run folder read-only in publish. But some code still writes there or assumes one container:

  • The publish of implement, fix-conflict and stage make their new repository in the run folder (publish_patch(..., scratch=folders.root)). On the read-only mount, mkdtemp raises EROFS, and publish exits 1 before it pushes. The fix-checks publish uses the data folder (job_repair, scratch=_runs()).
  • When prepare leaves the item out, it writes no state, so publish exits 1, and the reason for the left-out item is in no log that the Service reads.
  • The refusal outside a runner (implement_outside.py) gives a run-job command with no --item, and a phase other than all needs --item.
  • The dry run of devops k8s run-job --template runner shows one container runner.
  • The project review facts prometheus.runner_memory_p90 and runner_cpu_max select container="runner".

The runner image gets new code only at a release, but Argo CD applies a template at the merge. So these fixes must be in a runner image in the cluster before the template of #3700 merges. The criterion "Order" of #3700 asks for this.

Expected

Each change works with the one-container template of today and with the three-container template:

  • Each publish makes its new repository in /tmp.
  • A prepare that leaves the item out writes an ended state with the reason. publish prints the reason and exits 0.
  • The refusal gives a run-job command for one item.
  • The dry run shows the containers that the template holds, as build_job makes them.
  • The facts select container=~"runner|agent".

Acceptance criteria

  • A test that fails first: the publish of implement, fix-conflict and stage, and the fix-checks publish, on a run folder that publish cannot write.
  • A test that fails first: prepare leaves the item out, publish exits 0, and its output holds the reason.
  • A test: the dry run of run-job on a one-container template and on a three-container template.
  • A release holds this change, and Image Updater sets its runner digest on the CronJob devops-cli-runner, before feat(roadmap): add the three-container runner Job, policy and log reads #3700 merges.

Dependencies

Source

Source: #6732

Activity

  1. added
    type/bug
    source/agent
    on Nov 22, 2026
  2. dan-petty commented on Nov 22, 2026

    @dan-petty
    OwnerAuthor
  3. added
    scope/roadmap
    status/new
    effort/medium
    value/high
    priority/p2-medium
    status/in-progress
    and removed
    status/new
    on Nov 22, 2026
  4. added
    status/in-review
    and removed
    status/in-progress
    on Nov 22, 2026
  5. removed
    status/in-review
    on Nov 22, 2026
  6. added a commit that references this issue on Nov 22, 2026
  7. devops-cli-service commented on Nov 22, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-22 13:21 UTC

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/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions