Skip to content

Commit 5e607a0

Browse files
authored
Merge branch 'master' into kr-igor/kafka-lag-spark-streaming
2 parents bc53b4f + 2153fe5 commit 5e607a0

File tree

1,293 files changed

+47325
-12883
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,293 files changed

+47325
-12883
lines changed

.circleci/config.continue.yml.j2

Lines changed: 47 additions & 17 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 c87bd359aad64a29f280fc5c70a879f7c7f4846e
39+
default_system_tests_commit: &default_system_tests_commit 53d9b2c43876a39e5c0426f4df4dd5fd79d062e8
4040

4141
parameters:
4242
nightly:
@@ -660,7 +660,8 @@ jobs:
660660
- DD_POOL_TRACE_CHECK_FAILURES=true
661661
- DD_DISABLE_ERROR_RESPONSES=true
662662
- ENABLED_CHECKS=trace_content_length,trace_stall,meta_tracer_version_header,trace_count_header,trace_peer_service,trace_dd_service
663-
resource_class: xlarge
663+
# TODO: merge xlarge_tests and tests? or rename this?
664+
resource_class: large
664665

665666

666667
# The only way to do fan-in in CircleCI seems to have a proper job, so let's have one that
@@ -781,6 +782,7 @@ jobs:
781782
name: Gather muzzle tasks
782783
command: >-
783784
SKIP_BUILDSCAN="true"
785+
GRADLE_OPTS="-Dorg.gradle.jvmargs='-Xmx2G -Xms2G -XX:ErrorFile=/tmp/hs_err_pid%p.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp'"
784786
./gradlew writeMuzzleTasksToFile
785787
<< pipeline.parameters.gradle_flags >>
786788
--max-workers=3
@@ -879,11 +881,27 @@ jobs:
879881
880882
- run:
881883
name: Run APM Integrations tests
884+
environment:
885+
- AWS_ACCESS_KEY_ID: $SYSTEM_TESTS_IDM_AWS_ACCESS_KEY_ID
886+
- AWS_SECRET_ACCESS_KEY: $SYSTEM_TESTS_IDM_AWS_SECRET_ACCESS_KEY
887+
- AWS_REGION: us-east-1
888+
- AWS_DEFAULT_REGION: us-east-1 # AWS services should use `AWS_REGION`, but some still use the older `AWS_DEFAULT_REGION`
882889
# Stop the job after 5m to avoid excessive overhead. Will need adjustment as more tests are added.
883890
no_output_timeout: 5m
884891
command: |
885892
cd system-tests
886893
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
894+
895+
- run:
896+
name: Run IDM Crossed Tracing Libraries propagation tests for messaging
897+
environment:
898+
- AWS_ACCESS_KEY_ID: $SYSTEM_TESTS_IDM_AWS_ACCESS_KEY_ID
899+
- AWS_SECRET_ACCESS_KEY: $SYSTEM_TESTS_IDM_AWS_SECRET_ACCESS_KEY
900+
- AWS_REGION: us-east-1
901+
- AWS_DEFAULT_REGION: us-east-1 # AWS services should use `AWS_REGION`, but some still use the older `AWS_DEFAULT_REGION`
902+
command: |
903+
cd system-tests
904+
DD_API_KEY=$SYSTEM_TESTS_DD_API_KEY ./run.sh CROSSED_TRACING_LIBRARIES
887905
888906
- store_test_results:
889907
path: system-tests/logs_integrations
@@ -944,21 +962,18 @@ jobs:
944962
name: Build runner
945963
command: |
946964
cd system-tests
947-
export TEST_LIBRARY=java
948965
./build.sh -i runner
949966
950967
- run:
951968
name: Run
952969
command: |
953970
set -e
954971
cd system-tests
955-
export TEST_LIBRARY=java
956-
export PYTEST_XDIST_AUTO_NUM_WORKERS=6
957972
set +e
958973
RUN_ATTEMPTS=1
959974
while [ $RUN_ATTEMPTS -le 3 ]; do
960975
echo "Running parametric test attempt $RUN_ATTEMPTS"
961-
timeout 12m ./run.sh PARAMETRIC --log-cli-level=DEBUG --durations=30 -vv
976+
timeout 20m ./run.sh PARAMETRIC -L java --log-cli-level=DEBUG --durations=30 -vv
962977
status=$?
963978
#timneout returns 124 if it times out
964979
#if the return code is not 124, then we exit with the status
@@ -1099,8 +1114,8 @@ build_test_jobs: &build_test_jobs
10991114
triggeredBy: *instrumentation_modules
11001115
stage: instrumentation
11011116
cacheType: inst
1102-
parallelism: 4
1103-
maxWorkers: 4
1117+
parallelism: 12
1118+
maxWorkers: 3
11041119
matrix:
11051120
<<: *test_matrix
11061121
@@ -1113,8 +1128,8 @@ build_test_jobs: &build_test_jobs
11131128
triggeredBy: *instrumentation_modules
11141129
stage: instrumentation
11151130
cacheType: inst
1116-
parallelism: 4
1117-
maxWorkers: 4
1131+
parallelism: 12
1132+
maxWorkers: 3
11181133
testJvm: "8"
11191134
11201135
- xlarge_tests:
@@ -1127,8 +1142,8 @@ build_test_jobs: &build_test_jobs
11271142
triggeredBy: *instrumentation_modules
11281143
stage: instrumentation
11291144
cacheType: latestdep
1130-
parallelism: 4
1131-
maxWorkers: 4
1145+
parallelism: 12
1146+
maxWorkers: 3
11321147
testJvm: "8"
11331148
11341149
- xlarge_tests:
@@ -1141,8 +1156,8 @@ build_test_jobs: &build_test_jobs
11411156
triggeredBy: *instrumentation_modules
11421157
stage: instrumentation
11431158
cacheType: latestdep
1144-
parallelism: 4
1145-
maxWorkers: 4
1159+
parallelism: 12
1160+
maxWorkers: 3
11461161
testJvm: "17"
11471162
11481163
- xlarge_tests:
@@ -1155,8 +1170,8 @@ build_test_jobs: &build_test_jobs
11551170
triggeredBy: *instrumentation_modules
11561171
stage: instrumentation
11571172
cacheType: latestdep
1158-
parallelism: 4
1159-
maxWorkers: 4
1173+
parallelism: 12
1174+
maxWorkers: 3
11601175
testJvm: "21"
11611176
11621177
{% if flaky %}
@@ -1184,7 +1199,7 @@ build_test_jobs: &build_test_jobs
11841199
triggeredBy: *instrumentation_modules
11851200
stage: instrumentation
11861201
cacheType: inst
1187-
parallelism: 2
1202+
parallelism: 12
11881203
maxWorkers: 4
11891204
testJvm: "8"
11901205
@@ -1200,6 +1215,20 @@ build_test_jobs: &build_test_jobs
12001215
parallelism: 4
12011216
maxWorkers: 4
12021217
testJvm: "8"
1218+
1219+
- tests:
1220+
requires:
1221+
- ok_to_test
1222+
name: z_test_8_flaky_debugger
1223+
gradleTarget: ":debuggerTest"
1224+
gradleParameters: "-PrunFlakyTests"
1225+
continueOnFailure: true
1226+
triggeredBy: *debugger_modules
1227+
stage: debugger
1228+
cacheType: base
1229+
parallelism: 4
1230+
maxWorkers: 4
1231+
testJvm: "8"
12031232
{% endif %}
12041233
12051234
- tests:
@@ -1403,6 +1432,7 @@ build_test_jobs: &build_test_jobs
14031432
{% for jdk in all_jdks %}
14041433
- "test_{{ jdk }}"
14051434
{% endfor %}
1435+
- muzzle
14061436
- profiling
14071437
- debugger
14081438
- system-tests

.github/workflows/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,15 @@ _Action:_ Clean up old lib-injection OCI images from GitHub Container Registry.
8282

8383
_Recovery:_ Manually trigger the action again.
8484

85+
### prune-old-pull-requests [🔗](prune-old-pull-requests.yaml)
86+
87+
_Trigger:_ Every month or manually.
88+
89+
_Action:_ Mark as stale and comment on pull requests with no update during the last quarter.
90+
Close them if no following update within a week.
91+
92+
_Recovery:_ Manually trigger the action again.
93+
8594
## Code Quality and Security
8695

8796
### analyze-changes [🔗](analyze-changes-with-github-codeql.yaml)

.github/workflows/increment-milestone-on-tag.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
const nextMilestoneTitle = versionNumbers.join('.')
5656
core.info(`Creating next version milestone: ${nextMilestoneTitle}`)
5757
// Create the next milestone
58-
await github.issues.createMilestone({
58+
await github.rest.issues.createMilestone({
5959
owner: context.repo.owner,
6060
repo: context.repo.repo,
6161
title: nextMilestoneTitle
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Prune old pull requests
2+
on:
3+
schedule:
4+
- cron: '0 3 1 * *'
5+
workflow_dispatch:
6+
7+
jobs:
8+
prune-old-pull-requests:
9+
name: Prune old pull requests
10+
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
pull-requests: write
14+
steps:
15+
- name: Prune old pull requests
16+
uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
17+
with:
18+
days-before-stale: -1 # Disable general stale bot
19+
days-before-pr-stale: 90 # Only enable stale bot for PRs with no activity for 90 days
20+
stale-pr-message: 'This pull request has been marked as stale because it has not had activity over the past quarter. It will be closed in 7 days if no further activity occurs. Feel free to reopen the PR if you are still working on it.'
21+
close-pr-message: 'This pull request has been closed because it has not had activity over the past quarter. Feel free to reopen the PR if you are still working on it.'
22+
stale-pr-label: 'tag: stale'
23+
operations-per-run: 500

.github/workflows/update-gradle-dependencies.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,11 @@ jobs:
7171
env:
7272
GH_TOKEN: ${{ github.token }}
7373
run: |
74-
gh pr create --title "Update Gradle dependencies" \
75-
--body "This PR updates the Gradle dependencies. ⚠️ Don't forget to squash commits before merging. ⚠️" \
74+
# use echo to set a multiline body for the PR
75+
echo -e "This PR updates the Gradle dependencies. ⚠️ Don't forget to squash commits before merging. ⚠️\n\n- [ ] Update PR title if a code change is needed to support one of those new dependencies" | \
76+
gh pr create --title "Update Gradle dependencies" \
7677
--base master \
7778
--head $BRANCH_NAME \
7879
--label "tag: dependencies" \
7980
--label "tag: no release notes"
81+
--body-file -

.gitlab-ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ stages:
1717
- ci-visibility-tests
1818
- generate-signing-key
1919

20-
workflow:
21-
rules:
22-
- if: $POPULATE_CACHE == "true"
23-
variables:
24-
SKIP_SHARED_PIPELINE: "true"
25-
- when: always
26-
2720
variables:
2821
REGISTRY: 486234852809.dkr.ecr.us-east-1.amazonaws.com
2922
BUILD_JOB_NAME: "build"
@@ -210,13 +203,20 @@ deploy_artifacts_to_github:
210203
max: 2
211204
when: always
212205

206+
requirements_json_test:
207+
rules:
208+
- when: on_success
209+
variables:
210+
REQUIREMENTS_BLOCK_JSON_PATH: "metadata/requirements-block.json"
211+
REQUIREMENTS_ALLOW_JSON_PATH: "metadata/requirements-allow.json"
212+
213213
package-oci:
214214
needs: [ build ]
215215

216216
onboarding_tests_installer:
217217
parallel:
218218
matrix:
219-
- ONBOARDING_FILTER_WEBLOG: [test-app-java, test-app-java-container, test-app-java-container-jdk15, test-app-java-alpine-libgcc]
219+
- ONBOARDING_FILTER_WEBLOG: [test-app-java, test-app-java-container, test-app-java-container-jdk15, test-app-java-alpine]
220220
SCENARIO: [ SIMPLE_INSTALLER_AUTO_INJECTION, SIMPLE_AUTO_INJECTION_PROFILING ]
221221
- ONBOARDING_FILTER_WEBLOG: [test-app-java-buildpack]
222222
SCENARIO: [ SIMPLE_INSTALLER_AUTO_INJECTION ]

.gitlab/exploration-tests.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
variables:
2-
EXPLORATION_TESTS_IMAGE: $REGISTRY/ci/dd-trace-java:exploration-tests
2+
EXPLORATION_TESTS_IMAGE: registry.ddbuild.io/ci/dd-trace-java:exploration-tests
33

44
build-exploration-tests-image:
55
stage: exploration-tests
@@ -18,24 +18,33 @@ build-exploration-tests-image:
1818
- ./gradlew :dd-java-agent:shadowJar --no-scan
1919
- cp workspace/dd-java-agent/build/libs/*.jar /exploration-tests/dd-java-agent.jar
2020
- cp dd-java-agent/agent-debugger/exploration-tests/run-exploration-tests.sh /exploration-tests
21-
- cp dd-java-agent/agent-debugger/exploration-tests/exclude*.txt /exploration-tests
21+
- cp dd-java-agent/agent-debugger/exploration-tests/exclude_*.txt /exploration-tests
22+
- cp dd-java-agent/agent-debugger/exploration-tests/include_*.txt /exploration-tests
2223
- cd /exploration-tests
2324
after_script:
25+
- echo "$PROJECT"
2426
- cd $CI_PROJECT_DIR
25-
- cp /exploration-tests/$PROJECT/agent.log agent.log
26-
- gzip agent.log
27-
- tar czf surefire-reports.tar.gz /exploration-tests/$PROJECT/target/surefire-reports
28-
- tar czf debugger-dumps.tar.gz /tmp/debugger
27+
- cp /exploration-tests/$PROJECT/agent.log ${PROJECT}_agent.log
28+
- gzip ${PROJECT}_agent.log
29+
- tar czf ${PROJECT}_surefire-reports.tar.gz /exploration-tests/${PROJECT}/target/surefire-reports
30+
- tar czf ${PROJECT}_debugger-dumps.tar.gz /tmp/debugger
2931
stage: exploration-tests
3032
when: manual
3133
tags: [ "runner:main"]
3234
needs: []
3335
image: $EXPLORATION_TESTS_IMAGE
3436
artifacts:
3537
paths:
36-
- agent.log.gz
37-
- surefire-reports.tar.gz
38-
- debugger-dumps.tar.gz
38+
- ${PROJECT}_agent.log.gz
39+
- ${PROJECT}_surefire-reports.tar.gz
40+
- ${PROJECT}_debugger-dumps.tar.gz
41+
42+
exploration-tests-jsoup:
43+
variables:
44+
PROJECT: jsoup
45+
<<: *common-exploration-tests
46+
script:
47+
- ./run-exploration-tests.sh "$PROJECT" "mvn verify" "include_jsoup.txt" "exclude_jsoup.txt"
3948

4049

4150
exploration-tests-jackson-core:

.gitlab/prepare-oci-package.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ fi
1010
mkdir -p sources
1111
cp ../workspace/dd-java-agent/build/libs/*.jar sources/dd-java-agent.jar
1212
echo -n "$VERSION" > sources/version
13+
cp ../metadata/requirements.json sources/

0 commit comments

Comments
 (0)