Re: [Django] #34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28

2024-02-23 Thread Django
#34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28
+--
 Reporter:  Aaron Blair |Owner:  Can Huynh
 Type:  Bug |   Status:  closed
Component:  Testing framework   |  Version:  4.1
 Severity:  Normal  |   Resolution:  invalid
 Keywords:  Test MySQL Cluster  | Triage Stage:  Unreviewed
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+--
Comment (by Can Huynh):

 Sorry for not responding for so long. Life got in the way, and thanks
 @Mariusz Felisiak
-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018dd9925701-857c88eb-b38c-4a33-8906-8b0245c59aae-00%40eu-central-1.amazonses.com.


Re: [Django] #34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28

2024-02-23 Thread Django
#34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28
+--
 Reporter:  Aaron Blair |Owner:  Can Huynh
 Type:  Bug |   Status:  closed
Component:  Testing framework   |  Version:  4.1
 Severity:  Normal  |   Resolution:  invalid
 Keywords:  Test MySQL Cluster  | Triage Stage:  Unreviewed
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+--
Comment (by Can Huynh):

 Thank you for the update!

 Replying to [comment:14 Mariusz Felisiak]:
 > The `django.db.backends.mysql` backend has its own implementation of
 `DatabaseFeatures.supports_transactions` and doesn't use the default one.
 I don't think there is anything to fix in Django itself.
-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018dd990d35f-5d4abb21-8a2c-4661-ac90-eb08e8a68178-00%40eu-central-1.amazonses.com.


Re: [Django] #34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28

2024-01-08 Thread Django
#34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28
+--
 Reporter:  Aaron Blair |Owner:  Can Huynh
 Type:  Bug |   Status:  closed
Component:  Testing framework   |  Version:  4.1
 Severity:  Normal  |   Resolution:  invalid
 Keywords:  Test MySQL Cluster  | Triage Stage:  Unreviewed
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+--
Changes (by Mariusz Felisiak):

 * status:  assigned => closed
 * resolution:   => invalid
 * easy:  1 => 0
 * stage:  Accepted => Unreviewed


Comment:

 The `django.db.backends.mysql` backend has its own implementation of
 `DatabaseFeatures.supports_transactions` and doesn't use the default one.
 I don't think there is anything to fix in Django itself.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018ce8e9b065-3b5ea56f-1af9-4975-acdb-07a46ba08d64-00%40eu-central-1.amazonses.com.


Re: [Django] #34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28

2023-11-27 Thread Django
#34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28
+-
 Reporter:  Aaron Blair |Owner:  Can Huynh
 Type:  Bug |   Status:  assigned
Component:  Testing framework   |  Version:  4.1
 Severity:  Normal  |   Resolution:
 Keywords:  Test MySQL Cluster  | Triage Stage:  Accepted
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  1   |UI/UX:  0
+-

Comment (by Aaron Blair):

 That model looks fine. As long as you have multiple mysql cluster servers
 of version 8.0.28 and they have replication set up with each other, it
 will break tests without the the fix. Remove the fix, and check that
 replication is set up with the mysql cluster servers. (Log into one of
 them add use the command - select * from
 performance_schema.replication_group_members; - be sure all servers are
 listed as ONLINE state and PRIMARY role).


 Replying to [comment:12 Can Huynh]:
 > Here is my model file. I have tried applying your recommendation to my
 test case, and I still cannot make the test fail. I have tried with the
 most recent version, the 4.1 version, and the fix that I changed locally
 ie: cursor.execute("CREATE TABLE ROLLBACK_TEST (X INT PRIMARY KEY)")
 >
 > I think that I didn't install and setup MySQL Cluster correctly but I am
 not sure how to verify it
 >
 > [[Image(unittest_app_models.png)]]

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018c124042ec-d6789551-f43f-4482-b5bf-11ac41c1762e-00%40eu-central-1.amazonses.com.


Re: [Django] #34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28

2023-11-25 Thread Django
#34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28
+-
 Reporter:  Aaron Blair |Owner:  Can Huynh
 Type:  Bug |   Status:  assigned
Component:  Testing framework   |  Version:  4.1
 Severity:  Normal  |   Resolution:
 Keywords:  Test MySQL Cluster  | Triage Stage:  Accepted
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  1   |UI/UX:  0
+-

Comment (by Can Huynh):

 Here is my model file. I have tried applying your recommendation to my
 test case, and I still cannot make the test fail. I have tried with the
 most recent version, the 4.1 version, and the fix that I changed locally
 ie: cursor.execute("CREATE TABLE ROLLBACK_TEST (X INT PRIMARY KEY)")

 I think that I didn't install and setup MySQL Cluster correctly but I am
 not sure how to verify it

 [[Image(unittest_app_models.png)]]

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018c09bd45b4-e24d5041-51bc-43e3-bd3a-cf315970f97f-00%40eu-central-1.amazonses.com.


Re: [Django] #34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28

2023-11-25 Thread Django
#34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28
+-
 Reporter:  Aaron Blair |Owner:  Can Huynh
 Type:  Bug |   Status:  assigned
Component:  Testing framework   |  Version:  4.1
 Severity:  Normal  |   Resolution:
 Keywords:  Test MySQL Cluster  | Triage Stage:  Accepted
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  1   |UI/UX:  0
+-
Changes (by Can Huynh):

 * Attachment "unittest_app_models.png" added.


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018c09a99bfd-ae7f4c9b-4030-4b40-8c59-a1a962ba27cf-00%40eu-central-1.amazonses.com.


Re: [Django] #34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28

2023-11-21 Thread Django
#34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28
+-
 Reporter:  Aaron Blair |Owner:  Can Huynh
 Type:  Bug |   Status:  assigned
Component:  Testing framework   |  Version:  4.1
 Severity:  Normal  |   Resolution:
 Keywords:  Test MySQL Cluster  | Triage Stage:  Accepted
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  1   |UI/UX:  0
+-

Comment (by Aaron Blair):

 Replying to [comment:9 Can Huynh]:
 Can you add your unittest_app.models.py?

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018bf3dc770b-fb391bf7-53d3-4985-996b-584ec78c0be7-00%40eu-central-1.amazonses.com.


Re: [Django] #34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28

2023-11-21 Thread Django
#34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28
+-
 Reporter:  Aaron Blair |Owner:  Can Huynh
 Type:  Bug |   Status:  assigned
Component:  Testing framework   |  Version:  4.1
 Severity:  Normal  |   Resolution:
 Keywords:  Test MySQL Cluster  | Triage Stage:  Accepted
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  1   |UI/UX:  0
+-

Comment (by Aaron Blair):

 Replying to [comment:9 Can Huynh]:

 A very simple example:

 my_app.models:

 {{{
 from django.db import models

 class Company(models.Model):
 name = models.CharField(max_length=30, unique=True)
 }}}


 my_app/tests/test_models_myapp.py:

 {{{
 from django.test import TestCase
 from my_app.models import Company

 class CompanyModelTest(TestCase):
 def test_saving_and_retrieving_items(self):
 company = Company()
 company.name = "ACompany"
 company.save()

 companies = Company.objects.all()
 self.assertEqual(companies.count(), 1)

 first_company = companies[0]
 self.assertEqual(first_company.name, "ACompany")
 }}}







 > Replying to [comment:6 Aaron Blair]:
 >
 > Can you guide me on how you set up your unit test and what your test
 output looked like, if possible? I have attached my test suits and test
 output, please let me know if there is anything I need to modify. Thank
 you in advance and sorry for being inactive for a long time.
 >
 > [[Image(  test_case.png​)]] [[Image(test_output.png)]]
 >

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018bf3daee22-0fda58b6-0669-4b1b-aa23-bd0e7eb0ce2a-00%40eu-central-1.amazonses.com.


Re: [Django] #34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28

2023-11-06 Thread Django
#34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28
+-
 Reporter:  Aaron Blair |Owner:  Can Huynh
 Type:  Bug |   Status:  assigned
Component:  Testing framework   |  Version:  4.1
 Severity:  Normal  |   Resolution:
 Keywords:  Test MySQL Cluster  | Triage Stage:  Accepted
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  1   |UI/UX:  0
+-

Comment (by Can Huynh):

 Replying to [comment:6 Aaron Blair]:

 Can you guide me on how you set up your unit test and what your test
 output looked like, if possible? I have attached my test suits and test
 output, please let me know if there is anything I need to modify. Thank
 you in advance and sorry for being inactive for a long time.

 [[Image(test_case.png​)]] [[Image(test_output.png)]]

 > Replying to [comment:5 Can Huynh]:
 > > Can I get an instruction on how to reproduce this issue?
 >
 > Install MySQL Cluster server v8.0.28 onto multiple (say 3) servers and
 start replication.
 > Install Django (any version that uses cursor.execute("CREATE TABLE
 ROLLBACK_TEST (X INT)") in django.db.backends.base.features.py this exists
 on 4.1 but it was there for several versions previous to 4.1 as well)
 > Create any model that uses autocreate id as pk (ie do not specify an id
 or pk field)
 > Write any unit test bases on django.test.TestCase for the model which
 accesses the db
 > Run the unit test

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018ba846d251-eed5904b-dbec-4df7-9232-5018212c78c6-00%40eu-central-1.amazonses.com.


Re: [Django] #34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28

2023-11-06 Thread Django
#34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28
+-
 Reporter:  Aaron Blair |Owner:  Can Huynh
 Type:  Bug |   Status:  assigned
Component:  Testing framework   |  Version:  4.1
 Severity:  Normal  |   Resolution:
 Keywords:  Test MySQL Cluster  | Triage Stage:  Accepted
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  1   |UI/UX:  0
+-
Changes (by Can Huynh):

 * Attachment "test_output.png" added.


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018ba842cb0e-b2ddbffd-c23c-40ae-9180-d4c613341824-00%40eu-central-1.amazonses.com.


Re: [Django] #34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28

2023-11-06 Thread Django
#34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28
+-
 Reporter:  Aaron Blair |Owner:  Can Huynh
 Type:  Bug |   Status:  assigned
Component:  Testing framework   |  Version:  4.1
 Severity:  Normal  |   Resolution:
 Keywords:  Test MySQL Cluster  | Triage Stage:  Accepted
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  1   |UI/UX:  0
+-
Changes (by Can Huynh):

 * Attachment "test_case.png" added.


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018ba842b076-78d47866-0d41-41cc-a032-4cb8c0a3ad0c-00%40eu-central-1.amazonses.com.


Re: [Django] #34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28

2023-10-16 Thread Django
#34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28
+-
 Reporter:  Aaron Blair |Owner:  Can Huynh
 Type:  Bug |   Status:  assigned
Component:  Testing framework   |  Version:  4.1
 Severity:  Normal  |   Resolution:
 Keywords:  Test MySQL Cluster  | Triage Stage:  Accepted
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  1   |UI/UX:  0
+-

Comment (by Can Huynh):

 Hi, I have attempted to install MySQL Cluster v8.0.28 but it doesn't seem
 to be working. I may have done it incorrectly. I tried doing this locally
 and on AWS but was not successful. Are you able to provide me
 instructions/resources on how to install this so I can continue with this
 ticket?

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018b3aa17e15-05a7a5e2-2483-4a86-9aea-039116708431-00%40eu-central-1.amazonses.com.


Re: [Django] #34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28

2023-10-03 Thread Django
#34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28
+-
 Reporter:  Aaron Blair |Owner:  Can Huynh
 Type:  Bug |   Status:  assigned
Component:  Testing framework   |  Version:  4.1
 Severity:  Normal  |   Resolution:
 Keywords:  Test MySQL Cluster  | Triage Stage:  Accepted
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  1   |UI/UX:  0
+-
Changes (by Pieter Cardillo Kwok):

 * cc: Pieter Cardillo Kwok (added)


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018af5ef5067-91a4f27b-62d8-4d05-933f-156f2801eb4f-00%40eu-central-1.amazonses.com.


Re: [Django] #34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28

2023-09-30 Thread Django
#34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28
+-
 Reporter:  Aaron Blair |Owner:  Can Huynh
 Type:  Bug |   Status:  assigned
Component:  Testing framework   |  Version:  4.1
 Severity:  Normal  |   Resolution:
 Keywords:  Test MySQL Cluster  | Triage Stage:  Accepted
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  1   |UI/UX:  0
+-

Comment (by Aaron Blair):

 Replying to [comment:5 Can Huynh]:
 > Can I get an instruction on how to reproduce this issue?

 Install MySQL Cluster server v8.0.28 onto multiple (say 3) servers and
 start replication.
 Install Django (any version that uses cursor.execute("CREATE TABLE
 ROLLBACK_TEST (X INT)") in django.db.backends.base.features.py this exists
 on 4.1 but it was there for several versions previous to 4.1 as well)
 Create any model that uses autocreate id as pk (ie do not specify an id or
 pk field)
 Write any unit test bases on django.test.TestCase for the model which
 accesses the db
 Run the unit test

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018ae712462f-7de9f43b-3631-49ca-95f0-da3b163e3d91-00%40eu-central-1.amazonses.com.


Re: [Django] #34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28

2023-09-26 Thread Django
#34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28
+-
 Reporter:  Aaron Blair |Owner:  Can Huynh
 Type:  Bug |   Status:  assigned
Component:  Testing framework   |  Version:  4.1
 Severity:  Normal  |   Resolution:
 Keywords:  Test MySQL Cluster  | Triage Stage:  Accepted
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  1   |UI/UX:  0
+-

Comment (by Can Huynh):

 Can I get an instruction on how to reproduce this issue?

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018ad4a445a5-f26e850a-96c0-4aad-95c7-59b031478a0b-00%40eu-central-1.amazonses.com.


Re: [Django] #34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28

2023-09-20 Thread Django
#34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28
+-
 Reporter:  Aaron Blair |Owner:  Can Huynh
 Type:  Bug |   Status:  assigned
Component:  Testing framework   |  Version:  4.1
 Severity:  Normal  |   Resolution:
 Keywords:  Test MySQL Cluster  | Triage Stage:  Accepted
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  1   |UI/UX:  0
+-
Changes (by Aaron Blair):

 * owner:  nobody => Can Huynh
 * status:  new => assigned


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018ab24eaa37-36af04e3-12de-4e10-93cb-27c4dd798fd8-00%40eu-central-1.amazonses.com.


Re: [Django] #34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28

2023-09-19 Thread Django
#34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28
+
 Reporter:  Aaron Blair |Owner:  nobody
 Type:  Bug |   Status:  new
Component:  Testing framework   |  Version:  4.1
 Severity:  Normal  |   Resolution:
 Keywords:  Test MySQL Cluster  | Triage Stage:  Accepted
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  1   |UI/UX:  0
+

Comment (by Can Huynh):

 Can I try this issue?

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018ab08a1621-170b124a-61ca-4c1e-accd-5dbade9111d2-00%40eu-central-1.amazonses.com.


Re: [Django] #34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28

2023-09-19 Thread Django
#34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28
+
 Reporter:  Aaron Blair |Owner:  nobody
 Type:  Bug |   Status:  new
Component:  Testing framework   |  Version:  4.1
 Severity:  Normal  |   Resolution:
 Keywords:  Test MySQL Cluster  | Triage Stage:  Accepted
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  1   |UI/UX:  0
+
Changes (by Claude Paroz):

 * stage:  Unreviewed => Accepted


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018aae4fe5d4-25698b54-433a-489b-955f-a72f3a255890-00%40eu-central-1.amazonses.com.


Re: [Django] #34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28

2023-09-19 Thread Django
#34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28
+--
 Reporter:  Aaron Blair |Owner:  nobody
 Type:  Bug |   Status:  new
Component:  Testing framework   |  Version:  4.1
 Severity:  Normal  |   Resolution:
 Keywords:  Test MySQL Cluster  | Triage Stage:  Unreviewed
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  1   |UI/UX:  0
+--
Description changed by Aaron Blair:

Old description:

> When running unit tests, the internal testing of a db for using
> transactions breaks when using MySQL Cluster server v8.0.28 because it
> requires a primary key for tables, and this line in
> https://github.com/django/django/blob/main/django/db/backends/base/features.py
> breaks it :
>

> {{{
> @cached_property
> def supports_transactions(self):
> """Confirm support for transactions."""
> with self.connection.cursor() as cursor:
> cursor.execute("CREATE TABLE ROLLBACK_TEST (X INT)")
> }}}
>

> We have been patch-fixing that file as follows:
>
> <- cursor.execute("CREATE TABLE ROLLBACK_TEST (X INT PRIMARY
> KEY)")
> ---
> -> cursor.execute("CREATE TABLE ROLLBACK_TEST (X INT)")

New description:

 When running unit tests, the internal testing of a db for using
 transactions breaks when using MySQL Cluster server v8.0.28 because that
 db version requires a primary key for tables, and this line in
 https://github.com/django/django/blob/main/django/db/backends/base/features.py
 breaks it :


 {{{
 @cached_property
 def supports_transactions(self):
 """Confirm support for transactions."""
 with self.connection.cursor() as cursor:
 cursor.execute("CREATE TABLE ROLLBACK_TEST (X INT)")
 }}}


 We have been patch-fixing that file as follows:

 <- cursor.execute("CREATE TABLE ROLLBACK_TEST (X INT PRIMARY
 KEY)")
 ---
 -> cursor.execute("CREATE TABLE ROLLBACK_TEST (X INT)")

--

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018aae044cb2-7e9c9858-6bad-4717-80f7-c578483fe225-00%40eu-central-1.amazonses.com.


[Django] #34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28

2023-09-19 Thread Django
#34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28
-+-
   Reporter:  Aaron  |  Owner:  nobody
  Blair  |
   Type:  Bug| Status:  new
  Component:  Testing|Version:  4.1
  framework  |
   Severity:  Normal |   Keywords:  Test MySQL Cluster
   Triage Stage: |  Has patch:  0
  Unreviewed |
Needs documentation:  0  |Needs tests:  0
Patch needs improvement:  0  |  Easy pickings:  1
  UI/UX:  0  |
-+-
 When running unit tests, the internal testing of a db for using
 transactions breaks when using MySQL Cluster server v8.0.28 because it
 requires a primary key for tables, and this line in
 https://github.com/django/django/blob/main/django/db/backends/base/features.py
 breaks it :


 {{{
 @cached_property
 def supports_transactions(self):
 """Confirm support for transactions."""
 with self.connection.cursor() as cursor:
 cursor.execute("CREATE TABLE ROLLBACK_TEST (X INT)")
 }}}


 We have been patch-fixing that file as follows:

 <- cursor.execute("CREATE TABLE ROLLBACK_TEST (X INT PRIMARY
 KEY)")
 ---
 -> cursor.execute("CREATE TABLE ROLLBACK_TEST (X INT)")

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018aae0344aa-38d009a9-0320-44a3-ae54-41a6a93cd6a8-00%40eu-central-1.amazonses.com.