Description
Problem
PR #19959 adds a husk-clear include before the SLM pip task in autobot-slm-backend/ansible/playbooks/update-all-nodes.yml. The two tasks do not carry the same tags:
| Task | Tags at PR #19959 head 6fcd83bcf7 |
|---|---|
[PLAY 1] SLM | Clear venv husks before pip (tags and apply: tags) |
slm, deps |
[PLAY 1] SLM | Install Python dependencies |
slm, slm-backend, deps |
A manual --tags slm-backend run therefore selects pip and skips the husk clear. On a husked venv with changed dependencies, pip stops with the same uninstall failure #19973 fixes. The playbook's header lists slm-backend as a supported selector.
The backend pair matches (backend, deps on both).
Impact
Manual runs only. The builtin updater never selects slm-backend: its execute_playbook calls in autobot-slm-backend/api/code_sync.py pass either no tags or !restart.
Why the test misses it
repo_tests/updater_clears_venv_husks_19973_test.py checks only that the include comes before the first pip install. It does not compare when or tags.
Acceptance criteria
- The SLM husk-clear include carries every tag of the SLM pip task, on both
tagsandapply: tags. -
repo_tests/updater_clears_venv_husks_19973_test.pyfails when a pip task's tags are not all on its husk-clear include, for both the SLM and backend venvs. - The same test fails when the include's
whendiffers from its pip task'swhen. - A contrast case in the test proves the tag comparison catches the current mismatch.
Activity
mrveiss commentedon Nov 2, 2026
Landed in the merge train (PR #20594,
655489c4e6) via #20548.tagsandapply: tagsautobot-slm-backend/ansible/playbooks/update-all-nodes.yml, task "[PLAY 1] SLM | Clear venv husks before pip (#17339)":apply: tags: [slm, slm-backend, deps]andtags: [slm, slm-backend, deps]; the pip task "[PLAY 1] SLM | Install Python dependencies" carries[slm, slm-backend, deps].repo_tests/updater_clears_venv_husks_19973_test.pyfails when a pip task's tags are not all on its husk-clear include, for both venvs_mismatchescomparestagsandapplytags (wanted <= ...);test_a_tagged_run_cannot_reach_pip_without_the_repairloops over_MARKER_CAPABLE = ("autobot-slm-backend", "autobot-backend").whendiffers from its pip task'swhen_mismatchesappends"when"ifhusk.get("when") != pip.get("when"); both SLM tasks usehostvars['localhost']['python_deps_changed'] | bool.test_contrast_each_mismatch_is_caughtasserts["tags"]for["slm", "deps"](the shape this issue found),["apply tags"]and["when"].4 of 4 met. Closing.