Skip to content

Bats lint test fails when lint-test.bats runs before the role install #207

Closed

Description

@DevSecNinja

lint-test: ansible-lint passes on roles fails when tests/bash/lint-test.bats runs before the files that install the Galaxy roles:

not ok 4 lint-test: ansible-lint passes on roles
# syntax-check[specific]: The role 'geerlingguy.docker' was not found in: ...

It failed on Renovate PR #202 (2026-11-13) and on steward/lint-ci (2026-11-17, without a dependency change), and passed on main where it ran as test #58. run-tests.sh passes the .bats files in find order, which differs between runners, and only docker-test.bats and syntax-test.bats install ansible/requirements.yml. ansible-lint runs offline (.ansible-lint), so it can't fetch the role itself.

Found in the stuck-Renovate-PR analysis (repo-steward T141); fix approved as T150 (a).

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions