-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
rewrite opsgenie alert hook with official python sdk, related issue #18641 #20263
rewrite opsgenie alert hook with official python sdk, related issue #18641 #20263
Conversation
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst)
|
e9bfcad
to
01bcf88
Compare
Just amended to fix checks. |
The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
Static checks failing (I heartily recommend pre-commit installation) |
@potiuk, thanks for that, I just installed them and fixed the |
0c3c1ce
to
2a5668d
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
Can you please rebase ?
The test is failing on distutils
which was fixed in #20420
2a5668d
to
7e153a3
Compare
Yes of course, I juste rebased onto the latest main version. |
There is a still a failure You probably need to add a fix similar to https://github.com/apache/airflow/pull/20420/files |
Hi, I have fixed that, and the job successfully ran locally, we should be good now. We were missing warnings from |
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
@potiuk any further comments?
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.
@pierrejeambrun please check updated comment
I'll merge this PR after fixing it
51e0e59
to
cadd66a
Compare
@eladkal We should be good 😄 |
Awesome work, congrats on your first merged pull request! |
Thanks @pierrejeambrun for your contribution! |
My pleasure, it was really interesting helping on that. I will try to first close my other PR #20386 that will certainly require more work. (I’ll also be OOO for a week) After that if it is still available I can take it |
@pierrejeambrun you can comment on the issue and i'll assign you |
Hello guys,
As suggested in this issue, I tried rewriting the opsgenie alert hook with the official python sdk. I also added an example dag for the
opsgenie_alert_operator
This is my first contribution to Airflow, any guidance or feedback would be appreciated :). To not break the backward compatibility due to the interface change, do you want me to keep the original file and mark everything as deprecated and create another hook for this ?
Best regards,
resolves #18641