Skip to content

Commit 3c74099

Browse files
committed
Merge branch 'master' into inferred-span-tags
2 parents 6141896 + c9b9007 commit 3c74099

File tree

1,870 files changed

+46675
-16054
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,870 files changed

+46675
-16054
lines changed

.circleci/config.continue.yml.j2

Lines changed: 28 additions & 2 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 315bc8a32cc888834726397f088336ba8038277f
39+
default_system_tests_commit: &default_system_tests_commit 2799fa982318da14c9d3e5f722abdc670d2802c3
4040

4141
parameters:
4242
nightly:
@@ -696,6 +696,8 @@ jobs:
696696
<<: *tests
697697

698698
resource_class: medium
699+
environment:
700+
- CI_AGENT_HOST=localhost
699701

700702
docker:
701703
- image: << pipeline.parameters.docker_image >>:{{ docker_image_prefix }}8
@@ -850,6 +852,9 @@ jobs:
850852
DEFAULT
851853
APM_TRACING_E2E
852854
APM_TRACING_E2E_SINGLE_SPAN
855+
TRACING_CONFIG_NONDEFAULT
856+
TRACING_CONFIG_NONDEFAULT_2
857+
TRACING_CONFIG_NONDEFAULT_3
853858
"
854859
if ! [[ << parameters.weblog-variant >> =~ .*native ]]; then
855860
echo "
@@ -860,6 +865,8 @@ jobs:
860865
APPSEC_API_SECURITY
861866
APPSEC_API_SECURITY_RC
862867
APPSEC_API_SECURITY_WITH_SAMPLING
868+
APPSEC_AUTO_EVENTS_RC
869+
APPSEC_AUTO_EVENTS_EXTENDED
863870
APPSEC_WAF_TELEMETRY
864871
APPSEC_STANDALONE_V2
865872
IAST_STANDALONE_V2
@@ -889,6 +896,7 @@ jobs:
889896
for log_dir in logs*; do
890897
tar -cvzf ../artifacts/${log_dir}_<< parameters.weblog-variant >>.tar.gz $log_dir
891898
done
899+
when: always
892900
893901
- store_artifacts:
894902
path: artifacts
@@ -978,6 +986,7 @@ jobs:
978986
for dir in system-tests/logs*/; do
979987
cp -r "$dir" logs_debugger
980988
done
989+
when: always
981990
982991
- store_test_results:
983992
path: logs_debugger
@@ -1096,7 +1105,7 @@ build_test_jobs: &build_test_jobs
10961105
requires:
10971106
- ok_to_test
10981107
name: check_inst
1099-
parallelism: 4
1108+
parallelism: 5
11001109
gradleTarget: ":instrumentationCheck"
11011110
cacheType: inst
11021111
triggeredBy: *instrumentation_modules
@@ -1324,6 +1333,7 @@ build_test_jobs: &build_test_jobs
13241333
matrix:
13251334
<<: *test_matrix
13261335
1336+
{% if ssi_smoke %}
13271337
- tests:
13281338
requires:
13291339
- ok_to_test
@@ -1337,6 +1347,7 @@ build_test_jobs: &build_test_jobs
13371347
maxWorkers: 3
13381348
matrix:
13391349
<<: *test_matrix
1350+
{% endif %}
13401351
13411352
- tests:
13421353
requires:
@@ -1380,6 +1391,7 @@ build_test_jobs: &build_test_jobs
13801391
maxWorkers: 3
13811392
testJvm: "8"
13821393
1394+
{% if ssi_smoke %}
13831395
- tests:
13841396
requires:
13851397
- ok_to_test
@@ -1392,13 +1404,16 @@ build_test_jobs: &build_test_jobs
13921404
parallelism: 4
13931405
maxWorkers: 3
13941406
testJvm: "8"
1407+
{% endif %}
13951408
13961409
- fan_in:
13971410
requires:
13981411
- z_test_<< matrix.testJvm >>_base
13991412
- z_test_<< matrix.testJvm >>_inst
14001413
- z_test_<< matrix.testJvm >>_smoke
1414+
{% if ssi_smoke %}
14011415
- z_test_<< matrix.testJvm >>_ssi_smoke
1416+
{% endif %}
14021417
name: test_<< matrix.testJvm >>
14031418
stage: tracing
14041419
matrix:
@@ -1409,7 +1424,9 @@ build_test_jobs: &build_test_jobs
14091424
- z_test_8_base
14101425
- z_test_8_inst
14111426
- z_test_8_smoke
1427+
{% if ssi_smoke %}
14121428
- z_test_8_ssi_smoke
1429+
{% endif %}
14131430
name: test_8
14141431
stage: tracing
14151432
testJvm: "8"
@@ -1503,6 +1520,14 @@ build_test_jobs: &build_test_jobs
15031520
stage: required
15041521
15051522
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 %}
15061531
{% if is_regular %}
15071532
build_test:
15081533
jobs:
@@ -1543,3 +1568,4 @@ workflows:
15431568
gradleTarget: :profilingTest
15441569
cacheType: profiling
15451570
{% 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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout "cloudfoundry" branch
13-
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # 4.1.6
13+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
1414
with:
1515
ref: cloudfoundry
1616
- name: Get release version
@@ -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@b68767a2e130a71926b365322e62b583404a5e09 # v0.1.43
46+
uses: planetscale/ghcommit-action@9400254a26464337cbe5af17c5f25075134e0089 # v0.2.7
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: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout repository
21-
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # 4.1.6
21+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
2222
with:
2323
submodules: 'recursive'
2424
# Run the static analysis on the staging environment to benefit from the new features not yet released
2525
- name: Check code meets quality standards (staging)
2626
id: datadog-static-analysis-staging
27-
uses: DataDog/datadog-static-analyzer-github-action@c74aff158c8cc1c3e285660713bcaa5f9c6d696e # v1
27+
uses: DataDog/datadog-static-analyzer-github-action@1297a546e6bb268e2ac5bc98a1477d22be335822 # v1
2828
with:
2929
dd_app_key: ${{ secrets.DATADOG_APP_KEY_STAGING }}
3030
dd_api_key: ${{ secrets.DATADOG_API_KEY_STAGING }}
@@ -44,12 +44,12 @@ jobs:
4444

4545
steps:
4646
- name: Checkout repository
47-
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # 4.1.6
47+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
4848
with:
4949
submodules: 'recursive'
5050

5151
- name: Cache Gradle dependencies
52-
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
52+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
5353
with:
5454
path: |
5555
~/.gradle/caches
@@ -59,7 +59,7 @@ jobs:
5959
${{ runner.os }}-gradle-
6060
6161
- name: Initialize CodeQL
62-
uses: github/codeql-action/init@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
62+
uses: github/codeql-action/init@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
6363
with:
6464
languages: 'java'
6565
build-mode: 'manual'
@@ -76,7 +76,7 @@ jobs:
7676
--build-cache --parallel --stacktrace --no-daemon --max-workers=4
7777
7878
- name: Perform CodeQL Analysis and upload results to GitHub Security tab
79-
uses: github/codeql-action/analyze@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
79+
uses: github/codeql-action/analyze@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
8080

8181
# For now, CodeQL SARIF results are not supported by Datadog CI
8282
# - name: Upload results to Datadog CI Static Analysis
@@ -106,12 +106,12 @@ jobs:
106106

107107
steps:
108108
- name: Checkout repository
109-
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # 4.1.6
109+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
110110
with:
111111
submodules: 'recursive'
112112

113113
- name: Cache Gradle dependencies
114-
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
114+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
115115
with:
116116
path: |
117117
~/.gradle/caches
@@ -144,7 +144,7 @@ jobs:
144144
ls -laR "./workspace/.trivy"
145145
146146
- name: Run Trivy security scanner
147-
uses: aquasecurity/trivy-action@915b19bbe73b92a6cf82a1bc12b087c9a19a5fe2 # v0.28.0
147+
uses: aquasecurity/trivy-action@18f2510ee396bbf400402947b394f2dd8c87dbb0 # v0.29.0
148148
with:
149149
scan-type: rootfs
150150
scan-ref: './workspace/.trivy/'
@@ -157,7 +157,7 @@ jobs:
157157
TRIVY_JAVA_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-java-db,public.ecr.aws/aquasecurity/trivy-java-db
158158

159159
- name: Upload Trivy scan results to GitHub Security tab
160-
uses: github/codeql-action/upload-sarif@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
160+
uses: github/codeql-action/upload-sarif@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
161161
if: always()
162162
with:
163163
sarif_file: 'trivy-results.sarif'

.github/workflows/prune-github-container-registry.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ jobs:
2020
container: dd-trace-java/dd-lib-java-init
2121
keep-younger-than: 7 # days
2222
keep-last: 10
23-
keep-tags: |
24-
latest_snapshot
2523
prune-tags-regexes: |
26-
^[a-z0-9]{40}(-arm64|-amd64)?$
24+
.+
2725
prune-untagged: true

.github/workflows/prune-old-pull-requests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
pull-requests: write
1414
steps:
1515
- name: Prune old pull requests
16-
uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
16+
uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
1717
with:
1818
days-before-stale: -1 # Disable general stale bot
1919
days-before-pr-stale: 90 # Only enable stale bot for PRs with no activity for 90 days

.github/workflows/update-docker-build-image.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
pull-requests: write # Required to create a pull request
2020
steps:
2121
- name: Checkout the repository
22-
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2323
- name: Download ghcommit CLI
2424
run: |
2525
curl https://github.com/planetscale/ghcommit/releases/download/v0.1.48/ghcommit_linux_amd64 -o /usr/local/bin/ghcommit -L

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
pull-requests: write # Required to create a pull request
1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # 4.1.6
16+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
1717
with:
1818
submodules: 'recursive'
1919
- name: Download ghcommit CLI

0 commit comments

Comments
 (0)