Skip to content

feat(infra): list the roles of installed collections in onboard #6678

Closed

Description

@dan-petty

Problem

Checked at devops-cli main 4ff4b7c.

  • devops infra onboard lists the roles of an infra repository with find_roles over the folders of roles_path (src/devops_cli/infra/onboard.py:383; src/devops_cli/project/profile.py:190 reads roles_path of ansible.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. Its ansible/roles folder 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 of roles_path and 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 plan already installs the pinned collections of collections/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.yml into a temporary path with the install helper of plan.py, and adds the roles that ansible-doc -t role -l -j reports for them. Use the subprocess helper of ARCHITECTURE.md. If ansible-doc is 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,typecheck passes.
  • After dan-petty/homelab#76 merges: uv run devops infra onboard dan-petty/homelab in a devops-cli checkout lists dan_petty.infra.nvidia.

Person steps

None.

Dependencies

None. It lands before dan-petty/homelab#76.

Activity

  1. added
    type/feature
    on Nov 21, 2026
  2. dan-petty commented on Nov 21, 2026

    @dan-petty
    OwnerAuthor
  3. added
    scope/infra
    source/agent
    status/new
    value/medium
    effort/medium
    priority/p2-medium
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 21, 2026
  4. added
    status/in-review
    and removed
    status/in-progress
    on Nov 21, 2026
  5. removed
    status/in-review
    owner/agent
    on Nov 21, 2026
  6. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    Contributor
  7. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-21 23:18 UTC

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

    effort/mediumpriority/p2-mediumscope/infrasource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions