-
Notifications
You must be signed in to change notification settings - Fork 44
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
Fix requires_ansible check when no meta/runtime.yml #124
Conversation
@@ -77,7 +77,7 @@ | |||
"name": "FILES.json", | |||
"ftype": "file", | |||
"chksum_type": "sha256", | |||
"chksum_sha256": "dc90402feea54f479780e067cba748559cb01bff52e6724a15264b9a55e8f000", | |||
"chksum_sha256": "0c2e9514f54aaeda0605d8c9a60e71cab3e577113b58ecc65b839d2d1b86c216", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<general comment on existing code, not a requested change...>
Updating the tests to calculate this on the fly might be useful in the future. I didn't do it in an attempt to stay focused on the feature. Maybe it's better as is for explicitness, I'm not sure. It is a tiny bit annoying to update though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't had to update this much so should be ok, and wasn't a bad update
76e57bb
to
461a712
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Small suggestion for updating the errmsg for the empty (or False-y) contents of runtime.yml, but that is not a blocker.
galaxy_importer/loaders.py
Outdated
@@ -193,7 +193,7 @@ def _load(self): | |||
|
|||
def get_requires_ansible(self): | |||
if not self.data: | |||
return | |||
raise exc.RuntimeFileError("'requires_ansible' in meta/runtime.yml is mandatory") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably fine. Maybe tweak the error msg to indicate the contents of meta/runtime.yml was empty?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Fail import when there is no meta/runtime.yml No-Issue
461a712
to
c7e3b1b
Compare
Fix ansible#75353 After requires_ansible field was added as mandatory to runtime.yml file, ansible-test fails to check this field if it doesn't have packaging module. [1] ansible/galaxy-importer#124
* Add packaging to requirement of ansible-test Fix #75353 After requires_ansible field was added as mandatory to runtime.yml file, ansible-test fails to check this field if it doesn't have packaging module. [1] ansible/galaxy-importer#124
…5356) * Add packaging to requirement of ansible-test Fix ansible#75353 After requires_ansible field was added as mandatory to runtime.yml file, ansible-test fails to check this field if it doesn't have packaging module. [1] ansible/galaxy-importer#124 (cherry picked from commit 40ca87a) Co-authored-by: Sergey <sshnaidm@users.noreply.github.com>
* Update tripleo-operator-ansible from branch 'master' to 1405de60175b8cf28dfa4950da6536486ada80ed - Merge "Add meta/runtime.yml file required by galaxy" - Add meta/runtime.yml file required by galaxy Ansible Galaxy added[1][2] a mandatory requirement for meta/runtime.yml file and requires_ansible field in it. Add it to allow uploading to Galaxy. [1] ansible/galaxy-importer#122 [2] ansible/galaxy-importer#124 Change-Id: If925bb36c7722e8e5e150eb7f5ce9e6316fd9539
Ansible Galaxy added[1][2] a mandatory requirement for meta/runtime.yml file and requires_ansible field in it. Add it to allow uploading to Galaxy. [1] ansible/galaxy-importer#122 [2] ansible/galaxy-importer#124 Change-Id: If925bb36c7722e8e5e150eb7f5ce9e6316fd9539
* Add packaging to requirement of ansible-test Fix #75353 After requires_ansible field was added as mandatory to runtime.yml file, ansible-test fails to check this field if it doesn't have packaging module. [1] ansible/galaxy-importer#124 (cherry picked from commit 40ca87a) Co-authored-by: Sergey <sshnaidm@users.noreply.github.com>
Add the meta/runtime.yml to appease galaxy imports. See ansible-collections/overview#45 <quote> Ansible Galaxy unexpectedly made a change to require mandatory requires_ansible in meta/runtime.yml file for uploading collection[1][2]. And after you add it you'll probably will hit ansible-test failure in sanity checks if you use it with --venv option, since it can't check this field because of failing requirement[3]. Worth to mention you must have meta/runtime.yml now for your collection to be uploaded. [1] ansible/galaxy-importer#122 [2] ansible/galaxy-importer#124 [3] ansible/ansible#75353 </quote>
Add the meta/runtime.yml to appease galaxy imports. See ansible-collections/overview#45 <quote> Ansible Galaxy unexpectedly made a change to require mandatory requires_ansible in meta/runtime.yml file for uploading collection[1][2]. And after you add it you'll probably will hit ansible-test failure in sanity checks if you use it with --venv option, since it can't check this field because of failing requirement[3]. Worth to mention you must have meta/runtime.yml now for your collection to be uploaded. [1] ansible/galaxy-importer#122 [2] ansible/galaxy-importer#124 [3] ansible/ansible#75353 </quote>
Fail import when there is no meta/runtime.yml
Fixes a missed case from #122 and AAH-538
No-Issue