ansible/test/sanity/code-smell
Sviatoslav Sydorenko 595413d113
Replace the inhouse collection dependency resolver with resolvelib
PR #72591

This change:

  * Adds an artifacts manager that abstracts away extracting the
    metadata from artifacts, downloading and caching them in a
    temporary location.

  * Adds `resolvelib` to direct ansible-core dependencies[0].

  * Implements a `resolvelib`-based dependency resolver for
    `collection` subcommands that replaces the legacy
    in-house code.

    This is a dependency resolution library that pip 20.3+ uses
    by default. It's now integrated for use for the collection
    dependency resolution in ansible-galaxy CLI.

  * Refactors of the `ansible-galaxy collection` CLI.
    In particular, it:

      - reimplements most of the `download`, `install`, `list` and
        `verify` subcommands from scratch;

      - reuses helper bits previously moved out into external modules;

      - replaces the old in-house resolver with a more clear
        implementation based on the resolvelib library[0][1][2].

  * Adds a multi Galaxy API proxy layer that abstracts accessing the
    version and dependencies via API or local artifacts manager.

  * Makes `GalaxyAPI` instances sortable.

  * Adds string representation methods to `GalaxyAPI`.

  * Adds dev representation to `GalaxyAPI`.

  * Removes unnecessary integration and unit tests.

  * Aligns the tests with the new expectations.

  * Adds more tests, integration ones in particular.

[0]: https://pypi.org/p/resolvelib
[1]: https://github.com/sarugaku/resolvelib
[2]: https://pradyunsg.me/blog/2020/03/27/pip-resolver-testing

Co-Authored-By: Jordan Borean <jborean93@gmail.com>
Co-Authored-By: Matt Clay <matt@mystile.com>
Co-Authored-By: Sam Doran <sdoran@redhat.com>
Co-Authored-By: Sloane Hertel <shertel@redhat.com>
Co-Authored-By: Sviatoslav Sydorenko <webknjaz@redhat.com>

Signed-Off-By: Sviatoslav Sydorenko <webknjaz@redhat.com>
2021-01-27 22:23:22 +01:00
..
botmeta.json Split up "code smell" sanity tests. (#60174) 2019-08-06 17:17:57 -07:00
botmeta.py prepare for future ansibot collection changes (#68944) 2020-04-14 13:11:05 -04:00
botmeta.requirements.txt Split out and install sanity test requirements. (#69971) 2020-06-09 13:38:36 -07:00
configure-remoting-ps1.json Split up "code smell" sanity tests. (#60174) 2019-08-06 17:17:57 -07:00
configure-remoting-ps1.py Support windows-integration on collections. (#60984) 2019-08-20 22:23:28 -07:00
deprecated-config.json Split up "code smell" sanity tests. (#60174) 2019-08-06 17:17:57 -07:00
deprecated-config.py Split up "code smell" sanity tests. (#60174) 2019-08-06 17:17:57 -07:00
deprecated-config.requirements.txt Rename to ansible-core (#72594) 2020-11-13 15:42:10 -06:00
docs-build.json Intercept code-smell tests using subprocess. 2020-06-10 16:07:47 -07:00
docs-build.py Collections docs generation (#59761) 2020-07-17 13:07:35 -07:00
docs-build.requirements.txt Replace the inhouse collection dependency resolver with resolvelib 2021-01-27 22:23:22 +01:00
no-unwanted-files.json Sanity test updates for collections support. (#61248) 2019-08-23 18:08:21 -07:00
no-unwanted-files.py collection routing (#67684) 2020-05-26 09:42:06 -07:00
obsolete-files.json Sanity test updates for collections support. (#61248) 2019-08-23 18:08:21 -07:00
obsolete-files.py Add sanity test for obsolete files. 2019-08-09 11:22:59 -07:00
package-data.json Intercept code-smell tests using subprocess. 2020-06-10 16:07:47 -07:00
package-data.py CI provider fixes for ansible-test. (#71929) 2020-09-24 17:34:07 -07:00
package-data.requirements.txt Replace the inhouse collection dependency resolver with resolvelib 2021-01-27 22:23:22 +01:00
release-names.json Update release name for 2.10 2019-09-05 18:36:06 -07:00
release-names.py Update release name for 2.10 2019-09-05 18:36:06 -07:00
release-names.requirements.txt Split out and install sanity test requirements. (#69971) 2020-06-09 13:38:36 -07:00
required-and-default-attributes.json Update sanity tests for collections. (#61352) 2019-08-26 20:40:53 -07:00
required-and-default-attributes.py Update sanity tests for collections. (#61352) 2019-08-26 20:40:53 -07:00
skip.txt Split up "code smell" sanity tests. (#60174) 2019-08-06 17:17:57 -07:00
test-constraints.json Split up "code smell" sanity tests. (#60174) 2019-08-06 17:17:57 -07:00
test-constraints.py Split up "code smell" sanity tests. (#60174) 2019-08-06 17:17:57 -07:00
update-bundled.json Split up "code smell" sanity tests. (#60174) 2019-08-06 17:17:57 -07:00
update-bundled.py Updated bundled libraries (#70418) 2020-07-02 12:39:00 -05:00
update-bundled.requirements.txt Split out and install sanity test requirements. (#69971) 2020-06-09 13:38:36 -07:00