Skip to content

test(devcontainer): post-create and post-start tests start no real installer, uv sync, kubectl or sudo #1731

Closed

Description

@dan-petty

Split from #1725 (CI time budget), so that this row is one issue delivered by one pull request.

Friction

The devcontainer post-create and post-start tests start real programs:

  • Installers: on the GitHub runner, which has no claude, four post-create tests run Claude Code's real installer, a 276 MB download, on every CI run.
  • uv: the instruction-generator test also syncs semgrep and bandit from PyPI with uv.
  • kubectl: four post-start tests ask a real kubectl for the kubeconfig's contexts, because the unset context defaults to minikube.
  • sudo: test_ensure_path_ownership_and_mount_edge_cases runs a real sudo chown -R None:1000, because it sets os.getuid to return None instead of removing it.

Evidence

  • On the runner: test_devcontainer_post_create_scaffolds_agent_instructions takes 16.9s. The post_create, setup_volume and run_lifecycle tests of TestDevcontainerCli take 13.0s, 12.8s and 12.0s.
  • Runner-like PATH: post_create took 19.4s, of which the installer was 19.3s.

Remedy

The tests answer post-create's programs as installed, pass --skip-tools where they don't test tool installation, name no Kubernetes context where they don't assert on the context step, and test a missing getuid by removing it. Every assertion stays.

Acceptance criteria

  • None of these tests starts an installer, uv, kubectl or sudo. A per-test spawn probe confirms it.
  • Each of them takes under 1s on a runner-like PATH.
  • uv run devops ci passes.

Activity

  1. added this to the v0.2.38 milestone on Oct 20, 2026
  2. added
    type/test
    priority/p0-critical
    scope/ci
    source/agent
    on Oct 20, 2026
  3. added 2 commits that reference this issue on Oct 20, 2026
    d998c94
    e0618b7
  4. dan-petty commented on Oct 20, 2026

    @dan-petty
    OwnerAuthor

    What changed

    #1730, merged into release/v0.2.38 as e0618b7.

    Stops the devcontainer post-create and post-start tests from running real installers, a uv sync, kubectl and sudo. These are among the slowest tests on the GitHub runner. This row was split from #1725's CI time budget.

    4 file(s) changed.

    How it was verified

    Check runs at d998c94:

    • Prune PR DevContainer Images: pass
    • Audit Defect PR Hardening: skipping
    • zizmor: pass
    • devops-cli: pass
    • bandit: pass
    • CodeQL: pass
    • Rule Pack Tests: pass
    • Fail-to-Pass Self-Check: pass
    • Changed-Test Independence: pass
    • Tests & Coverage: pass
    • Analyze (python): pass
    • Fail-to-Pass Check: pass
    • Analyze (actions): pass
    • Static Analysis: pass
    • DevContainer Image: skipping
    • Service Image: skipping
    • Dependency Freshness: skipping

    Acceptance Criteria of docs/agent/tasks/task-1731-devcontainer-tests-start-no-real-programs.md:

    No Acceptance Criteria section.

  5. added 2 commits that reference this issue on Oct 21, 2026
    1a8b26c
    f92399e
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

    priority/p0-criticalscope/cisource/agenttype/test

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions