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

Skip migrations when running pytest #35447

Merged
merged 3 commits into from
Nov 26, 2024
Merged

Skip migrations when running pytest #35447

merged 3 commits into from
Nov 26, 2024

Conversation

millerdev
Copy link
Contributor

Decrease test run time by skipping redundant database migrations. We had done something like this with nose.

Context: #34778 (comment)

https://dimagi.atlassian.net/browse/SAAS-16291

🐡 Review by commit.

Safety Assurance

Safety story

Github Actions test options changed, nothing else.

Automated test coverage

Indirect.

Rollback instructions

  • This PR can be reverted after deploy with no further considerations

They are equivalent, and --verbosity=2 is more consistent with other options.
Migrations are run on the python-sharded-and-javascript test node.
See `./manage.py migrate` in run.sh _test_javascript.
@millerdev millerdev added the product/invisible Change has no end-user visible impact label Nov 26, 2024
@millerdev millerdev merged commit 9331fb1 into master Nov 26, 2024
16 checks passed
@millerdev millerdev deleted the dm/test-migrations branch November 26, 2024 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product/invisible Change has no end-user visible impact
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants