Skip to content

Commit 99065f4

Browse files
committed
restart daemon each time to see if it helps reproduce flakiness
1 parent 13e851e commit 99065f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ variables:
2828
value: "false"
2929
TEST_ITERATIONS:
3030
description: "Number of times to run tests (for flaky test investigation)"
31-
value: "100"
31+
value: "50"
3232

3333
# trigger new commit cancel
3434
workflow:
@@ -234,7 +234,7 @@ test_all:
234234
- *prepare_test_env
235235
- export GRADLE_OPTS="-Dorg.gradle.jvmargs='-Xms$GRADLE_MEM -Xmx$GRADLE_MEM -XX:ErrorFile=/tmp/hs_err_pid%p.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp' -Ddatadog.forkedMaxHeapSize=1024M -Ddatadog.forkedMinHeapSize=128M"
236236
- echo "=== SETUP, Pre-compiling all test dependencies ==="
237-
- ./gradlew :dd-java-agent:instrumentation:pekko-http-1.0:testClasses :dd-java-agent:instrumentation:pekko-http-1.0:baseTestClasses -PtestJvm=$testJvm --build-cache --stacktrace --parallel --max-workers=$GRADLE_WORKERS --configure-on-demand
237+
- ./gradlew :dd-java-agent:instrumentation:pekko-http-1.0:testClasses :dd-java-agent:instrumentation:pekko-http-1.0:baseTestClasses -PtestJvm=$testJvm --no-daemon --build-cache --stacktrace --parallel --max-workers=$GRADLE_WORKERS --configure-on-demand
238238
- echo "=== SETUP COMPLETE, Starting ${TEST_ITERATIONS} test iterations ==="
239239
- |
240240
TOTAL_RUNS=${TEST_ITERATIONS}
@@ -245,9 +245,9 @@ test_all:
245245
for i in $(seq 1 $TOTAL_RUNS); do
246246
echo "=== Running iteration $i/$TOTAL_RUNS ==="
247247
248-
./gradlew :dd-java-agent:instrumentation:pekko-http-1.0:baseTest -PtestJvm=$testJvm --build-cache --stacktrace --parallel --max-workers=$GRADLE_WORKERS --offline --configure-on-demand --quiet > flaky_test_results/iteration_${i}_base.log 2>&1 &
248+
./gradlew :dd-java-agent:instrumentation:pekko-http-1.0:baseTest -PtestJvm=$testJvm --no-daemon --build-cache --stacktrace --parallel --max-workers=$GRADLE_WORKERS --offline --configure-on-demand --quiet > flaky_test_results/iteration_${i}_base.log 2>&1 &
249249
BASE_PID=$!
250-
./gradlew :dd-java-agent:instrumentation:pekko-http-1.0:forkedTest -PtestJvm=$testJvm --build-cache --stacktrace --parallel --max-workers=$GRADLE_WORKERS --offline --configure-on-demand --quiet > flaky_test_results/iteration_${i}_forked.log 2>&1 &
250+
./gradlew :dd-java-agent:instrumentation:pekko-http-1.0:forkedTest -PtestJvm=$testJvm --no-daemon --build-cache --stacktrace --parallel --max-workers=$GRADLE_WORKERS --offline --configure-on-demand --quiet > flaky_test_results/iteration_${i}_forked.log 2>&1 &
251251
FORKED_PID=$!
252252
253253
if wait $BASE_PID && wait $FORKED_PID; then

0 commit comments

Comments
 (0)