Skip to content

Commit dc3f281

Browse files
author
Matt
authored
Merge branch 'master' into mattalp/additional-jvmstat-telemetry
2 parents 9cf4033 + d5d53cd commit dc3f281

File tree

113 files changed

+2586
-260
lines changed

Some content is hidden

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

113 files changed

+2586
-260
lines changed

.circleci/config.continue.yml.j2

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -850,8 +850,6 @@ jobs:
850850
(
851851
echo "
852852
DEFAULT
853-
APM_TRACING_E2E
854-
APM_TRACING_E2E_SINGLE_SPAN
855853
TRACING_CONFIG_NONDEFAULT
856854
TRACING_CONFIG_NONDEFAULT_2
857855
TRACING_CONFIG_NONDEFAULT_3
@@ -875,14 +873,8 @@ jobs:
875873
"
876874
fi
877875
) | circleci tests split > scenarios.list
876+
export DD_API_KEY=$SYSTEM_TESTS_DD_API_KEY
878877
for scenario in $(<scenarios.list); do
879-
if [[ $scenario =~ .*_E2E.* ]]; then
880-
export DD_SITE=datadoghq.com
881-
export DD_API_KEY=$SYSTEM_TESTS_E2E_DD_API_KEY
882-
export DD_APPLICATION_KEY=$SYSTEM_TESTS_E2E_DD_APP_KEY
883-
else
884-
export DD_API_KEY=$SYSTEM_TESTS_DD_API_KEY
885-
fi
886878
echo "Running scenario $scenario"
887879
./run.sh $scenario
888880
done
@@ -922,27 +914,11 @@ jobs:
922914
923915
- run:
924916
name: Run APM Integrations tests
925-
environment:
926-
- AWS_ACCESS_KEY_ID: $SYSTEM_TESTS_IDM_AWS_ACCESS_KEY_ID
927-
- AWS_SECRET_ACCESS_KEY: $SYSTEM_TESTS_IDM_AWS_SECRET_ACCESS_KEY
928-
- AWS_REGION: us-east-1
929-
- AWS_DEFAULT_REGION: us-east-1 # AWS services should use `AWS_REGION`, but some still use the older `AWS_DEFAULT_REGION`
930917
# Stop the job after 5m to avoid excessive overhead. Will need adjustment as more tests are added.
931918
no_output_timeout: 5m
932919
command: |
933920
cd system-tests
934-
DD_SITE=datadoghq.com DD_API_KEY=$SYSTEM_TESTS_E2E_DD_API_KEY DD_APPLICATION_KEY=$SYSTEM_TESTS_E2E_DD_APP_KEY ./run.sh INTEGRATIONS
935-
936-
- run:
937-
name: Run IDM Crossed Tracing Libraries propagation tests for messaging
938-
environment:
939-
- AWS_ACCESS_KEY_ID: $SYSTEM_TESTS_IDM_AWS_ACCESS_KEY_ID
940-
- AWS_SECRET_ACCESS_KEY: $SYSTEM_TESTS_IDM_AWS_SECRET_ACCESS_KEY
941-
- AWS_REGION: us-east-1
942-
- AWS_DEFAULT_REGION: us-east-1 # AWS services should use `AWS_REGION`, but some still use the older `AWS_DEFAULT_REGION`
943-
command: |
944-
cd system-tests
945-
DD_API_KEY=$SYSTEM_TESTS_DD_API_KEY ./run.sh CROSSED_TRACING_LIBRARIES
921+
DD_API_KEY=$SYSTEM_TESTS_DD_API_KEY ./run.sh INTEGRATIONS
946922
947923
- store_test_results:
948924
path: system-tests/logs_integrations
@@ -975,7 +951,7 @@ jobs:
975951
no_output_timeout: 5m
976952
command: |
977953
cd system-tests
978-
export DD_API_KEY=$SYSTEM_TESTS_E2E_DD_API_KEY
954+
export DD_API_KEY=$SYSTEM_TESTS_DD_API_KEY
979955
./run.sh DEBUGGER_SCENARIOS
980956
981957
- run:

.github/workflows/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,21 @@ _Action:_ Create a PR updating the Grade dependencies and their locking files.
129129

130130
_Recovery:_ Manually trigger the action again.
131131

132+
### run-system-tests [🔗](run-system-tests.yaml)
133+
134+
_Trigger:_ When pushing commits to `master` or manually.
135+
136+
_Action:_ Build the Java Client Library and runs [the system tests](https://github.com/DataDog/system-tests) against.
137+
138+
_Recovery:_ Manually trigger the action on the desired branch.
139+
140+
### all-green [🔗](all-green.yaml)
141+
142+
_Trigger:_ Any pull request.
143+
144+
_Action:_ This action will check all other jobs (Github action, Gitlab, CircleCi), and will fail if any of them fails. This action got an `ignored` paraemters to exclude some jobs if they are temprorary failing. The purpose of this job is to be required for merges, achieving Green CI Policy.
145+
146+
_Recovery:_ Manually trigger the action on the desired branch.
132147

133148
## Maintenance
134149

.github/workflows/all-green.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Check Pull Request CI Status
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
permissions:
15+
checks: read
16+
statuses: read
17+
18+
jobs:
19+
all-jobs-are-green:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Run Ensure CI Success
23+
uses: DataDog/ensure-ci-success@f40e6ffd8e60280d478b9b92209aaa30d3d56895
24+
with:
25+
initial-delay-seconds: "1000"
26+
max-retries: "60"
27+
ignored-name-patterns: |
28+
dd-gitlab/default-pipeline
29+
dd-gitlab/check_inst 4/4
30+
dd-gitlab/muzzle .*
31+
32+
# ignored jobs :
33+
#
34+
# * dd-gitlab/default-pipeline => success rate of 70% (needs an owner)
35+
# * dd-gitlab/check_inst 4/4 => success rate of 78% (needs an owner)
36+
# * dd-gitlab/muzzle .* => success rate of ~85% (needs an owner)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: system-tests
1+
name: Run system tests
22

33
on:
44
pull_request:
@@ -29,7 +29,7 @@ jobs:
2929
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
3030
restore-keys: |
3131
${{ runner.os }}-gradle-
32-
32+
3333
- name: Build dd-trace-java
3434
run: |
3535
GRADLE_OPTS="-Xms2g -Xmx4g -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC" \

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ plugins {
2222
id 'pl.allegro.tech.build.axion-release' version '1.14.4'
2323
id 'io.github.gradle-nexus.publish-plugin' version '1.3.0'
2424

25-
id "com.github.johnrengelman.shadow" version "7.1.2" apply false
25+
id "com.github.johnrengelman.shadow" version "8.1.1" apply false
2626
id "me.champeau.jmh" version "0.7.0" apply false
2727
id 'org.gradle.playframework' version '0.13' apply false
2828
id 'info.solidsoft.pitest' version '1.9.11' apply false

buildSrc/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ dependencies {
3030
implementation(gradleApi())
3131
implementation(localGroovy())
3232

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

3535
implementation("org.eclipse.aether", "aether-connector-basic", "1.1.0")
3636
implementation("org.eclipse.aether", "aether-transport-http", "1.1.0")

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dependencies {
3636
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.15.11")
39+
testImplementation("net.bytebuddy", "byte-buddy", "1.17.5")
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")

buildSrc/src/main/groovy/MuzzlePlugin.groovy

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,15 @@ class MuzzlePlugin implements Plugin<Project> {
5555

5656
static {
5757
RemoteRepository central = new RemoteRepository.Builder("central", "default", "https://repo1.maven.org/maven2/").build()
58-
// Only needed for restlet
59-
RemoteRepository restlet = new RemoteRepository.Builder("restlet", "default", "https://maven.restlet.talend.com/").build()
60-
// Only needed for play-2.3
61-
RemoteRepository typesafe = new RemoteRepository.Builder("typesafe", "default", "https://repo.typesafe.com/typesafe/maven-releases/").build()
62-
MUZZLE_REPOS = Collections.unmodifiableList(Arrays.asList(central, restlet, typesafe))
58+
59+
String mavenProxyUrl = System.getenv("MAVEN_REPOSITORY_PROXY")
60+
61+
if (mavenProxyUrl == null) {
62+
MUZZLE_REPOS = Collections.singletonList(central)
63+
} else {
64+
RemoteRepository proxy = new RemoteRepository.Builder("central-proxy", "default", mavenProxyUrl).build()
65+
MUZZLE_REPOS = Collections.unmodifiableList(Arrays.asList(proxy, central))
66+
}
6367
}
6468

6569
static class TestedArtifact {

buildSrc/src/test/groovy/CallSiteInstrumentationPluginTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class CallSiteInstrumentationPluginTest extends Specification {
2727
}
2828
2929
dependencies {
30-
implementation group: 'net.bytebuddy', name: 'byte-buddy', version: '1.15.11'
30+
implementation group: 'net.bytebuddy', name: 'byte-buddy', version: '1.17.5'
3131
implementation group: 'com.google.auto.service', name: 'auto-service-annotations', version: '1.0-rc7'
3232
}
3333
'''

buildSrc/src/test/groovy/InstrumentPluginTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class InstrumentPluginTest extends Specification {
2323
}
2424
2525
dependencies {
26-
compileOnly group: 'net.bytebuddy', name: 'byte-buddy', version: '1.15.11' // just to build TestPlugin
26+
compileOnly group: 'net.bytebuddy', name: 'byte-buddy', version: '1.17.5' // just to build TestPlugin
2727
}
2828
2929
apply plugin: 'instrument'

0 commit comments

Comments
 (0)