Skip to content

Commit b2e8d4e

Browse files
authored
Merge branch 'master' into smola/gradle-3-toolchain8
2 parents 5e7ffc4 + aa9dd27 commit b2e8d4e

238 files changed

Lines changed: 5754 additions & 1302 deletions

File tree

Some content is hidden

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

.circleci/collect_results.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function get_source_file () {
3535
fi
3636
done
3737
done < <(grep -rl "class $class" "$file_path")
38-
file_path="$common_root"
38+
file_path="/$common_root"
3939
fi
4040
}
4141

.circleci/upload_ciapp.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
SERVICE_NAME="dd-trace-java"
3-
PIPELINE_STAGE=$1
3+
CACHE_TYPE=$1
44
TEST_JVM=$2
55

66
# JAVA_???_HOME are set in the base image for each used JDK https://github.com/DataDog/dd-trace-java-docker-build/blob/master/Dockerfile#L86
@@ -20,16 +20,18 @@ 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 \
26-
--tags "test.traits:{\"marker\":[\"$PIPELINE_STAGE\"]}" \
27+
--tags "test.traits:{\"category\":[\"$CACHE_TYPE\"]}" \
2728
--tags "runtime.name:$(java_prop java.runtime.name)" \
2829
--tags "runtime.vendor:$(java_prop java.vendor)" \
2930
--tags "runtime.version:$(java_prop java.version)" \
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: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ _Recovery:_ Manually trigger the action again.
106106

107107
### analyze-changes [🔗](analyze-changes.yaml)
108108

109-
_Trigger:_ When pushing commits to `master` or any pull request targeting `master`.
109+
_Trigger:_ When pushing commits to `master`.
110110

111111
_Action:_
112112

@@ -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/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@5b20c92facae8dbf8a3836dc65b8503dda378573 # v0.2.13
46+
uses: planetscale/ghcommit-action@6a383e778f6620afde4bf4b45069d3c6983c1ae2 # v0.2.15
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 & 4 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@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
43+
uses: github/codeql-action/init@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
4444
with:
4545
languages: 'java'
4646
build-mode: 'manual'
@@ -57,10 +57,12 @@ 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@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
60+
uses: github/codeql-action/analyze@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
6161

6262
trivy:
6363
name: Analyze changes with Trivy
64+
# Don’t run on PR, only when pushing to master
65+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
6466
runs-on: ubuntu-latest
6567
permissions:
6668
actions: read
@@ -107,7 +109,7 @@ jobs:
107109
ls -laR "./workspace/.trivy"
108110
109111
- name: Run Trivy security scanner
110-
uses: aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5 # v0.30.0
112+
uses: aquasecurity/trivy-action@76071ef0d7ec797419534a183b498b4d6366cf37 # v0.31.0
111113
with:
112114
scan-type: rootfs
113115
scan-ref: './workspace/.trivy/'
@@ -120,7 +122,7 @@ jobs:
120122
TRIVY_JAVA_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-java-db,public.ecr.aws/aquasecurity/trivy-java-db
121123

122124
- name: Upload Trivy scan results to GitHub Security tab
123-
uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
125+
uses: github/codeql-action/upload-sarif@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
124126
if: always()
125127
with:
126128
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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
echo "::notice::Using Docker build image tag: ${TAG}"
5353
- name: Update the Docker build image in GitLab CI config
5454
run: |
55-
sed -i 's|JAVA_BUILD_IMAGE_VERSION:.*|JAVA_BUILD_IMAGE_VERSION:"${{ steps.define-tag.outputs.tag }}"|' .gitlab-ci.yml
55+
sed -i '' -E 's|(BUILDER_IMAGE_VERSION_PREFIX:)[^#]*([#].*)|\1 "${{ steps.define-tag.outputs.tag }}-" \2|' .gitlab-ci.yml
5656
- name: Commit and push changes
5757
env:
5858
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)