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

Improve reliability of backend tests #1675

Merged
merged 36 commits into from Apr 16, 2024
Merged

Improve reliability of backend tests #1675

merged 36 commits into from Apr 16, 2024

Conversation

vnznznz
Copy link
Contributor

@vnznznz vnznznz commented Apr 12, 2024

While debugging tests for #1625, I stumbled upon over the use of globals instead of fixtures in test_profiles.py. I also added some limits to the while True - loops to avoid blocking a CI worker for several hours.

@vnznznz vnznznz requested a review from tw4l April 12, 2024 14:12
- Use pytest fixtures rather than globals
- Give tests time for async updates to happen in while loop
Use a while loop for up to 60 seconds to fix an intermittent test
failure.
@tw4l tw4l changed the title Rework test_profiles.py Improve reliability of backend tests Apr 12, 2024
@tw4l
Copy link
Contributor

tw4l commented Apr 12, 2024

Updated to include test reliability improvements for intermittently failing test_uploads and test_qa modules as well - namely, adding certain checks into timed while loops and replacing globals with pytest fixtures.

@tw4l
Copy link
Contributor

tw4l commented Apr 16, 2024

Sorry for the delay after creeping the scope up a bit, but I think this should be good now!

@tw4l tw4l requested a review from ikreymer April 16, 2024 16:42
@tw4l tw4l merged commit 1b03495 into main Apr 16, 2024
4 checks passed
@tw4l tw4l deleted the deglobalise-test_profiles.py branch April 16, 2024 18:22
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.

None yet

3 participants