-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comply with updated Ansible sanity test rules #7229
Comply with updated Ansible sanity test rules #7229
Conversation
Build succeeded.
|
Build succeeded.
|
@AlanCoding do I understand correctly that you have one set of sources (https://github.com/ansible/awx/tree/devel/awx_collection) for two different collections (awx.awx and ansible.tower)? Do both use the same version numbers, or do these also differ?
Well, the consensus seemed to be that I guess you can still mention this in
So both collections have different version schemes? I unfortunately only found one of them (https://galaxy.ansible.com/awx/awx), so I cannot compare.
If you release the same content under two different namespaces, you might want to template the content in a way that the correct version numbers are added in both namespaces. |
Yes, one is on Galaxy and the other is one cloud.redhat.com.
Versions are different, because versions are hard-and-fast bound to the server versions. It is exactly as confusing as what the original decisions for server versioning were. AWX leapfrogged Tower versions intentionally, so that they don't hit the 3.x.x series. For an idealized case moving forward, I think we would have Templating (replacing) the namespace is one thing, but replacing version numbers would require a mapping of versions of one server version to the other. Such a mapping never has existed. I don't want to start such a thing strictly for the purposes of the collection. |
Then why not just put the ansible.tower versions into version_added in the correct format (semver, i.e. x.y.0)? ansible-test only ensures that versions are of the correct format (i.e. semver for collection versions). Also, if you want to put other version numbers there, why not simply add ignore.txt entries? |
Isn't that what I'm doing here? I think I might see a point of confusion. There are 3 deprecated modules right now, and these were explicitly excluded from |
Ah, I eventually found that. I had to scroll down several pages before I found a version_added that wasn't removed. I was wondering why you're still removing all these numbers. Are these Tower versions, and is Tower using versions that are not of the form |
The version numbers being removed are almost entirely Ansible versions from 2.9 or earlier. Even things that were added since then didn't use |
I saw a lot of |
oh right, 3.7.0 was the initial version of |
Build succeeded (gate pipeline).
|
SUMMARY
See:
ansible/proposals#178 (comment)
That applies for the auto-migrated collections, and other maintainers still can go their own way. But the tests don't allow for pinning versions from ansible-base. So we can't keep the old stuff. That decision has already been made.
There are some other wonky things in here, because we are balancing 2 different namespaces. For the 3 deprecated modules not shipped in the
ansible.tower
collection, we are free to referenceawx.awx
versions.In the modules where we deprecate things which are in
ansible.tower
, we prefer Tower versions over AWX versions. Thus, we ignore those rules permanently forawx.awx
. We might have to delete those rules for theansible.tower
collection (because it will become correct with the namespace change, and will trigger the unnecessary-ignore rule). Let me ping @felixfontein here, because I'm sure they weren't anticipating this situation of releasing the same content under 2 different namespaces.ISSUE TYPE