Skip to content

feat(roadmap): run Harbor eval tasks on the cluster #3166

Open

Description

@devops-cli-service

Split from #3104.

Problem: the issue asks to check whether Harbor runs on our cluster and to run trials there. Harbor supports Docker, Daytona and E2B, and no Kubernetes support is known. The cluster run cannot be built until Harbor supports Kubernetes or a person decides to run Docker on the cluster. Acceptance criteria: When Harbor supports Kubernetes, devops roadmap eval harbor --backend kubernetes --task --trials N runs N trials on the cluster and writes the pass rate and cost to the result file.

Proposed design

Problem statement

The devops roadmap eval harbor run command already runs N trials of one Harbor task through the harbor program. It names the sandbox provider with --provider, which is docker by default, and it writes the pass rate, the trial count and the total cost to result.json under eval/harbor. The item asks for the same trials on the project's own cluster. Harbor names docker, Daytona and E2B, and no Kubernetes provider, so the cluster run waits on an upstream Harbor release. A privileged Docker daemon in a pod breaks the least-privilege runtime rule, so the item adds no runner of its own.

Acceptance criteria

Requirement: Provider forwarded to Harbor

The devops roadmap eval harbor run command MUST pass the value of --provider to the harbor program unchanged.

Scenario: A Kubernetes provider is named

  • WHEN uv run devops roadmap eval harbor run --provider kubernetes --task sample --trials 3 runs with the fake harbor program that tests/support/fakes/process.py installs
  • THEN the argv that the fake harbor program records holds kubernetes and three trials

Requirement: Pass rate and cost in the result file

The command MUST write the pass rate and the total cost of the trials to result.json under eval/harbor of the data directory.

Scenario: Two passes of three trials

  • WHEN the fake harbor program reports two passes and one fail, and each trial reports a cost
  • THEN result.json holds the pass rate of two trials out of three and the sum of the three costs

Requirement: Unknown provider refused

The command MUST exit 1 and write no result file when the harbor program reports no provider of the given name.

Scenario: A provider that Harbor does not name

  • WHEN uv run devops roadmap eval harbor run --provider nomad --task sample --trials 1 runs and the fake harbor program exits 1 with a message that it has no provider named nomad
  • THEN the command exits 1 with a message that names nomad, and no result.json exists

Existing Tool Considered

No alternatives check has run for this item. Harbor is the open, maintained tool that covers the need, and the repository already calls it: devops roadmap eval harbor export writes the task folders, and devops roadmap eval harbor run runs the trials and writes the pass rate, the trial count and the total cost to result.json (docs/TESTING.md:200). Harbor lacks a Kubernetes provider, so the cluster run waits on an upstream release and this item adds no trial runner of its own. A Kubernetes provider built here would duplicate the scheduling, log collection, retry and cost accounting of Harbor, and would need repair at each Harbor release. The item waits for the upstream provider and builds no code in its place.

Key questions

  • Does this repository already hold a Harbor runner?: Yes. devops roadmap eval harbor ships export, which writes the task folders, and run, which runs N trials of one task through the harbor program and writes result.json with the pass rate, the trial count and the total cost. The command is in src/devops_cli/commands/roadmap_eval_harbor.py and the trial run is in src/devops_cli/roadmap/implement/implement_eval_harbor_run.py. The item adds no second runner; it waits for the Kubernetes provider of this one. [sources: docs/TESTING.md:200, docs/commands/roadmap.md:594, src/devops_cli/commands/roadmap_eval_harbor.py, src/devops_cli/roadmap/implement/implement_eval_harbor_run.py]
  • Which flag names the sandbox provider of the cluster run?: --provider, the flag that run already documents. The issue text names --backend; the two names hold one value, and the shipped flag keeps one name. (best practice) [sources: docs/TESTING.md:200, src/devops_cli/commands/roadmap_eval_harbor.py]
    • Chosen: Keep the shipped --provider flag. run already documents --provider for the sandbox provider, and one value takes one name.
    • Rejected: Add --backend as a second name. Two flags for one value confuse the caller and split the tests of one behavior.
    • Rejected: Rename --provider to --backend. A rename breaks the documented command and adds no capability.
  • How do the trials run on the cluster while Harbor has no Kubernetes provider?: The item waits for an upstream Harbor release that adds a Kubernetes provider, and it adds no runner of its own. A privileged Docker daemon in a pod breaks the least-privilege runtime rule, and a Kubernetes provider built here duplicates Harbor. (best practice) [sources: SECURITY.md:21, CONTEXT.md:52, docs/TESTING.md:200]
    • Chosen: Wait for the upstream Harbor Kubernetes provider. Harbor owns the trial runner, and CONTEXT.md:52 makes an upstream release a block, not a dependency.
    • Rejected: Run Harbor's docker provider in a privileged pod. The pod needs a privileged container or the host Docker socket, which breaks the least-privilege runtime rule of SECURITY.md:21.
    • Rejected: Build a Kubernetes provider in this repository. It duplicates the scheduling, log collection, retry and cost accounting of Harbor and needs repair at each Harbor release.
  • What does the result file hold, and where is it written?: The shipped result.json under eval/harbor of the data directory, with the pass rate, the trial count and the total cost. The item writes no second result file. (best practice) [sources: docs/TESTING.md:200]
    • Chosen: Keep the shipped result.json. run already writes the pass rate, the trial count and the total cost there, and one run takes one record.
    • Rejected: A new report under <data_dir>/roadmap_eval/harbor/. It duplicates the shipped result file and gives two records of one run.
  • What clears the block on the cluster run?: A released harbor version that names a Kubernetes provider, and a cluster trial with that provider that passes. The offline tests alone do not clear it. (best practice) [sources: CONTEXT.md:52, docs/TESTING.md:201]
    • Chosen: Clear the block when a released harbor version names a Kubernetes provider and a cluster trial passes. The provider is the one missing part, and CONTEXT.md:52 makes the upstream release the block.
    • Rejected: Clear the block when the fake harbor passes the offline tests. A fake proves the argv of the command, not that trials run on the cluster.

Fit

Fits in one pull request.

Suspected block

Harbor has no Kubernetes provider; the cluster run waits on an upstream Harbor release that adds one, and the item clears when a cluster trial with that provider passes.

Dependencies

None.

Activity

  1. added
    type/feature
    source/agent
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 2, 2026
  2. devops-cli-service commented on Nov 2, 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/feature. The feat prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P3-Low. The work is blocked on Harbor adding Kubernetes support, an external dependency not yet available.
    • Value: Medium. Running evals on the cluster enables cost and pass-rate measurement in the target environment, but the need is deferred until Harbor supports Kubernetes.
    • Effort: Medium. Once Harbor supports Kubernetes, the work is to add a backend flag and wire the cluster runner, a moderate change.
    • Related: feat(roadmap): Export eval fixtures as Harbor tasks with N trials #3104, which asks for a different change. Both items work on Harbor eval tasks, but #3104 covers the export and run mechanism while the candidate adds a Kubernetes cluster backend option.
  3. added
    priority/p3-low
    on Nov 2, 2026
  4. devops-cli-service commented on Nov 9, 2026

    @devops-cli-service
    ContributorAuthor

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

    • Harbor has no known Kubernetes backend; the cluster run waits on an upstream Harbor release that adds one.
  5. devops-cli-service commented on Nov 23, 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/mediumpriority/p3-lowscope/roadmapsource/agentstatus/newtype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions