Issue #3467391 by catch, smustgrave: Reduce CPU requirement and concurrency for unit tests
parent
ef97485d5b
commit
52dc1d7609
|
@ -204,7 +204,8 @@ variables:
|
|||
- <<: *with-database
|
||||
variables:
|
||||
TESTSUITE: PHPUnit-Unit
|
||||
KUBERNETES_CPU_REQUEST: "16"
|
||||
KUBERNETES_CPU_REQUEST: "1"
|
||||
CONCURRENCY: 6
|
||||
|
||||
'✅️ PHPStan Tests':
|
||||
<<: [ *default-job-settings ]
|
||||
|
|
|
@ -14,6 +14,7 @@ use Drupal\Tests\UnitTestCase;
|
|||
*
|
||||
* @coversDefaultClass \Drupal\phpass\Password\PhpassHashedPassword
|
||||
* @group phpass
|
||||
* @group #slow
|
||||
*/
|
||||
class PasswordVerifyTest extends UnitTestCase {
|
||||
|
||||
|
|
|
@ -8,8 +8,9 @@
|
|||
<exclude-pattern>*/node_modules/*</exclude-pattern>
|
||||
<!--Exclude third party code.-->
|
||||
<exclude-pattern>./assets/vendor/*</exclude-pattern>
|
||||
<!--Exclude the PHPStan baseline from coding standards.-->
|
||||
<!--Exclude the PHPStan baseline and temp dir from coding standards.-->
|
||||
<exclude-pattern>./core/.phpstan-baseline.php</exclude-pattern>
|
||||
<exclude-pattern>./core/phpstan-tmp/*</exclude-pattern>
|
||||
<!-- Exclude third-party code maintained within core that does not follow our standards. -->
|
||||
<!-- @todo This rule may be removed when https://www.drupal.org/node/1848264 is resolved. -->
|
||||
<exclude-pattern>./core/lib/Drupal/Component/Diff/</exclude-pattern>
|
||||
|
|
|
@ -12,6 +12,7 @@ use PHPUnit\Framework\TestCase;
|
|||
*
|
||||
* @coversDefaultClass \Drupal\Component\Datetime\Time
|
||||
* @group Datetime
|
||||
* @group #slow
|
||||
* @runTestsInSeparateProcesses
|
||||
* @preserveGlobalState disabled
|
||||
*/
|
||||
|
|
|
@ -10,6 +10,7 @@ use PHPUnit\Framework\TestCase;
|
|||
/**
|
||||
* @coversDefaultClass \Drupal\Component\Utility\Rectangle
|
||||
* @group Image
|
||||
* @group #slow
|
||||
*/
|
||||
class RectangleTest extends TestCase {
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
/**
|
||||
* @group Utility
|
||||
* @group #slow
|
||||
*
|
||||
* @coversDefaultClass \Drupal\Component\Utility\UrlHelper
|
||||
*/
|
||||
|
|
|
@ -23,6 +23,7 @@ use PHPUnit\Framework\TestCase;
|
|||
* CVE-2006-1226 (= rev. 1.112?), CVE-2008-0273, CVE-2008-3740.
|
||||
*
|
||||
* @group Utility
|
||||
* @group #slow
|
||||
* @coversDefaultClass \Drupal\Component\Utility\Xss
|
||||
* @runTestsInSeparateProcesses
|
||||
*/
|
||||
|
|
|
@ -23,6 +23,7 @@ use Drupal\Tests\Composer\Plugin\Scaffold\Fixtures;
|
|||
* information.
|
||||
*
|
||||
* @group Scaffold
|
||||
* @group #slow
|
||||
*/
|
||||
class ComposerHookTest extends BuildTestBase {
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ use Symfony\Component\Process\Process;
|
|||
* @requires extension pdo_sqlite
|
||||
*
|
||||
* @group Command
|
||||
* @group #slow
|
||||
*/
|
||||
class QuickStartTest extends TestCase {
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@ use Symfony\Component\HttpFoundation\Response;
|
|||
/**
|
||||
* @coversDefaultClass \Drupal\Core\DrupalKernel
|
||||
* @group DrupalKernel
|
||||
* @group #slow
|
||||
*/
|
||||
class DrupalKernelTest extends UnitTestCase {
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@ use Symfony\Component\HttpKernel\KernelInterface;
|
|||
/**
|
||||
* @coversDefaultClass \Drupal\Core\EventSubscriber\ActiveLinkResponseFilter
|
||||
* @group EventSubscriber
|
||||
* @group #slow
|
||||
*/
|
||||
class ActiveLinkResponseFilterTest extends UnitTestCase {
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@ use Symfony\Component\Process\Process;
|
|||
*
|
||||
* @group Command
|
||||
* @group Recipe
|
||||
* @group #slow
|
||||
*/
|
||||
class RecipeQuickStartTest extends TestCase {
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@ use Symfony\Component\HttpFoundation\Request;
|
|||
* @runTestsInSeparateProcesses
|
||||
* @preserveGlobalState disabled
|
||||
* @group Security
|
||||
* @group #slow
|
||||
*/
|
||||
class RequestSanitizerTest extends UnitTestCase {
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@ use org\bovigo\vfs\vfsStream;
|
|||
* @coversDefaultClass \Drupal\Core\Site\Settings
|
||||
* @runTestsInSeparateProcesses
|
||||
* @group Site
|
||||
* @group #slow
|
||||
*/
|
||||
class SettingsTest extends UnitTestCase {
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ use Symfony\Component\Process\Process;
|
|||
/**
|
||||
* @group TestSuites
|
||||
* @group Test
|
||||
* @group #slow
|
||||
*/
|
||||
class PhpUnitCliTest extends UnitTestCase {
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ use org\bovigo\vfs\vfsStream;
|
|||
*
|
||||
* @coversDefaultClass \Drupal\Core\Update\UpdateRegistry
|
||||
* @group Update
|
||||
* @group #slow
|
||||
* @runTestsInSeparateProcesses
|
||||
* @preserveGlobalState disabled
|
||||
*/
|
||||
|
|
|
@ -26,6 +26,7 @@ use Symfony\Component\Process\Process;
|
|||
* @see \Drupal\TestSite\Commands\TestSiteTearDownCommand
|
||||
*
|
||||
* @group Setup
|
||||
* @group #slow
|
||||
* @runTestsInSeparateProcesses
|
||||
* @preserveGlobalState disabled
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue