Repository navigation
Closed
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/infraDocker container images, DevContainers, and infrastructure toolingsource/agentFiled by an agenttype/featureType feature: a new functionvalue/mediumValue Medium
Description
Problem
Checked at devops-cli main 4ff4b7c.
devops infra onboardlists the roles of an infra repository withfind_rolesover the folders ofroles_path(src/devops_cli/infra/onboard.py:383;src/devops_cli/project/profile.py:190readsroles_pathofansible.cfg). It reads the head of the default branch, not the working tree (devops infra onboard --help).- After dan-petty/homelab#76, homelab runs its node roles from the installed collection
dan_petty.infra. Itsansible/rolesfolder then holds fewer roles, and the onboard row reports the moved roles as missing. ansible-doc -t role -l -j(ansible-core) lists the roles ofroles_pathand of each installed collection from their argument specs (feat(ansible): ship the nvidia, gvisor and cpu_tuning roles infra#7 and feat(ansible): ship the common role and the generic plays infra#8 add them).devops infra planalready installs the pinned collections ofcollections/requirements.yml(src/devops_cli/infra/plan.py:409).
Proposed remedy
Use the listing of ansible-core. Do not walk the collection folders in our own code.
- The roles row installs the collections of
collections/requirements.ymlinto a temporary path with the install helper ofplan.py, and adds the roles thatansible-doc -t role -l -jreports for them. Use the subprocess helper of ARCHITECTURE.md. Ifansible-docis not on the path, keep the current row and say why in its reason. - Write the tests first, with a fixture collection in
tmp_path.
Acceptance criteria
- A new test fails on main and passes on the branch: a role of a fixture collection shows in the roles row.
-
uv run devops ci --check --only test,lint,typecheckpasses. - After dan-petty/homelab#76 merges:
uv run devops infra onboard dan-petty/homelabin a devops-cli checkout listsdan_petty.infra.nvidia.
Person steps
None.
Dependencies
None. It lands before dan-petty/homelab#76.
Metadata
Metadata
Assignees
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/infraDocker container images, DevContainers, and infrastructure toolingsource/agentFiled by an agenttype/featureType feature: a new functionvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 21, 2026
Both concern the devops infra onboard command; 5121 created the command and the candidate adds collection-role listing to its roles row.fix(docs): class the README of the fixture collection as a record (#6678
devops-cli-service commentedon Nov 21, 2026
Released in v0.190.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.190.0
devops-cli-service commentedon Nov 21, 2026
Live since 2026-11-21 23:18 UTC