You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(ci): four tests read host state and fail in a devcontainer #3597
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
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.
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.
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.
Activity
dan-petty commentedon Nov 5, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(ci)scope of the title gives the scope.The failure blocks the CI gate but does not change product behavior.Unblocks the CI pipeline for all contributors.Each test needs a small change to use tmp_path or a fake of the process edge.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 hosas 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.dan-petty commentedon Nov 6, 2026
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.