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

Fixed error handling in github_issue module #39652

Merged
merged 3 commits into from May 15, 2019
Merged

Conversation

Akasurde
Copy link
Member

@Akasurde Akasurde commented May 3, 2018

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
  • Bugfix Pull Request
COMPONENT NAME

lib/ansible/modules/source_control/github_issue.py

ANSIBLE VERSION
2.6devel

@ansibot
Copy link
Contributor

ansibot commented May 3, 2018

@ansibot ansibot added bug This issue/PR relates to a bug. community_review In order to be merged, this PR must follow the community review workflow. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. support:community This issue/PR relates to code supported by the Ansible community. labels May 3, 2018
@ansibot
Copy link
Contributor

ansibot commented May 3, 2018

The test ansible-test sanity --test validate-modules [explain] failed with 1 error:

test/sanity/validate-modules/ignore.txt:1382:1: A102 Remove since "lib/ansible/modules/source_control/github_issue.py" passes "E324" test

click here for bot help

@ansibot ansibot added ci_verified Changes made in this PR are causing tests to fail. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed community_review In order to be merged, this PR must follow the community review workflow. labels May 3, 2018
@jborean93 jborean93 removed the needs_triage Needs a first human triage before being processed. label May 3, 2018
@ansibot
Copy link
Contributor

ansibot commented May 3, 2018

@ansibot ansibot added support:core This issue/PR relates to code supported by the Ansible Engineering Team. test This PR relates to tests. and removed ci_verified Changes made in this PR are causing tests to fail. labels May 3, 2018
@Akasurde Akasurde force-pushed the i39627 branch 2 times, most recently from 09cd71b to 050ca00 Compare May 3, 2018 07:17
@mattclay
Copy link
Member

mattclay commented May 3, 2018

CI failure in integration tests: https://app.shippable.com/github/ansible/ansible/runs/63626/32/console

RuntimeError: cryptography requires setuptools 18.5 or newer, please upgrade to a newer version of setuptools

@mattclay mattclay added the ci_verified Changes made in this PR are causing tests to fail. label May 3, 2018
@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 May 11, 2018
@ansibot ansibot added the affects_2.6 This issue/PR affects Ansible v2.6 label May 19, 2018
@ansibot ansibot removed ci_verified Changes made in this PR are causing tests to fail. 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 Jul 27, 2018
@mattclay
Copy link
Member

CI failure in integration tests: https://app.shippable.com/github/ansible/ansible/runs/76179/37/tests

@mattclay mattclay added the ci_verified Changes made in this PR are causing tests to fail. label Jul 27, 2018
@Akasurde
Copy link
Member Author

@mattclay how do I skip tests for linux/centos6/1 and linux/opensuse42.3/1 ?

@mattclay
Copy link
Member

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.

@ansibot ansibot removed needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html 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 10, 2019
@Akasurde Akasurde force-pushed the i39627 branch 2 times, most recently from acf9afa to c6cfbd5 Compare April 10, 2019 09:39
@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 Apr 10, 2019
@Akasurde
Copy link
Member Author

@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))
Copy link
Member

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.

@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 Apr 16, 2019
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>
@ansibot ansibot added stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. stale_review Updates were made after the last review and the last review is more than 7 days old. labels Apr 30, 2019
@Akasurde Akasurde requested a review from mattclay May 1, 2019 05:29
@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_review Updates were made after the last review and the last review is more than 7 days old. labels May 14, 2019
@Akasurde
Copy link
Member Author

rebuild_merge

@ansibot ansibot added shipit This PR is ready to be merged by Core 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. labels May 15, 2019
@ansibot ansibot merged commit 5ef2c53 into ansible:devel May 15, 2019
ndclt pushed a commit to ndclt/ansible that referenced this pull request Jun 13, 2019
* 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>
@ansible ansible locked and limited conversation to collaborators Aug 5, 2019
@Akasurde Akasurde deleted the i39627 branch August 22, 2023 15:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.6 This issue/PR affects Ansible v2.6 bug This issue/PR relates to a bug. module This issue/PR relates to a module. shipit This PR is ready to be merged by Core source_control Source-control category support:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team. test This PR relates to tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failing integration test github_issue
4 participants