ci: run the SQLite and PostgreSQL PHP tests in 3 shards each (#12834)

This commit is contained in:
Andras Bacsai
2026-12-06 00:09:21 +01:00
committed by GitHub
parent 245cfc6cdf
commit d79e91c97e
7 changed files with 123 additions and 23 deletions
+10 -7
View File
@@ -21,14 +21,18 @@
<directory suffix="Test.php">./tests/Golden</directory>
</testsuite>
<!--
The 2 shards of the CI job. Together they hold the Feature, Unit, and Golden tests once. Feature files
are split by the first letter of the file name, so that both shards take about as long. A test file
whose name does not start with A to Z is in no shard, and the ratchet of the CI job then fails.
The 3 shards of the CI jobs. Together they hold the Feature, Unit, and Golden tests once. Feature files
are split by the first letter of the file name, so that the shards take about as long on PostgreSQL
(CI run of 2026-12-05: 1383 s, 1335 s and 1310 s of test time). A test file whose name does not start
with A to Z is in no shard, and the ratchet of the CI job then fails.
-->
<testsuite name="Shard1">
<directory prefix="A" suffix="Test.php">./tests/Feature</directory>
<directory prefix="B" suffix="Test.php">./tests/Feature</directory>
<directory prefix="C" suffix="Test.php">./tests/Feature</directory>
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
<testsuite name="Shard2">
<directory prefix="D" suffix="Test.php">./tests/Feature</directory>
<directory prefix="E" suffix="Test.php">./tests/Feature</directory>
<directory prefix="F" suffix="Test.php">./tests/Feature</directory>
@@ -41,9 +45,10 @@
<directory prefix="M" suffix="Test.php">./tests/Feature</directory>
<directory prefix="N" suffix="Test.php">./tests/Feature</directory>
<directory prefix="O" suffix="Test.php">./tests/Feature</directory>
</testsuite>
<testsuite name="Shard2">
<directory prefix="P" suffix="Test.php">./tests/Feature</directory>
<directory suffix="Test.php">./tests/Golden</directory>
</testsuite>
<testsuite name="Shard3">
<directory prefix="Q" suffix="Test.php">./tests/Feature</directory>
<directory prefix="R" suffix="Test.php">./tests/Feature</directory>
<directory prefix="S" suffix="Test.php">./tests/Feature</directory>
@@ -54,8 +59,6 @@
<directory prefix="X" suffix="Test.php">./tests/Feature</directory>
<directory prefix="Y" suffix="Test.php">./tests/Feature</directory>
<directory prefix="Z" suffix="Test.php">./tests/Feature</directory>
<directory suffix="Test.php">./tests/Unit</directory>
<directory suffix="Test.php">./tests/Golden</directory>
</testsuite>
</testsuites>
<coverage/>