Repository navigation
Description
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
main192e72fc: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.mdanddocs/IMPLEMENTATION.mdno 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:54on an interpreter withoutyamlgets 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
Birfy commentedon Nov 29, 2026
Claiming this slice. Branch:
dev/3444-docs-yaml-test-instructions, cut frommainfdf0b8603d327d7ee4522048efe63c6bd7071020.Scope as written in the issue: documentation only, four places that show
python3 -m unittest discover -s testswith 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(minicondaflybot, Python 3.11):192e72fc:Ran 377 tests,OK (skipped=1), exit 0.fdf0b860:FAILED (errors=1),ModuleNotFoundError: No module named 'yaml', exit 1.Explicitly not in this slice:
docs/MANAGEMENT_API.md:13sayscompileall -q flybot-workspacewhile the directory isflybot_workspace; and no code, workflow or test file changes. Opening ascripts/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.Birfy commentedon Nov 29, 2026
Landed as squash
63b36a9193c77703079858fb6599412c4fb6120e(single parentfdf0b8603d327d7ee4522048efe63c6bd7071020, no merge commit), treecb65483cf41ba26edc13722a3bfa63a7b7f84c4a— bit-identical to the tree bound in the review.The four documents, blobs as landed:
docs/GETTING_STARTED.mdebee30d05da7docs/IMPLEMENTATION.md5ffb5c106150docs/MANAGEMENT_API.md802946bddfefdocs/UI_SURFACES_DISPATCH.md563f4c864cf1Review: review
6102641711bound head0de3251712c271468bbdd61c91198babe1ead6b0/ treecb65483c. CI read on that exact head:total_count 18 == returned 18, 18/18completed+success, everyhead_shaequal to the head. The landing commit message carriesRelated #3444and no closing keyword, so nothing was auto-closed by the merge.Closing this issue as completed: the four
unittest discovercommand 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:
docs/MANAGEMENT_API.md:13anddocs/RUNTIME_IMPLEMENTATION.md:54pass a hyphenatedflybot-workspacetocompileall, which compiles nothing and still exits 0 — docs: two compileall command blocks pass a hyphenated package name, so they compile nothing and still exit 0 #3447.REUSE_POLICY.md:24was deliberately left unchanged; it speaks about an application package, and PyYAML is installed for tests only.