Skip to content
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

better error for "ansible-galaxy collection verify" if there's no MANIFEST.json #67498

Merged
merged 5 commits into from May 14, 2020

Conversation

s-hertel
Copy link
Contributor

@s-hertel s-hertel commented Feb 17, 2020

SUMMARY

The MANIFEST.json may have been deleted from the installed collection or the collection may not have been installed via normal means

The error message is misleading right now (e.g. openstack.cloud has the version '*' but is being compared to '1.0.0') since an installed collection could never have an undefined version. Built collections do not have a galaxy.yml for finding the version and only built collections should be install-able for verification against a server.

ISSUE TYPE
  • Bugfix Pull Request

…as been deleted from the installed collection or if the collection hasn't been installed via normal means
@s-hertel s-hertel changed the title Add a better error for "ansible-galaxy verify" if there's no MANIFEST.json better error for "ansible-galaxy collection verify" if there's no MANIFEST.json Feb 17, 2020
@ansibot ansibot added affects_2.10 This issue/PR affects Ansible v2.10 bug This issue/PR relates to a bug. core_review In order to be merged, this PR must follow the core review workflow. has_issue needs_triage Needs a first human triage before being processed. small_patch support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Feb 17, 2020
@ansibot ansibot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed core_review In order to be merged, this PR must follow the core review workflow. labels Feb 17, 2020
If there's something wrong with the local collection's version it will fail before the remote collection is sought
@ansibot ansibot added core_review In order to be merged, this PR must follow the core review workflow. and removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Feb 17, 2020
@samdoran samdoran removed the needs_triage Needs a first human triage before being processed. label Feb 25, 2020
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Feb 27, 2020
Mock the new isfile call where needed
@ansibot ansibot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed small_patch stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. core_review In order to be merged, this PR must follow the core review workflow. labels Feb 27, 2020
Co-Authored-By: Martin Krizek <martin.krizek@gmail.com>
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Mar 8, 2020
@ansibot ansibot added core_review In order to be merged, this PR must follow the core review workflow. and removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. labels Apr 8, 2020
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Apr 16, 2020
@geerlingguy
Copy link
Contributor

geerlingguy commented May 4, 2020

Related? #67490

@s-hertel
Copy link
Contributor Author

s-hertel commented May 5, 2020

@geerlingguy Yes. I commented on that issue with this PR. #68925 is the main fix though.

@ansibot ansibot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. core_review In order to be merged, this PR must follow the core review workflow. and removed core_review In order to be merged, this PR must follow the core review workflow. stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels May 13, 2020
@samdoran samdoran merged commit 343ffaa into ansible:devel May 14, 2020
@ansible ansible locked and limited conversation to collaborators Jun 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.10 This issue/PR affects Ansible v2.10 bug This issue/PR relates to a bug. core_review In order to be merged, this PR must follow the core review workflow. has_issue support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants