Skip to content

Load the dd-openfeature SDK of the same build for java dev - #8196

Closed
cbeauchesne wants to merge 2 commits into
mainfrom
cbeauchesne/java-dev-dd-openfeature
Closed

cbeauchesne wants to merge 2 commits into
mainfrom
cbeauchesne/java-dev-dd-openfeature

Conversation

@cbeauchesne

@cbeauchesne cbeauchesne commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

Since dd-trace-java#12844 (merged 2026-10-26), the Java dev parametric FFE tests fail with PROVIDER_NOT_READY (48 tests in parametric (2)), e.g. on #8186:

  • for java dev, load-binary.sh only loads the dd-java-agent.jar snapshot, so weblogs and the parametric app use the latest released dd-openfeature from Maven ([1.56.0,))
  • #12844 moved the agent to the standalone SDK, and a dev agent doesn't work with a released SDK (see its description). dd-trace-java#12976 did not fix it for system-tests
  • dd-trace-java's own system-tests runs build a matching SDK jar, and are green with the same agent build

Last green run: tracer 90f57b50ca; first red one: e7584c7bca, which includes #12844.

Changes

For java dev, load-binary.sh also downloads dd-openfeature.jar from the same S3 folder as dd-java-agent.jar. dd-trace-java uploads both in the same CI job, so they come from the same build. The weblog and parametric install scripts already pick up a dd-openfeature*.jar from binaries/.

  • Not for java_lambda: its runtime image has no Maven to install the jar, and its weblog doesn't use the SDK
  • The download is retried on transient errors (--retry 3), and any failure fails load-binary.sh: falling back to the released SDK would hide the problem behind misleading FFE failures. A dd-trace-java branch whose last pipeline predates #12844 (which added the upload) has no dd-openfeature.jar: a new pipeline on it publishes one
  • spring-boot-3-native ignores the jar: its GraalVM image has no find, so install_ddtrace.sh sees no custom jar and keeps the released SDK, which this weblog doesn't use anyway

Tested locally: java on master loads both jars (dd-openfeature 1.69.0-SNAPSHOT), a missing SDK jar fails the script (exit 22), and java_lambda only loads the agent.

🤖 Generated with Claude Code

Java dev only loaded the dd-java-agent snapshot, so weblogs and the parametric
app used the latest released dd-openfeature from Maven. Since dd-trace-java#12844,
a dev agent does not work with a released SDK, and the parametric FFE tests fail
with PROVIDER_NOT_READY. dd-trace-java publishes dd-openfeature.jar next to
dd-java-agent.jar: load it too, and keep the released one if it's missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cbeauchesne
cbeauchesne requested a review from a team as a code owner October 27, 2026 11:13
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T11:18:09.707773Z 4361c32 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

CODEOWNERS have been resolved as:

utils/scripts/load-binary.sh                                            @DataDog/system-tests-core

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4361c32037

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread utils/scripts/load-binary.sh Outdated
Comment thread utils/scripts/load-binary.sh
Comment thread utils/scripts/load-binary.sh Outdated
Comment thread utils/scripts/load-binary.sh Outdated
@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Pipelines

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 4db0524 | Docs | Give us feedback!

Falling back to the released SDK hid every download failure, not only a missing
jar, and the released SDK does not work with a dev agent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cbeauchesne

Copy link
Copy Markdown
Collaborator Author

replaced by #8188

@cbeauchesne
cbeauchesne deleted the cbeauchesne/java-dev-dd-openfeature branch October 27, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant