Loading .gitlab-ci/pipeline.yml +5 −1 Original line number Diff line number Diff line Loading @@ -83,6 +83,7 @@ variables: - "--no-sandbox" - "--log-path=/builds/chromedriver.log" - "--whitelisted-ips=" - "--allowed-origins=*" .run-tests: &run-tests script: Loading Loading @@ -221,6 +222,9 @@ variables: - if: $PERFORMANCE_TEST == "1" variables: KUBERNETES_CPU_REQUEST: "24" MINK_DRIVER_ARGS_WEBDRIVER: '["chrome", {"browserName":"chrome","chromeOptions":{"args":["--disable-dev-shm-usage","--disable-gpu","--headless","--no-sandbox"]}}, "http://chrome:9515"]' tags: - performance-test-runner services: - <<: *with-database - <<: *with-chrome Loading @@ -235,4 +239,4 @@ variables: - mkdir -p ./sites/simpletest ./sites/default/files ./build/logs/junit /var/www/.composer - chown -R www-data:www-data ./sites ./build/logs/junit ./vendor /var/www/ - sudo -u www-data git config --global --add safe.directory $CI_PROJECT_DIR - for run in {1..3}; do sudo SIMPLETEST_BASE_URL="$SIMPLETEST_BASE_URL" SIMPLETEST_DB="$SIMPLETEST_DB" MINK_DRIVER_ARGS_WEBDRIVER="$MINK_DRIVER_ARGS_WEBDRIVER" OTEL_COLLECTOR="$OTEL_COLLECTOR" -u www-data ./vendor/bin/phpunit -c core --group OpenTelemetry --log-junit=./sites/default/files/simpletest/phpunit-performance.xml; done - for run in {1..3}; do sudo SIMPLETEST_BASE_URL="http://$HOSTNAME/subdirectory" SIMPLETEST_DB="$SIMPLETEST_DB" MINK_DRIVER_ARGS_WEBDRIVER="$MINK_DRIVER_ARGS_WEBDRIVER" OTEL_COLLECTOR="$OTEL_COLLECTOR" -u www-data ./vendor/bin/phpunit --verbose -c core --group OpenTelemetry --log-junit=./sites/default/files/simpletest/phpunit-performance.xml; done core/phpstan-baseline.neon +0 −5 Original line number Diff line number Diff line Loading @@ -3087,11 +3087,6 @@ parameters: count: 1 path: tests/Drupal/BuildTests/Framework/Tests/ExternalCommandRequirementTest.php - message: "#^Variable \\$rawResult on left side of \\?\\? always exists and is not nullable\\.$#" count: 1 path: tests/Drupal/FunctionalJavascriptTests/WebDriverCurlService.php - message: "#^Variable \\$found might not be defined\\.$#" count: 1 Loading core/tests/Drupal/FunctionalJavascriptTests/WebDriverCurlService.php +5 −1 Original line number Diff line number Diff line Loading @@ -117,7 +117,11 @@ public function execute($requestMethod, $url, $parameters = NULL, $extraOptions curl_setopt($curl, CURLOPT_HTTPHEADER, $customHeaders); $rawResult = trim(curl_exec($curl)); $result = curl_exec($curl); $rawResult = NULL; if ($result !== FALSE) { $rawResult = trim($result); } $info = curl_getinfo($curl); $info['request_method'] = $requestMethod; Loading Loading
.gitlab-ci/pipeline.yml +5 −1 Original line number Diff line number Diff line Loading @@ -83,6 +83,7 @@ variables: - "--no-sandbox" - "--log-path=/builds/chromedriver.log" - "--whitelisted-ips=" - "--allowed-origins=*" .run-tests: &run-tests script: Loading Loading @@ -221,6 +222,9 @@ variables: - if: $PERFORMANCE_TEST == "1" variables: KUBERNETES_CPU_REQUEST: "24" MINK_DRIVER_ARGS_WEBDRIVER: '["chrome", {"browserName":"chrome","chromeOptions":{"args":["--disable-dev-shm-usage","--disable-gpu","--headless","--no-sandbox"]}}, "http://chrome:9515"]' tags: - performance-test-runner services: - <<: *with-database - <<: *with-chrome Loading @@ -235,4 +239,4 @@ variables: - mkdir -p ./sites/simpletest ./sites/default/files ./build/logs/junit /var/www/.composer - chown -R www-data:www-data ./sites ./build/logs/junit ./vendor /var/www/ - sudo -u www-data git config --global --add safe.directory $CI_PROJECT_DIR - for run in {1..3}; do sudo SIMPLETEST_BASE_URL="$SIMPLETEST_BASE_URL" SIMPLETEST_DB="$SIMPLETEST_DB" MINK_DRIVER_ARGS_WEBDRIVER="$MINK_DRIVER_ARGS_WEBDRIVER" OTEL_COLLECTOR="$OTEL_COLLECTOR" -u www-data ./vendor/bin/phpunit -c core --group OpenTelemetry --log-junit=./sites/default/files/simpletest/phpunit-performance.xml; done - for run in {1..3}; do sudo SIMPLETEST_BASE_URL="http://$HOSTNAME/subdirectory" SIMPLETEST_DB="$SIMPLETEST_DB" MINK_DRIVER_ARGS_WEBDRIVER="$MINK_DRIVER_ARGS_WEBDRIVER" OTEL_COLLECTOR="$OTEL_COLLECTOR" -u www-data ./vendor/bin/phpunit --verbose -c core --group OpenTelemetry --log-junit=./sites/default/files/simpletest/phpunit-performance.xml; done
core/phpstan-baseline.neon +0 −5 Original line number Diff line number Diff line Loading @@ -3087,11 +3087,6 @@ parameters: count: 1 path: tests/Drupal/BuildTests/Framework/Tests/ExternalCommandRequirementTest.php - message: "#^Variable \\$rawResult on left side of \\?\\? always exists and is not nullable\\.$#" count: 1 path: tests/Drupal/FunctionalJavascriptTests/WebDriverCurlService.php - message: "#^Variable \\$found might not be defined\\.$#" count: 1 Loading
core/tests/Drupal/FunctionalJavascriptTests/WebDriverCurlService.php +5 −1 Original line number Diff line number Diff line Loading @@ -117,7 +117,11 @@ public function execute($requestMethod, $url, $parameters = NULL, $extraOptions curl_setopt($curl, CURLOPT_HTTPHEADER, $customHeaders); $rawResult = trim(curl_exec($curl)); $result = curl_exec($curl); $rawResult = NULL; if ($result !== FALSE) { $rawResult = trim($result); } $info = curl_getinfo($curl); $info['request_method'] = $requestMethod; Loading