Skip to content

Conversation

@jason810496
Copy link
Member

closes: #45145

  • Replace time.sleep(10) with kubectl rollout status --watch.
  • Add a hint for the deploy-airflow command when using KubernetesExecutor after the upload-k8s-image command.

While working on this issue, I encountered a problem where the test-namespace task was never successful. After several attempts, I realized that I needed to add the --multi-namespace-mode --executor KubernetesExecutor flags.
Adding a hint for the deploy-airflow command could help others avoid the same trouble.


^ 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 area:dev-tools provider:cncf-kubernetes Kubernetes (k8s) provider related issues labels Feb 6, 2025
@jason810496 jason810496 changed the title Fix k8s flaky test with test_integration_run_dag_with_scheduler_failure Fix k8s flaky test - test_integration_run_dag_with_scheduler_failure Feb 6, 2025
Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NICE! Thank you !. Hopefully it will help with those issues!

@potiuk potiuk merged commit f156ef3 into apache:main Feb 6, 2025
91 checks passed
insomnes pushed a commit to insomnes/airflow that referenced this pull request Feb 6, 2025
…pache#46502)

* Fix k8s flaky test with test_integration_run_dag_with_scheduler_failure

* Fix criteria for _is_deployed_with_same_executor
niklasr22 pushed a commit to niklasr22/airflow that referenced this pull request Feb 8, 2025
…pache#46502)

* Fix k8s flaky test with test_integration_run_dag_with_scheduler_failure

* Fix criteria for _is_deployed_with_same_executor
ambika-garg pushed a commit to ambika-garg/airflow that referenced this pull request Feb 17, 2025
…pache#46502)

* Fix k8s flaky test with test_integration_run_dag_with_scheduler_failure

* Fix criteria for _is_deployed_with_same_executor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools provider:cncf-kubernetes Kubernetes (k8s) provider related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

K8S tests are flaky with test_integration_run_dag_with_scheduler_failurE tests

2 participants