@@ -123,6 +123,7 @@ function before_script_steps() {
123123 GIT_CONFIG_VALUE_1: true
124124 CONTAINER_NAME: $CI_JOB_NAME_SLUG
125125 GIT_STRATEGY: clone
126+ GIT_CLEAN_FLAGS: -ffdxq
126127 IMAGE: "registry.ddbuild.io/images/mirror/datadog/dd-trace-ci:php-${PHP_MAJOR_MINOR}_windows"
127128 script: |
128129 # Make sure we actually fail if a command fails
@@ -154,13 +155,13 @@ function before_script_steps() {
154155 try { docker stop -t 5 ${CONTAINER_NAME} } catch { }
155156 after_script:
156157 - |
157- docker exec php cmd.exe /s /c xcopy /y /c /s /e C:\ProgramData\Microsoft\Windows\WER\ReportQueue .\app\dumps\
158+ docker exec ${CONTAINER_NAME} cmd.exe /s /c xcopy /y /c /s /e C:\ProgramData\Microsoft\Windows\WER\ReportQueue .\app\dumps\
158159 exit 0
159160 - 'powershell -NoProfile -Command "try { docker logs request-replayer } catch {}"'
160161 - 'powershell -NoProfile -Command "try { docker logs httpbin-integration } catch {}"'
161- - 'powershell -NoProfile -Command "try { docker stop -t 5 request-replayer } catch {}"'
162+ - 'powershell -NoProfile -Command "try { docker stop -t 15 request-replayer } catch {}"'
162163 - 'powershell -NoProfile -Command "try { docker rm -f request-replayer } catch {}"'
163- - 'powershell -NoProfile -Command "try { docker stop -t 5 httpbin-integration } catch {}"'
164+ - 'powershell -NoProfile -Command "try { docker stop -t 15 httpbin-integration } catch {}"'
164165 - 'powershell -NoProfile -Command "try { docker rm -f httpbin-integration } catch {}"'
165166 - 'powershell -NoProfile -Command "try { docker network rm net } catch {}"'
166167 artifacts:
@@ -194,6 +195,11 @@ function before_script_steps() {
194195 tags: [ "arch:${ARCH}" ]
195196 image: registry.ddbuild.io/images/mirror/datadog/dd-trace-ci:php-${PHP_MAJOR_MINOR}_bookworm-5
196197 timeout: 60m
198+ interruptible: true
199+ rules:
200+ - if: $CI_COMMIT_BRANCH == "master"
201+ interruptible: false
202+ - when: on_success
197203 variables:
198204 host_os: linux-gnu
199205 COMPOSER_MEMORY_LIMIT: "-1"
@@ -206,7 +212,7 @@ function before_script_steps() {
206212 HTTPBIN_PORT: 8080
207213 before_script:
208214<?php before_script_steps () ?>
209- - for host in ${WAIT_FOR:-}; do wait-for $host --timeout=180; done
215+ - .gitlab/ wait-for-service-ready.sh
210216
211217.asan_test:
212218 extends: .base_test
@@ -496,7 +502,7 @@ function before_script_steps() {
496502 - if [[ "$MAKE_TARGET" != "test_composer" ]] || ! [[ "$PHP_MAJOR_MINOR" =~ 8.[01] ]]; then sudo composer self-update --$COMPOSER_VERSION --no-interaction; fi
497503 - COMPOSER_MEMORY_LIMIT=-1 composer update --no-interaction # disable composer memory limit completely
498504 - make composer_tests_update
499- - for host in ${WAIT_FOR:-}; do wait-for $host --timeout=180; done
505+ - .gitlab/ wait-for-service-ready.sh
500506 script:
501507 - DD_TRACE_AGENT_TIMEOUT=1000 make $MAKE_TARGET RUST_DEBUG_BUILD=1 PHPUNIT_OPTS="--log-junit artifacts/tests/results.xml" <?= ASSERT_NO_MEMLEAKS ?>
502508<?php after_script (". " , true ); ?>
@@ -513,7 +519,7 @@ function before_script_steps() {
513519$ services ["deferred_loading " ] = "mysql " ;
514520$ services ["deferred_loadin " ] = "redis " ;
515521$ services ["pdo " ] = "mysql " ;
516- $ services ["kafk " ] = ["kafka " , "zookeeper " ];
522+ $ services ["kafka " ] = ["kafka " , "zookeeper " ]; // Overwrite auto-generated entry
517523
518524$ jobs = [];
519525preg_match_all ('(^TEST_(?<type>INTEGRATIONS|WEB)_(?<major>\d+)(?<minor>\d)[^\n]+(?<targets>.*?)^(?!\t))ms ' , file_get_contents (__DIR__ . "/../Makefile " ), $ matches , PREG_SET_ORDER );
0 commit comments