ci: wire lib/sdk/server-ai into release and publish workflows - #201
Merged
Conversation
tanderson-ld
approved these changes
Aug 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Wires
lib/sdk/server-aiinto the repo's release and publish plumbing. Release-please already tracks the module(
release-please-config.json+.release-please-manifest.jsonat0.2.0) and has cutlaunchdarkly-java-server-sdk-ai-0.1.0and
-0.2.0tags and GitHub Releases — but nothing was listening for the baton afterward, so.github/actions/full-release(Publish → Publish Docs) has never run for the module.
Consequences today:
com.launchdarkly:launchdarkly-java-server-sdk-aihas zero versions on Maven Central, despite the module READMEadvertising the coordinate as published.
https://launchdarkly.github.io/java-core/lib/sdk/server-ai/returns 404;gh-pagescontainslib/sdk/server,lib/shared/*,lib/java-server-sdk-otel, andlib/java-server-sdk-redis-storebut noserver-ai.workflow_dispatchchoice lists.This is config-only. No build or source changes are needed:
lib/sdk/server-ai/build.gradlealready appliesmaven-publish,signing, andnexusPublishing, setsarchivesBaseName = 'launchdarkly-java-server-sdk-ai', declaresfull POM metadata, and produces
withJavadocJar()/withSourcesJar()(both excludingcom.launchdarkly.sdk.server.ai.internal).What changed
.github/workflows/release-please.yml:package-server-sdk-ai-releasedfromsteps.release.outputs['lib/sdk/server-ai--release_created'].release-server-sdk-aijob, identical in shape to the existing per-module release jobs, gated on that output andcalling
./.github/actions/full-releasewithworkspace_path: lib/sdk/server-ai,dry_run: false,prerelease: false..github/workflows/manual-publish.ymland.github/workflows/manual-publish-docs.yml:lib/sdk/server-aito theworkspace_pathchoice lists so the module can be published — and, importantly, so itsJavadoc can be pushed to
gh-pages— on demand.Follow-up (not in this PR)
workspace_path: lib/sdk/server-ai,dry_run: false.publish-pageswrites tooutput_path: lib/sdk/server-ai, andgh-pagesdocs are overwritten in placerather than versioned, so this is safe to run from
mainand makes the GitHub Pages URL work without publishing a jar.0.2.0.maincarries unreleased changes ontop of the
0.2.0tag — including a breaking one (fix!: Make AgentGraph traversal topological #199,fix!: Make AgentGraph traversal topological) — whilegradle.propertiesstill readsversion=0.2.0. Merging this PR and letting the open release-please PR cut the nextversion gets the artifact published from a matching tree.
https://launchdarkly.github.io/java-core/lib/sdk/server-ai/(Javadoc, the analogue of the .NETlaunchdarkly.github.io/dotnet-core/pkgs/sdk/server-ai/page) andhttps://central.sonatype.com/artifact/com.launchdarkly/launchdarkly-java-server-sdk-ai(package page, the analogue ofthe NuGet listing).
Verification
release-pleaseworkflow parses and the new job appears in the run graph (skipped when no server-ai release is cut).lib/sdk/server-aiand, after running,gh-pagescontainslib/sdk/server-ai/index.htmland the Pages URL renders theLDAIClientJavadoc.https://repo1.maven.org/maven2/com/launchdarkly/launchdarkly-java-server-sdk-ai/maven-metadata.xmllists the version (allow ~30 min for Central sync) and a scratch Gradle project resolves the coordinate.
com.launchdarkly.sdk.server.ai.internal— the build already enforces this, butit's worth confirming on the first artifacts ever produced for real.
Note
Cursor Bugbot is generating a summary for commit eab1c4d. Configure here.