From 9a6fa747eb23efc0cc6346fb78e4b6485ef2dff7 Mon Sep 17 00:00:00 2001 From: "helen.han" Date: Mon, 26 Oct 2026 16:55:41 +0000 Subject: [PATCH] Download the matching OpenFeature provider for Java development tests Load dd-openfeature.jar from the selected agent build branch so provider initialization does not mix released gateway APIs with the development tracer. Environment: Datadog workspace Co-Authored-By: Codex GPT-6 --- utils/scripts/load-binary.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/scripts/load-binary.sh b/utils/scripts/load-binary.sh index 378da8b92ea..eb5f0eb6c61 100755 --- a/utils/scripts/load-binary.sh +++ b/utils/scripts/load-binary.sh @@ -206,6 +206,11 @@ elif [ "$TARGET" = "java" ] || [ "$TARGET" = "java_lambda" ]; then curl --fail --location --silent --show-error --output dd-java-agent.jar "https://s3.us-east-1.amazonaws.com/dd-trace-java-builds/${LIBRARY_TARGET_BRANCH}/dd-java-agent.jar" + if [ "$TARGET" = "java" ]; then + # The development agent and OpenFeature provider must use compatible APIs. + curl --fail --location --silent --show-error --output dd-openfeature.jar "https://s3.us-east-1.amazonaws.com/dd-trace-java-builds/${LIBRARY_TARGET_BRANCH}/dd-openfeature.jar" + fi + elif [ "$TARGET" = "dotnet" ]; then assert_version_is_dev