Skip to content

docs: two compileall command blocks pass a hyphenated package name, so they compile nothing and still exit 0 #3447

Done

Description

@Birfy

Two docs/ command blocks run python3 -m compileall -q flybot-workspace tests. The package directory is flybot_workspace (underscore), so the hyphenated argument matches nothing: compileall prints Can't list 'flybot-workspace' on stdout (stderr stays empty) and still exits 0. The command looks green while the package is never byte-compiled.

Where

  • docs/MANAGEMENT_API.md:13 — python3 -m compileall -q flybot-workspace tests
  • docs/RUNTIME_IMPLEMENTATION.md:54 — same line

.github/workflows/tests.yml:64 already uses the correct name (python -m compileall -q flybot_workspace tests), so this is documentation only; CI never exercises the typo.

Measured (local, not CI)

On fdf0b8603d327d7ee4522048efe63c6bd7071020 in a clean venv (Python 3.11.18, PyYAML present), copying the MANAGEMENT_API.md:12-20 block line by line:

  • python3 -m compileall -q flybot-workspace tests -> exit 0, stdout Can't list 'flybot-workspace' (30 B), stderr empty.
  • Isolated to that single line: flybot_workspace/ gains 0 __pycache__ directories, tests/ gains 2. The package is untouched.
  • With the correct name, python3 -m compileall -q flybot_workspace tests -> exit 0, stderr empty, and flybot_workspace/ gains 2 __pycache__ directories.

Same failure class as #3442: an exit code of 0 while the command did not do what it claims.

Acceptance

  1. Neither doc contains compileall with flybot-workspace.
  2. From a clean checkout, the corrected line exits 0 with empty stderr and leaves __pycache__ directories under flybot_workspace/.
  3. Only these two documentation lines change (plus one guard test if step 4 is taken); no code, workflow, or other doc edit.
  4. Recommended, droppable by the maintainer: a guard test that reads docs/**/*.md, finds every compileall -q <dir> <dir>, and asserts each directory exists at the repo root — so the next rename cannot silently bring this back.

Notes

Related #3438 is not related; this issue stands alone.

Activity

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

    @Birfy
    CollaboratorAuthor

    Claiming this docs slice now that #3445 has landed (main 63b36a9193c77703079858fb6599412c4fb6120e, tree cb65483c), so the two compileall lines are cut from the current file contents rather than from a pre-#3445 tree.

    Branch dev/3447-docs-compileall-underscore, cut from that commit. Scope: the two documented lines (docs/MANAGEMENT_API.md:13, docs/RUNTIME_IMPLEMENTATION.md:54) plus, if the maintainer keeps it, one guard test that reads the docs and asserts each compileall -q <dir> names an existing directory.

    Out of scope: docs/UI_SURFACES_DISPATCH.md:8 (it names no directory), any change to .github/workflows/tests.yml (already correct), and any application code.

    Evidence already on the table from the #3444 work, local and not CI: the hyphenated line exits 0 with stderr Can't list 'flybot-workspace' and leaves zero __pycache__ under flybot_workspace/; the corrected name exits 0 with empty stderr and compiles the package.

  3. Birfy commented on Nov 29, 2026

    @Birfy
    CollaboratorAuthor

    Correction and close.

    The report said the complaint is printed on stderr. It is not: compileall uses a bare
    print(), so Can't list 'flybot-workspace' goes to stdout - 30 B measured on the patched
    tree, stderr 0 B, exit 0, and 0 __pycache__ directories under flybot_workspace/. With the
    corrected argument both streams are empty, exit is 0, and flybot_workspace/ gains 2
    __pycache__ directories (57 .pyc files on the merged tree). The issue body now carries the
    corrected stream; the first revision of the pull request description carried the same mistake
    and was corrected there too.

    Landed as 28a5b2eb5a8250d15e69f7674db584e63b44fa59 (tree 03e3755c, parent 3b8d3fa6),
    2 files +2/-2, blobs 4ddf2ed2 and 12c3f636; both blocks now read
    python3 -m compileall -q flybot_workspace tests at MANAGEMENT_API.md:14 and
    RUNTIME_IMPLEMENTATION.md:54.

    The wider class this belongs to - a command that exits 0 without doing what it claims - is not
    closed by this change and is not claimed to be. This issue only fixes the two documentation
    lines that taught the broken argument.

    Closing as completed.

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-readyagent-working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions