Skip to content

Conversation

@ashb
Copy link
Member

@ashb ashb commented Aug 15, 2025

This test was previously creating and running 40 tasks, when all we actually
need to do is to put the DB in the state we expect (RTIF rows exist) and then
run one task. This takes the test time form 31s down to 4s.

This was tested that it still correctly tests the correct behaviour by
removing the session.flush() that was added in the same change where this
test was added, #42928 / ced319f.


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

This test was previously creating and running 40 tasks, when all we actually
need to do is to put the DB in the state we expect (RTIF rows exist) and then
run one task. This takes the test time form 31s down to 4s.

This was tested that it still correctly tests the correct behaviour by
removing the `session.flush()` that was added in the same change where this
test was added, apache#42928 / ced319f.
@potiuk
Copy link
Member

potiuk commented Aug 15, 2025

Nice :)

@ashb ashb added the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label Aug 15, 2025
@ashb ashb merged commit 5a411d7 into apache:main Aug 15, 2025
57 checks passed
@ashb ashb deleted the speed-up-rtif-stale-rows-test branch August 15, 2025 12:07
github-actions bot pushed a commit that referenced this pull request Aug 15, 2025
…4542)

This test was previously creating and running 40 tasks, when all we actually
need to do is to put the DB in the state we expect (RTIF rows exist) and then
run one task. This takes the test time form 31s down to 4s.

This was tested that it still correctly tests the correct behaviour by
removing the `session.flush()` that was added in the same change where this
test was added, #42928 / ced319f.
(cherry picked from commit 5a411d7)

Co-authored-by: Ash Berlin-Taylor <ash@apache.org>
@github-actions
Copy link

Backport successfully created: v3-0-test

Status Branch Result
v3-0-test PR Link

ashb added a commit that referenced this pull request Aug 15, 2025
…4542) (#54546)

This test was previously creating and running 40 tasks, when all we actually
need to do is to put the DB in the state we expect (RTIF rows exist) and then
run one task. This takes the test time form 31s down to 4s.

This was tested that it still correctly tests the correct behaviour by
removing the `session.flush()` that was added in the same change where this
test was added, #42928 / ced319f.
(cherry picked from commit 5a411d7)

Co-authored-by: Ash Berlin-Taylor <ash@apache.org>
kaxil pushed a commit that referenced this pull request Aug 18, 2025
…4542) (#54546)

This test was previously creating and running 40 tasks, when all we actually
need to do is to put the DB in the state we expect (RTIF rows exist) and then
run one task. This takes the test time form 31s down to 4s.

This was tested that it still correctly tests the correct behaviour by
removing the `session.flush()` that was added in the same change where this
test was added, #42928 / ced319f.
(cherry picked from commit 5a411d7)

Co-authored-by: Ash Berlin-Taylor <ash@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants