Skip to content

docs: four run-the-tests instructions still fail on a clean machine now that the overlay test needs PyYAML #3444

Done

Description

@Birfy

Four documents still tell a reader to run the Python suite with nothing installed. After the pinned-parser change landed (fdf0b860, Related #3442), that command fails on a clean machine, so the documentation now describes a red run as the verification step.

What is wrong

tests/test_isolated_bot_social.py imports yaml directly now, and only .github/workflows/tests.yml installs it. These four places show the suite command with no install step:

file line what it says
docs/GETTING_STARTED.md 54 python3 -m unittest discover -s tests inside "开发时验证改动"
docs/MANAGEMENT_API.md 12 python3 -m unittest discover -s tests -v under the heading "Stack and execution"
docs/IMPLEMENTATION.md 3 Test: python3 -m unittest discover -s tests -v. inline in the first paragraph
docs/UI_SURFACES_DISPATCH.md 8 unittest discover -s tests -v as the command for flybot_workspace/**/*.py changes

Two of them contradict themselves in the same paragraph. docs/MANAGEMENT_API.md:9 says "No pip packages", and docs/IMPLEMENTATION.md:3 says "No third-party packages or upstream code are imported", each directly followed by the command that now needs one.

docs/COMPOSE_MANAGER.md:306 and docs/RUNTIME_IMPLEMENTATION.md:49 already carry python3 -m pip install 'PyYAML==6.0.2' in their command blocks — that is the shape the other four should match, and it is why this is a doc-consistency gap rather than a design question.

Evidence

Measured on this repository, same machine, same interpreter without yaml (miniconda flybot, Python 3.11):

  • content at the pre-change main 192e72fc: Ran 377 tests, OK (skipped=1), exit 0 — the command in these docs appeared to pass.
  • content at fdf0b860: FAILED (errors=1), ModuleNotFoundError: No module named 'yaml', exit 1 — the command in these docs now fails.

The CI logs show the same pair: job 141315897631 on 192e72fc logs skipped 'PyYAML is required to parse the overlay', while jobs 141316270132 and 141316269897 on the change install the wheel and report OK with no skip.

Slice

Documentation only. For each of the four places, either add python3 -m pip install 'PyYAML==6.0.2' to the same command block (matching the wording already used in docs/COMPOSE_MANAGER.md:306) or point the reader at a block that contains it. Narrow the two dependency statements so they are true: the runtime and server still need no third-party package, the test suite additionally needs PyYAML 6.0.2.

Acceptance

  • grep -rn "unittest discover" docs/ returns no command that a reader could copy on a clean machine and get a red run: every hit is inside a block that installs the parser, or is a cross-reference to one.
  • docs/MANAGEMENT_API.md and docs/IMPLEMENTATION.md no longer claim the test suite has no third-party dependency; each names PyYAML 6.0.2 as the test-time exception.
  • Diff touches only files under docs/. No workflow, no test, no product code.
  • A reader following docs/GETTING_STARTED.md:54 on an interpreter without yaml gets a green run.

Out of scope

Also observed while reading, deliberately not folded in: docs/MANAGEMENT_API.md:13 says python3 -m compileall -q flybot-workspace tests with a hyphen, while the directory in the tree is flybot_workspace. That is a separate staleness bug; mention it in review or open its own issue, but do not quietly fix it inside this slice.

Same for the bigger question this raises: four copies of the same command will drift again. A single scripts/ entry point that installs the parser and runs the suite is the durable fix, but it is a different slice with code in it. This issue is the doc correction only.

Activity

  1. added
    agent-ready
    on Nov 29, 2026
  2. Birfy commented on Nov 29, 2026

    @Birfy
    CollaboratorAuthor

    Claiming this slice. Branch: dev/3444-docs-yaml-test-instructions, cut from main fdf0b8603d327d7ee4522048efe63c6bd7071020.

    Scope as written in the issue: documentation only, four places that show python3 -m unittest discover -s tests with nothing installed (docs/GETTING_STARTED.md:54, docs/MANAGEMENT_API.md:12, docs/IMPLEMENTATION.md:3, docs/UI_SURFACES_DISPATCH.md:8), plus the two sentences that contradict them (docs/MANAGEMENT_API.md:9, docs/IMPLEMENTATION.md:3).

    Bound evidence for the gap, measured on this machine with an interpreter that has no yaml (miniconda flybot, Python 3.11):

    • content at 192e72fc: Ran 377 tests, OK (skipped=1), exit 0.
    • content at fdf0b860: FAILED (errors=1), ModuleNotFoundError: No module named 'yaml', exit 1.

    Explicitly not in this slice: docs/MANAGEMENT_API.md:13 says compileall -q flybot-workspace while the directory is flybot_workspace; and no code, workflow or test file changes. Opening a scripts/ entry point for the suite is a different slice.

    Implementation will come back to me as a diff against fdf0b860; the write channel is mine, so the branch appears here only after the patch is reviewed against this scope.

  3. added
    agent-working
    on Nov 29, 2026
  4. Birfy commented on Nov 29, 2026

    @Birfy
    CollaboratorAuthor

    Landed as squash 63b36a9193c77703079858fb6599412c4fb6120e (single parent fdf0b8603d327d7ee4522048efe63c6bd7071020, no merge commit), tree cb65483cf41ba26edc13722a3bfa63a7b7f84c4a — bit-identical to the tree bound in the review.

    The four documents, blobs as landed:

    File Blob
    docs/GETTING_STARTED.md ebee30d05da7
    docs/IMPLEMENTATION.md 5ffb5c106150
    docs/MANAGEMENT_API.md 802946bddfef
    docs/UI_SURFACES_DISPATCH.md 563f4c864cf1

    Review: review 6102641711 bound head 0de3251712c271468bbdd61c91198babe1ead6b0 / tree cb65483c. CI read on that exact head: total_count 18 == returned 18, 18/18 completed + success, every head_sha equal to the head. The landing commit message carries Related #3444 and no closing keyword, so nothing was auto-closed by the merge.

    Closing this issue as completed: the four unittest discover command blocks now each have the install line next to them, and the two "no third-party package" sentences are narrowed to the runtime only.

    Two things found while doing this are tracked separately and are not part of this issue:

  5. removed
    agent-working
    on Nov 29, 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

    agent-ready

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions