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

Improve Test Coverage for Kubernetes Executor #15617

Merged

Conversation

Dr-Denzy
Copy link
Contributor

@Dr-Denzy Dr-Denzy commented Apr 30, 2021

According to the current stats of codecov.io assessment of the Airflow code base, the test coverage for
the kubernetes_executor.py module is about 63%. This metric definitely
needs to be improved upon.

This PR addresses the unit test coverage for the delete_pod method in the AirflowKubernetesScheduler class in the kubernetes_executor.py module. And when merged will help to improve the test coverage metric.

fixes part of #15523


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

According to the current stats from codecov.io, the test coverage for
the kubernetes_executor.py module is about 63%. This metric definitely
needs to be improved upon.

This PR when merge will help to improve this test coverage metric.
@boring-cyborg boring-cyborg bot added the area:Scheduler including HA (high availability) scheduler label Apr 30, 2021
@kaxil
Copy link
Member

kaxil commented May 4, 2021

@Dr-Denzy static check is failing, can you take a look plz

@Dr-Denzy
Copy link
Contributor Author

Dr-Denzy commented May 4, 2021

@Dr-Denzy static check is failing, can you take a look plz

The failure was coming from a black static check. I have fixed it - and the test passed on my local machine before I pushed. Hopefully, it will behave as expected in the CI build.

@kaxil kaxil merged commit dd56875 into apache:master May 4, 2021
@kaxil kaxil deleted the improve_test_coverage_for_k8s_executor branch May 4, 2021 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Scheduler including HA (high availability) scheduler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants