Skip to content

Commit a4b95be

Browse files
Merge branch 'bdu/spotbugs-bump-need-jdk11-min' into alexeyk/spotless-attempt-3
2 parents 7ec79ce + 1eb01c1 commit a4b95be

File tree

349 files changed

+6436
-2114
lines changed

Some content is hidden

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

349 files changed

+6436
-2114
lines changed

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@
115115
**/datastreams/ @DataDog/data-streams-monitoring
116116
**/DataStreams* @DataDog/data-streams-monitoring
117117

118+
# @DataDog/feature-flagging-and-experimentation-sdk
119+
/products/feature-flagging/ @DataDog/feature-flagging-and-experimentation-sdk
120+
118121
# @DataDog/profiling-java
119122
/dd-java-agent/agent-profiling/ @DataDog/profiling-java
120123
/dd-java-agent/agent-crashtracking/ @DataDog/profiling-java

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ out/
4646
######################
4747
.vscode
4848

49+
# Cursor #
50+
##########
51+
.cursor
52+
4953
# Others #
5054
##########
5155
/logs/*
@@ -77,3 +81,6 @@ mise*.local.toml
7781
.config/mise*.toml
7882
# asdf
7983
.tool-versions
84+
85+
# Exclude kotlin build files
86+
.kotlin

.gitlab-ci.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,13 @@ default:
171171
- export ORG_GRADLE_PROJECT_akkaRepositoryToken=$(aws ssm get-parameter --region us-east-1 --name ci.dd-trace-java.akka_repo_token --with-decryption --query "Parameter.Value" --out text)
172172
- export ORG_GRADLE_PROJECT_mavenRepositoryProxy=$MAVEN_REPOSITORY_PROXY
173173
- export ORG_GRADLE_PROJECT_gradlePluginProxy=$GRADLE_PLUGIN_PROXY
174+
- |
175+
JAVA_HOMES=$(env | grep -E '^JAVA_[A-Z0-9_]+_HOME=' | sed 's/=.*//' | paste -sd,)
176+
cat >> gradle.properties <<EOF
177+
org.gradle.java.installations.auto-detect=false
178+
org.gradle.java.installations.auto-download=false
179+
org.gradle.java.installations.fromEnv=$JAVA_HOMES
180+
EOF
174181
- mkdir -p .gradle
175182
- export GRADLE_USER_HOME=$(pwd)/.gradle
176183
# replace maven central part by MAVEN_REPOSITORY_PROXY in .mvn/wrapper/maven-wrapper.properties
@@ -988,13 +995,14 @@ create_key:
988995
paths:
989996
- pubkeys
990997

991-
validate_supported_configurations_local_file:
992-
extends: .validate_supported_configurations_local_file
998+
validate_supported_configurations_v2_local_file:
999+
extends: .validate_supported_configurations_v2_local_file
9931000
variables:
9941001
LOCAL_JSON_PATH: "metadata/supported-configurations.json"
1002+
BACKFILLED: "false"
9951003

996-
update_central_configurations_version_range:
997-
extends: .update_central_configurations_version_range
1004+
update_central_configurations_version_range_v2:
1005+
extends: .update_central_configurations_version_range_v2
9981006
variables:
9991007
LOCAL_REPO_NAME: "dd-trace-java"
10001008
LOCAL_JSON_PATH: "metadata/supported-configurations.json"

.gitlab/benchmarks.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.benchmarks:
22
stage: benchmarks
3-
interruptible: true
43
timeout: 1h
54
tags: ["runner:apm-k8s-tweaked-metal"]
65
image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/benchmarking-platform:dd-trace-java-benchmarks
@@ -11,7 +10,11 @@
1110
- if: '$CI_COMMIT_TAG =~ /^v?[0-9]+\.[0-9]+\.[0-9]+$/'
1211
when: manual
1312
allow_failure: true
13+
- if: '$CI_COMMIT_BRANCH == "master"'
14+
when: on_success
15+
interruptible: false
1416
- when: on_success
17+
interruptible: true
1518
script:
1619
- export ARTIFACTS_DIR="$(pwd)/reports" && mkdir -p "${ARTIFACTS_DIR}"
1720
- git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.ddbuild.io/DataDog/".insteadOf "https://github.com/DataDog/"

.gitlab/macrobenchmarks.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ include:
1111
when: never
1212
- if: ($NIGHTLY_BENCHMARKS || $CI_PIPELINE_SOURCE != "schedule") && $CI_COMMIT_REF_NAME == "master"
1313
when: always
14+
interruptible: false
1415
- when: manual
16+
interruptible: true
1517
allow_failure: true
1618
tags: ["runner:apm-k8s-same-cpu"]
1719
needs: ["build"]
18-
interruptible: true
1920
timeout: 1h
2021
image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/benchmarking-platform:dd-trace-java-petclinic
2122
script:

buildSrc/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ gradlePlugin {
2424
}
2525
create("call-site-instrumentation-plugin") {
2626
id = "call-site-instrumentation"
27-
implementationClass = "datadog.gradle.plugin.CallSiteInstrumentationPlugin"
27+
implementationClass = "datadog.gradle.plugin.csi.CallSiteInstrumentationPlugin"
2828
}
2929
create("tracer-version-plugin") {
3030
id = "datadog.tracer-version"
@@ -57,7 +57,7 @@ dependencies {
5757
implementation(gradleApi())
5858
implementation(localGroovy())
5959

60-
implementation("net.bytebuddy", "byte-buddy-gradle-plugin", "1.17.7")
60+
implementation("net.bytebuddy", "byte-buddy-gradle-plugin", "1.18.1")
6161

6262
implementation("org.eclipse.aether", "aether-connector-basic", "1.1.0")
6363
implementation("org.eclipse.aether", "aether-transport-http", "1.1.0")

buildSrc/call-site-instrumentation-plugin/src/main/java/datadog/trace/plugin/csi/util/CallSiteUtils.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import java.io.File;
44
import java.net.MalformedURLException;
55
import java.net.URL;
6+
import java.nio.file.Files;
67
import java.nio.file.Path;
78
import java.util.stream.Collectors;
89
import java.util.stream.IntStream;
@@ -47,7 +48,20 @@ public static String repeat(final char value, int count) {
4748

4849
public static URL toURL(final Path path) {
4950
try {
50-
return path.toUri().toURL();
51+
URL url = path.toUri().toURL();
52+
// URLClassLoader interprets URLs ending with '/' as directories. If the trailing '/' is
53+
// missing, a directory URL is treated as a JAR. If the path does yet exist on disk
54+
// assumes that paths not ending with ".jar" are directories.
55+
boolean shouldAddSlash =
56+
Files.exists(path) ? Files.isDirectory(path) : !path.toString().endsWith(".jar");
57+
58+
if (shouldAddSlash) {
59+
String urlString = url.toString();
60+
if (!urlString.endsWith("/")) {
61+
url = new URL(urlString + "/");
62+
}
63+
}
64+
return url;
5165
} catch (MalformedURLException e) {
5266
throw new RuntimeException(e);
5367
}

buildSrc/src/main/kotlin/datadog.configure-tests.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ tasks.withType<Test>().configureEach {
101101
develocity.testRetry {
102102
if (providers.environmentVariable("CI").isPresent()) {
103103
maxRetries = 3
104+
filter {
105+
excludeAnnotationClasses.add("*NonRetryable") // allow to mark classes non retryable
106+
}
104107
}
105108
}
106109
}

buildSrc/src/main/kotlin/datadog/gradle/plugin/CallSiteInstrumentationPlugin.kt

Lines changed: 0 additions & 245 deletions
This file was deleted.

buildSrc/src/main/kotlin/CIJobsExtensions.kt renamed to buildSrc/src/main/kotlin/datadog/gradle/plugin/ci/CIJobsExtensions.kt

File renamed without changes.

0 commit comments

Comments
 (0)