You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "grjones (via GitHub)" <gi...@apache.org> on 2023/05/31 16:19:40 UTC
[GitHub] [airflow] grjones commented on a diff in pull request #31625: Add missing waitForMigrations for workers
grjones commented on code in PR #31625:
URL: https://github.com/apache/airflow/pull/31625#discussion_r1211983339
##########
tests/charts/airflow_core/test_worker.py:
##########
@@ -82,6 +82,18 @@ def test_should_add_extra_containers(self):
"image": "test-registry/test-repo:test-tag",
} == jmespath.search("spec.template.spec.containers[-1]", docs[0])
+ def test_disable_wait_for_migration(self):
+ docs = render_chart(
+ values={
+ "workers": {
+ "waitForMigrations": {"enabled": False},
+ },
+ },
+ show_only=["templates/workers/worker-deployment.yaml"],
+ )
+ actual = jmespath.search("spec.template.spec.initContainers", docs[0])
+ assert actual is None
Review Comment:
Yep, I totally agree. I was trying to keep the same pattern in other tests, but yes, this should be made less brittle. I'll push up a change later tonight. 👍
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org