[Django] #34981: Promote `--pair` and `--bisect` from `runtest.py` to be available as flags for the Django `test` command

28 views
Skip to first unread message

Django

unread,
Nov 20, 2023, 11:33:52 AM11/20/23
to django-...@googlegroups.com
#34981: Promote `--pair` and `--bisect` from `runtest.py` to be available as flags
for the Django `test` command
---------------------------------------------+------------------------
Reporter: Natalia Bidart | Owner: nobody
Type: Uncategorized | Status: new
Component: Testing framework | Version: dev
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
---------------------------------------------+------------------------
Following [https://forum.djangoproject.com/t/django-fellow-report-
natalia/20942/37 a recent conversation in the forum], it was suggested
that we promote the flags `--pair` and `--bisect` to be available in the
Django `test` command. Currently these are only implemented in the Django
custom `runtests.py` helper script.

--
Ticket URL: <https://code.djangoproject.com/ticket/34981>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Nov 20, 2023, 1:02:00 PM11/20/23
to django-...@googlegroups.com
#34981: Promote `--pair` and `--bisect` from `runtest.py` to be available as flags
for the Django `test` command
-----------------------------------+------------------------------------

Reporter: Natalia Bidart | Owner: nobody
Type: Uncategorized | Status: new
Component: Testing framework | Version: dev
Severity: Normal | Resolution:
Keywords: | 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


Comment:

Makes sense!

--
Ticket URL: <https://code.djangoproject.com/ticket/34981#comment:1>

Django

unread,
Nov 20, 2023, 7:03:24 PM11/20/23
to django-...@googlegroups.com
#34981: Promote `--pair` and `--bisect` from `runtest.py` to be available as flags
for the Django `test` command
-----------------------------------+------------------------------------
Reporter: Natalia Bidart | Owner: yushan
Type: Uncategorized | Status: assigned

Component: Testing framework | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by yushan):

* owner: nobody => yushan
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/34981#comment:2>

Django

unread,
Nov 20, 2023, 8:42:41 PM11/20/23
to django-...@googlegroups.com
#34981: Promote `--pair` and `--bisect` from `runtest.py` to be available as flags
for the Django `test` command
-----------------------------------+------------------------------------
Reporter: Natalia Bidart | Owner: yushan
Type: New feature | Status: assigned

Component: Testing framework | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by Tim Graham):

* type: Uncategorized => New feature
* easy: 1 => 0


Comment:

Looking at how intertwined the code for these options is with other code
in `runtests.py` (even
[https://github.com/django/django/blob/00a950f923435188a6c1d4ccdcb42c37cdc3976a/tests/runtests.py#L509
hardcoding certain Django tests apps]), I doubt this is "easy pickings."

--
Ticket URL: <https://code.djangoproject.com/ticket/34981#comment:3>

Django

unread,
Nov 26, 2023, 6:21:35 AM11/26/23
to django-...@googlegroups.com
#34981: Promote `--pair` and `--bisect` from `runtest.py` to be available as flags
for the Django `test` command
-----------------------------------+------------------------------------
Reporter: Natalia Bidart | Owner: (none)
Type: New feature | Status: new

Component: Testing framework | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by yushan):

* owner: yushan => (none)
* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/34981#comment:4>

Django

unread,
Nov 26, 2023, 2:57:12 PM11/26/23
to django-...@googlegroups.com
#34981: Promote `--pair` and `--bisect` from `runtest.py` to be available as flags
for the Django `test` command
-------------------------------------+-------------------------------------
Reporter: Natalia Bidart | Owner: Sulabh
| Katila

Type: New feature | Status: assigned
Component: Testing framework | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sulabh Katila):

* owner: (none) => Sulabh Katila


* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/34981#comment:5>

Django

unread,
Dec 17, 2023, 8:44:29 AM12/17/23
to django-...@googlegroups.com
#34981: Promote `--pair` and `--bisect` from `runtest.py` to be available as flags
for the Django `test` command
-------------------------------------+-------------------------------------
Reporter: Natalia Bidart | Owner: Sulabh
| Katila
Type: New feature | Status: assigned
Component: Testing framework | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Adam Johnson):

* cc: Adam Johnson (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/34981#comment:6>

Django

unread,
Dec 23, 2023, 11:34:53 PM12/23/23
to django-...@googlegroups.com
#34981: Promote `--pair` and `--bisect` from `runtest.py` to be available as flags
for the Django `test` command
-------------------------------------+-------------------------------------
Reporter: Natalia Bidart | Owner: Sulabh
| Katila
Type: New feature | 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 Sulabh Katila):

* has_patch: 0 => 1


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

Django

unread,
Dec 24, 2023, 12:16:41 AM12/24/23
to django-...@googlegroups.com
#34981: Promote `--pair` and `--bisect` from `runtest.py` to be available as flags
for the Django `test` command
-------------------------------------+-------------------------------------
Reporter: Natalia Bidart | Owner: Sulabh
| Katila
Type: New feature | 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: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sulabh Katila):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/34981#comment:8>

Django

unread,
Jan 3, 2024, 11:35:37 AM1/3/24
to django-...@googlegroups.com
#34981: Promote `--pair` and `--bisect` from `runtest.py` to be available as flags
for the Django `test` command
-------------------------------------+-------------------------------------
Reporter: Natalia Bidart | Owner: Sulabh
| Katila
Type: New feature | 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 Sulabh Katila):

* needs_better_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/34981#comment:9>

Django

unread,
Jan 4, 2024, 1:53:24 PM1/4/24
to django-...@googlegroups.com
#34981: Promote `--pair` and `--bisect` from `runtest.py` to be available as flags
for the Django `test` command
-------------------------------------+-------------------------------------
Reporter: Natalia Bidart | Owner: Sulabh
| Katila
Type: New feature | Status: assigned
Component: Testing framework | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* needs_better_patch: 0 => 1

* needs_tests: 0 => 1
* needs_docs: 0 => 1


Comment:

Hi Sulabh, tests and documentation are also required. Ideally, we wouldn't
duplicate all the similar code in `runtests.py` as well.

--
Ticket URL: <https://code.djangoproject.com/ticket/34981#comment:10>

Django

unread,
Jan 28, 2024, 9:56:51 PM1/28/24
to django-...@googlegroups.com
#34981: Promote `--pair` and `--bisect` from `runtest.py` to be available as flags
for the Django `test` command
-------------------------------------+-------------------------------------
Reporter: Natalia Bidart | Owner: Sulabh
| Katila
Type: New feature | Status: assigned
Component: Testing framework | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Sulabh Katila):

Hi Tim, I have made some changes and added the tests and documentation. I
tested it with a sample project, and it seems to be working now.
--
Ticket URL: <https://code.djangoproject.com/ticket/34981#comment:11>

Django

unread,
Jan 28, 2024, 9:57:21 PM1/28/24
to django-...@googlegroups.com
#34981: Promote `--pair` and `--bisect` from `runtest.py` to be available as flags
for the Django `test` command
-------------------------------------+-------------------------------------
Reporter: Natalia Bidart | Owner: Sulabh
| Katila
Type: New feature | Status: assigned
Component: Testing framework | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sulabh Katila):

* needs_better_patch: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/34981#comment:12>

Django

unread,
Feb 19, 2024, 3:51:15 PM2/19/24
to django-...@googlegroups.com
#34981: Promote `--pair` and `--bisect` from `runtest.py` to be available as flags
for the Django `test` command
-------------------------------------+-------------------------------------
Reporter: Natalia Bidart | Owner: Sulabh
| Katila
Type: New feature | 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 Sulabh Katila):

* needs_docs: 1 => 0
* needs_tests: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/34981#comment:13>

Django

unread,
Mar 12, 2024, 1:09:31 AM3/12/24
to django-...@googlegroups.com
#34981: Promote `--pair` and `--bisect` from `runtest.py` to be available as flags
for the Django `test` command
-------------------------------------+-------------------------------------
Reporter: Natalia Bidart | Owner: Sulabh
| Katila
Type: New feature | 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: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/34981#comment:14>
Reply all
Reply to author
Forward
0 new messages