#36946: Running tests on SQLite with --parallel (using spawn) does not respect
DATABASES["TEST"]["NAME"]
-------------------------------------+-------------------------------------
     Reporter:  Sage Abdullah        |                    Owner:  (none)
         Type:  Bug                  |                   Status:  new
    Component:  Testing framework    |                  Version:  dev
     Severity:  Normal               |               Resolution:
     Keywords:  tests, sqlite,       |             Triage Stage:  Accepted
  parallel                           |
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Sage Abdullah):

 Replying to [comment:1 Jacob Walls]:
 > Thanks Sage, I suspected this was not handled but hadn't yet verified.
 Would you like to submit a PR?

 Yep, I'll submit a PR soon. Just trying to find the most appropriate way
 to test it.

 > Related: I've noticed we have the same `OperationalError` when a
 parallel test worker dies. In that case, the worker_id increments past the
 number of databases, and a connection is requested for a nonexistent
 database. At a glance, it looks like your suggested patch fixes that as
 well.

 Awesome!

 Replying to [comment:2 Sriniketh99]:
 > Hi!
 > I'm interested in working on this ticket.
 > I'm still learning about Django internals, but I'd like to begin by
 trying to reproduce this problem myself and see how the test runner is
 setting up the SQLite databases with the --parallel option.
 > My approach would be to try to understand how the test database names
 are being determined and passed down to the worker processes, and then
 attempt to solve the problem.
 > I'll post back here as I make progress and may have questions if I get
 stuck.

 Sorry, I should've assigned the ticket to myself. I already made the
 patch, so I just need to submit the PR. I'd recommend looking for a
 different ticket to work on.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36946#comment:3>
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/0107019c9600757f-8ed3eb52-94c7-4c42-852f-e41330c6a43b-000000%40eu-central-1.amazonses.com.

Reply via email to