Skip to content

Commit 7294eaf

Browse files
authored
[Dynamic Instrumentation] Run dynamic instrumentation system tests as part of CI (#7131)
DEBUG-2466 run debugger system tests on ci
1 parent ae0ed76 commit 7294eaf

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

.circleci/config.continue.yml.j2

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ instrumentation_modules: &instrumentation_modules "dd-java-agent/instrumentation
3636
debugger_modules: &debugger_modules "dd-java-agent/agent-debugger|dd-java-agent/agent-bootstrap|dd-java-agent/agent-builder|internal-api|communication|dd-trace-core"
3737
profiling_modules: &profiling_modules "dd-java-agent/agent-profiling"
3838

39-
default_system_tests_commit: &default_system_tests_commit 4d979bdcab25754d38a8d190525bef87dad66a6e
39+
default_system_tests_commit: &default_system_tests_commit c4cbfa9cd0a250ce340cb988e5ce8e4a6a18219c
4040

4141
parameters:
4242
nightly:
@@ -879,6 +879,40 @@ jobs:
879879
- store_artifacts:
880880
path: system-tests/logs_integrations
881881
882+
debugger-system-tests:
883+
machine:
884+
image: ubuntu-2004:current
885+
resource_class: medium
886+
steps:
887+
- setup_system_tests
888+
889+
- run:
890+
name: Copy jar file to system test binaries folder
891+
command: |
892+
ls -la ~/dd-trace-java/workspace/dd-java-agent/build/libs
893+
cp ~/dd-trace-java/workspace/dd-java-agent/build/libs/*.jar system-tests/binaries/
894+
895+
- run:
896+
name: Build
897+
# Build the default framework, which is springboot
898+
command: |
899+
cd system-tests
900+
./build.sh java
901+
902+
- run:
903+
name: Run APM Integrations tests
904+
# Stop the job after 5m to avoid excessive overhead. Will need adjustment as more tests are added.
905+
no_output_timeout: 5m
906+
command: |
907+
cd system-tests
908+
DD_SITE=datadoghq.com DD_API_KEY=$SYSTEM_TESTS_E2E_DD_API_KEY DD_APPLICATION_KEY=$SYSTEM_TESTS_E2E_DD_APP_KEY ./run.sh DEBUGGER_SCENARIOS
909+
910+
- store_test_results:
911+
path: system-tests/logs_debugger*
912+
913+
- store_artifacts:
914+
path: system-tests/logs_debugger*
915+
882916
parametric-tests:
883917
machine:
884918
# https://support.circleci.com/hc/en-us/articles/360007324514-How-can-I-use-Docker-volume-mounting-on-CircleCI-
@@ -1297,6 +1331,10 @@ build_test_jobs: &build_test_jobs
12971331
requires:
12981332
- ok_to_test
12991333
1334+
- debugger-system-tests:
1335+
requires:
1336+
- ok_to_test
1337+
13001338
- parametric-tests:
13011339
requires:
13021340
- ok_to_test

0 commit comments

Comments
 (0)