Skip to content

Commit 896f40a

Browse files
committed
Merge branch 'master' into gary/llmobs-sdk-merge
2 parents 82b8418 + 7c80dbe commit 896f40a

File tree

1,007 files changed

+31668
-6551
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,007 files changed

+31668
-6551
lines changed

.circleci/collect_reports.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ done
3535

3636
mkdir -p $REPORTS_DIR >/dev/null 2>&1
3737

38-
cp /tmp/hs_err_pid*.log $REPORTS_DIR || true
39-
cp /tmp/java_pid*.hprof $REPORTS_DIR || true
40-
cp /tmp/javacore.* $REPORTS_DIR || true
41-
cp /tmp/*.trc $REPORTS_DIR || true
42-
cp /tmp/*.dmp $REPORTS_DIR || true
43-
cp /tmp/dd-profiler/*.jfr $REPORTS_DIR || true
38+
cp /tmp/hs_err_pid*.log $REPORTS_DIR 2>/dev/null || true
39+
cp /tmp/java_pid*.hprof $REPORTS_DIR 2>/dev/null || true
40+
cp /tmp/javacore.* $REPORTS_DIR 2>/dev/null || true
41+
cp /tmp/*.trc $REPORTS_DIR 2>/dev/null || true
42+
cp /tmp/*.dmp $REPORTS_DIR 2>/dev/null || true
43+
cp /tmp/dd-profiler/*.jfr $REPORTS_DIR 2>/dev/null || true
4444

4545
function process_reports () {
4646
project_to_save=$1
@@ -59,9 +59,9 @@ function process_reports () {
5959
else
6060
echo "copying reports for $project_to_save"
6161
mkdir -p $report_path
62-
cp -r workspace/$project_to_save/build/reports/* $report_path/ || true
63-
cp workspace/$project_to_save/build/hs_err_pid*.log $report_path/ || true
64-
cp workspace/$project_to_save/build/javacore*.txt $report_path/ || true
62+
cp -r workspace/$project_to_save/build/reports/* $report_path/ 2>/dev/null || true
63+
cp workspace/$project_to_save/build/hs_err_pid*.log $report_path/ 2>/dev/null || true
64+
cp workspace/$project_to_save/build/javacore*.txt $report_path/ 2>/dev/null || true
6565
fi
6666
}
6767

@@ -73,4 +73,4 @@ for report_path in workspace/**/build/reports; do
7373
process_reports $report_path
7474
done
7575

76-
tar -cvzf reports.tar $REPORTS_DIR
76+
tar -czf reports.tar $REPORTS_DIR

.circleci/config.continue.yml.j2

Lines changed: 22 additions & 116 deletions
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 761b9e7a82ffb136c4653a4d1623d120d67b005b
39+
default_system_tests_commit: &default_system_tests_commit 9049791de92dcb72b104e99a80f6f9914c1b96fb
4040

4141
parameters:
4242
nightly:
@@ -744,79 +744,6 @@ jobs:
744744
path: ./reports
745745

746746
- display_memory_usage
747-
muzzle-dep-report:
748-
<<: *defaults
749-
resource_class: medium
750-
steps:
751-
- setup_code
752-
- skip_unless_matching_files_changed:
753-
pattern: "dd-java-agent/instrumentation"
754-
- restore_dependency_cache:
755-
cacheType: inst
756-
- restore_build_cache:
757-
cacheType: inst
758-
- run:
759-
name: Generate muzzle dep report
760-
command: >-
761-
SKIP_BUILDSCAN="true"
762-
GRADLE_OPTS="-Dorg.gradle.jvmargs='-Xmx2G -Xms2G -XX:ErrorFile=/tmp/hs_err_pid%p.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp'"
763-
./gradlew generateMuzzleReport muzzleInstrumentationReport
764-
- run:
765-
name: Collect Reports
766-
command: .circleci/collect_muzzle_deps.sh
767-
- store_artifacts:
768-
path: ./reports
769-
770-
muzzle:
771-
<<: *defaults
772-
resource_class: medium+
773-
parallelism: 4
774-
steps:
775-
- setup_code
776-
777-
- skip_unless_matching_files_changed:
778-
pattern: "dd-java-agent/instrumentation"
779-
780-
# We are not running with a separate cache of all muzzle artifacts here because it gets very big and
781-
# ends up taking more time restoring/saving than the actual increase in time it takes just
782-
# downloading the artifacts each time.
783-
#
784-
# Let's at least restore the build cache to have something to start from.
785-
- restore_dependency_cache:
786-
cacheType: inst
787-
- restore_build_cache:
788-
cacheType: inst
789-
790-
- run:
791-
name: Gather muzzle tasks
792-
command: >-
793-
SKIP_BUILDSCAN="true"
794-
GRADLE_OPTS="-Dorg.gradle.jvmargs='-Xmx2G -Xms2G -XX:ErrorFile=/tmp/hs_err_pid%p.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp'"
795-
./gradlew writeMuzzleTasksToFile
796-
<< pipeline.parameters.gradle_flags >>
797-
--max-workers=3
798-
799-
- run:
800-
name: Verify Muzzle
801-
command: >-
802-
SKIP_BUILDSCAN="true"
803-
GRADLE_OPTS="-Dorg.gradle.jvmargs='-Xmx3G -Xms2G -XX:ErrorFile=/tmp/hs_err_pid%p.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp'"
804-
./gradlew `circleci tests split --split-by=timings workspace/build/muzzleTasks | xargs`
805-
<< pipeline.parameters.gradle_flags >>
806-
--max-workers=4
807-
808-
- run:
809-
name: Collect Reports
810-
when: on_fail
811-
command: .circleci/collect_reports.sh
812-
813-
- store_artifacts:
814-
path: ./reports
815-
816-
- store_test_results:
817-
path: workspace/build/muzzle-test-results
818-
819-
- display_memory_usage
820747

821748
system-tests:
822749
machine:
@@ -850,8 +777,6 @@ jobs:
850777
(
851778
echo "
852779
DEFAULT
853-
APM_TRACING_E2E
854-
APM_TRACING_E2E_SINGLE_SPAN
855780
TRACING_CONFIG_NONDEFAULT
856781
TRACING_CONFIG_NONDEFAULT_2
857782
TRACING_CONFIG_NONDEFAULT_3
@@ -875,14 +800,8 @@ jobs:
875800
"
876801
fi
877802
) | circleci tests split > scenarios.list
803+
export DD_API_KEY=$SYSTEM_TESTS_DD_API_KEY
878804
for scenario in $(<scenarios.list); do
879-
if [[ $scenario =~ .*_E2E.* ]]; then
880-
export DD_SITE=datadoghq.com
881-
export DD_API_KEY=$SYSTEM_TESTS_E2E_DD_API_KEY
882-
export DD_APPLICATION_KEY=$SYSTEM_TESTS_E2E_DD_APP_KEY
883-
else
884-
export DD_API_KEY=$SYSTEM_TESTS_DD_API_KEY
885-
fi
886805
echo "Running scenario $scenario"
887806
./run.sh $scenario
888807
done
@@ -922,27 +841,11 @@ jobs:
922841

923842
- run:
924843
name: Run APM Integrations tests
925-
environment:
926-
- AWS_ACCESS_KEY_ID: $SYSTEM_TESTS_IDM_AWS_ACCESS_KEY_ID
927-
- AWS_SECRET_ACCESS_KEY: $SYSTEM_TESTS_IDM_AWS_SECRET_ACCESS_KEY
928-
- AWS_REGION: us-east-1
929-
- AWS_DEFAULT_REGION: us-east-1 # AWS services should use `AWS_REGION`, but some still use the older `AWS_DEFAULT_REGION`
930844
# Stop the job after 5m to avoid excessive overhead. Will need adjustment as more tests are added.
931845
no_output_timeout: 5m
932846
command: |
933847
cd system-tests
934-
DD_SITE=datadoghq.com DD_API_KEY=$SYSTEM_TESTS_E2E_DD_API_KEY DD_APPLICATION_KEY=$SYSTEM_TESTS_E2E_DD_APP_KEY ./run.sh INTEGRATIONS
935-
936-
- run:
937-
name: Run IDM Crossed Tracing Libraries propagation tests for messaging
938-
environment:
939-
- AWS_ACCESS_KEY_ID: $SYSTEM_TESTS_IDM_AWS_ACCESS_KEY_ID
940-
- AWS_SECRET_ACCESS_KEY: $SYSTEM_TESTS_IDM_AWS_SECRET_ACCESS_KEY
941-
- AWS_REGION: us-east-1
942-
- AWS_DEFAULT_REGION: us-east-1 # AWS services should use `AWS_REGION`, but some still use the older `AWS_DEFAULT_REGION`
943-
command: |
944-
cd system-tests
945-
DD_API_KEY=$SYSTEM_TESTS_DD_API_KEY ./run.sh CROSSED_TRACING_LIBRARIES
848+
DD_API_KEY=$SYSTEM_TESTS_DD_API_KEY ./run.sh INTEGRATIONS
946849

947850
- store_test_results:
948851
path: system-tests/logs_integrations
@@ -975,7 +878,7 @@ jobs:
975878
no_output_timeout: 5m
976879
command: |
977880
cd system-tests
978-
export DD_API_KEY=$SYSTEM_TESTS_E2E_DD_API_KEY
881+
export DD_API_KEY=$SYSTEM_TESTS_DD_API_KEY
979882
./run.sh DEBUGGER_SCENARIOS
980883

981884
- run:
@@ -1361,6 +1264,24 @@ build_test_jobs: &build_test_jobs
13611264
cacheType: smoke
13621265
testJvm: "semeru8"
13631266

1267+
- tests:
1268+
requires:
1269+
- ok_to_test
1270+
name: test_graalvm17_smoke
1271+
gradleTarget: "stageMainDist :dd-smoke-test:quarkus-native:test"
1272+
stage: smoke
1273+
cacheType: smoke
1274+
testJvm: "graalvm17"
1275+
1276+
- tests:
1277+
requires:
1278+
- ok_to_test
1279+
name: test_graalvm21_smoke
1280+
gradleTarget: "stageMainDist :dd-smoke-test:quarkus-native:test"
1281+
stage: smoke
1282+
cacheType: smoke
1283+
testJvm: "graalvm21"
1284+
13641285
- tests:
13651286
requires:
13661287
- ok_to_test
@@ -1451,20 +1372,6 @@ build_test_jobs: &build_test_jobs
14511372
requires:
14521373
- ok_to_test
14531374

1454-
- muzzle:
1455-
requires:
1456-
- ok_to_test
1457-
filters:
1458-
branches:
1459-
ignore:
1460-
- master
1461-
- project/*
1462-
- release/*
1463-
1464-
- muzzle-dep-report:
1465-
requires:
1466-
- ok_to_test
1467-
14681375
- system-tests:
14691376
requires:
14701377
- ok_to_test
@@ -1512,7 +1419,6 @@ build_test_jobs: &build_test_jobs
15121419
- "test_{{ jdk }}"
15131420
{% endfor %}
15141421
- test_inst_latest
1515-
- muzzle
15161422
- profiling
15171423
- debugger
15181424
- system-tests

.circleci/upload_ciapp.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,5 @@ junit_upload() {
3333
./results
3434
}
3535

36-
# Make sure we do not use DATADOG_API_KEY from the environment
37-
unset DATADOG_API_KEY
38-
3936
# Upload test results to production environment like all other CI jobs
4037
junit_upload "$DATADOG_API_KEY_PROD"
41-
# And also upload to staging environment to benefit from the new features not yet released
42-
junit_upload "$DATADOG_API_KEY_DDSTAGING"

.github/dependabot.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ updates:
88
- package-ecosystem: "github-actions"
99
directory: "/"
1010
schedule:
11-
interval: "monthly"
11+
interval: "weekly"
12+
labels:
13+
- "comp: tooling"
14+
- "tag: dependencies"
15+
- "tag: no release notes"
16+
commit-message:
17+
prefix: "chore(ci): "
1218
groups:
1319
gh-actions-packages:
1420
patterns:

.github/workflows/README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,21 @@ _Trigger:_ When pushing commits to `master` or any pull request targeting `maste
110110

111111
_Action:_
112112

113-
* Run [DataDog Static Analysis](https://docs.datadoghq.com/static_analysis/) and upload result to DataDog Code Analysis,
114113
* Run [GitHub CodeQL](https://codeql.github.com/) action, upload result to GitHub security tab -- do not apply to pull request, only when pushing to `master`,
115114
* Run [Trivy security scanner](https://github.com/aquasecurity/trivy) on built artifacts and upload result to GitHub security tab and Datadog Code Analysis.
116115

117116
_Notes:_ Results are sent on both production and staging environments.
118117

118+
### check-ci-pipelines [🔗](check-ci-pipelines.yaml)
119+
120+
_Trigger:_ When opening or updating a PR.
121+
122+
_Action:_ This action will check all other continuous integration jobs (Github action, Gitlab, CircleCi), and will fail if any of them fails.
123+
The purpose of this job is to be required for PR merges, achieving Green CI Policy.
124+
It got an `ignored` parameters to exclude some jobs if they are temprorary failing.
125+
126+
_Recovery:_ Manually trigger the action on the desired branch.
127+
119128
### comment-on-submodule-update [🔗](comment-on-submodule-update.yaml)
120129

121130
_Trigger:_ When creating a PR commits to `master` or a `release/*` branch with a Git Submodule update.
@@ -130,6 +139,13 @@ _Action:_ Create a PR updating the Grade dependencies and their locking files.
130139

131140
_Recovery:_ Manually trigger the action again.
132141

142+
### run-system-tests [🔗](run-system-tests.yaml)
143+
144+
_Trigger:_ When pushing commits to `master` or manually.
145+
146+
_Action:_ Build the Java Client Library and runs [the system tests](https://github.com/DataDog/system-tests) against.
147+
148+
_Recovery:_ Manually trigger the action on the desired branch.
133149

134150
## Maintenance
135151

.github/workflows/add-release-to-cloudfoundry.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
run: |
4444
echo "${{ steps.get-release-version.outputs.VERSION }}: ${{ steps.get-release-url.outputs.URL }}" >> index.yml
4545
- name: Commit and push changes
46-
uses: planetscale/ghcommit-action@9400254a26464337cbe5af17c5f25075134e0089 # v0.2.7
46+
uses: planetscale/ghcommit-action@5b20c92facae8dbf8a3836dc65b8503dda378573 # v0.2.13
4747
with:
4848
commit_message: "chore: Add version ${{ steps.get-release-version.outputs.VERSION }} to Cloud Foundry"
4949
repo: ${{ github.repository }}

0 commit comments

Comments
 (0)