Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Dec 5, 2021

The previous fix in #20040 improved forked tests but also caused
instability in the "on_kill" test for standard task runner.

This PR fixes the instability by signalling when the task started
rather than waiting for fixed amount of time and it adds better
diagnostics for the test.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, 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 UPDATING.md.

The previous fix in apache#20040 improved forked tests but also caused
instability in the "on_kill" test for standard task runner.

This PR fixes the instability by signalling when the task started
rather than waiting for fixed amount of time and it adds better
diagnostics for the test.
@potiuk
Copy link
Member Author

potiuk commented Dec 5, 2021

Another flaky test stabilized with this one

@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Dec 5, 2021
@github-actions
Copy link

github-actions bot commented Dec 5, 2021

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

@potiuk potiuk merged commit e2345ff into apache:main Dec 5, 2021
@potiuk potiuk deleted the fix-flaky-on-kill branch December 5, 2021 19:06
potiuk added a commit to potiuk/airflow that referenced this pull request Dec 5, 2021
Seems that when the system is busy, the timeouts we had to
wait for tasks to start were a bit to short. Increasing them.

Related to apache#20054
potiuk added a commit that referenced this pull request Dec 5, 2021
Seems that when the system is busy, the timeouts we had to
wait for tasks to start were a bit to short. Increasing them.

Related to #20054
potiuk added a commit that referenced this pull request Dec 11, 2021
The previous fix in #20040 improved forked tests but also caused
instability in the "on_kill" test for standard task runner.

This PR fixes the instability by signalling when the task started
rather than waiting for fixed amount of time and it adds better
diagnostics for the test.

(cherry picked from commit e2345ff)
@potiuk potiuk restored the fix-flaky-on-kill branch April 26, 2022 20:52
@potiuk potiuk deleted the fix-flaky-on-kill branch July 29, 2022 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full tests needed We need to run full set of tests for this PR to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants