Browser tests: run on two processes #721
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo#721
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Measured from Forgejo's task API and job logs, runs 561–710 (24 Sep – 4 Oct 2026): wall time per push about 52–55 min, up from about 15; the browser suite grew from 149 to 645 tests in five days and runs serially (29 min); the runner takes two jobs at a time, in the order the workflow file lists them, so the browser job starts 19–22 min after the push; and Forgejo cancels the older push run when a newer push lands, which stopped 18 of 56 browser jobs before they gave a verdict.
The browser suite runs in one process. Nothing in it needs that: pytest-django gives each xdist worker its own live server on its own port and its own in-memory database, the media, log and static directories are a temporary directory per process (
settings/test.py:37-66), and #294's connection registry is per process. pytest-xdist is already installed in the browser job.Proposal
-n 2 --dist workstealon CI;-n 4is fine on a desktop. Two, because the other slot runs the unit suite on the same six-core host (#233 is what-n autodid to it).workstealrather thanloadfile: no browser test shares a database fixture with another, andloadfilewould put all oftest_board_fold.pyon one worker.Done when