Repository navigation
Closed
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/docsDocuments, guides, ADRs and generated referencessource/agentFiled by an agenttype/testType test: a new or changed testvalue/mediumValue Medium
Description
Problem Description
Six tests of tests/docs fail at setup when the shell that runs them sets DEVOPS_CLI_CONFIG to a config file outside the test folder. The hermetic floor stops them with host path reached without a fake: <checkout>/config.yaml, so the setup reads the config of the person and not the per-test config. Every other test of the run passes with the same shell.
Failing tests:
tests/docs/test_docs_source_argv_collector.py::test_unresolved_fixture_argv_are_reported_with_their_source_linetests/docs/test_docs_source_argv_collector.py::test_a_module_without_a_quoted_devops_is_not_parsedtests/docs/test_docs_source_argv_collector.py::test_the_collector_reads_every_module_and_both_prefixestests/docs/test_docs_source_argv_collector.py::test_every_devops_argv_in_src_resolvestests/docs/test_docs_source_argv_collector.py::test_docs_check_reports_an_unresolved_source_argvtests/docs/test_docs_synced_blocks.py::test_the_job_success_page_gets_the_grade_table
Reproduction Steps
- Set
DEVOPS_CLI_CONFIGto the config file of the checkout (a devcontainer shell sets it). uv run devops ci test tests/docs/test_docs_source_argv_collector.py tests/docs/test_docs_synced_blocks.py
Expected vs Actual Behavior
Expected: the tests pass, because each test has its own config file.
Actual: 5 passed, 6 errors, each error host path reached without a fake: <checkout>/config.yaml at setup and teardown. With env -u DEVOPS_CLI_CONFIG the same run passes.
Environment Diagnostics
devops-cli at origin/main 5645b63, Python 3.14.10, pytest 9.2.0, in the devcontainer.
Logs, Traces, or Terminal Output
ERROR at setup of test_every_devops_argv_in_src_resolves
host path reached without a fake: <checkout>/config.yaml
ERROR at teardown of test_every_devops_argv_in_src_resolves
Edge reached outside a test: host path reached without a fake: <checkout>/config.yaml
Found by the builder of #5125.
Metadata
Metadata
Assignees
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/docsDocuments, guides, ADRs and generated referencessource/agentFiled by an agenttype/testType test: a new or changed testvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 12, 2026
Both items fix tests that read host state in a devcontainer, but the candidate targets six docs tests reading DEVOPS_CLI_CONFIG while #3597 targets four other tests reading different host state.