Skip to content

[AUTOCUT] Distribution Build Failed for sql-3.9.0 #5761

Closed

Description

@opensearch-ci-bot

Build Failed Error: sql failed during the distribution build for version: 3.9.0.
Please see build log at https://build.ci.opensearch.org/job/distribution-build-opensearch/12192/display/redirect.
The failed build stage will be marked as unstable ⚠️ . Please see ./build.sh step for more details.
Checkout the wiki to reproduce the failure locally.

Activity

  1. RyanL1997 commented on Sep 11, 2026

    @RyanL1997
    Collaborator

    @ryan-gh-bot can you rca this?

  2. ryan-gh-bot commented on Sep 11, 2026

    @ryan-gh-bot
    Contributor

    Working on /@triage (invoked by @RyanL1997) — posting result when done.

  3. ryan-gh-bot commented on Sep 11, 2026

    @ryan-gh-bot
    Contributor

    [RCA] snakeyaml-engine version conflict under strict distribution-build resolution; fix already merged as #5762

    Distribution build #12192 failed because the sql plugin resolved two incompatible versions of org.snakeyaml:snakeyaml-engine (3.1.1 required by :core, 3.0.1 pulled via org.opensearch:opensearch-x-content), and the root build.gradle did not force a single version. The fix (#5762, commit be527b55b) is already on main; the next distribution build should pick it up.

    Environment

    • Tenant: sql (opensearch-project/sql)
    • Refs checked:
      • upstream/main @ be527b55b (current HEAD, includes the fix from Force snakeyaml_engine version #5762)
      • upstream/main @ cbdc369c4 (parent of the fix — approximate state at the time build 12192 ran)
    • External artifacts fetched from ci.opensearch.org and api.github.com (both on the tenant's allowlist):
      • Input distribution manifest manifests/3.9.0/opensearch-3.9.0.yml (confirms sql was scheduled, deps ml-commons, geospatial, job-scheduler).
      • Built distribution manifest at ci.opensearch.org/ci/dbc/distribution-build-opensearch/3.9.0/12192/linux/x64/tar/dist/opensearch/manifest.yml (24 components, sql absent → confirms sql failed and was excluded from the artifact set).
      • PR Force snakeyaml_engine version #5762 body (via api.github.com/repos/opensearch-project/sql/pulls/5762) which quotes the exact error from build 12192.

    Suspected location

    Analysis

    The Jackson 3 migration (#5703, commit d9d15b1b3, 2026-08-24) added api "org.snakeyaml:snakeyaml-engine:${versions.snakeyaml_engine}" to core/build.gradle because tools.jackson.dataformat:jackson-dataformat-yaml requires it explicitly. ${versions.snakeyaml_engine} inherits the OpenSearch parent's pin, which is 3.1.1 on OpenSearch 3.9.0-SNAPSHOT.

    However, :opensearch-sql-plugin also brings in org.opensearch:opensearch:3.9.0-SNAPSHOT → org.opensearch:opensearch-x-content:3.9.0-SNAPSHOT, which pins snakeyaml-engine to 3.0.1 through its own transitive chain. That gives Gradle two paths:

    :opensearch-sql-plugin > :ppl > :core                                  → 3.1.1
    :opensearch-sql-plugin > org.opensearch:opensearch:3.9.0-SNAPSHOT
                            > org.opensearch:opensearch-x-content:3.9.0-SNAPSHOT → 3.0.1
    

    Under the standalone sql build these two versions are silently reconciled by Gradle's default "highest wins" strategy. Under the distribution build (opensearch-build's build.sh, which uses failOnVersionConflict() / strict conflict resolution across all bundled plugins), the two paths become a hard conflict and Gradle emits:

    Could not resolve org.snakeyaml:snakeyaml-engine:3.1.1.
       Required by:
           project ':opensearch-sql-plugin' > project :ppl > project :core
           project ':opensearch-sql-plugin' > org.opensearch:opensearch:3.9.0-SNAPSHOT:… > org.opensearch:opensearch-x-content:3.9.0-SNAPSHOT:…
        > Conflict found for module 'org.snakeyaml:snakeyaml-engine': between versions 3.1.1 and 3.0.1
    

    (quoted from the PR #5762 description, which pastes it verbatim from build 12192).

    The same pattern already exists in the root build.gradle for jackson-*, snakeyaml:2.2, commons-lang3, json-path, etc.: whenever a direct or transitive dep can pin a different version than the distribution-build's other bundled plugins, a resolutionStrategy.force is added. Adding the missing snakeyaml-engine force (build.gradle L168) pins both paths to ${versions.snakeyaml_engine} (i.e., 3.1.1) and unblocks distribution build.

    Nothing in sql itself is broken in the ordinary sense — the plugin builds fine standalone. The regression is specifically to the distribution-build path, and it was introduced when snakeyaml-engine moved from being an implicit transitive dep to an explicitly-declared one without a matching root-level force.

    Evidence

    • Grep/read (introduction of the direct dep): git show d9d15b1b3 -- core/build.gradle shows api "org.snakeyaml:snakeyaml-engine:${versions.snakeyaml_engine}" added as part of the Jackson 3 migration.
    • Grep/read (the fix): git show be527b55b shows a single one-line addition to build.gradle L168 forcing the same version across all subprojects.
    • Failure signature: PR #5762 body pastes the exact Gradle error from build 12192 with both required-by chains and the "Conflict found for module 'org.snakeyaml:snakeyaml-engine': between versions 3.1.1 and 3.0.1" line.
    • Distribution manifest cross-check: The built distribution manifest at ci.opensearch.org/ci/dbc/distribution-build-opensearch/3.9.0/12192/linux/x64/tar/dist/opensearch/manifest.yml lists 24 components — sql, alerting, anomaly-detection, and security-analytics are all absent (the latter three depend on sql, so they were skipped after sql failed).
    • Regression check:
      • git log --oneline -- core/build.gradle build.gradle between the last known-good release branch and main shows exactly the two relevant commits: d9d15b1b3 (introduces the direct dep) and be527b55b (adds the force).
      • Jenkins console for build 12192 itself is behind auth (403) and could not be retrieved; the PR Force snakeyaml_engine version #5762 body served as the primary failure-signature source.
    • Live verification: Not attempted — three independent signals ((a) code diff shape, (b) PR-quoted error message, (c) built-manifest cross-check) already agree; the fix is a one-line resolutionStrategy addition that Gradle handles trivially.

    Confidence: High
    Signals (a) source-code diff, (b) the exact Gradle conflict message from build 12192 quoted in PR #5762, and (c) the built manifest missing sql all support the single hypothesis with no contradicting evidence.

    Next steps

    • No code change required — the fix (#5762) is already merged as be527b55b. The next distribution-build-opensearch run against main should pass for sql-3.9.0, at which point opensearch-ci-bot will auto-close this issue.
    • If a distribution build is required before the next scheduled run, a maintainer can trigger distribution-build-opensearch manually against 3.9.0 / main.
    • Backport check: this issue is tagged v3.9.0 only, so no backport is needed. If snakeyaml-engine gets re-introduced as a direct dep on any earlier active branch (2.19, 2.x), the same force should be added there.
    • Unverified suggestion: to make future misalignments louder locally, consider adding configurations.all { resolutionStrategy { failOnVersionConflict() } } under a -PstrictDeps toggle in the root build.gradle, so contributors can reproduce the distribution build's strict resolution without waiting for the nightly job. This has not been tested — it will surface other transitive conflicts that are currently only visible in the distribution build.

    Automated response from @ryan-gh-bot (maintainer-triggered agent). About this agent.

  4. RyanL1997 commented on Sep 11, 2026

    @RyanL1997
    Collaborator

    so no action needed - will wait for the auto resolve.

  5. opensearch-ci-bot commented on Sep 11, 2026

    @opensearch-ci-bot
    ContributorAuthor

    Closing the issue as the distribution build for sql has passed for version: 3.9.0.
    Please see build log at https://build.ci.opensearch.org/job/distribution-build-opensearch/12193/display/redirect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions