From 7befb5e13404cf614b6cb87cc9c6a0046c5b414e Mon Sep 17 00:00:00 2001 From: Brice Dutheil Date: Thu, 22 Oct 2026 12:12:39 +0200 Subject: [PATCH] ci: compare dd-openfeature jar against build artifact --- .gitlab-ci.yml | 2 ++ .../feature-flagging/feature-flagging-api/build.gradle.kts | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9c0cc02633f..92ebce0c9d4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -583,6 +583,7 @@ validate_build: - cp workspace/dd-java-agent/build/libs/*.jar reference-artifacts/ - cp workspace/dd-trace-api/build/libs/*.jar reference-artifacts/ - cp workspace/dd-trace-ot/build/libs/*.jar reference-artifacts/ + - cp workspace/products/feature-flagging/feature-flagging-api/build/libs/*.jar reference-artifacts/ # Scheduled builds refresh dependency locks before creating the reference artifacts. # Refresh them here as well so the candidate uses the same dependency resolution. - if [ $CI_PIPELINE_SOURCE == "schedule" ] ; then ./gradlew resolveAndLockAll --write-locks $GRADLE_ARGS; fi @@ -596,6 +597,7 @@ validate_build: cp workspace/dd-java-agent/build/libs/*.jar check_reports/jar-comparison-artifacts/candidate/ cp workspace/dd-trace-api/build/libs/*.jar check_reports/jar-comparison-artifacts/candidate/ cp workspace/dd-trace-ot/build/libs/*.jar check_reports/jar-comparison-artifacts/candidate/ + cp workspace/products/feature-flagging/feature-flagging-api/build/libs/*.jar check_reports/jar-comparison-artifacts/candidate/ exit 1 fi after_script: diff --git a/products/feature-flagging/feature-flagging-api/build.gradle.kts b/products/feature-flagging/feature-flagging-api/build.gradle.kts index ea58de3cd84..cddf92714f0 100644 --- a/products/feature-flagging/feature-flagging-api/build.gradle.kts +++ b/products/feature-flagging/feature-flagging-api/build.gradle.kts @@ -82,9 +82,3 @@ tasks.withType().configureEach { tasks.withType().configureEach { javadocTool = javaToolchains.javadocToolFor(java.toolchain) } - -// The dd-openfeature provider jar is not produced by the CI `build` job, so there is no reference -// artifact to compare against. Disable the release jar comparison gate registered by publish.gradle. -tasks.named("compareToReferenceJar") { - enabled = false -}