Skip to content

Commit a1e5ffb

Browse files
authored
Merge branch 'master' into mhlidd/update_baggage_limits
2 parents f9c53d2 + 5a04e8c commit a1e5ffb

File tree

635 files changed

+24351
-3671
lines changed

Some content is hidden

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

635 files changed

+24351
-3671
lines changed

.circleci/config.continue.yml.j2

Lines changed: 2 additions & 3 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 08276e905c5c81055412ea4c318856d879cf15e5
4040

4141
parameters:
4242
nightly:
@@ -167,8 +167,7 @@ commands:
167167
if [[ "$BRANCH" != "master" ]] && [[ "$BRANCH" != "release/*" ]]; then
168168
# We know that we have checked out the PR merge branch, so the HEAD commit is a merge
169169
# As a backup, if anything goes wrong with the diff, the build will fail
170-
# Get list of changed files directly using git diff-tree to avoid issues with large binary files
171-
CHANGED_FILES=$(git diff-tree --no-commit-id --name-only -r HEAD)
170+
CHANGED_FILES=$(git show HEAD | grep -e "^Merge:" | cut -d ' ' -f 2- | sed 's/ /.../' | xargs git diff --name-only)
172171
# Count the number of matches, and ignore if the grep doesn't match anything
173172
MATCH_COUNT=$(echo "$CHANGED_FILES" | grep -c -E "<< pipeline.parameters.global_pattern >>|<< parameters.pattern >>") || true
174173
if [[ "$MATCH_COUNT" -eq "0" ]]; then

.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/workflows/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ _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

.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 }}

.github/workflows/analyze-changes.yaml

Lines changed: 6 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,6 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
jobs:
16-
datadog-static-analyzer:
17-
name: Analyze changes with DataDog Static Analyzer
18-
runs-on: ubuntu-latest
19-
steps:
20-
- name: Checkout repository
21-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
22-
with:
23-
submodules: 'recursive'
24-
# Run the static analysis on the staging environment to benefit from the new features not yet released
25-
- name: Check code meets quality standards (staging)
26-
id: datadog-static-analysis-staging
27-
uses: DataDog/datadog-static-analyzer-github-action@1297a546e6bb268e2ac5bc98a1477d22be335822 # v1
28-
with:
29-
dd_app_key: ${{ secrets.DATADOG_APP_KEY_STAGING }}
30-
dd_api_key: ${{ secrets.DATADOG_API_KEY_STAGING }}
31-
dd_site: "datad0g.com"
32-
cpu_count: 2
33-
enable_performance_statistics: false
34-
3516
codeql:
3617
name: Analyze changes with GitHub CodeQL
3718
# Don’t run on PR, only when pushing to master
@@ -49,7 +30,7 @@ jobs:
4930
submodules: 'recursive'
5031

5132
- name: Cache Gradle dependencies
52-
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
33+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
5334
with:
5435
path: |
5536
~/.gradle/caches
@@ -59,7 +40,7 @@ jobs:
5940
${{ runner.os }}-gradle-
6041
6142
- name: Initialize CodeQL
62-
uses: github/codeql-action/init@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
43+
uses: github/codeql-action/init@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
6344
with:
6445
languages: 'java'
6546
build-mode: 'manual'
@@ -76,25 +57,7 @@ jobs:
7657
--build-cache --parallel --stacktrace --no-daemon --max-workers=4
7758
7859
- name: Perform CodeQL Analysis and upload results to GitHub Security tab
79-
uses: github/codeql-action/analyze@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
80-
81-
# For now, CodeQL SARIF results are not supported by Datadog CI
82-
# - name: Upload results to Datadog CI Static Analysis
83-
# run: |
84-
# wget --no-verbose https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64 -O datadog-ci
85-
# chmod +x datadog-ci
86-
# ./datadog-ci sarif upload /home/runner/work/dd-trace-java/results/java.sarif --service dd-trace-java --env ci
87-
# env:
88-
# DD_API_KEY: ${{ secrets.DATADOG_APP_KEY_PROD }}
89-
# DD_SITE: datadoghq.com
90-
91-
# For now, CodeQL SARIF results are not supported by Datadog CI
92-
# - name: Upload results to Datadog Staging CI Static Analysis
93-
# run: |
94-
# ./datadog-ci sarif upload /home/runner/work/dd-trace-java/results/java.sarif --service dd-trace-java --env ci
95-
# env:
96-
# DD_API_KEY: ${{ secrets.DATADOG_API_KEY_STAGING }}
97-
# DD_SITE: datad0g.com
60+
uses: github/codeql-action/analyze@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
9861

9962
trivy:
10063
name: Analyze changes with Trivy
@@ -111,7 +74,7 @@ jobs:
11174
submodules: 'recursive'
11275

11376
- name: Cache Gradle dependencies
114-
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
77+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
11578
with:
11679
path: |
11780
~/.gradle/caches
@@ -144,7 +107,7 @@ jobs:
144107
ls -laR "./workspace/.trivy"
145108
146109
- name: Run Trivy security scanner
147-
uses: aquasecurity/trivy-action@18f2510ee396bbf400402947b394f2dd8c87dbb0 # v0.29.0
110+
uses: aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5 # v0.30.0
148111
with:
149112
scan-type: rootfs
150113
scan-ref: './workspace/.trivy/'
@@ -157,7 +120,7 @@ jobs:
157120
TRIVY_JAVA_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-java-db,public.ecr.aws/aquasecurity/trivy-java-db
158121

159122
- name: Upload Trivy scan results to GitHub Security tab
160-
uses: github/codeql-action/upload-sarif@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
123+
uses: github/codeql-action/upload-sarif@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
161124
if: always()
162125
with:
163126
sarif_file: 'trivy-results.sarif'
@@ -170,10 +133,3 @@ jobs:
170133
env:
171134
DD_API_KEY: ${{ secrets.DATADOG_API_KEY_PROD }}
172135
DD_SITE: datadoghq.com
173-
174-
- name: Upload results to Datadog Staging CI Static Analysis
175-
run: |
176-
./datadog-ci sarif upload trivy-results.sarif --service dd-trace-java --env ci
177-
env:
178-
DD_API_KEY: ${{ secrets.DATADOG_API_KEY_STAGING }}
179-
DD_SITE: datad0g.com

.github/workflows/draft-release-notes-on-tag.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,12 @@ jobs:
125125
}
126126
function cleanUpTitle(title) {
127127
// Remove tags between brackets
128-
return title.replace(/\[[^\]]+\]/g, '')
128+
title = title.replace(/\[[^\]]+\]/g, '')
129+
// Remove cherry-pick prefix
130+
if (title.startsWith('🍒 ') && title.includes(' - ')) {
131+
title = title.substring(title.indexOf(' - ') + 3)
132+
}
133+
return title
129134
}
130135
function format(pullRequest) {
131136
var line = `${decorate(pullRequest)}${cleanUpTitle(pullRequest.title)} (#${pullRequest.number} - @${pullRequest.user.login}`
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: system-tests
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
# Cancel long-running jobs when a new commit is pushed
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
build:
14+
runs-on:
15+
group: APM Larger Runners
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
19+
with:
20+
submodules: 'recursive'
21+
fetch-depth: 0
22+
23+
- name: Cache Gradle dependencies
24+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
25+
with:
26+
path: |
27+
~/.gradle/caches
28+
~/.gradle/wrapper
29+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
30+
restore-keys: |
31+
${{ runner.os }}-gradle-
32+
33+
- name: Build dd-trace-java
34+
run: |
35+
GRADLE_OPTS="-Xms2g -Xmx4g -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC" \
36+
JAVA_HOME=$JAVA_HOME_8_X64 \
37+
JAVA_8_HOME=$JAVA_HOME_8_X64 \
38+
JAVA_11_HOME=$JAVA_HOME_11_X64 \
39+
JAVA_17_HOME=$JAVA_HOME_17_X64 \
40+
JAVA_21_HOME=$JAVA_HOME_21_X64 \
41+
./gradlew clean :dd-java-agent:shadowJar \
42+
--build-cache --parallel --stacktrace --no-daemon --max-workers=4
43+
44+
- name: Upload artifact
45+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
46+
with:
47+
name: binaries
48+
path: workspace/dd-java-agent/build/libs/
49+
50+
main:
51+
needs:
52+
- build
53+
uses: DataDog/system-tests/.github/workflows/system-tests.yml@main
54+
secrets: inherit
55+
permissions:
56+
contents: read
57+
packages: write
58+
with:
59+
library: java
60+
binaries_artifact: binaries
61+
desired_execution_time: 900 # 15 minutes
62+
scenarios_groups: tracer-release
63+
excluded_scenarios: CROSSED_TRACING_LIBRARIES,INTEGRATIONS_AWS,APM_TRACING_E2E_OTEL,APM_TRACING_E2E_SINGLE_SPAN,PROFILING # require AWS and datadog credentials
64+
skip_empty_scenarios: true

.gitlab-ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ default:
4242

4343
.set_datadog_api_keys: &set_datadog_api_keys
4444
- export DATADOG_API_KEY_PROD=$(aws ssm get-parameter --region us-east-1 --name ci.dd-trace-java.DATADOG_API_KEY_PROD --with-decryption --query "Parameter.Value" --out text)
45-
- export DATADOG_API_KEY_DDSTAGING=$(aws ssm get-parameter --region us-east-1 --name ci.dd-trace-java.dd_api_key --with-decryption --query "Parameter.Value" --out text)
4645

4746
# CI_NODE_INDEX and CI_NODE_TOTAL are 1-indexed and not always set. These steps normalize the numbers for jobs
4847
.normalize_node_index: &normalize_node_index

buildSrc/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ dependencies {
3030
implementation(gradleApi())
3131
implementation(localGroovy())
3232

33-
implementation("net.bytebuddy", "byte-buddy-gradle-plugin", "1.14.18")
33+
implementation("net.bytebuddy", "byte-buddy-gradle-plugin", "1.15.11")
3434

3535
implementation("org.eclipse.aether", "aether-connector-basic", "1.1.0")
3636
implementation("org.eclipse.aether", "aether-transport-http", "1.1.0")
3737
implementation("org.apache.maven", "maven-aether-provider", "3.3.9")
3838

3939
implementation("com.google.guava", "guava", "20.0")
40-
implementation("org.ow2.asm", "asm", "9.7.1")
41-
implementation("org.ow2.asm", "asm-tree", "9.7.1")
40+
implementation("org.ow2.asm", "asm", "9.8")
41+
implementation("org.ow2.asm", "asm-tree", "9.8")
4242

4343
testImplementation("org.spockframework", "spock-core", "2.2-groovy-3.0")
4444
testImplementation("org.codehaus.groovy", "groovy-all", "3.0.17")

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ dependencies {
3232
compileOnly("com.google.code.findbugs", "jsr305", "3.0.2")
3333

3434
implementation("org.freemarker", "freemarker", "2.3.30")
35-
implementation("org.ow2.asm", "asm", "9.7.1")
36-
implementation("org.ow2.asm", "asm-tree", "9.7.1")
35+
implementation("org.ow2.asm", "asm", "9.8")
36+
implementation("org.ow2.asm", "asm-tree", "9.8")
3737
implementation("com.github.javaparser", "javaparser-symbol-solver-core", "3.24.4")
3838

39-
testImplementation("net.bytebuddy", "byte-buddy", "1.14.18")
39+
testImplementation("net.bytebuddy", "byte-buddy", "1.15.11")
4040
testImplementation("org.spockframework", "spock-core", "2.0-groovy-3.0")
4141
testImplementation("org.objenesis", "objenesis", "3.0.1")
4242
testImplementation("org.codehaus.groovy", "groovy-all", "3.0.17")

0 commit comments

Comments
 (0)