From 4102c3ca5b52345f5ff0789bda7cf4d938b4688d Mon Sep 17 00:00:00 2001 From: Sarah Chen Date: Thu, 5 Mar 2026 10:11:23 -0500 Subject: [PATCH 1/3] Add test files --- components/json/src/test/groovy/ShouldError.groovy | 1 + .../grpc-1.5/src/test/groovy/ShouldDoNothing.groovy | 1 + dd-trace-core/src/test/groovy/ShouldWarn.groovy | 1 + .../groovy/datadog/trace/common/sampling/AllSamplerTest.groovy | 1 + 4 files changed, 4 insertions(+) create mode 100644 components/json/src/test/groovy/ShouldError.groovy create mode 100644 dd-java-agent/instrumentation/grpc-1.5/src/test/groovy/ShouldDoNothing.groovy create mode 100644 dd-trace-core/src/test/groovy/ShouldWarn.groovy diff --git a/components/json/src/test/groovy/ShouldError.groovy b/components/json/src/test/groovy/ShouldError.groovy new file mode 100644 index 00000000000..e8347dbb1b0 --- /dev/null +++ b/components/json/src/test/groovy/ShouldError.groovy @@ -0,0 +1 @@ +// Test file for enforce-groovy-migration workflow. This file should trigger an error. diff --git a/dd-java-agent/instrumentation/grpc-1.5/src/test/groovy/ShouldDoNothing.groovy b/dd-java-agent/instrumentation/grpc-1.5/src/test/groovy/ShouldDoNothing.groovy new file mode 100644 index 00000000000..72ab8c743a7 --- /dev/null +++ b/dd-java-agent/instrumentation/grpc-1.5/src/test/groovy/ShouldDoNothing.groovy @@ -0,0 +1 @@ +// Test file for enforce-groovy-migration workflow. This file should be ignored. diff --git a/dd-trace-core/src/test/groovy/ShouldWarn.groovy b/dd-trace-core/src/test/groovy/ShouldWarn.groovy new file mode 100644 index 00000000000..6d6d6b35c71 --- /dev/null +++ b/dd-trace-core/src/test/groovy/ShouldWarn.groovy @@ -0,0 +1 @@ +// Test file for enforce-groovy-migration workflow. This file should trigger a warning. diff --git a/dd-trace-core/src/test/groovy/datadog/trace/common/sampling/AllSamplerTest.groovy b/dd-trace-core/src/test/groovy/datadog/trace/common/sampling/AllSamplerTest.groovy index 4345362f265..009f118d33d 100644 --- a/dd-trace-core/src/test/groovy/datadog/trace/common/sampling/AllSamplerTest.groovy +++ b/dd-trace-core/src/test/groovy/datadog/trace/common/sampling/AllSamplerTest.groovy @@ -1,3 +1,4 @@ +// This comment should not trigger the g2j workflow. package datadog.trace.common.sampling import datadog.trace.core.DDSpan From e8d5c349652aae5ab6a8bd1f87188d094c93d18c Mon Sep 17 00:00:00 2001 From: Sarah Chen Date: Thu, 5 Mar 2026 10:45:33 -0500 Subject: [PATCH 2/3] Delete ShouldError file --- components/json/src/test/groovy/ShouldError.groovy | 1 - 1 file changed, 1 deletion(-) delete mode 100644 components/json/src/test/groovy/ShouldError.groovy diff --git a/components/json/src/test/groovy/ShouldError.groovy b/components/json/src/test/groovy/ShouldError.groovy deleted file mode 100644 index e8347dbb1b0..00000000000 --- a/components/json/src/test/groovy/ShouldError.groovy +++ /dev/null @@ -1 +0,0 @@ -// Test file for enforce-groovy-migration workflow. This file should trigger an error. From ebc30d283c995c2d4222f22d76af3ec0c2aff475 Mon Sep 17 00:00:00 2001 From: Sarah Chen Date: Thu, 5 Mar 2026 10:55:33 -0500 Subject: [PATCH 3/3] Delete ShouldWarn file --- dd-trace-core/src/test/groovy/ShouldWarn.groovy | 1 - 1 file changed, 1 deletion(-) delete mode 100644 dd-trace-core/src/test/groovy/ShouldWarn.groovy diff --git a/dd-trace-core/src/test/groovy/ShouldWarn.groovy b/dd-trace-core/src/test/groovy/ShouldWarn.groovy deleted file mode 100644 index 6d6d6b35c71..00000000000 --- a/dd-trace-core/src/test/groovy/ShouldWarn.groovy +++ /dev/null @@ -1 +0,0 @@ -// Test file for enforce-groovy-migration workflow. This file should trigger a warning.