You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(slm): real-ansible tests find ansible-playbook for the skip, then run it under a PATH that lacks it #20792
SLM backend tests that run a real local playbook skip when shutil.which("ansible-playbook") is None. Then they run the bare name ansible-playbook with a hand-written PATH (for example /usr/bin:/bin:/usr/local/bin). When ansible is installed in a virtualenv, the skip check finds it but the subprocess doesn't, so the test fails with FileNotFoundError: 'ansible-playbook' instead of running.
Both were fixed the same way: run the path which returned and put its directory first on PATH. The class needs one home, so the next test can't reintroduce it.
Acceptance criteria
One shared test helper (under autobot-slm-backend/tests/) returns the resolved ansible-playbook path plus a minimal env whose PATH contains its directory. Both tests above use it.
A guard fails on any SLM test that passes the bare string "ansible-playbook" as a subprocess argv[0].
Activity
github-actions commentedon Nov 4, 2026
needs-structurecleared: goal milestone, matching phase label and native parent (or sub-issues) are all present (#19522).