@@ -26,6 +26,7 @@ public class ExecutionSettings {
2626 false ,
2727 false ,
2828 false ,
29+ false ,
2930 EarlyFlakeDetectionSettings .DEFAULT ,
3031 TestManagementSettings .DEFAULT ,
3132 null ,
@@ -43,6 +44,7 @@ public class ExecutionSettings {
4344 private final boolean testSkippingEnabled ;
4445 private final boolean flakyTestRetriesEnabled ;
4546 private final boolean impactedTestsDetectionEnabled ;
47+ private final boolean codeCoverageReportUploadEnabled ;
4648 @ Nonnull private final EarlyFlakeDetectionSettings earlyFlakeDetectionSettings ;
4749 @ Nonnull private final TestManagementSettings testManagementSettings ;
4850 @ Nullable private final String itrCorrelationId ;
@@ -58,6 +60,7 @@ public ExecutionSettings(
5860 boolean testSkippingEnabled ,
5961 boolean flakyTestRetriesEnabled ,
6062 boolean impactedTestsDetectionEnabled ,
63+ boolean codeCoverageReportUploadEnabled ,
6164 @ Nonnull EarlyFlakeDetectionSettings earlyFlakeDetectionSettings ,
6265 @ Nonnull TestManagementSettings testManagementSettings ,
6366 @ Nullable String itrCorrelationId ,
@@ -74,6 +77,7 @@ public ExecutionSettings(
7477 this .testSkippingEnabled = testSkippingEnabled ;
7578 this .flakyTestRetriesEnabled = flakyTestRetriesEnabled ;
7679 this .impactedTestsDetectionEnabled = impactedTestsDetectionEnabled ;
80+ this .codeCoverageReportUploadEnabled = codeCoverageReportUploadEnabled ;
7781 this .earlyFlakeDetectionSettings = earlyFlakeDetectionSettings ;
7882 this .testManagementSettings = testManagementSettings ;
7983 this .itrCorrelationId = itrCorrelationId ;
@@ -110,6 +114,7 @@ private ExecutionSettings(
110114 boolean testSkippingEnabled ,
111115 boolean flakyTestRetriesEnabled ,
112116 boolean impactedTestsDetectionEnabled ,
117+ boolean codeCoverageReportUploadEnabled ,
113118 @ Nonnull EarlyFlakeDetectionSettings earlyFlakeDetectionSettings ,
114119 @ Nonnull TestManagementSettings testManagementSettings ,
115120 @ Nullable String itrCorrelationId ,
@@ -123,6 +128,7 @@ private ExecutionSettings(
123128 this .testSkippingEnabled = testSkippingEnabled ;
124129 this .flakyTestRetriesEnabled = flakyTestRetriesEnabled ;
125130 this .impactedTestsDetectionEnabled = impactedTestsDetectionEnabled ;
131+ this .codeCoverageReportUploadEnabled = codeCoverageReportUploadEnabled ;
126132 this .earlyFlakeDetectionSettings = earlyFlakeDetectionSettings ;
127133 this .testManagementSettings = testManagementSettings ;
128134 this .itrCorrelationId = itrCorrelationId ;
@@ -157,6 +163,10 @@ public boolean isImpactedTestsDetectionEnabled() {
157163 return impactedTestsDetectionEnabled ;
158164 }
159165
166+ public boolean isCodeCoverageReportUploadEnabled () {
167+ return codeCoverageReportUploadEnabled ;
168+ }
169+
160170 @ Nonnull
161171 public EarlyFlakeDetectionSettings getEarlyFlakeDetectionSettings () {
162172 return earlyFlakeDetectionSettings ;
@@ -243,6 +253,7 @@ public boolean equals(Object o) {
243253 && testSkippingEnabled == that .testSkippingEnabled
244254 && flakyTestRetriesEnabled == that .flakyTestRetriesEnabled
245255 && impactedTestsDetectionEnabled == that .impactedTestsDetectionEnabled
256+ && codeCoverageReportUploadEnabled == that .codeCoverageReportUploadEnabled
246257 && Objects .equals (earlyFlakeDetectionSettings , that .earlyFlakeDetectionSettings )
247258 && Objects .equals (testManagementSettings , that .testManagementSettings )
248259 && Objects .equals (itrCorrelationId , that .itrCorrelationId )
@@ -261,6 +272,7 @@ public int hashCode() {
261272 testSkippingEnabled ,
262273 flakyTestRetriesEnabled ,
263274 impactedTestsDetectionEnabled ,
275+ codeCoverageReportUploadEnabled ,
264276 earlyFlakeDetectionSettings ,
265277 testManagementSettings ,
266278 itrCorrelationId ,
@@ -278,6 +290,7 @@ public static class Serializer {
278290 private static final int TEST_SKIPPING_ENABLED_FLAG = 4 ;
279291 private static final int FLAKY_TEST_RETRIES_ENABLED_FLAG = 8 ;
280292 private static final int IMPACTED_TESTS_DETECTION_ENABLED_FLAG = 16 ;
293+ private static final int CODE_COVERAGE_REPORT_UPLOAD_ENABLED_FLAG = 32 ;
281294
282295 public static ByteBuffer serialize (ExecutionSettings settings ) {
283296 datadog .trace .civisibility .ipc .serialization .Serializer s =
@@ -291,6 +304,9 @@ public static ByteBuffer serialize(ExecutionSettings settings) {
291304 | (settings .flakyTestRetriesEnabled ? FLAKY_TEST_RETRIES_ENABLED_FLAG : 0 )
292305 | (settings .impactedTestsDetectionEnabled
293306 ? IMPACTED_TESTS_DETECTION_ENABLED_FLAG
307+ : 0 )
308+ | (settings .codeCoverageReportUploadEnabled
309+ ? CODE_COVERAGE_REPORT_UPLOAD_ENABLED_FLAG
294310 : 0 ));
295311 s .write (flags );
296312
@@ -330,6 +346,8 @@ public static ExecutionSettings deserialize(ByteBuffer buffer) {
330346 boolean testSkippingEnabled = (flags & TEST_SKIPPING_ENABLED_FLAG ) != 0 ;
331347 boolean flakyTestRetriesEnabled = (flags & FLAKY_TEST_RETRIES_ENABLED_FLAG ) != 0 ;
332348 boolean impactedTestsDetectionEnabled = (flags & IMPACTED_TESTS_DETECTION_ENABLED_FLAG ) != 0 ;
349+ boolean codeCoverageReportUploadEnabled =
350+ (flags & CODE_COVERAGE_REPORT_UPLOAD_ENABLED_FLAG ) != 0 ;
333351
334352 EarlyFlakeDetectionSettings earlyFlakeDetectionSettings =
335353 EarlyFlakeDetectionSettings .Serializer .deserialize (buffer );
@@ -372,6 +390,7 @@ public static ExecutionSettings deserialize(ByteBuffer buffer) {
372390 testSkippingEnabled ,
373391 flakyTestRetriesEnabled ,
374392 impactedTestsDetectionEnabled ,
393+ codeCoverageReportUploadEnabled ,
375394 earlyFlakeDetectionSettings ,
376395 testManagementSettings ,
377396 itrCorrelationId ,
0 commit comments