Skip to content

Commit 814c50d

Browse files
Reproducer for issue: Timed out waiting for port NNNNN to be opened
1 parent 2f04ccb commit 814c50d

3 files changed

Lines changed: 94 additions & 94 deletions

File tree

.gitlab-ci.yml

Lines changed: 92 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -468,17 +468,17 @@ check_build_src:
468468
variables:
469469
GRADLE_TARGET: ":buildSrc:build"
470470

471-
check_base:
472-
extends: .check_job
473-
variables:
474-
GRADLE_TARGET: ":baseCheck"
475-
476-
check_inst:
477-
extends: .check_job
478-
parallel: 4
479-
variables:
480-
GRADLE_TARGET: ":instrumentationCheck"
481-
CACHE_TYPE: "inst"
471+
# check_base:
472+
# extends: .check_job
473+
# variables:
474+
# GRADLE_TARGET: ":baseCheck"
475+
#
476+
# check_inst:
477+
# extends: .check_job
478+
# parallel: 4
479+
# variables:
480+
# GRADLE_TARGET: ":instrumentationCheck"
481+
# CACHE_TYPE: "inst"
482482

483483
check_smoke:
484484
extends: .check_job
@@ -497,57 +497,57 @@ check_debugger:
497497
variables:
498498
GRADLE_TARGET: ":debuggerCheck"
499499

500-
muzzle:
501-
extends: .gradle_build
502-
needs: [ build_tests ]
503-
stage: tests
504-
parallel:
505-
matrix:
506-
- CI_SPLIT: ["1/8", "2/8", "3/8", "4/8", "5/8", "6/8", "7/8", "8/8"]
507-
variables:
508-
CACHE_TYPE: "inst"
509-
script:
510-
- export SKIP_BUILDSCAN="true"
511-
- ./gradlew --version
512-
- ./gradlew :runMuzzle -Pslot=$CI_NODE_INDEX/$CI_NODE_TOTAL $GRADLE_ARGS
513-
after_script:
514-
- *container_info
515-
- *cgroup_info
516-
- *set_datadog_api_keys
517-
- source .gitlab/gitlab-utils.sh
518-
- gitlab_section_start "collect-reports" "Collecting reports"
519-
- .gitlab/collect_reports.sh
520-
- .gitlab/collect_results.sh
521-
- .gitlab/upload_ciapp.sh $CACHE_TYPE
522-
- gitlab_section_end "collect-reports"
523-
artifacts:
524-
when: always
525-
paths:
526-
- ./reports
527-
- ./results
528-
- '.gradle/daemon/*/*.out.log'
529-
reports:
530-
junit: results/*.xml
531-
532-
muzzle-dep-report:
533-
extends: .gradle_build
534-
needs: [ build_tests ]
535-
stage: tests
536-
variables:
537-
CACHE_TYPE: "inst"
538-
script:
539-
- export SKIP_BUILDSCAN="true"
540-
- ./gradlew --version
541-
- ./gradlew generateMuzzleReport muzzleInstrumentationReport $GRADLE_ARGS
542-
after_script:
543-
- *container_info
544-
- *cgroup_info
545-
- .gitlab/collect_muzzle_deps.sh
546-
artifacts:
547-
when: always
548-
paths:
549-
- ./reports
550-
- '.gradle/daemon/*/*.out.log'
500+
# muzzle:
501+
# extends: .gradle_build
502+
# needs: [ build_tests ]
503+
# stage: tests
504+
# parallel:
505+
# matrix:
506+
# - CI_SPLIT: ["1/8", "2/8", "3/8", "4/8", "5/8", "6/8", "7/8", "8/8"]
507+
# variables:
508+
# CACHE_TYPE: "inst"
509+
# script:
510+
# - export SKIP_BUILDSCAN="true"
511+
# - ./gradlew --version
512+
# - ./gradlew :runMuzzle -Pslot=$CI_NODE_INDEX/$CI_NODE_TOTAL $GRADLE_ARGS
513+
# after_script:
514+
# - *container_info
515+
# - *cgroup_info
516+
# - *set_datadog_api_keys
517+
# - source .gitlab/gitlab-utils.sh
518+
# - gitlab_section_start "collect-reports" "Collecting reports"
519+
# - .gitlab/collect_reports.sh
520+
# - .gitlab/collect_results.sh
521+
# - .gitlab/upload_ciapp.sh $CACHE_TYPE
522+
# - gitlab_section_end "collect-reports"
523+
# artifacts:
524+
# when: always
525+
# paths:
526+
# - ./reports
527+
# - ./results
528+
# - '.gradle/daemon/*/*.out.log'
529+
# reports:
530+
# junit: results/*.xml
531+
#
532+
# muzzle-dep-report:
533+
# extends: .gradle_build
534+
# needs: [ build_tests ]
535+
# stage: tests
536+
# variables:
537+
# CACHE_TYPE: "inst"
538+
# script:
539+
# - export SKIP_BUILDSCAN="true"
540+
# - ./gradlew --version
541+
# - ./gradlew generateMuzzleReport muzzleInstrumentationReport $GRADLE_ARGS
542+
# after_script:
543+
# - *container_info
544+
# - *cgroup_info
545+
# - .gitlab/collect_muzzle_deps.sh
546+
# artifacts:
547+
# when: always
548+
# paths:
549+
# - ./reports
550+
# - '.gradle/daemon/*/*.out.log'
551551

552552
# In Gitlab, DD_* variables are set because the build runner is instrumented with Datadog telemetry
553553
# To have a pristine environment for the tests, these variables are saved before the test run and restored afterwards
@@ -670,36 +670,36 @@ agent_integration_tests:
670670
DD_HOSTNAME: "local-agent"
671671
DD_API_KEY: "invalid_key_but_this_is_fine"
672672

673-
test_base:
674-
extends: .test_job
675-
variables:
676-
GRADLE_TARGET: ":baseTest"
677-
CACHE_TYPE: "base"
678-
parallel:
679-
matrix: *test_matrix_4
680-
script:
681-
- if [ "$testJvm" == "8" ]; then export GRADLE_PARAMS="-PskipFlakyTests -PcheckCoverage"; fi
682-
- !reference [.test_job, script]
683-
684-
test_inst:
685-
extends: .test_job_with_test_agent
686-
variables:
687-
GRADLE_TARGET: ":instrumentationTest"
688-
CACHE_TYPE: "inst"
689-
parallel:
690-
matrix: *test_matrix_8
691-
692-
test_inst_latest:
693-
extends: .test_job_with_test_agent
694-
variables:
695-
GRADLE_TARGET: ":instrumentationLatestDepTest"
696-
CACHE_TYPE: "latestdep"
697-
parallel:
698-
matrix:
699-
- testJvm: ["8", "17", "21", "25"] # the latest "tip" version is LTS v25
700-
# Gitlab doesn't support "parallel" and "parallel:matrix" at the same time
701-
# This emulates "parallel" by including it in the matrix
702-
CI_SPLIT: [ "1/6", "2/6", "3/6", "4/6", "5/6", "6/6"]
673+
# test_base:
674+
# extends: .test_job
675+
# variables:
676+
# GRADLE_TARGET: ":baseTest"
677+
# CACHE_TYPE: "base"
678+
# parallel:
679+
# matrix: *test_matrix_4
680+
# script:
681+
# - if [ "$testJvm" == "8" ]; then export GRADLE_PARAMS="-PskipFlakyTests -PcheckCoverage"; fi
682+
# - !reference [.test_job, script]
683+
#
684+
# test_inst:
685+
# extends: .test_job_with_test_agent
686+
# variables:
687+
# GRADLE_TARGET: ":instrumentationTest"
688+
# CACHE_TYPE: "inst"
689+
# parallel:
690+
# matrix: *test_matrix_8
691+
#
692+
# test_inst_latest:
693+
# extends: .test_job_with_test_agent
694+
# variables:
695+
# GRADLE_TARGET: ":instrumentationLatestDepTest"
696+
# CACHE_TYPE: "latestdep"
697+
# parallel:
698+
# matrix:
699+
# - testJvm: ["8", "17", "21", "25"] # the latest "tip" version is LTS v25
700+
# # Gitlab doesn't support "parallel" and "parallel:matrix" at the same time
701+
# # This emulates "parallel" by including it in the matrix
702+
# CI_SPLIT: [ "1/6", "2/6", "3/6", "4/6", "5/6", "6/6"]
703703

704704
test_flaky:
705705
extends: .test_job_with_test_agent

buildSrc/src/main/kotlin/dd-trace-java.configure-tests.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ tasks.withType<Test>().configureEach {
5959
}
6060

6161
// Set test timeout for 20 minutes. Default job timeout is 1h (configured on CI level).
62-
timeout.set(Duration.of(20, ChronoUnit.MINUTES))
62+
timeout.set(Duration.of(10, ChronoUnit.MINUTES))
6363
}
6464

6565
// Register a task "allTests" that depends on all non-latest and non-traceAgentTest Test tasks.

dd-smoke-tests/src/main/groovy/datadog/smoketest/AbstractServerSmokeTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ abstract class AbstractServerSmokeTest extends AbstractSmokeTest {
7171
def process = testedProcesses[idx]
7272

7373
try {
74-
PortUtils.waitForPortToOpen(port, 240, TimeUnit.SECONDS, process)
74+
PortUtils.waitForPortToOpen(port, 700, TimeUnit.SECONDS, process)
7575
} catch ( Exception e ) {
7676
throw new RuntimeException(e.getMessage() + " - log file " + logFilePaths[idx], e)
7777
}

0 commit comments

Comments
 (0)