Devguide recommends a very slow testing configuration
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 68/100
- Issue-Typ
- Dokumentation
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- python
- Bereich
- documentation
Rechercherichtung
Beginnen Sie mit dem Abschnitt zum Ausführen von Tests unter devguide.python.org/testing/run-write-tests/#running und vergleichen Sie ihn mit der Getting Started-Kurzübersicht und ihrer Platzierung auf der Landingpage. Sehen Sie sich die verlinkte Dokumentation zur Konfiguration von Debug-Builds an. Die Aufgabe ist erledigt, wenn der Leitfaden durchgängig parallele Tests und den Standard-Build empfiehlt, erklärt, wann --with-pydebug nützlich ist, und die Kurzübersicht oberhalb der Abschnittslinks hervorhebt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Describe the enhancement or feature you would like
At the PyCon AU sprints, I found that running the test suite in parallel with make test under --with-pydebug on my machine took ~3.5 minutes, while running with the default configuration took ~1 minute.
Running the test suite sequentially with python -m test took ~18 minutes on a default build, while --with-pydebug took ~27 minutes.
One of the sprint attendees (with a much slower system in general) had their sequential test run take ~45 minutes under --with-pydebug, dropping to around ~25 minutes when using the default build configuration, and then down to ~5 minutes by running with make test rather than python -m test.
https://github.com/python/devguide/issues/1171 covered updating https://devguide.python.org/getting-started/quick-reference/#quick-reference to recommend parallel test execution, but https://devguide.python.org/testing/run-write-tests/#running buries the parallel execution command well down the page.
There are multiple intersecting issues here:
- between the intro, the table of section references, and the video embed, the "Quick reference" link has dropped "below the fold" on the landing page (at least on my laptop screen)
- some of the instructions were originally written for C-focused development and then never revisited for pure Python contributors
- we're inconsistent in our recommendations for how to run the test suite (and we don't emphasise how slow it is to run them sequentially, so you almost never want to actually do that if you can avoid it)
One change I think would be worth making is to recommend an unqualified make as the default build configuration (especially when working pure Python changes without touching any of the C code), and mention make --with-pydebug as an option that is slower in execution, but provides a much better debugging experience when working on C level changes (with reference to https://docs.python.org/3/using/configure.html#python-debug-build)
Another would be to move the quick reference section heading and linking paragraph up above the section link table.
Describe alternatives you have considered
No response
Additional context
No response
- Vorherrschende Sprache
- Python
- Sterne
- 2.1k
- Forks
- 1k
- Ø Merge
- 2 T. 12 Std.
- Gemergte PRs (30 T.)
- 12
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus python/devguide
-
type-feature
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
-
type-feature
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
-
topic-building python type-feature
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
-
needs: decision topic-test type-bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
topic-dev process type-feature
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100