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 concurrency problem in no-db tests and mock by late import #43942

Conversation

jscheffl
Copy link
Contributor

Fix for errors in https://github.com/apache/airflow/actions/runs/11798339919

Assumed root casue - only 90% certain: Concurrency in pytest with xdist.
I was able to fix it with not seeing the error locally by making imports late - seems if a top level import is made befor the mock, the execute_in_subprocess call was not correctly mocked... whyever.

@jscheffl
Copy link
Contributor Author

giving-up but the problem anyway was in another side

@jscheffl jscheffl closed this Nov 13, 2024
@jscheffl jscheffl deleted the bugfix/remove-pytest-concurrency-in-python-venv branch November 13, 2024 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant