Skip to content

Comments

Use python-on-whales in docker tests#38421

Merged
potiuk merged 4 commits intomainfrom
modify-docker-tests
Mar 23, 2024
Merged

Use python-on-whales in docker tests#38421
potiuk merged 4 commits intomainfrom
modify-docker-tests

Conversation

@Taragolis
Copy link
Contributor

This attempt to reduce number of subprocess usage and switch to python-on-whales where it possible.

The main benefit that we do not need to parse output manually instead of we could work directly with objects (Spoiler Alert: Under the hood python-on-whales do that). In addition debugging become more easier, because you might inspect objects retrieved from python-on-whales.

There is no any speedup on tests expected, maybe even increase a bit but I guess it shouldn't be noticeable.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an 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 a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@Taragolis Taragolis added the full tests needed We need to run full set of tests for this PR to merge label Mar 23, 2024
@Taragolis Taragolis requested review from ashb and potiuk as code owners March 23, 2024 00:09
@boring-cyborg boring-cyborg bot added the area:production-image Production image improvements and fixes label Mar 23, 2024
@Taragolis Taragolis force-pushed the modify-docker-tests branch from a36fb6e to 37f7922 Compare March 23, 2024 06:49
@potiuk
Copy link
Member

potiuk commented Mar 23, 2024

Nice refactor and python_on_whales - I remember we discussed it in #34254 (comment) -> I think it's a good one to use it now for those docker tests.

@potiuk potiuk merged commit fac6aa4 into main Mar 23, 2024
@Taragolis Taragolis deleted the modify-docker-tests branch March 23, 2024 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:production-image Production image improvements and fixes full tests needed We need to run full set of tests for this PR to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants