Problem with DOCUMENTATION.version_added value in sanity tests

5 views
Skip to first unread message

syhR8

unread,
Jun 2, 2020, 1:17:19 PM6/2/20
to Ansible Development
Hello All,

For a couple of days I've been getting the following error in the Ansible sanity tests...

ERROR: plugins/modules/cassandra_autocompaction.py:0:0: module-invalid-version-added: DOCUMENTATION.version_added: invalid semantic version '2.8' for dictionary value @ data['version_added']. Got 'community.cassandra:2.8'

The value for version_added in the files is as I expect. In the above case...

version_added: 2.8

The string community.cassandra is not in the file at all so I know there's no parsing issues. Anyone have an idea what's up here?

Cheers,

Andreas Härpfer

unread,
Jun 2, 2020, 1:49:37 PM6/2/20
to Ansible Development


> On 2. Jun 2020, at 19:17, 'syhR8' via Ansible Development <ansibl...@googlegroups.com> wrote:
>
> The value for version_added in the files is as I expect. In the above case...
>
> version_added: 2.8


Since a semantic version is a string I would assume that this
needs to be quoted, i.e.:

version_added: "2.8"

Cheers
-Andi

Felix Fontein

unread,
Jun 2, 2020, 4:37:06 PM6/2/20
to ansibl...@googlegroups.com, syhR8
Hi,

> For a couple of days I've been getting the following error in the
> Ansible sanity tests...
>
> ERROR: plugins/modules/cassandra_autocompaction.py:0:0:
> module-invalid-version-added: DOCUMENTATION.version_added: invalid
> semantic version '2.8' for dictionary value @ data['version_added'].
> Got 'community.cassandra:2.8'

this is related to https://github.com/ansible/proposals/issues/178

Once all deprecation stuff is settled, there'll be an announcement in
https://github.com/ansible-collections/overview/issues/45

> The value for version_added in the files is as I expect. In the above
> case...
>
> version_added: 2.8

That's a invalid version number for a collection. Collections must use
semantic versioning.

> The string community.cassandra is not in the file at all so I know
> there's no parsing issues. Anyone have an idea what's up here?

That's automagically added, so documentation can say which version a
version_added refers to (it could come from a doc fragment from another
collection, or from ansible-base).

Cheers,
Felix


Reply all
Reply to author
Forward
0 new messages