-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add support for Airflow 2 #9064
Conversation
83ebfd4
to
e71f608
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.
Implementation looks good, just had a comment on tests.
@@ -26,10 +26,44 @@ def test_service_checks_cannot_connect(aggregator): | |||
'json_resp, expected_healthy_status, expected_healthy_value', | |||
[({'status': 'OK'}, AgentCheck.OK, 1), ({'status': 'KO'}, AgentCheck.CRITICAL, 0), ({}, AgentCheck.CRITICAL, 0)], | |||
) | |||
def test_service_checks_healthy(aggregator, json_resp, expected_healthy_status, expected_healthy_value): | |||
def test_service_checks_healthy_exp(aggregator, json_resp, expected_healthy_status, expected_healthy_value): |
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.
How come this gets tested for our v2 environment?
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.
This is a unit test, so it's just testing the behaviour, not against the environment
What does this PR do?
Airflow 2.0+ has a stable API, and is deprecating
/api/experimental
. https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.htmlThis PR check the stable endpoints first.
Motivation
Additional Notes
The stable endpoint is more detailed https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html#tag/Monitoring
These details are added in the service check message.
Review checklist (to be filled by reviewers)
changelog/
andintegration/
labels attached