Skip to content

Commit 3c20927

Browse files
Merge branch 'master' into nikita-tkachenko/remove-unused-test-ev-handler-methods
2 parents 2497492 + 30c99de commit 3c20927

File tree

859 files changed

+14774
-5804
lines changed

Some content is hidden

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

859 files changed

+14774
-5804
lines changed

.circleci/config.continue.yml.j2

Lines changed: 21 additions & 4 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 69a5e874384dd256e2e3f42fc1c95807a67efbe6
39+
default_system_tests_commit: &default_system_tests_commit 761b9e7a82ffb136c4653a4d1623d120d67b005b
4040

4141
parameters:
4242
nightly:
@@ -932,7 +932,7 @@ jobs:
932932
command: |
933933
cd system-tests
934934
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-
935+
936936
- run:
937937
name: Run IDM Crossed Tracing Libraries propagation tests for messaging
938938
environment:
@@ -975,7 +975,7 @@ jobs:
975975
no_output_timeout: 5m
976976
command: |
977977
cd system-tests
978-
export DD_API_KEY=$SYSTEM_TESTS_E2E_DD_API_KEY
978+
export DD_API_KEY=$SYSTEM_TESTS_E2E_DD_API_KEY
979979
./run.sh DEBUGGER_SCENARIOS
980980
981981
- run:
@@ -1105,7 +1105,7 @@ build_test_jobs: &build_test_jobs
11051105
requires:
11061106
- ok_to_test
11071107
name: check_inst
1108-
parallelism: 4
1108+
parallelism: 5
11091109
gradleTarget: ":instrumentationCheck"
11101110
cacheType: inst
11111111
triggeredBy: *instrumentation_modules
@@ -1333,6 +1333,7 @@ build_test_jobs: &build_test_jobs
13331333
matrix:
13341334
<<: *test_matrix
13351335
1336+
{% if ssi_smoke %}
13361337
- tests:
13371338
requires:
13381339
- ok_to_test
@@ -1346,6 +1347,7 @@ build_test_jobs: &build_test_jobs
13461347
maxWorkers: 3
13471348
matrix:
13481349
<<: *test_matrix
1350+
{% endif %}
13491351
13501352
- tests:
13511353
requires:
@@ -1389,6 +1391,7 @@ build_test_jobs: &build_test_jobs
13891391
maxWorkers: 3
13901392
testJvm: "8"
13911393
1394+
{% if ssi_smoke %}
13921395
- tests:
13931396
requires:
13941397
- ok_to_test
@@ -1401,13 +1404,16 @@ build_test_jobs: &build_test_jobs
14011404
parallelism: 4
14021405
maxWorkers: 3
14031406
testJvm: "8"
1407+
{% endif %}
14041408
14051409
- fan_in:
14061410
requires:
14071411
- z_test_<< matrix.testJvm >>_base
14081412
- z_test_<< matrix.testJvm >>_inst
14091413
- z_test_<< matrix.testJvm >>_smoke
1414+
{% if ssi_smoke %}
14101415
- z_test_<< matrix.testJvm >>_ssi_smoke
1416+
{% endif %}
14111417
name: test_<< matrix.testJvm >>
14121418
stage: tracing
14131419
matrix:
@@ -1418,7 +1424,9 @@ build_test_jobs: &build_test_jobs
14181424
- z_test_8_base
14191425
- z_test_8_inst
14201426
- z_test_8_smoke
1427+
{% if ssi_smoke %}
14211428
- z_test_8_ssi_smoke
1429+
{% endif %}
14221430
name: test_8
14231431
stage: tracing
14241432
testJvm: "8"
@@ -1512,6 +1520,14 @@ build_test_jobs: &build_test_jobs
15121520
stage: required
15131521
15141522
workflows:
1523+
{% if skip_circleci %}
1524+
build_test:
1525+
jobs:
1526+
# Just a "required" job to make GitHub PR checks happy, and run nothing else.
1527+
- fan_in:
1528+
name: required
1529+
stage: required
1530+
{% else %}
15151531
{% if is_regular %}
15161532
build_test:
15171533
jobs:
@@ -1552,3 +1568,4 @@ workflows:
15521568
gradleTarget: :profilingTest
15531569
cacheType: profiling
15541570
{% endif %}
1571+
{% endif %}

.circleci/no_circleci_changes.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
set -eu
3+
git diff --name-only "$1" | grep --invert-match --quiet -E '^(.gitlab-ci.yml|.gitlab)'

.circleci/render_config.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import os
44
import os.path
5+
import subprocess
56
import time
67

78
import jinja2
@@ -14,9 +15,10 @@
1415
GENERATED_CONFIG_PATH = os.path.join(SCRIPT_DIR, OUT_FILENAME)
1516

1617
# JDKs that will run on every pipeline.
17-
ALWAYS_ON_JDKS = {"8", "11", "17", "21"}
18+
ALWAYS_ON_JDKS = {"8", "17", "21"}
1819
# And these will run only in master and release/ branches.
1920
MASTER_ONLY_JDKS = {
21+
"11",
2022
"ibm8",
2123
"oracle8",
2224
"semeru8",
@@ -74,6 +76,13 @@
7476
run_all = "all" in labels
7577
is_master_or_release = branch == "master" or branch.startswith("release/v")
7678

79+
skip_circleci = False
80+
if pr_base_ref:
81+
ret = subprocess.call([".circleci/no_circleci_changes.sh", f"{pr_base_ref}..HEAD"], shell=False)
82+
if ret == 1:
83+
# Only GitLab-related files have changed, just skip Circle CI jobs.
84+
skip_circleci = True
85+
7786
if is_master_or_release or run_all:
7887
all_jdks = ALWAYS_ON_JDKS | MASTER_ONLY_JDKS
7988
else:
@@ -99,10 +108,12 @@
99108
"all_jdks": all_jdks,
100109
"all_debugger_jdks": all_debugger_jdks,
101110
"nocov_jdks": nocov_jdks,
102-
"flaky": branch == "master" or "flaky" in labels or "all" in labels,
111+
"flaky": "flaky" in labels or "all" in labels,
103112
"docker_image_prefix": "" if is_nightly else f"{DOCKER_IMAGE_VERSION}-",
104113
"use_git_changes": use_git_changes,
105114
"pr_base_ref": pr_base_ref,
115+
"skip_circleci": skip_circleci,
116+
"ssi_smoke": is_regular and is_master_or_release
106117
}
107118

108119
print(f"Variables for this build: {vars}")

.github/CODEOWNERS

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,26 @@ dd-java-agent/agent-bootstrap/src/main/java11/datadog/trace/bootstrap/instrument
1717
dd-smoke-tests/profiling-integration-tests/ @DataDog/profiling-java
1818

1919
# @DataDog/ci-app-libraries-java
20-
dd-java-agent/agent-ci-visibility/ @DataDog/ci-app-libraries-java
21-
dd-java-agent/instrumentation/cucumber/ @DataDog/ci-app-libraries-java
22-
dd-java-agent/instrumentation/jacoco/ @DataDog/ci-app-libraries-java
23-
dd-java-agent/instrumentation/junit-4.10/ @DataDog/ci-app-libraries-java
24-
dd-java-agent/instrumentation/junit-5.3/ @DataDog/ci-app-libraries-java
25-
dd-java-agent/instrumentation/karate/ @DataDog/ci-app-libraries-java
26-
dd-java-agent/instrumentation/scalatest/ @DataDog/ci-app-libraries-java
27-
dd-java-agent/instrumentation/selenium/ @DataDog/ci-app-libraries-java
28-
dd-java-agent/instrumentation/testng/ @DataDog/ci-app-libraries-java
29-
dd-java-agent/instrumentation/gradle-3.0/ @DataDog/ci-app-libraries-java
30-
dd-java-agent/instrumentation/gradle-8.3/ @DataDog/ci-app-libraries-java
31-
dd-java-agent/instrumentation/maven-3.2.1/ @DataDog/ci-app-libraries-java
32-
dd-java-agent/instrumentation/weaver/ @DataDog/ci-app-libraries-java
33-
dd-smoke-tests/gradle/ @DataDog/ci-app-libraries-java
34-
dd-smoke-tests/maven/ @DataDog/ci-app-libraries-java
35-
**/civisibility/ @DataDog/ci-app-libraries-java
36-
**/CiVisibility*.java @DataDog/ci-app-libraries-java
37-
**/CiVisibility*.groovy @DataDog/ci-app-libraries-java
20+
dd-java-agent/agent-ci-visibility/ @DataDog/ci-app-libraries-java
21+
dd-java-agent/instrumentation/cucumber/ @DataDog/ci-app-libraries-java
22+
dd-java-agent/instrumentation/jacoco/ @DataDog/ci-app-libraries-java
23+
dd-java-agent/instrumentation/junit-4.10/ @DataDog/ci-app-libraries-java
24+
dd-java-agent/instrumentation/junit-5.3/ @DataDog/ci-app-libraries-java
25+
dd-java-agent/instrumentation/karate/ @DataDog/ci-app-libraries-java
26+
dd-java-agent/instrumentation/scalatest/ @DataDog/ci-app-libraries-java
27+
dd-java-agent/instrumentation/selenium/ @DataDog/ci-app-libraries-java
28+
dd-java-agent/instrumentation/testng/ @DataDog/ci-app-libraries-java
29+
dd-java-agent/instrumentation/gradle-3.0/ @DataDog/ci-app-libraries-java
30+
dd-java-agent/instrumentation/gradle-8.3/ @DataDog/ci-app-libraries-java
31+
dd-java-agent/instrumentation/gradle-testing/ @DataDog/ci-app-libraries-java
32+
dd-java-agent/instrumentation/maven-3.2.1/ @DataDog/ci-app-libraries-java
33+
dd-java-agent/instrumentation/maven-surefire/ @DataDog/ci-app-libraries-java
34+
dd-java-agent/instrumentation/weaver/ @DataDog/ci-app-libraries-java
35+
dd-smoke-tests/gradle/ @DataDog/ci-app-libraries-java
36+
dd-smoke-tests/maven/ @DataDog/ci-app-libraries-java
37+
**/civisibility/ @DataDog/ci-app-libraries-java
38+
**/CiVisibility*.java @DataDog/ci-app-libraries-java
39+
**/CiVisibility*.groovy @DataDog/ci-app-libraries-java
3840

3941
# @DataDog/debugger-java (Live Debugger)
4042
dd-java-agent/agent-debugger/ @DataDog/debugger-java

.gitlab-ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ variables:
2323
DEPENDENCY_CACHE_POLICY: pull
2424
BUILD_CACHE_POLICY: pull
2525
GRADLE_VERSION: "8.4" # must match gradle-wrapper.properties
26-
MAVEN_REPOSITORY_PROXY: "https://artifactual.us1.prod.dog/repository/maven-central/"
26+
MAVEN_REPOSITORY_PROXY: "http://artifactual.artifactual.all-clusters.local-dc.fabric.dog:8081/repository/maven-central/"
27+
GRADLE_PLUGIN_PROXY: "http://artifactual.artifactual.all-clusters.local-dc.fabric.dog:8081/repository/gradle-plugin-portal-proxy/"
2728
JAVA_BUILD_IMAGE_VERSION: "v25.01"
2829
REPO_NOTIFICATION_CHANNEL: "#apm-java-escalations"
2930
PROFILE_TESTS:
@@ -75,7 +76,7 @@ default:
7576
policy: $BUILD_CACHE_POLICY
7677
before_script:
7778
- export GRADLE_USER_HOME=`pwd`/.gradle
78-
- export GRADLE_ARGS=" --build-cache --stacktrace --no-daemon --parallel --max-workers=$GRADLE_WORKERS -PmavenRepositoryProxy=$MAVEN_REPOSITORY_PROXY"
79+
- export GRADLE_ARGS=" --build-cache --stacktrace --no-daemon --parallel --max-workers=$GRADLE_WORKERS -PmavenRepositoryProxy=$MAVEN_REPOSITORY_PROXY -PgradlePluginProxy=$GRADLE_PLUGIN_PROXY"
7980
- *normalize_node_index
8081
# for weird reasons, gradle will always "chmod 700" the .gradle folder
8182
# with Gitlab caching, .gradle is always owned by root and thus gradle's chmod invocation fails

build.gradle

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ description = 'dd-trace-java'
3232

3333
def isCI = System.getenv("CI") != null
3434

35+
apply from: "$rootDir/gradle/repositories.gradle"
3536
apply from: "$rootDir/gradle/scm.gradle"
3637
spotless {
3738
// only resolve the spotless dependencies once in the build
@@ -79,12 +80,6 @@ allprojects {
7980
}
8081
}
8182

82-
repositories {
83-
mavenLocal()
84-
mavenCentral()
85-
gradlePluginPortal()
86-
}
87-
8883
tasks.register("latestDepTest")
8984

9085
nexusPublishing {

buildSrc/build.gradle.kts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ gradlePlugin {
2222
}
2323
}
2424

25-
repositories {
26-
mavenLocal()
27-
mavenCentral()
28-
gradlePluginPortal()
25+
apply {
26+
from("$rootDir/../gradle/repositories.gradle")
2927
}
3028

3129
dependencies {

buildSrc/call-site-instrumentation-plugin/build.gradle.kts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@ spotless {
2424
}
2525
}
2626

27-
repositories {
28-
mavenLocal()
29-
mavenCentral()
30-
gradlePluginPortal()
27+
apply {
28+
from("$rootDir/../gradle/repositories.gradle")
3129
}
3230

3331
dependencies {

communication/gradle.lockfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,11 @@ org.slf4j:slf4j-api:1.7.30=compileClasspath,runtimeClasspath,testCompileClasspat
157157
org.slf4j:slf4j-api:1.7.32=testRuntimeClasspath
158158
org.slf4j:slf4j-api:2.0.0=spotbugs,spotbugsSlf4j
159159
org.slf4j:slf4j-simple:2.0.0=spotbugsSlf4j
160-
org.spockframework:spock-core:2.2-groovy-3.0=testCompileClasspath,testRuntimeClasspath
161-
org.spockframework:spock-junit4:2.2-groovy-3.0=testCompileClasspath,testRuntimeClasspath
160+
org.spockframework:spock-core:2.3-groovy-3.0=testCompileClasspath,testRuntimeClasspath
161+
org.spockframework:spock-junit4:2.3-groovy-3.0=testCompileClasspath,testRuntimeClasspath
162162
org.testng:testng:7.5=testRuntimeClasspath
163163
org.webjars:jquery:3.5.1=testRuntimeClasspath
164164
org.xmlresolver:xmlresolver:4.4.3=spotbugs
165+
org.yaml:snakeyaml:2.4=runtimeClasspath,testRuntimeClasspath
165166
xml-apis:xml-apis:1.4.01=spotbugs
166167
empty=annotationProcessor,spotbugsPlugins,testAnnotationProcessor

components/cli/build.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
plugins {
2+
id("me.champeau.jmh")
3+
}
4+
5+
apply(from = "$rootDir/gradle/java.gradle")
6+
7+
jmh {
8+
version = "1.28"
9+
}

0 commit comments

Comments
 (0)