Skip to content

Unflake test_volume_mount in k8s tests#35106

Merged
potiuk merged 1 commit intoapache:mainfrom
potiuk:unflake-volume-mount-k8s-test
Oct 22, 2023
Merged

Unflake test_volume_mount in k8s tests#35106
potiuk merged 1 commit intoapache:mainfrom
potiuk:unflake-volume-mount-k8s-test

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Oct 22, 2023

The test_volume_mount in k8s relied on "retrieved from mount\n" printed to log as retrieved from K8S pod. Howver, due to the way how logs are retrieved, sometimes the log printed contains the EOL character and sometimes not - depending on when the strings are flushed. This PR changes the test to passs regardless if EOL is included in the log or not.


^ 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.

@boring-cyborg boring-cyborg bot added the provider:cncf-kubernetes Kubernetes (k8s) provider related issues label Oct 22, 2023
@potiuk
Copy link
Member Author

potiuk commented Oct 22, 2023

The `test_volume_mount` in k8s relied on "retrieved from mount\n"
printed to log as retrieved from K8S pod. Howver, due to the way
how logs are retrieved, sometimes the log printed contains the
EOL character and sometimes not - depending on when the strings are
flushed. This PR changes the test to passs regardless if EOL is
included in the log or not.
@potiuk potiuk force-pushed the unflake-volume-mount-k8s-test branch from 9043b62 to e6c588c Compare October 22, 2023 00:26
@potiuk potiuk requested review from ashb and kaxil as code owners October 22, 2023 00:26
@amoghrajesh
Copy link
Contributor

Makes sense

@potiuk potiuk merged commit 93d88a7 into apache:main Oct 22, 2023
@potiuk potiuk deleted the unflake-volume-mount-k8s-test branch October 22, 2023 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

provider:cncf-kubernetes Kubernetes (k8s) provider related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants