Skip to content

Chore: improve test stability and address some warnings#5293

Merged
erindru merged 7 commits intomainfrom
erin/improve-tests
Sep 4, 2025
Merged

Chore: improve test stability and address some warnings#5293
erindru merged 7 commits intomainfrom
erin/improve-tests

Conversation

@erindru
Copy link
Collaborator

@erindru erindru commented Sep 3, 2025

After spending an ungodly amount of time trying to work around pytest-retry's design choices, I decided to revisit why it was chosen in the first place given its not even mentioned in the pytest docs.

I recall that it was chosen because it supported Python 3.8 and pytest-rerunfailures was Python 3.9+. However, since then, SQLMesh no longer supports Python 3.8, so in this PR i've switched to use pytest-rerunfailures and everything suddenly started working correctly.

I also cleaned up a bunch of warnings like the following:

PytestCollectionWarning: cannot collect test class 'TestConfig' because it has a init constructor (from: tests/dbt/test_model.py)

and

PytestUnknownMarkWarning: Unknown pytest.mark.registry_isolation - is this a typo? You can register custom marks to avoid this warning

branches:
only:
- main
#filters:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: revert

This reverts commit a7dac01.
@erindru erindru merged commit 745c383 into main Sep 4, 2025
36 checks passed
@erindru erindru deleted the erin/improve-tests branch September 4, 2025 17:39
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.

2 participants