-
Notifications
You must be signed in to change notification settings - Fork 2
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
Run data_fixtures app migrations at the end of automated tests #1352
Comments
FWIW, this might be easy to do - the missing migrations script already will fail out if it gets an error back when it runs |
Should be resolved in #1368 (but typoed the ticket number in it so this didn't close automatically) |
@jkachel #1368 is very useful, but does it resolve this? We still don't run the data migrations on CI, we just check for conflicting migrations. The data migrations are manually written, so there could be an error in them. Should we run |
The idea in #1368 was just to check for conflicts (since that was what prompted this) - but yes, it doesn't check for errors in the migrations themselves. (I think this would be caught anyway as someone has to approve the PR they're in but it wouldn't hurt to have an automated check too.) Reopening it for that. Thinking about it a little more, though - the check for diverging paths is good in the context of the current PR/branch but I think the check should go a little further. The problem that prompted this was a PR that had a migration that merged after a PR that had a migration in |
Description/Context
We have a data_fixtures app that installs static fixtures - we currently dont run these in our automated test suit since a lot of our tests assume there is a clean slate when running since we don't explicitly setup()/teardown() - however this also means that if there is an issue with migrations in the data_fixtures app, it wont be revealed until we attempt a release.
Plan
The text was updated successfully, but these errors were encountered: