[BUG] Use of `dash_duo` hangs Github Action until Timeout
2Ryan09 opened this issue · comments
Describe your context
Github Action running on ubuntu-latest
and unit tests run with:
pytest --capture=no --headless [package]
Result of pip list | grep dash
dash 2.15.0
dash_ag_grid 31.0.1
dash-bootstrap-components 1.6.0
dash-core-components 2.0.0
dash_daq 0.5.0
dash-html-components 2.0.0
dash-table 5.0.0
dash-testing-stub 0.0.2
Describe the bug
When running unit tests in Github Actions that involve the use of dash_duo
to spin up an instance of the server, the action is left hanging until timeout even after all tests within pass. The final output is the summary from pytest
saying all tests passed:
![image](https://private-user-images.githubusercontent.com/22386684/324147348-8929ff57-90ce-46ae-a724-45b59450dddc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTQ5MzM2NjksIm5iZiI6MTcxNDkzMzM2OSwicGF0aCI6Ii8yMjM4NjY4NC8zMjQxNDczNDgtODkyOWZmNTctOTBjZS00NmFlLWE3MjQtNDViNTk0NTBkZGRjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTA1VDE4MjI0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYxOWVkODg4Mjk5MDBlOTEwNjAzMmY2ZDM1NWE0MGE4ZjNiN2M4ZmVjZDY5NTQyNzJmYTVmZThiZDBjZDg0OWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.mVFFwbnDJyGajrsI-cah3iKjLZli9V8zQz8GFTKQ6zI)
Assuming this is due to some background/sub process of selenium not terminating correctly.
Have tried using dash_duo
as a content manager, as below, without success.
with dash_duo:
do_some_test_with_dash_duo()
Expected behavior
The GitHub action to proceed once pytest
has terminated.
Hi @2Ryan09 , thanks for reporting this issue.
I haven't been able to reproduce yet -- here's a successful workflow which uses pytest
and dash_duo
.
Could you share a minimal example which triggers the hang?
Also check what pytest
version you are using and see if you can upgrade — the above uses pytest==8.1.2
.