@@ -705,117 +705,6 @@ jobs:
705705 - DD_BIND_HOST=0.0.0.0
706706 - DD_API_KEY=invalid_key_but_this_is_fine
707707
708- test_published_artifacts:
709- <<: *defaults
710- resource_class: medium
711- docker:
712- - image: << pipeline.parameters.docker_image >>:{{ docker_image_prefix }}7
713-
714- steps:
715- - setup_code
716- - restore_dependency_cache:
717- cacheType: lib
718- - restore_build_cache:
719- cacheType: lib
720-
721- - run:
722- name: Publish Artifacts Locally
723- command: |
724- mvn_local_repo=$(./mvnw help:evaluate -Dexpression=settings.localRepository -q -DforceStdout)
725- rm -rf "${mvn_local_repo}/com/datadoghq"
726- export GRADLE_OPTS="-Dorg.gradle.jvmargs='-Xmx2G -Xms2G -XX:ErrorFile=/tmp/hs_err_pid%p.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp'"
727- ./gradlew publishToMavenLocal << pipeline.parameters.gradle_flags >> --max-workers=3
728-
729- - run:
730- name: Test Published Artifacts
731- command: |
732- cd test-published-dependencies
733- export GRADLE_OPTS="-Dorg.gradle.jvmargs='-Xmx512M -Xms512M -XX:ErrorFile=/tmp/hs_err_pid%p.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp'"
734- ./gradlew check --info --max-workers=3
735-
736- - run:
737- name: Collect Reports
738- when: on_fail
739- command: .circleci/collect_reports.sh
740-
741- - store_artifacts:
742- path: ./reports
743-
744- - display_memory_usage
745- muzzle-dep-report:
746- <<: *defaults
747- resource_class: medium
748- steps:
749- - setup_code
750- - skip_unless_matching_files_changed:
751- pattern: " dd-java-agent/instrumentation"
752- - restore_dependency_cache:
753- cacheType: inst
754- - restore_build_cache:
755- cacheType: inst
756- - run:
757- name: Generate muzzle dep report
758- command: >-
759- SKIP_BUILDSCAN="true"
760- GRADLE_OPTS="-Dorg.gradle.jvmargs='-Xmx2G -Xms2G -XX:ErrorFile=/tmp/hs_err_pid%p.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp'"
761- ./gradlew generateMuzzleReport muzzleInstrumentationReport
762- - run:
763- name: Collect Reports
764- command: .circleci/collect_muzzle_deps.sh
765- - store_artifacts:
766- path: ./reports
767-
768- muzzle:
769- <<: *defaults
770- resource_class: medium+
771- parallelism: 4
772- steps:
773- - setup_code
774-
775- - skip_unless_matching_files_changed:
776- pattern: " dd-java-agent/instrumentation"
777-
778- # We are not running with a separate cache of all muzzle artifacts here because it gets very big and
779- # ends up taking more time restoring /saving than the actual increase in time it takes just
780- # downloading the artifacts each time.
781- #
782- # Let ' s at least restore the build cache to have something to start from.
783- - restore_dependency_cache:
784- cacheType: inst
785- - restore_build_cache:
786- cacheType: inst
787-
788- - run:
789- name: Gather muzzle tasks
790- command: >-
791- SKIP_BUILDSCAN="true"
792- GRADLE_OPTS="-Dorg.gradle.jvmargs=' -Xmx2G -Xms2G -XX:ErrorFile =/tmp/hs_err_pid%p.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath =/tmp ' "
793- ./gradlew writeMuzzleTasksToFile
794- << pipeline.parameters.gradle_flags >>
795- --max-workers=3
796-
797- - run:
798- name: Verify Muzzle
799- command: >-
800- SKIP_BUILDSCAN="true"
801- GRADLE_OPTS="-Dorg.gradle.jvmargs=' -Xmx3G -Xms2G -XX:ErrorFile =/tmp/hs_err_pid%p.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath =/tmp ' "
802- ./gradlew `circleci tests split --split-by=timings workspace/build/muzzleTasks | xargs`
803- << pipeline.parameters.gradle_flags >>
804- --max-workers=4
805-
806- - run:
807- name: Collect Reports
808- when: on_fail
809- command: .circleci/collect_reports.sh
810-
811- - store_artifacts:
812- path: ./reports
813-
814- - store_test_results:
815- path: workspace/build/muzzle-test-results
816-
817- - display_memory_usage
818-
819708 system-tests:
820709 machine:
821710 image: ubuntu-2404:current
@@ -1424,24 +1313,6 @@ build_test_jobs: &build_test_jobs
14241313 cacheType: base
14251314 testJvm: " 8"
14261315
1427- - test_published_artifacts:
1428- requires:
1429- - ok_to_test
1430-
1431- - muzzle:
1432- requires:
1433- - ok_to_test
1434- filters:
1435- branches:
1436- ignore:
1437- - master
1438- - project/*
1439- - release/*
1440-
1441- - muzzle-dep-report:
1442- requires:
1443- - ok_to_test
1444-
14451316 - system-tests:
14461317 requires:
14471318 - ok_to_test
@@ -1462,7 +1333,6 @@ build_test_jobs: &build_test_jobs
14621333
14631334 - fan_in:
14641335 requires:
1465- - test_published_artifacts
14661336{% for jdk in all_jdks %}
14671337 - " test_{{ jdk }}_profiling"
14681338{% endfor %}
@@ -1471,7 +1341,6 @@ build_test_jobs: &build_test_jobs
14711341
14721342 - fan_in:
14731343 requires:
1474- - test_published_artifacts
14751344{% for jdk in all_jdks %}
14761345 - " test_{{ jdk }}_debugger"
14771346{% endfor %}
@@ -1483,13 +1352,11 @@ build_test_jobs: &build_test_jobs
14831352 - fan_in:
14841353 requires:
14851354 - check
1486- - test_published_artifacts
14871355 - agent_integration_tests
14881356{% for jdk in all_jdks %}
14891357 - " test_{{ jdk }}"
14901358{% endfor %}
14911359 - test_inst_latest
1492- - muzzle
14931360 - profiling
14941361 - debugger
14951362 - system-tests
0 commit comments