Opened 22 months ago

Closed 22 months ago

Last modified 22 months ago

#33855 closed Bug (fixed)

System check calls are unnecessary in test worker initialization.

Reported by: Mariusz Felisiak Owned by: Mariusz Felisiak
Component: Testing framework Version: 4.1
Severity: Release blocker Keywords:
Cc: David Smith, Nick Pope, Carlton Gibson Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

3b3f38b3b09b0f2373e51406ecb8c9c45d36aebc added calling system checks to initialization of each test worker. I don't see any reason to do this, it slows down tests (check is called with all databases for each alias and once more in DiscoverRunner.run_tests()) and can cause crashes as some checks require database access.

It seems that it was added to satisfy check_framework.tests.ChecksRunDuringTests.test_registered_check_did_run on spawn. IMO we can skip this test on spawn.

Change History (6)

comment:1 by Mariusz Felisiak, 22 months ago

This also partly explains why tests on MySQL have become so slow.

comment:2 by Mariusz Felisiak, 22 months ago

Has patch: set
Owner: changed from nobody to Mariusz Felisiak
Status: newassigned

comment:3 by Carlton Gibson, 22 months ago

Triage Stage: UnreviewedAccepted

comment:4 by Carlton Gibson, 22 months ago

Triage Stage: AcceptedReady for checkin

comment:5 by GitHub <noreply@…>, 22 months ago

Resolution: fixed
Status: assignedclosed

In 24effbce:

Fixed #33855 -- Removed unnecessary system check calls from test worker initialization.

Regression in 3b3f38b3b09b0f2373e51406ecb8c9c45d36aebc.

comment:6 by Mariusz Felisiak <felisiak.mariusz@…>, 22 months ago

In 710af68d:

[4.1.x] Fixed #33855 -- Removed unnecessary system check calls from test worker initialization.

Regression in 3b3f38b3b09b0f2373e51406ecb8c9c45d36aebc.
Backport of 24effbceb871e71d3bc320b91252f743714722df from main

Note: See TracTickets for help on using tickets.
Back to Top