File tree Expand file tree Collapse file tree 4 files changed +12
-7
lines changed
dd-smoke-tests/gradle/src/test
resources/test-succeed-gradle-plugin-test
src/test/java/datadog/smoke Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ class GradleDaemonSmokeTest extends AbstractGradleTest {
50
50
51
51
where :
52
52
gradleVersion | projectName | successExpected | expectedTraces | expectedCoverages
53
- " 3.0 " | " test-succeed-old-gradle" | true | 5 | 1
53
+ " 3.5 " | " test-succeed-old-gradle" | true | 5 | 1
54
54
" 7.6.4" | " test-succeed-legacy-instrumentation" | true | 5 | 1
55
55
" 7.6.4" | " test-succeed-multi-module-legacy-instrumentation" | true | 7 | 2
56
56
" 7.6.4" | " test-succeed-multi-forks-legacy-instrumentation" | true | 6 | 2
@@ -244,6 +244,7 @@ class GradleDaemonSmokeTest extends AbstractGradleTest {
244
244
.withProjectDir(projectFolder. toFile())
245
245
.withGradleVersion(gradleVersion)
246
246
.withArguments(arguments)
247
+ .withEnvironment([" GRADLE_VERSION" : gradleVersion])
247
248
.forwardOutput()
248
249
249
250
println " ${ new Date()} : $specificationContext . currentIteration . displayName - Starting Gradle run"
Original file line number Diff line number Diff line change 1
1
[ {
2
2
"files" : [ {
3
- "bitmap" : "AAAAx98= ",
3
+ "bitmap" : "AAAAx+EN ",
4
4
"filename" : "src/test/java/datadog/smoke/HelloPluginFunctionalTest.java"
5
5
} ],
6
6
"span_id" : ${content_span_id_4} ,
7
7
"test_session_id" : ${content_test_session_id} ,
8
8
"test_suite_id" : ${content_test_suite_id}
9
- } ]
9
+ } ]
Original file line number Diff line number Diff line change 215
215
"_dd.profiling.enabled" : 0,
216
216
"_dd.trace_span_attribute_schema" : 0,
217
217
"process_id" : ${content_metrics_process_id_2} ,
218
- "test.source.end" : 40 ,
218
+ "test.source.end" : 44 ,
219
219
"test.source.start" : 16
220
220
},
221
221
"name" : "junit5.test_suite",
273
273
"_dd.profiling.enabled" : 0,
274
274
"_dd.trace_span_attribute_schema" : 0,
275
275
"process_id" : ${content_metrics_process_id_2} ,
276
- "test.source.end" : 39 ,
276
+ "test.source.end" : 43 ,
277
277
"test.source.start" : 30
278
278
},
279
279
"name" : "junit5.test",
464
464
},
465
465
"type" : "span",
466
466
"version" : 1
467
- } ]
467
+ } ]
Original file line number Diff line number Diff line change @@ -30,7 +30,11 @@ void pluginPrintsHelloMessageOnGradle85() {
30
30
BuildResult result = GradleRunner .create ()
31
31
.withProjectDir (testProjectDir .toFile ())
32
32
.withPluginClasspath ()
33
- .withGradleVersion ("8.5" )
33
+ // Use the same Gradle version as of the actual smoke test that builds this project.
34
+ // This is to ensure Gradle is already downloaded and available in the environment.
35
+ // Gradle Test Kit can download a Gradle distribution by itself,
36
+ // but sometimes these downloads fail, making the test flaky.
37
+ .withGradleVersion (System .getenv ("GRADLE_VERSION" ))
34
38
.withArguments ("hello" , "--stacktrace" )
35
39
.forwardOutput ()
36
40
.build ();
You can’t perform that action at this time.
0 commit comments