Skip to content

fix(ci): four tests read host state and fail in a devcontainer #3597

Closed as not planned

Description

@dan-petty

Problem or Motivation

Four tests of devops ci fail on a development container that has host state. They fail the same way on origin/main at d254410, so no change of a feature branch causes them. The failures stop the full uv run devops ci run.

Reproduction Steps

  1. Check out origin/main in a clean worktree and run uv run pytest on these tests:
    • tests/crypto/test_ssh.py::test_get_ssh_key_prefix_resolution returns devops_cli where it expects my_plain_repo. The repository name comes from the directory of the checkout.
    • tests/telemetry/test_config_env_overrides.py::test_find_project_config_path_skips_directory finds a config file in the temporary directory, so the test expects none and fails.
    • tests/commands/test_devcontainer_install_tools_dry_run.py::test_mark_only_commands_under_global_dry_run finds a tool that the test expects to be missing, so the text not installed is absent.
    • tests/ai/test_tool_executor_contract.py::test_the_direct_executor_refuses_a_network_profile_before_it_starts_the_tool[direct] finds a tool binary in the user data directory and reaches the host path without a fake.

Expected vs Actual Behavior

Expected: each test passes on any devcontainer, and on the GitHub runner, that has the same image.

Actual: each test depends on a file, a tool or a directory name that the host holds. The tests fail when the host holds it.

Proposed Solution & Architectural Design

Each test must hold its inputs in tmp_path or in a fake of the process edge, so that it reads no host state. The check for a missing tool must use a fake of the lookup on PATH. A check of the repository name must set the name itself.

Activity

  1. added
    source/agent
    type/bug
    scope/ci
    status/new
    value/medium
    effort/low
    on Nov 5, 2026
  2. dan-petty commented on Nov 5, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/ci. The (ci) scope of the title gives the scope.
    • Priority: P2-Medium. The failure blocks the CI gate but does not change product behavior.
    • Value: Medium. Unblocks the CI pipeline for all contributors.
    • Effort: Low. Each test needs a small change to use tmp_path or a fake of the process edge.
    • Possible duplicate: fix(tests): four tests fail on the devcontainer host #3590, which may ask for the same change. The model names Make the four tests (test_get_ssh_key_prefix_resolution, test_find_project_config_path_skips_directory, test_mark_only_commands_under_global_dry_run, test_the_direct_executor_refuses_a_network_profile_before_it_starts_the_tool) not read hos as the change that both ask for. Both ask for the same four tests to be fixed so they do not read host state, with the same acceptance criteria. A person closes one of the two if that is so.
  3. added
    priority/p2-medium
    on Nov 5, 2026
  4. dan-petty commented on Nov 6, 2026

    @dan-petty
    OwnerAuthor

    Duplicate of #3585. This item lists the same four failing tests, and the fix design is in #3585. No pull request or branch exists for this item, so no work is lost. This item closes as not planned. If a point of this item is missing in #3585, add it there.

  5. removed
    status/new
    on Nov 6, 2026
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/p2-mediumscope/cisource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions