Skip to content

Commit c837ca4

Browse files
Merge branch 'master' into sezen.leblay/upgrade-libddwaf-java-1.23
2 parents 8212f64 + 6db7d82 commit c837ca4

File tree

89 files changed

+1337
-493
lines changed

Some content is hidden

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

89 files changed

+1337
-493
lines changed

.circleci/upload_ciapp.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ java_prop() {
2020
# Upload test results to CI Visibility
2121
junit_upload() {
2222
# based on tracer implementation: https://github.com/DataDog/dd-trace-java/blob/master/dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/bootstrap/instrumentation/decorator/TestDecorator.java#L55-L77
23+
# Overwriting the tag with the GitHub repo URL instead of the GitLab one. Otherwise, some Test Optimization features won't work.
2324
DD_API_KEY=$1 \
2425
datadog-ci junit upload --service $SERVICE_NAME \
2526
--logs \
@@ -30,6 +31,7 @@ junit_upload() {
3031
--tags "os.architecture:$(java_prop os.arch)" \
3132
--tags "os.platform:$(java_prop os.name)" \
3233
--tags "os.version:$(java_prop os.version)" \
34+
--tags "git.repository_url:https://github.com/DataDog/dd-trace-java" \
3335
./results
3436
}
3537

.github/workflows/README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,6 @@ _Action:_
115115

116116
_Notes:_ Results are sent on both production and staging environments.
117117

118-
### check-ci-pipelines [🔗](check-ci-pipelines.yaml)
119-
120-
_Trigger:_ When opening or updating a PR.
121-
122-
_Action:_ This action will check all other continuous integration jobs (Github action, Gitlab, CircleCi), and will fail if any of them fails.
123-
The purpose of this job is to be required for PR merges, achieving Green CI Policy.
124-
It got an `ignored` parameters to exclude some jobs if they are temprorary failing.
125-
126-
_Recovery:_ Manually trigger the action on the desired branch.
127-
128118
### comment-on-submodule-update [🔗](comment-on-submodule-update.yaml)
129119

130120
_Trigger:_ When creating a PR commits to `master` or a `release/*` branch with a Git Submodule update.

.github/workflows/analyze-changes.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
${{ runner.os }}-gradle-
4141
4242
- name: Initialize CodeQL
43-
uses: github/codeql-action/init@fca7ace96b7d713c7035871441bd52efbe39e27e # v3.28.19
43+
uses: github/codeql-action/init@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
4444
with:
4545
languages: 'java'
4646
build-mode: 'manual'
@@ -57,7 +57,7 @@ jobs:
5757
--build-cache --parallel --stacktrace --no-daemon --max-workers=4
5858
5959
- name: Perform CodeQL Analysis and upload results to GitHub Security tab
60-
uses: github/codeql-action/analyze@fca7ace96b7d713c7035871441bd52efbe39e27e # v3.28.19
60+
uses: github/codeql-action/analyze@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
6161

6262
trivy:
6363
name: Analyze changes with Trivy
@@ -122,7 +122,7 @@ jobs:
122122
TRIVY_JAVA_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-java-db,public.ecr.aws/aquasecurity/trivy-java-db
123123

124124
- name: Upload Trivy scan results to GitHub Security tab
125-
uses: github/codeql-action/upload-sarif@fca7ace96b7d713c7035871441bd52efbe39e27e # v3.28.19
125+
uses: github/codeql-action/upload-sarif@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
126126
if: always()
127127
with:
128128
sarif_file: 'trivy-results.sarif'

.github/workflows/check-ci-pipelines.yml

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

.github/workflows/run-system-tests.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,12 @@ jobs:
6262
scenarios_groups: tracer-release
6363
excluded_scenarios: CROSSED_TRACING_LIBRARIES,INTEGRATIONS_AWS,APM_TRACING_E2E_OTEL,APM_TRACING_E2E_SINGLE_SPAN,PROFILING # require AWS and datadog credentials
6464
skip_empty_scenarios: true
65+
66+
# Ensure the main job is run to completion
67+
check:
68+
name: Check system tests success
69+
runs-on: ubuntu-latest
70+
needs:
71+
- main
72+
steps:
73+
- run: exit 0

.gitlab-ci.yml

Lines changed: 18 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
include:
2-
- project: DataDog/apm-reliability/libdatadog-build
3-
ref: 0f677257308e1c379af490b754febfb40fa2c06d
4-
file: templates/ci_authenticated_job.yml
52
- local: ".gitlab/one-pipeline.locked.yml"
63
- local: ".gitlab/benchmarks.yml"
74
- local: ".gitlab/macrobenchmarks.yml"
@@ -20,14 +17,18 @@ stages:
2017
- generate-signing-key
2118

2219
variables:
20+
# Gitlab runner features; see https://docs.gitlab.com/runner/configuration/feature-flags.html
21+
# Fold and time all script sections
22+
FF_SCRIPT_SECTIONS: 1
23+
2324
REGISTRY: 486234852809.dkr.ecr.us-east-1.amazonaws.com
2425
BUILD_JOB_NAME: "build"
2526
DEPENDENCY_CACHE_POLICY: pull
2627
BUILD_CACHE_POLICY: pull
2728
GRADLE_VERSION: "8.5" # must match gradle-wrapper.properties
2829
MAVEN_REPOSITORY_PROXY: "http://artifactual.artifactual.all-clusters.local-dc.fabric.dog:8081/repository/maven-central/"
2930
GRADLE_PLUGIN_PROXY: "http://artifactual.artifactual.all-clusters.local-dc.fabric.dog:8081/repository/gradle-plugin-portal-proxy/"
30-
BUILDER_IMAGE_VERSION_PREFIX: "" # use either an empty string (e.g. "") for latest images or a version followed by a hyphen (e.g. "v25.05-")
31+
BUILDER_IMAGE_VERSION_PREFIX: "v25.06-" # use either an empty string (e.g. "") for latest images or a version followed by a hyphen (e.g. "v25.05-")
3132
REPO_NOTIFICATION_CHANNEL: "#apm-java-escalations"
3233
DEFAULT_TEST_JVMS: /^(8|11|17|21)$/
3334
PROFILE_TESTS:
@@ -132,15 +133,24 @@ default:
132133
policy: $BUILD_CACHE_POLICY
133134
before_script:
134135
- source .gitlab/gitlab-utils.sh
135-
- export GRADLE_USER_HOME=`pwd`/.gradle
136+
- mkdir -p .gradle
137+
- export GRADLE_USER_HOME=$(pwd)/.gradle
138+
- |
139+
# Don't put jvm args here as it will be picked up by child gradle processes used in tests
140+
cat << EOF > $GRADLE_USER_HOME/gradle.properties
141+
mavenRepositoryProxy=$MAVEN_REPOSITORY_PROXY
142+
gradlePluginProxy=$GRADLE_PLUGIN_PROXY
143+
EOF
144+
- |
145+
# replace maven central part by MAVEN_REPOSITORY_PROXY in .mvn/wrapper/maven-wrapper.properties
146+
sed -i "s|https://repo.maven.apache.org/maven2/|$MAVEN_REPOSITORY_PROXY|g" .mvn/wrapper/maven-wrapper.properties
136147
- export GRADLE_OPTS="-Dorg.gradle.jvmargs='-Xmx$GRADLE_MEM -Xms$GRADLE_MEM -XX:ErrorFile=/tmp/hs_err_pid%p.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp'"
137-
- export GRADLE_ARGS=" --build-cache --stacktrace --no-daemon --parallel --max-workers=$GRADLE_WORKERS -PmavenRepositoryProxy=$MAVEN_REPOSITORY_PROXY -PgradlePluginProxy=$GRADLE_PLUGIN_PROXY"
148+
- export GRADLE_ARGS=" --build-cache --stacktrace --no-daemon --parallel --max-workers=$GRADLE_WORKERS"
138149
- *normalize_node_index
139150
# for weird reasons, gradle will always "chmod 700" the .gradle folder
140151
# with Gitlab caching, .gradle is always owned by root and thus gradle's chmod invocation fails
141152
# This dance is a hack to have .gradle owned by the Gitlab runner user
142153
- gitlab_section_start "gradle-dance" "Fix .gradle directory permissions"
143-
- mkdir -p .gradle
144154
- cp -r .gradle .gradle-copy
145155
- rm -rf .gradle
146156
- mv .gradle-copy .gradle
@@ -361,7 +371,7 @@ muzzle:
361371
- ./gradlew writeMuzzleTasksToFile $GRADLE_ARGS
362372
- sort workspace/build/muzzleTasks > sortedMuzzleTasks
363373
- split --number=l/$NORMALIZED_NODE_TOTAL --suffix-length=1 --numeric-suffixes sortedMuzzleTasks muzzleSplit
364-
- ./gradlew `cat muzzleSplit${NORMALIZED_NODE_INDEX} | xargs` $GRADLE_ARGS
374+
- ./gradlew $(cat muzzleSplit${NORMALIZED_NODE_INDEX} | xargs) $GRADLE_ARGS
365375
after_script:
366376
- *cgroup_info
367377
- source .gitlab/gitlab-utils.sh
@@ -786,37 +796,3 @@ create_key:
786796
expire_in: 13 mos
787797
paths:
788798
- pubkeys
789-
790-
tracer-base-image-release:
791-
extends: .ci_authenticated_job
792-
stage: publish
793-
needs: [ build ]
794-
rules:
795-
- if: '$POPULATE_CACHE'
796-
when: never
797-
- if: '$CI_COMMIT_TAG =~ /^v1\..*/'
798-
when: on_success
799-
dependencies:
800-
- build
801-
script:
802-
- echo $GH_TOKEN|docker login ghcr.io/datadog -u uploader --password-stdin
803-
- mkdir -p ./tooling/ci/binaries/ && cp workspace/dd-java-agent/build/libs/*.jar ./tooling/ci/binaries/dd-java-agent.jar
804-
- docker buildx build -t ghcr.io/datadog/dd-trace-java/dd-trace-java:latest -f ./tooling/ci/Dockerfile .
805-
- docker push ghcr.io/datadog/dd-trace-java/dd-trace-java:latest
806-
807-
tracer-base-image-snapshot:
808-
extends: .ci_authenticated_job
809-
stage: publish
810-
needs: [ build ]
811-
rules:
812-
- if: '$POPULATE_CACHE'
813-
when: never
814-
- if: '$CI_COMMIT_BRANCH == "master"'
815-
when: on_success
816-
dependencies:
817-
- build
818-
script:
819-
- echo $GH_TOKEN|docker login ghcr.io/datadog -u uploader --password-stdin
820-
- mkdir -p ./tooling/ci/binaries/ && cp workspace/dd-java-agent/build/libs/*.jar ./tooling/ci/binaries/dd-java-agent.jar
821-
- docker buildx build -t ghcr.io/datadog/dd-trace-java/dd-trace-java:latest_snapshot -f ./tooling/ci/Dockerfile .
822-
- docker push ghcr.io/datadog/dd-trace-java/dd-trace-java:latest_snapshot

.gitlab/benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
script:
1616
- export ARTIFACTS_DIR="$(pwd)/reports" && mkdir -p "${ARTIFACTS_DIR}"
1717
- git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.ddbuild.io/DataDog/".insteadOf "https://github.com/DataDog/"
18-
- git clone --branch dd-trace-java/tracer-benchmarks https://github.com/DataDog/benchmarking-platform.git /platform && cd /platform
18+
- git clone --branch dd-trace-java/tracer-benchmarks-parallel https://github.com/DataDog/benchmarking-platform.git /platform && cd /platform
1919
artifacts:
2020
name: "reports"
2121
paths:

.gitlab/one-pipeline.locked.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# DO NOT EDIT THIS FILE MANUALLY
22
# This file is auto-generated by automation.
33
include:
4-
- remote: https://gitlab-templates.ddbuild.io/libdatadog/one-pipeline/ca/05e116339b9780a138a474d0348e97debfca97f27bbc4ca489cf4e4c90d9cc94/one-pipeline.yml
4+
- remote: https://gitlab-templates.ddbuild.io/libdatadog/one-pipeline/ca/f2050f53c1f5aed62a24e6b406c746e7d593230ce02b5d56d2a2296db763ebf4/one-pipeline.yml

benchmark/Dockerfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
# Petclinic download and compilation stage
22
FROM eclipse-temurin:17-jammy as petclinic
33

4+
ARG SPRING_PETCLINIC_COMMIT=cefaf55dd124d0635abfe857c3c99a3d3ea62017
5+
46
RUN apt-get update \
57
&& apt-get -y install git \
68
&& apt-get -y clean \
79
&& rm -rf /var/lib/apt/lists/*
810

9-
RUN git clone --depth 1 --branch main --single-branch https://github.com/spring-projects/spring-petclinic.git \
10-
&& cd spring-petclinic \
11-
&& ./mvnw dependency:go-offline
11+
RUN set -eux;\
12+
git init spring-petclinic;\
13+
cd spring-petclinic;\
14+
git remote add origin https://github.com/spring-projects/spring-petclinic.git;\
15+
git fetch --depth 1 origin ${SPRING_PETCLINIC_COMMIT};\
16+
git checkout ${SPRING_PETCLINIC_COMMIT};\
17+
./mvnw dependency:go-offline
1218

1319
RUN cd spring-petclinic \
1420
&& ./mvnw package -Dmaven.test.skip=true \

benchmark/benchmarks.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ if [[ ! -f "${TRACER}" ]]; then
3333
cd "${SCRIPT_DIR}"
3434
fi
3535

36-
# Cleanup previous reports
37-
rm -rf "${REPORTS_DIR}"
38-
mkdir -p "${REPORTS_DIR}"
39-
4036
if [[ "$#" == '0' ]]; then
4137
for type in 'startup' 'load' 'dacapo'; do
4238
run_benchmarks "$type"

benchmark/load/insecure-bank/benchmark.json

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

0 commit comments

Comments
 (0)