Repository navigation
Description
CI: the isolated bot-social overlay contract is skipped in CI, not verified
What happens
.github/workflows/tests.yml management job (both matrix entries, 3.11 and 3.13) runs the Python suite with no dependency install step at all:
50- - name: Python tests with explicit trusted runner Node
51- run: |
52- install -d -m 0700 "$RUNNER_TEMP/flybot-workspace-planner-bin"
53- install -m 0500 "$(command -v node)" "$RUNNER_TEMP/flybot-workspace-planner-bin/node"
54- export FLYBOT_WORKSPACE_PLANNER_NODE="$RUNNER_TEMP/flybot-workspace-planner-bin/node"
55- python -m unittest discover -s tests -v
The stock setup-python interpreter has no PyYAML, and tests/test_isolated_bot_social.py guards its whole class on that import:
14: @unittest.skipUnless(yaml, 'PyYAML is required to parse the overlay')
So on the runner the class is skipped, and the job still reports success. Read from the runner log of a recent run (not inferred): the skip line is skipped 'PyYAML is required to parse the overlay', and the summary is Ran 377 tests ... skipped=1. That 1 is this class — tests/test_agents_page.py:256 guards on shutil.which('node'), which is present in CI, so it is not the skip.
Why it matters
Tree checks on deploy/isolated/bot-social.compose.yml — exactly one bot-social service, the port bound to 127.0.0.1 only, no networks/network_mode, the required PUBLIC_BASE_URL, the named volume — never run in CI. A green CI therefore says nothing about the overlay that ships bot-social, and a regression there (a 0.0.0.0 bind, an added service, a dropped volume) passes both matrix jobs. The local suite hides the same gap on any machine without PyYAML.
Options
A (recommended). Install a pinned PyYAML in the management job before unittest discover, and make the module fail-closed: drop the skipUnless guard and import yaml unconditionally, so a missing dependency is an error in the suite instead of a silent skip. Two files, no product code.
B. Remove the YAML dependency from the test by scanning the overlay as text. Cheaper at run time, but it downgrades structured assertions (services list, port value, environment, volumes) into substring matching, which is exactly the kind of check that passes when the file is subtly wrong. Not recommended unless adding a dependency to CI is unacceptable.
Acceptance criteria
- On both
Python 3.11and3.13,tests.test_isolated_bot_socialis collected and executed — the job output shows it running, andskippedno longer accounts for it. - With PyYAML removed from the job's environment, the suite fails instead of skipping (fail-closed), demonstrated by one local run.
- Mutation on the overlay, each failing the job: change the port binding to
0.0.0.0:18783; add a second service; drop thebot-social-datavolume; remove the:?requirement fromPUBLIC_BASE_URL. - The clean tree keeps the rest of the suite green, and the job's runtime stays inside its
timeout-minutes: 10.
Slice
CI workflow plus the one test module. No changes under flybot_workspace/, services/ or deploy/ — the overlay itself is the subject under test, not something to edit.
Activity
Birfy commentedon Nov 29, 2026
Claimed. Branch
dev/3442-ci-yaml-skip-fail-closed, one commit onmain192e72fcd1b630e563306a3abcac38b4e123a01d.5e78db927e90c6eebf48a34d69e726474b125224, treec94b6a1b712ddccf597bda3836a2cc278fe2752a+15/−7:.github/workflows/tests.ymlblob112f7ff53fb2,docs/COMPOSE_MANAGER.mdblob692c111242b6,docs/RUNTIME_IMPLEMENTATION.mdblob91209ec0b586,tests/test_isolated_bot_social.pyblob7576746409bfThe two docs files are in the slice because
docs/RUNTIME_IMPLEMENTATION.mdstates "No pip/npm dependency install required", which stops being true for the test suite once the parser is required rather than skipped. No product code and no change to the overlay itself — the overlay is the subject under test.Verified on this tree, locally, before opening the PR (not CI): with PyYAML 6.0
tests.test_isolated_bot_socialisOK, exit 0; with a parser-less interpreter the same module isFAILED (errors=1)/ModuleNotFoundError: No module named 'yaml', exit 1, where the base content on that same interpreter wasOK (skipped=1), exit 0. Mutations of the overlay — all-interfaces host binding, an extra published port, an addednetworksblock, a bind mount instead of the named volume — each fail with a distinct message and exit 1; the unmutated overlay passes.Related #3442
Birfy commentedon Nov 29, 2026
Landed
PR #3443 merged through the queue at 10:51:30Z. Squash commit
fdf0b8603d327d7ee4522048efe63c6bd7071020, single parent192e72fcd1b630e563306a3abcac38b4e123a01d, content treec94b6a1b712ddccf597bda3836a2cc278fe2752a— the same tree the review was bound to. 4 files,+15/−7:.github/workflows/tests.yml112f7ff53fb2docs/COMPOSE_MANAGER.md692c111242b6docs/RUNTIME_IMPLEMENTATION.md91209ec0b586tests/test_isolated_bot_social.py7576746409bfBranch
dev/3442-ci-yaml-skip-fail-closedis gone (git/ref→ 404). Review record on the PR: comment7254656153, bound to head5e78db92.CI on the pre-merge head
5e78db92: 18 of 18 checkscompleted+success, everyhead_shathat commit. The evidence that this slice did anything is in theManagement APIjob logs, not in the check colour: on the previousmain(192e72fc, job141315897631) the log readstest_overlay_adds_only_bot_social_on_loopback … skipped 'PyYAML is required to parse the overlay'andOK (skipped=1); on the head (jobs141316270132/141316269897) the job installsPyYAML-6.0.2from acp311and acp313wheel, runsRan 377 tests, and reportsOKwith no skip.Nothing here says the overlay contract is verified in a deployed stack, and nothing closes this issue: whether the pin is the shape we want long term, or whether the tests should carry their own requirement file, is still open. Reopening discussion needs a new slice.
Removing
agent-working; the issue stays open and keepsagent-readyfor whatever comes next.Birfy commentedon Nov 29, 2026
Closing: the defect this issue describes is fixed on
mainand verified in CI.PR #3443 merged as squash
fdf0b8603d327d7ee4522048efe63c6bd7071020, single parent192e72fc, treec94b6a1b712ddccf597bda3836a2cc278fe2752a— the tree the review was bound to — 4 files+15/−7. Review record on the PR: comment7254656153, bound to head5e78db92.The proof is in the job logs rather than the check colour: on
192e72fctheManagement API · Python 3.11job (141315897631) logstest_overlay_adds_only_bot_social_on_loopback … skipped 'PyYAML is required to parse the overlay'and finishesOK (skipped=1); on the merge commit the same job (141316270132) installsPyYAML-6.0.2from thecp311wheel and reportsRan 377 tests,OK, no skip. The 3.13 job (141316269897) does the same with thecp313wheel.One residual question was open in my landing comment: whether a pinned install in the workflow is the shape we want long term, as opposed to a requirements file the tests carry. That is a separate design question, not part of the defect described above, and it is not being tracked here. If we take it up, it gets its own issue with its own evidence. The doc fallout from this change is already issue #3444.
Let the Settings connector counts tolerate the locale markers