Skip to content

CI: The test plugin 'ansible.builtin.version' failed: Version comparison failed: invalid version number '2.19.0rc1' #1293

Description

@moreati

Various integration tests are gated based on the Ansible version, e.g.

- meta: end_play
when:
- ansible_version.full is version('2.6', '<', strict=True)
.

This fails when the ansible-core version under test is a release condidate, version(..., strict=True) accepts "1.2.3", "1.2.3a1", or "1.2.3b1". It doesn't accept "1.2.3rc1". Ansible 4 (ansible-core 2.11) added version(..., version_type=...). Ansible 7 (ansible-core 2.14) added version(..., version_type='pep440').

See

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

    ciContinuous integration (Github Actions) problems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions