Skip to content

Commit a433916

Browse files
committed
chore: Emit a stacktrace for gradle jobs
1 parent 6daaf01 commit a433916

File tree

3 files changed

+200
-186
lines changed

3 files changed

+200
-186
lines changed

.gitlab-ci.yml

Lines changed: 181 additions & 181 deletions
Original file line numberDiff line numberDiff line change
@@ -447,78 +447,78 @@ check_build_src:
447447
variables:
448448
GRADLE_TARGET: ":buildSrc:build"
449449

450-
check_base:
451-
extends: .check_job
452-
variables:
453-
GRADLE_TARGET: ":baseCheck"
454-
455-
check_inst:
456-
extends: .check_job
457-
parallel: 4
458-
variables:
459-
GRADLE_TARGET: ":instrumentationCheck"
460-
CACHE_TYPE: "inst"
461-
462-
check_smoke:
463-
extends: .check_job
464-
parallel: 4
465-
variables:
466-
GRADLE_TARGET: ":smokeCheck"
467-
CACHE_TYPE: "smoke"
468-
469-
check_profiling:
470-
extends: .check_job
471-
variables:
472-
GRADLE_TARGET: ":profilingCheck"
473-
474-
check_debugger:
475-
extends: .check_job
476-
variables:
477-
GRADLE_TARGET: ":debuggerCheck"
478-
479-
muzzle:
480-
extends: .gradle_build
481-
needs: [ build_tests ]
482-
stage: tests
483-
parallel:
484-
matrix:
485-
- CI_SPLIT: ["1/8", "2/8", "3/8", "4/8", "5/8", "6/8", "7/8", "8/8"]
486-
variables:
487-
CACHE_TYPE: "inst"
488-
script:
489-
- export SKIP_BUILDSCAN="true"
490-
- ./gradlew --version
491-
- ./gradlew :runMuzzle -PtaskPartitionCount=$NORMALIZED_NODE_TOTAL -PtaskPartition=$NORMALIZED_NODE_INDEX $GRADLE_ARGS
492-
after_script:
493-
- *cgroup_info
494-
- source .gitlab/gitlab-utils.sh
495-
- gitlab_section_start "collect-reports" "Collecting reports"
496-
- .gitlab/collect_reports.sh
497-
- gitlab_section_end "collect-reports"
498-
artifacts:
499-
when: always
500-
paths:
501-
- ./reports
502-
- '.gradle/daemon/*/*.out.log'
503-
504-
muzzle-dep-report:
505-
extends: .gradle_build
506-
needs: [ build_tests ]
507-
stage: tests
508-
variables:
509-
CACHE_TYPE: "inst"
510-
script:
511-
- export SKIP_BUILDSCAN="true"
512-
- ./gradlew --version
513-
- ./gradlew generateMuzzleReport muzzleInstrumentationReport $GRADLE_ARGS
514-
after_script:
515-
- *cgroup_info
516-
- .gitlab/collect_muzzle_deps.sh
517-
artifacts:
518-
when: always
519-
paths:
520-
- ./reports
521-
- '.gradle/daemon/*/*.out.log'
450+
# check_base:
451+
# extends: .check_job
452+
# variables:
453+
# GRADLE_TARGET: ":baseCheck"
454+
#
455+
# check_inst:
456+
# extends: .check_job
457+
# parallel: 4
458+
# variables:
459+
# GRADLE_TARGET: ":instrumentationCheck"
460+
# CACHE_TYPE: "inst"
461+
#
462+
# check_smoke:
463+
# extends: .check_job
464+
# parallel: 4
465+
# variables:
466+
# GRADLE_TARGET: ":smokeCheck"
467+
# CACHE_TYPE: "smoke"
468+
#
469+
# check_profiling:
470+
# extends: .check_job
471+
# variables:
472+
# GRADLE_TARGET: ":profilingCheck"
473+
#
474+
# check_debugger:
475+
# extends: .check_job
476+
# variables:
477+
# GRADLE_TARGET: ":debuggerCheck"
478+
479+
# muzzle:
480+
# extends: .gradle_build
481+
# needs: [ build_tests ]
482+
# stage: tests
483+
# parallel:
484+
# matrix:
485+
# - CI_SPLIT: ["1/8", "2/8", "3/8", "4/8", "5/8", "6/8", "7/8", "8/8"]
486+
# variables:
487+
# CACHE_TYPE: "inst"
488+
# script:
489+
# - export SKIP_BUILDSCAN="true"
490+
# - ./gradlew --version
491+
# - ./gradlew :runMuzzle -PtaskPartitionCount=$NORMALIZED_NODE_TOTAL -PtaskPartition=$NORMALIZED_NODE_INDEX $GRADLE_ARGS
492+
# after_script:
493+
# - *cgroup_info
494+
# - source .gitlab/gitlab-utils.sh
495+
# - gitlab_section_start "collect-reports" "Collecting reports"
496+
# - .gitlab/collect_reports.sh
497+
# - gitlab_section_end "collect-reports"
498+
# artifacts:
499+
# when: always
500+
# paths:
501+
# - ./reports
502+
# - '.gradle/daemon/*/*.out.log'
503+
#
504+
# muzzle-dep-report:
505+
# extends: .gradle_build
506+
# needs: [ build_tests ]
507+
# stage: tests
508+
# variables:
509+
# CACHE_TYPE: "inst"
510+
# script:
511+
# - export SKIP_BUILDSCAN="true"
512+
# - ./gradlew --version
513+
# - ./gradlew generateMuzzleReport muzzleInstrumentationReport $GRADLE_ARGS
514+
# after_script:
515+
# - *cgroup_info
516+
# - .gitlab/collect_muzzle_deps.sh
517+
# artifacts:
518+
# when: always
519+
# paths:
520+
# - ./reports
521+
# - '.gradle/daemon/*/*.out.log'
522522

523523
# In Gitlab, DD_* variables are set because the build runner is instrumented with Datadog telemetry
524524
# To have a pristine environment for the tests, these variables are saved before the test run and restored afterwards
@@ -639,128 +639,128 @@ agent_integration_tests:
639639
DD_HOSTNAME: "local-agent"
640640
DD_API_KEY: "invalid_key_but_this_is_fine"
641641

642-
test_base:
643-
extends: .test_job
644-
variables:
645-
GRADLE_TARGET: ":baseTest"
646-
CACHE_TYPE: "base"
647-
parallel:
648-
matrix: *test_matrix_4
649-
script:
650-
- if [ "$testJvm" == "8" ]; then export GRADLE_PARAMS="-PskipFlakyTests -PcheckCoverage"; fi
651-
- !reference [.test_job, script]
652-
653-
test_inst:
654-
extends: .test_job_with_test_agent
655-
variables:
656-
GRADLE_TARGET: ":instrumentationTest"
657-
CACHE_TYPE: "inst"
658-
parallel:
659-
matrix: *test_matrix_6
660-
661-
test_inst_latest:
662-
extends: .test_job_with_test_agent
663-
variables:
664-
GRADLE_TARGET: ":instrumentationLatestDepTest"
665-
CACHE_TYPE: "latestdep"
666-
parallel:
667-
matrix:
668-
- testJvm: ["8", "17", "21", "25"] # the latest "stable" version is LTS v25
669-
# Gitlab doesn't support "parallel" and "parallel:matrix" at the same time
670-
# This emulates "parallel" by including it in the matrix
671-
CI_SPLIT: [ "1/6", "2/6", "3/6", "4/6", "5/6", "6/6"]
672-
673-
test_flaky:
674-
extends: .test_job_with_test_agent
675-
variables:
676-
GRADLE_PARAMS: "-PrunFlakyTests"
677-
CACHE_TYPE: "smoke"
678-
testJvm: "8"
679-
CONTINUE_ON_FAILURE: "true"
680-
rules:
681-
- *master_only
682-
- if: $RUN_FLAKY_TESTS == "true"
683-
when: on_success
684-
parallel:
685-
matrix:
686-
- GRADLE_TARGET: [":baseTest", ":smokeTest", ":debuggerTest"]
687-
# Gitlab doesn't support "parallel" and "parallel:matrix" at the same time
688-
# This emulates "parallel" by including it in the matrix
689-
CI_SPLIT: [ "1/4", "2/4", "3/4", "4/4" ]
690-
691-
test_flaky_inst:
692-
extends: .test_job
693-
variables:
694-
GRADLE_TARGET: ":instrumentationTest"
695-
GRADLE_PARAMS: "-PrunFlakyTests"
696-
CACHE_TYPE: "inst"
697-
testJvm: "8"
698-
CONTINUE_ON_FAILURE: "true"
699-
rules:
700-
- *master_only
701-
- if: $RUN_FLAKY_TESTS == "true"
702-
when: on_success
703-
parallel: 6
704-
705-
test_profiling:
706-
extends: .test_job
707-
variables:
708-
GRADLE_TARGET: ":profilingTest"
709-
CACHE_TYPE: "profiling"
710-
parallel:
642+
# test_base:
643+
# extends: .test_job
644+
# variables:
645+
# GRADLE_TARGET: ":baseTest"
646+
# CACHE_TYPE: "base"
647+
# parallel:
648+
# matrix: *test_matrix_4
649+
# script:
650+
# - if [ "$testJvm" == "8" ]; then export GRADLE_PARAMS="-PskipFlakyTests -PcheckCoverage"; fi
651+
# - !reference [.test_job, script]
652+
#
653+
# test_inst:
654+
# extends: .test_job_with_test_agent
655+
# variables:
656+
# GRADLE_TARGET: ":instrumentationTest"
657+
# CACHE_TYPE: "inst"
658+
# parallel:
659+
# matrix: *test_matrix_6
660+
#
661+
# test_inst_latest:
662+
# extends: .test_job_with_test_agent
663+
# variables:
664+
# GRADLE_TARGET: ":instrumentationLatestDepTest"
665+
# CACHE_TYPE: "latestdep"
666+
# parallel:
667+
# matrix:
668+
# - testJvm: ["8", "17", "21", "25"] # the latest "stable" version is LTS v25
669+
# # Gitlab doesn't support "parallel" and "parallel:matrix" at the same time
670+
# # This emulates "parallel" by including it in the matrix
671+
# CI_SPLIT: [ "1/6", "2/6", "3/6", "4/6", "5/6", "6/6"]
672+
#
673+
# test_flaky:
674+
# extends: .test_job_with_test_agent
675+
# variables:
676+
# GRADLE_PARAMS: "-PrunFlakyTests"
677+
# CACHE_TYPE: "smoke"
678+
# testJvm: "8"
679+
# CONTINUE_ON_FAILURE: "true"
680+
# rules:
681+
# - *master_only
682+
# - if: $RUN_FLAKY_TESTS == "true"
683+
# when: on_success
684+
# parallel:
685+
# matrix:
686+
# - GRADLE_TARGET: [":baseTest", ":smokeTest", ":debuggerTest"]
687+
# # Gitlab doesn't support "parallel" and "parallel:matrix" at the same time
688+
# # This emulates "parallel" by including it in the matrix
689+
# CI_SPLIT: [ "1/4", "2/4", "3/4", "4/4" ]
690+
#
691+
# test_flaky_inst:
692+
# extends: .test_job
693+
# variables:
694+
# GRADLE_TARGET: ":instrumentationTest"
695+
# GRADLE_PARAMS: "-PrunFlakyTests"
696+
# CACHE_TYPE: "inst"
697+
# testJvm: "8"
698+
# CONTINUE_ON_FAILURE: "true"
699+
# rules:
700+
# - *master_only
701+
# - if: $RUN_FLAKY_TESTS == "true"
702+
# when: on_success
703+
# parallel: 6
704+
#
705+
# test_profiling:
706+
# extends: .test_job
707+
# variables:
708+
# GRADLE_TARGET: ":profilingTest"
709+
# CACHE_TYPE: "profiling"
710+
# parallel:
711711
matrix: *test_matrix
712712

713713
# specific jvms list for debugger project because J9-based JVMs have issues with local vars
714714
# so need to test at least against one J9-based JVM
715-
test_debugger:
716-
extends: .test_job
717-
variables:
718-
GRADLE_TARGET: ":debuggerTest"
719-
CACHE_TYPE: "base"
720-
DEFAULT_TEST_JVMS: /^(8|11|17|21|25|semeru8)$/ # the latest "stable" version is LTS v25
721-
parallel:
722-
matrix: *test_matrix
715+
# test_debugger:
716+
# extends: .test_job
717+
# variables:
718+
# GRADLE_TARGET: ":debuggerTest"
719+
# CACHE_TYPE: "base"
720+
# DEFAULT_TEST_JVMS: /^(8|11|17|21|25|semeru8)$/ # the latest "stable" version is LTS v25
721+
# parallel:
722+
# matrix: *test_matrix
723723

724724
test_smoke:
725725
extends: .test_job
726726
variables:
727727
GRADLE_TARGET: "stageMainDist :smokeTest"
728-
GRADLE_PARAMS: "-PskipFlakyTests"
728+
GRADLE_PARAMS: "-PskipFlakyTests --stacktrace"
729729
CACHE_TYPE: "smoke"
730730
parallel:
731731
matrix: *test_matrix_4
732732

733-
test_ssi_smoke:
734-
extends: .test_job
735-
rules: *master_only
736-
variables:
737-
GRADLE_TARGET: "stageMainDist :smokeTest"
738-
CACHE_TYPE: "smoke"
739-
DD_INJECT_FORCE: "true"
740-
DD_INJECTION_ENABLED: "tracer"
741-
parallel:
742-
matrix: *test_matrix_4
743-
744-
test_smoke_graalvm:
745-
extends: .test_job
746-
tags: [ "arch:amd64" ]
747-
variables:
748-
GRADLE_TARGET: "stageMainDist :dd-smoke-test:spring-boot-3.0-native:test"
749-
CACHE_TYPE: "smoke"
750-
CI_NO_SPLIT: "true"
751-
NON_DEFAULT_JVMS: "true"
752-
parallel:
753-
matrix:
754-
- testJvm: ["graalvm17", "graalvm21", "graalvm25"]
755-
756-
test_smoke_semeru8_debugger:
757-
extends: .test_job
758-
tags: [ "arch:amd64" ]
759-
variables:
760-
GRADLE_TARGET: "stageMainDist dd-smoke-tests:debugger-integration-tests:test"
761-
CACHE_TYPE: "smoke"
762-
NON_DEFAULT_JVMS: "true"
763-
testJvm: "semeru8"
733+
# test_ssi_smoke:
734+
# extends: .test_job
735+
# rules: *master_only
736+
# variables:
737+
# GRADLE_TARGET: "stageMainDist :smokeTest"
738+
# CACHE_TYPE: "smoke"
739+
# DD_INJECT_FORCE: "true"
740+
# DD_INJECTION_ENABLED: "tracer"
741+
# parallel:
742+
# matrix: *test_matrix_4
743+
#
744+
# test_smoke_graalvm:
745+
# extends: .test_job
746+
# tags: [ "arch:amd64" ]
747+
# variables:
748+
# GRADLE_TARGET: "stageMainDist :dd-smoke-test:spring-boot-3.0-native:test"
749+
# CACHE_TYPE: "smoke"
750+
# CI_NO_SPLIT: "true"
751+
# NON_DEFAULT_JVMS: "true"
752+
# parallel:
753+
# matrix:
754+
# - testJvm: ["graalvm17", "graalvm21", "graalvm25"]
755+
#
756+
# test_smoke_semeru8_debugger:
757+
# extends: .test_job
758+
# tags: [ "arch:amd64" ]
759+
# variables:
760+
# GRADLE_TARGET: "stageMainDist dd-smoke-tests:debugger-integration-tests:test"
761+
# CACHE_TYPE: "smoke"
762+
# NON_DEFAULT_JVMS: "true"
763+
# testJvm: "semeru8"
764764

765765
deploy_to_profiling_backend:
766766
stage: publish

0 commit comments

Comments
 (0)