Publish the ppl-rest-spi snapshot artifact - #5676
Open
ahkcs wants to merge 1 commit into
Open
Conversation
opensearch-project#5656 added the ppl-rest-spi module and made opensearch depend on it with `api project(':ppl-rest-spi')`, so the published unified-query-opensearch POM now carries a compile-scope dependency on org.opensearch.query:ppl-rest-spi. That artifact was never published: the publish workflow runs only publishUnifiedQueryPublicationToSnapshotsRepository, which matches publications named `unifiedQuery`, and ppl-rest-spi deliberately names its publication `restSpi` to keep the plain artifactId instead of the `unified-query-` prefix. Every external consumer of unified-query-opensearch therefore fails to resolve. The OpenSearch sandbox check is the visible casualty: Could not resolve all dependencies for configuration ':sandbox:plugins:test-ppl-frontend:runtimeClasspath' > Could not find org.opensearch.query:ppl-rest-spi:3.8.0.0-SNAPSHOT ppl-rest-spi/build.gradle already configures the publication and the Snapshots repository correctly, so run its publish task alongside the existing one. Signed-off-by: Kai Huang <ahkcs@amazon.com>
ahkcs
requested review from
LantaoJin,
RyanL1997,
Swiddis,
acarbonetto,
anirudha,
dai-chen,
joshuali925,
mengweieric,
noCharger,
penghuo,
ps48,
qianheng-aws,
songkant-aws,
vamsimanohar,
ykmr1224 and
yuancu
as code owners
August 4, 2026 21:31
Contributor
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
noCharger
approved these changes
Aug 5, 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.
Description
#5656 added the
ppl-rest-spimodule and madeopensearchdepend on it (opensearch/build.gradle:api project(':ppl-rest-spi')). The publishedunified-query-opensearchPOM therefore carries a compile-scope dependency onorg.opensearch.query:ppl-rest-spi— but that artifact was never published.The publish workflow runs only:
which matches publications named
unifiedQuery.ppl-rest-spideliberately names its publicationrestSpiso it keeps the plainppl-rest-spiartifactId rather than theunified-query-prefix (see the comment inppl-rest-spi/build.gradle), so its publish task never runs.Result: every external consumer of
unified-query-opensearch— opensearch-spark, opensearch-cli, and the OpenSearch sandbox — fails to resolve dependencies.ppl-rest-spi/build.gradlealready configures the publication and the Snapshots repository correctly, so this just runs its publish task alongside the existing one. No build-logic change.Verification
The dangling reference, in the currently published POM (
unified-query-opensearch-3.8.0.0-20260804.211640-79.pom):And the artifact is absent from every configured repository:
ppl-rest-spimetadataci.opensearch.org/ci/dbc/snapshots/mavenci.opensearch.org/maven2repo.maven.apache.org/maven2Confirmed the task produces exactly the coordinates the resolver searches for, via
:ppl-rest-spi:publishRestSpiPublicationToMavenLocal:Downstream failure this fixes
sandbox-checkinopensearch-project/OpenSearch(e.g. run 30951657273, failing in under 2 minutes at dependency resolution):Note this needs a merge to
mainto take effect, since the publish workflow only triggers on push to a release branch.Check List
--signoff.publishRestSpiPublicationToMavenLocal.