Skip to content

test: k8s system tests speed-up active_deadline_seconds #48372

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

Merged
merged 1 commit into from
Mar 27, 2025

Conversation

insomnes
Copy link
Contributor

@insomnes insomnes commented Mar 25, 2025

  • Refactor for fail / success scenarios
  • Lower timer and remove second timer for fail scenario

The changed test is one of the slowest in the kubernetes_tests suite. It was added in:
#33379

We don't need to test the setting in question twice with different values for the fail scenario, phase and reason are reliable markers to check if the pod was killed because of the active_deadline_seconds. For the same reason we don't need that long value for this test. Instead, I've decided to introduce a non-failing scenario to check that the long value of the setting works as expected.

These changes speed up the summary time for two calls from 70 - 90 seconds to 20-35 seconds.

It was discovered and discussed during work on #47939


^ 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 airflow-core/newsfragments.

@insomnes insomnes changed the title test: k8s system tests speed-up active_deadline_seconds test test: k8s system tests speed-up active_deadline_seconds Mar 25, 2025
- Refactor for fail / success scenarios
- Lower timer and remove second timer for fail scenario
@insomnes insomnes force-pushed the speed-up-k8s-ads-test branch from d2b266c to a3f2fb0 Compare March 26, 2025 22:11
@potiuk
Copy link
Member

potiuk commented Mar 27, 2025

Let's try

@potiuk potiuk merged commit 68c6aec into apache:main Mar 27, 2025
53 checks passed
pankajkoti pushed a commit to astronomer/airflow that referenced this pull request Mar 28, 2025
…48372)

- Refactor for fail / success scenarios
- Lower timer and remove second timer for fail scenario
shubham-pyc pushed a commit to shubham-pyc/airflow that referenced this pull request Apr 2, 2025
…48372)

- Refactor for fail / success scenarios
- Lower timer and remove second timer for fail scenario
nailo2c pushed a commit to nailo2c/airflow that referenced this pull request Apr 4, 2025
…48372)

- Refactor for fail / success scenarios
- Lower timer and remove second timer for fail scenario
simonprydden pushed a commit to simonprydden/airflow that referenced this pull request Apr 8, 2025
…48372)

- Refactor for fail / success scenarios
- Lower timer and remove second timer for fail scenario
@insomnes insomnes deleted the speed-up-k8s-ads-test branch April 18, 2025 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants