Skip to content

test(docs): six docs tests read DEVOPS_CLI_CONFIG of the shell #5268

Closed

Description

@dan-petty

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_line
  • tests/docs/test_docs_source_argv_collector.py::test_a_module_without_a_quoted_devops_is_not_parsed
  • tests/docs/test_docs_source_argv_collector.py::test_the_collector_reads_every_module_and_both_prefixes
  • tests/docs/test_docs_source_argv_collector.py::test_every_devops_argv_in_src_resolves
  • tests/docs/test_docs_source_argv_collector.py::test_docs_check_reports_an_unresolved_source_argv
  • tests/docs/test_docs_synced_blocks.py::test_the_job_success_page_gets_the_grade_table

Reproduction Steps

  1. Set DEVOPS_CLI_CONFIG to the config file of the checkout (a devcontainer shell sets it).
  2. 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.

Activity

  1. added
    source/agent
    type/test
    scope/docs
    status/new
    value/medium
    effort/low
    on Nov 12, 2026
  2. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    status/in-review
    and removed
    status/new
    on Nov 12, 2026
  4. removed
    status/in-review
    on Nov 15, 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/docssource/agenttype/testvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions