#36652: Django Squashed Migrations Randmonly Passing/Failing Based On Set
Iteration
Order
--------------------------------+--------------------------------------
Reporter: Jayden Kneller | Owner: (none)
Type: Bug | Status: new
Component: Migrations | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------
Comment (by Jayden Kneller):
If it is possible to use this repo in the creation of the automated tests,
then please do. It was a lot of work to rename everything to obscure the
original project. I renamed all the migration names in the process as
well, because of some of their names. I'm glad the operations in the old
migrations don't need to exist in order to have this issue occur, that
removed a lot of code. I'm not sure if it would be possible to trim down
the number of apps and migrations and still have a situation like this
occur. At the very least, I think I got the code that exists down to
about the smallest amount that I could.
But, I'm not sure how you would make an automated test for this. What
would need to be tested? Because the set seems to iterate in the same
order within the running process no matter how many times you iterate over
it, and doesn't always fail. That must make things more difficult to test.
I was forced to add the shuffle in the patched MigrationLoader due to the
same process iteration issue, which I wasn't expecting.
--
Ticket URL: <https://code.djangoproject.com/ticket/36652#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/01070199d00bd2bf-23e6e9d3-72f3-411b-9046-c7925d5c87cf-000000%40eu-central-1.amazonses.com.