commit 4a66adf94c4e01ca92dfe12cf8646d11acfc7176
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Fri Feb 11 17:43:34 2022 +0000
Group execution of SQL functional tests
Functional SQL tests (MySQL and PostgreSQL) use the DB installed
backend. To avoid overloading the DB engine, the test cases are
grouped [1] together and executed by the same worker process.
That will ensure those tests are not executed in parallel,
interfering each other.
All test classes ended in "MySQL" or "PostgreSQL" are now grouped.
That means the tests implemented inside the same class are
executed in the same worker, not in parallel. **HOWEVER**, that
doesn't guarantee all test cases using the same database backend
will run in the same worker serially. The FT job can still execute
test cases from different classes, using the same DB backend,
in two workers at the same time.
This patch also fixes the ``TestReservation*`` classes to inherit
from the parent classes in the correct order. That sets the
"DRIVER" value to the expected one "mysql" or "postgresql".
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/831409 /opendev. org/openstack/ neutron/ commit/ 4a66adf94c4e01c a92dfe12cf8646d 11acfc7176
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 4a66adf94c4e01c a92dfe12cf8646d 11acfc7176
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Fri Feb 11 17:43:34 2022 +0000
Group execution of SQL functional tests
Functional SQL tests (MySQL and PostgreSQL) use the DB installed
backend. To avoid overloading the DB engine, the test cases are
grouped [1] together and executed by the same worker process.
That will ensure those tests are not executed in parallel,
interfering each other.
All test classes ended in "MySQL" or "PostgreSQL" are now grouped.
That means the tests implemented inside the same class are
executed in the same worker, not in parallel. **HOWEVER**, that
doesn't guarantee all test cases using the same database backend
will run in the same worker serially. The FT job can still execute
test cases from different classes, using the same DB backend,
in two workers at the same time.
This patch also fixes the ``TestReservati on*`` classes to inherit
from the parent classes in the correct order. That sets the
"DRIVER" value to the expected one "mysql" or "postgresql".
[1]https:/ /review. opendev. org/c/openstack /neutron/ +/785568
Closes-Bug: #1962594 071686bb62d5988 ae314af8e7e
Related-Bug: #1687027
Change-Id: I6bca7daf4d3e46