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
Fixed error handling in github_issue module #39652
Conversation
The test
|
09cd71b
to
050ca00
Compare
CI failure in integration tests: https://app.shippable.com/github/ansible/ansible/runs/63626/32/console
|
CI failure in integration tests: https://app.shippable.com/github/ansible/ansible/runs/76179/37/tests |
@mattclay how do I skip tests for |
Why do the tests need to be skipped on those platforms? If it's due to versions of available packages, use feature detection to skip tests when the requirements are not available instead of hard coding the known platforms. If the issue is in fact with the platforms themselves, they will need to be skipped in the test playbook by looking at the distribution and version. |
acf9afa
to
c6cfbd5
Compare
@mattclay Can you please take another look into this ? Thanks in advance. |
|
||
# CentOS 6 and OpenSuSE 42 does not support installation of latest setuptools which is required for requests and github3.py | ||
# Skipping this testcase using following | ||
when: not ((ansible_os_family == 'Suse' and ansible_distribution_major_version | int == 42 ) or (ansible_os_family == 'RedHat' and ansible_distribution_major_version | int == 6)) |
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.
It looks like this block and conditional are no longer needed.
Due to recent changes in github3.py library module stopped working. This fix adds extra error handling for new changes in library. Fixes: ansible#39627 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
rebuild_merge |
* Fixed error handling in github_issue module Due to recent changes in github3.py library module stopped working. This fix adds extra error handling for new changes in library. Fixes: ansible#39627 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> * Check version Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> * Refactor github_issue Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
SUMMARY
Due to recent changes in github3.py library module stopped working.
This fix adds extra error handling for new changes in library.
Fixes: #39627
Signed-off-by: Abhijeet Kasurde akasurde@redhat.com
ISSUE TYPE
COMPONENT NAME
lib/ansible/modules/source_control/github_issue.py
ANSIBLE VERSION