diff --git a/core/drupalci.yml b/core/drupalci.yml index 1b44657a056..bf5a19f5336 100644 --- a/core/drupalci.yml +++ b/core/drupalci.yml @@ -3,51 +3,26 @@ # https://www.drupal.org/drupalorg/docs/drupal-ci/customizing-drupalci-testing _phpunit_testgroups_to_execute: &testgroups # Default: all of Drupal core's test suite runs. - testgroups: '--all' + testgroups: '--repeat 50 --class "\Drupal\Tests\media\FunctionalJavascript\MediaStandardProfileTest"' # Alternative: run only the tests for one particular module. # testgroups: '--module ckeditor5' build: assessment: testing: - # Run code quality checks. - container_command.commit-checks: + # Prevent docker from copying "search us-west-2.compute.internal" to the + # container's resolv.conf. This entry results eventually results in AWS + # throttling DNS queries and breaking PHPUnit-FunctionalJavascript tests. + # @todo https://www.drupal.org/i/3316016 Fix in DrupalCI. + container_command.dns_fix: commands: - - "core/scripts/dev/commit-code-check.sh --drupalci" - halt-on-fail: true - # run_tests task is executed several times in order of performance speeds. - # halt-on-fail can be set on the run_tests tasks in order to fail fast. - # suppress-deprecations is false in order to be alerted to usages of - # deprecated code. - run_tests.phpunit: - types: 'PHPUnit-Unit' - suppress-deprecations: false - halt-on-fail: false - <<: *testgroups - run_tests.kernel: - types: 'PHPUnit-Kernel' - suppress-deprecations: false + - "cp /etc/resolv.conf /etc/resolv.conf.old" + - "grep -v \"^search\" /etc/resolv.conf.old > /etc/resolv.conf " + - "cat /etc/resolv.conf" + - "/etc/init.d/networking restart" halt-on-fail: false - <<: *testgroups - run_tests.build: - # Limit concurrency due to disk space concerns. - concurrency: 15 - types: 'PHPUnit-Build' - suppress-deprecations: false - halt-on-fail: false - <<: *testgroups - run_tests.functional: - types: 'PHPUnit-Functional' - suppress-deprecations: false - halt-on-fail: false - <<: *testgroups run_tests.javascript: - # Reduced from 15 due to potential DNS throttling issues on AWS. - # @see https://www.drupal.org/project/drupal/issues/3045612 - concurrency: 10 + concurrency: 15 types: 'PHPUnit-FunctionalJavascript' suppress-deprecations: false halt-on-fail: false <<: *testgroups - # Run nightwatch testing. - # @see https://www.drupal.org/project/drupal/issues/2869825 - nightwatchjs: {}