Re: [Django] #35921: migration_test_data_persistence fails when running with parallelism > 1 and Postgres

12 views
Skip to first unread message

Django

unread,
Nov 20, 2024, 12:38:17 AM11/20/24
to django-...@googlegroups.com
#35921: migration_test_data_persistence fails when running with parallelism > 1 and
Postgres
-------------------------------------+-------------------------------------
Reporter: Raphael Gaschignard | Owner: (none)
Type: Bug | Status: new
Component: Testing framework | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):

* cc: Jacob Walls (added)

Comment:

CC'ing Jacob since he worked on #35660.
--
Ticket URL: <https://code.djangoproject.com/ticket/35921#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Nov 20, 2024, 9:09:25 AM11/20/24
to django-...@googlegroups.com
#35921: migration_test_data_persistence fails when running with parallelism > 1 and
Postgres
-------------------------------------+-------------------------------------
Reporter: Raphael Gaschignard | Owner: Jacob
Type: | Walls
Cleanup/optimization | Status: assigned
Component: Testing framework | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):

* has_patch: 0 => 1
* owner: (none) => Jacob Walls
* stage: Unreviewed => Accepted
* status: new => assigned
* type: Bug => Cleanup/optimization

Comment:

Nice catch, looks like I just need to add `allow_cascade=True` in the
`sqlflush` call in the test setup.
[https://github.com/django/django/pull/18831 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/35921#comment:6>

Django

unread,
Nov 27, 2024, 6:42:59 AM11/27/24
to django-...@googlegroups.com
#35921: migration_test_data_persistence fails when running with parallelism > 1 and
Postgres
-------------------------------------+-------------------------------------
Reporter: Raphael Gaschignard | Owner: Jacob
Type: | Walls
Cleanup/optimization | Status: assigned
Component: Testing framework | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* stage: Accepted => Ready for checkin

--
Ticket URL: <https://code.djangoproject.com/ticket/35921#comment:7>

Django

unread,
Nov 27, 2024, 6:51:54 AM11/27/24
to django-...@googlegroups.com
#35921: migration_test_data_persistence fails when running with parallelism > 1 and
Postgres
-------------------------------------+-------------------------------------
Reporter: Raphael Gaschignard | Owner: Jacob
Type: | Walls
Cleanup/optimization | Status: closed
Component: Testing framework | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce <42296566+sarahboyce@…>):

* resolution: => fixed
* status: assigned => closed

Comment:

In [changeset:"d4b2e06a67c2e1458305c3eac6c4b2b3e917daf9" d4b2e06]:
{{{#!CommitTicketReference repository=""
revision="d4b2e06a67c2e1458305c3eac6c4b2b3e917daf9"
Fixed #35921 -- Fixed failure when running tests in parallel on postgres.

Follow-up to a060a22ee2dde7aa29a5a29120087c4864887325.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35921#comment:8>
Reply all
Reply to author
Forward
0 new messages