|
|
|
galaxy_verbosity: "{{ '' if not ansible_verbosity else '-' ~ ('v' * ansible_verbosity) }}"
|
|
|
|
|
|
|
|
gpg_homedir: "{{ galaxy_dir }}/gpg"
|
|
|
|
|
|
|
|
offline_server: https://test-hub.demolab.local/api/galaxy/content/api/
|
|
|
|
|
|
|
|
supported_resolvelib_versions:
|
|
|
|
- "0.5.3" # Oldest supported
|
|
|
|
- "0.6.0"
|
|
|
|
- "0.7.0"
|
|
|
|
- "0.8.0"
|
|
|
|
- "0.9.0"
|
|
|
|
- "1.0.1"
|
|
|
|
|
|
|
|
unsupported_resolvelib_versions:
|
|
|
|
- "0.2.0" # Fails on import
|
|
|
|
- "0.5.1"
|
|
|
|
|
|
|
|
pulp_repositories:
|
|
|
|
- primary
|
|
|
|
- secondary
|
|
|
|
|
|
|
|
publish_namespaces:
|
|
|
|
- ansible_test
|
|
|
|
- secondary
|
|
|
|
|
|
|
|
collection_list:
|
|
|
|
# Scenario to test out pre-release being ignored unless explicitly set and version pagination.
|
|
|
|
- namespace: namespace1
|
|
|
|
name: name1
|
|
|
|
version: 0.0.1
|
|
|
|
- namespace: namespace1
|
|
|
|
name: name1
|
|
|
|
version: 0.0.2
|
|
|
|
- namespace: namespace1
|
|
|
|
name: name1
|
|
|
|
version: 0.0.3
|
|
|
|
- namespace: namespace1
|
|
|
|
name: name1
|
|
|
|
version: 0.0.4
|
|
|
|
- namespace: namespace1
|
|
|
|
name: name1
|
|
|
|
version: 0.0.5
|
|
|
|
- namespace: namespace1
|
|
|
|
name: name1
|
|
|
|
version: 0.0.6
|
|
|
|
- namespace: namespace1
|
|
|
|
name: name1
|
|
|
|
version: 0.0.7
|
|
|
|
- namespace: namespace1
|
|
|
|
name: name1
|
|
|
|
version: 0.0.8
|
|
|
|
- namespace: namespace1
|
|
|
|
name: name1
|
|
|
|
version: 0.0.9
|
|
|
|
- namespace: namespace1
|
|
|
|
name: name1
|
|
|
|
version: 0.0.10
|
|
|
|
- namespace: namespace1
|
|
|
|
name: name1
|
|
|
|
version: 0.1.0
|
|
|
|
- namespace: namespace1
|
|
|
|
name: name1
|
|
|
|
version: 1.0.0
|
|
|
|
- namespace: namespace1
|
|
|
|
name: name1
|
|
|
|
version: 1.0.9
|
|
|
|
- namespace: namespace1
|
|
|
|
name: name1
|
|
|
|
version: 1.1.0-beta.1
|
|
|
|
|
|
|
|
# Pad out number of namespaces for pagination testing
|
|
|
|
- namespace: namespace2
|
|
|
|
name: name
|
|
|
|
- namespace: namespace3
|
|
|
|
name: name
|
|
|
|
- namespace: namespace4
|
|
|
|
name: name
|
|
|
|
- namespace: namespace5
|
|
|
|
name: name
|
|
|
|
- namespace: namespace6
|
|
|
|
name: name
|
|
|
|
- namespace: namespace7
|
|
|
|
name: name
|
|
|
|
- namespace: namespace8
|
|
|
|
name: name
|
|
|
|
- namespace: namespace9
|
|
|
|
name: name
|
|
|
|
|
|
|
|
# Complex dependency resolution
|
|
|
|
- namespace: parent_dep
|
|
|
|
name: parent_collection
|
|
|
|
version: 0.0.1
|
|
|
|
dependencies:
|
|
|
|
child_dep.child_collection: '<0.5.0'
|
|
|
|
- namespace: parent_dep
|
|
|
|
name: parent_collection
|
|
|
|
version: 1.0.0
|
|
|
|
dependencies:
|
|
|
|
child_dep.child_collection: '>=0.5.0,<1.0.0'
|
|
|
|
- namespace: parent_dep
|
|
|
|
name: parent_collection
|
|
|
|
version: 1.1.0
|
|
|
|
dependencies:
|
|
|
|
child_dep.child_collection: '>=0.9.9,<=1.0.0'
|
|
|
|
- namespace: parent_dep
|
|
|
|
name: parent_collection
|
|
|
|
version: 2.0.0
|
|
|
|
dependencies:
|
|
|
|
child_dep.child_collection: '>=1.0.0'
|
|
|
|
- namespace: parent_dep2
|
|
|
|
name: parent_collection
|
|
|
|
dependencies:
|
|
|
|
child_dep.child_collection: '0.5.0'
|
|
|
|
- namespace: child_dep
|
|
|
|
name: child_collection
|
|
|
|
version: 0.4.0
|
|
|
|
- namespace: child_dep
|
|
|
|
name: child_collection
|
|
|
|
version: 0.5.0
|
|
|
|
- namespace: child_dep
|
|
|
|
name: child_collection
|
|
|
|
version: 0.9.9
|
|
|
|
dependencies:
|
|
|
|
child_dep.child_dep2: '!=1.2.3'
|
|
|
|
- namespace: child_dep
|
|
|
|
name: child_collection
|
|
|
|
version: 1.0.0
|
|
|
|
dependencies:
|
|
|
|
child_dep.child_dep2: '!=1.2.3'
|
|
|
|
- namespace: child_dep
|
|
|
|
name: child_dep2
|
|
|
|
version: 1.2.2
|
|
|
|
- namespace: child_dep
|
|
|
|
name: child_dep2
|
|
|
|
version: 1.2.3
|
|
|
|
|
|
|
|
# Dep resolution failure
|
|
|
|
- namespace: fail_namespace
|
|
|
|
name: fail_collection
|
|
|
|
version: 2.1.2
|
|
|
|
dependencies:
|
|
|
|
fail_dep.name: '0.0.5'
|
|
|
|
fail_dep2.name: '<0.0.5'
|
|
|
|
- namespace: fail_dep
|
|
|
|
name: name
|
|
|
|
version: '0.0.5'
|
|
|
|
dependencies:
|
|
|
|
fail_dep2.name: '>0.0.5'
|
|
|
|
- namespace: fail_dep2
|
|
|
|
name: name
|
|
|
|
|
|
|
|
# Symlink tests
|
|
|
|
- namespace: symlink
|
|
|
|
name: symlink
|
|
|
|
use_symlink: yes
|
|
|
|
|
|
|
|
# Caching update tests
|
|
|
|
- namespace: cache
|
|
|
|
name: cache
|
|
|
|
version: 1.0.0
|
|
|
|
|
|
|
|
# Dep with beta version
|
|
|
|
- namespace: dep_with_beta
|
|
|
|
name: parent
|
|
|
|
dependencies:
|
|
|
|
namespace1.name1: '*'
|
Always allow "no-other-choice" pre-release dependencies when resolving collection dependency tree
PR #81606.
Prior to this patch, when `--pre` CLI flag was not passed, the
dependency resolver would treat concrete collection dependency
candidates (Git repositories, subdirs, tarball URLs, or local dirs or
files etc) as not meeting the requirements.
This patch makes it so pre-releases in any concrete artifact
references, and the ones being specifically pinned dependencies or
user requests, met anywhere in the dependency tree, are allowed
unconditionally.
This is achieved by moving the pre-release check from
`is_satisfied_by()` to the `find_matches()` hook, following the
Pip's example.
As a bonus, this change also fixes the situation when a collection
pre-releases weren't considered if it didn't have any stable releases.
This now works even if `--pre` wasn't requested explicitly.
Finally, this patch partially reverts commit
6f4b4c345b44d84cce55ba6502a72b420a52c7b3, except for the tests. And it
also improves the `--pre` hint warning to explain that it mostly
affects Galaxy/Automation Hub-hosted collection releases.
Ref #73416
Ref #79112
Fixes #79168
Fixes #80048
Resolves #81605
Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
1 year ago
|
|
|
|
|
|
|
# non-prerelease is published to test that installing
|
|
|
|
# the pre-release from SCM doesn't accidentally prefer indirect
|
|
|
|
# dependencies from Galaxy
|
|
|
|
- namespace: test_prereleases
|
|
|
|
name: collection2
|
|
|
|
version: 1.0.0
|
|
|
|
|
|
|
|
- namespace: dev_and_stables_ns
|
|
|
|
name: dev_and_stables_name
|
|
|
|
version: 1.2.3-dev0
|
|
|
|
- namespace: dev_and_stables_ns
|
|
|
|
name: dev_and_stables_name
|
|
|
|
version: 1.2.4
|
|
|
|
|
|
|
|
- namespace: ns_with_wildcard_dep
|
|
|
|
name: name_with_wildcard_dep
|
|
|
|
version: 5.6.7-beta.3
|
|
|
|
dependencies:
|
|
|
|
dev_and_stables_ns.dev_and_stables_name: >-
|
|
|
|
*
|
|
|
|
- namespace: ns_with_dev_dep
|
|
|
|
name: name_with_dev_dep
|
|
|
|
version: 6.7.8
|
|
|
|
dependencies:
|
|
|
|
dev_and_stables_ns.dev_and_stables_name: 1.2.3-dev0
|
|
|
|
|
|
|
|
- namespace: rc_meta_ns_with_transitive_dev_dep
|
|
|
|
name: rc_meta_name_with_transitive_dev_dep
|
|
|
|
version: 2.4.5-rc5
|
|
|
|
dependencies:
|
|
|
|
ns_with_dev_dep.name_with_dev_dep: >-
|
|
|
|
*
|
|
|
|
- namespace: meta_ns_with_transitive_wildcard_dep
|
|
|
|
name: meta_name_with_transitive_wildcard_dep
|
|
|
|
version: 4.5.6
|
|
|
|
dependencies:
|
|
|
|
ns_with_wildcard_dep.name_with_wildcard_dep: 5.6.7-beta.3
|