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

Fix issue #278 - failure pod crashing #425

Merged
merged 2 commits into from
Apr 26, 2022

Conversation

mpryc
Copy link
Collaborator

@mpryc mpryc commented Apr 20, 2022

Fix issue #278 - failure pod crashing

We should log error rather then crash pod if JIRA is missing type required by failure exporter. JIRA type may be added after pelorus deployment.

Depends on #424

@redhat-cop/mdt

@openshift-ci openshift-ci bot requested review from etsauer and weshayutin April 20, 2022 10:47
@mpryc mpryc changed the title Issue 278 Fix issue #278 - failure pod crashing Apr 20, 2022
@weshayutin
Copy link
Contributor

exporters/tests/test_failure_exporter.py::test_jira_prometheus_register[https://pelorustest.atlassian.net-fake@user.com-wieds4uzhicgnrtmgqpn9e7d/] PASSED [ 50%]
exporters/tests/test_failure_exporter.py::test_jira_exception[https://pelorustest.atlassian.net-fake@user.com-wieds4uzhicgnrtmgqpn9e7d/] PASSED [ 53%]

nice work!! will start trying to setup to verify

@dpulls
Copy link

dpulls bot commented Apr 25, 2022

🎉 All dependencies have been resolved !

@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 25, 2022
Added test which checks for the deprecated password authentication.

JIRA uses same method to authenticate in the cloud jira instance
for both deprecated password authentication and token based auth.

This may lead to the situation where wrong API key is actually
considered password and then failure exporter is presenting
deprecation error.

This change also moves connection func to separate private
one for easy testing and readibility + may in the future
include more sophisticated auth methods.

Added proper headers to the files which were modified.
@openshift-ci openshift-ci bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 26, 2022
@mpryc mpryc requested a review from KevinMGranger April 26, 2022 10:55
We should log error rather then crash pod if JIRA is missing
type required by failure exporter. JIRA type may be added
after pelorus deployment.
@mpryc mpryc requested a review from KevinMGranger April 26, 2022 15:22
@KevinMGranger KevinMGranger merged commit 9a32fed into dora-metrics:master Apr 26, 2022
@mpryc mpryc added the kind/bug Categorizes issue or PR as related to a bug. label Apr 26, 2022
@mpryc mpryc deleted the issue_278 branch April 27, 2022 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants