Skip to content
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

Remove flakiness introduced by cleanup in configuration test #37375

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Feb 13, 2024

The changes in #37320 introduced flakiness while removing side-effect of configuration test. Cleanup of ProvidersManager might interfere with other tests using it at the same time. This caused some Non-DB test failures with missing keys in ProvidersManager.

The fix is to mark the configuration test as DB-test - then it will never be run by NonDB xdist and it will always run sequentially to other tests (and still it will not introduce side-effect as cleanup will always be done between tests.


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

The changes in apache#37320 introduced flakiness while removing side-effect
of configuration test. Cleanup of ProvidersManager might
interfere with other tests using it at the same time. This caused
some Non-DB test failures with missing keys in ProvidersManager.

The fix is to mark the configuration test as DB-test - then it
will never be run by NonDB xdist and it will always run
sequentially to other tests (and still it will not
introduce side-effect as cleanup will always be done between tests.
@potiuk potiuk changed the title Rmeove flakiness introduced by cleanup in configuration test Remove flakiness introduced by cleanup in configuration test Feb 13, 2024
@potiuk potiuk added this to the Airflow 2.8.2 milestone Feb 13, 2024
@potiuk
Copy link
Member Author

potiuk commented Feb 13, 2024

Example failures: https://github.com/apache/airflow/actions/runs/7880142605/attempts/1 in v2-8-test branch.

@Taragolis
Copy link
Contributor

Hm... maybe uncomment also huge block from L1867?

@potiuk potiuk merged commit cbc9af0 into apache:main Feb 13, 2024
59 checks passed
@potiuk potiuk deleted the remove-flakiness-in-configuration-test branch February 13, 2024 11:17
ephraimbuddy pushed a commit that referenced this pull request Feb 20, 2024
The changes in #37320 introduced flakiness while removing side-effect
of configuration test. Cleanup of ProvidersManager might
interfere with other tests using it at the same time. This caused
some Non-DB test failures with missing keys in ProvidersManager.

The fix is to mark the configuration test as DB-test - then it
will never be run by NonDB xdist and it will always run
sequentially to other tests (and still it will not
introduce side-effect as cleanup will always be done between tests.

(cherry picked from commit cbc9af0)
ephraimbuddy pushed a commit that referenced this pull request Feb 22, 2024
The changes in #37320 introduced flakiness while removing side-effect
of configuration test. Cleanup of ProvidersManager might
interfere with other tests using it at the same time. This caused
some Non-DB test failures with missing keys in ProvidersManager.

The fix is to mark the configuration test as DB-test - then it
will never be run by NonDB xdist and it will always run
sequentially to other tests (and still it will not
introduce side-effect as cleanup will always be done between tests.

(cherry picked from commit cbc9af0)
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.

5 participants