You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[AUTOCUT] Distribution Build Failed for sql-3.9.0 #5761
[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.
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
build.gradle L155-L172 — the root allprojects { configurations.all { resolutionStrategy … } } block. Before Force snakeyaml_engine version #5762 this block forced org.yaml:snakeyaml:2.2 but not org.snakeyaml:snakeyaml-engine. The fix inserts resolutionStrategy.force "org.snakeyaml:snakeyaml-engine:${versions.snakeyaml_engine}" at L168.
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:
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.
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.
Activity
RyanL1997 commentedon Sep 11, 2026
@ryan-gh-bot can you rca this?
ryan-gh-bot commentedon Sep 11, 2026
Working on
/@triage(invoked by @RyanL1997) — posting result when done.ryan-gh-bot commentedon Sep 11, 2026
[RCA]
snakeyaml-engineversion conflict under strict distribution-build resolution; fix already merged as #5762Distribution build #12192 failed because the
sqlplugin resolved two incompatible versions oforg.snakeyaml:snakeyaml-engine(3.1.1 required by:core, 3.0.1 pulled viaorg.opensearch:opensearch-x-content), and the rootbuild.gradledid not force a single version. The fix (#5762, commitbe527b55b) is already onmain; the next distribution build should pick it up.Environment
sql(opensearch-project/sql)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)ci.opensearch.organdapi.github.com(both on the tenant's allowlist):manifests/3.9.0/opensearch-3.9.0.yml(confirmssqlwas scheduled, depsml-commons,geospatial,job-scheduler).ci.opensearch.org/ci/dbc/distribution-build-opensearch/3.9.0/12192/linux/x64/tar/dist/opensearch/manifest.yml(24 components,sqlabsent → confirmssqlfailed and was excluded from the artifact set).api.github.com/repos/opensearch-project/sql/pulls/5762) which quotes the exact error from build 12192.Suspected location
build.gradleL155-L172 — the rootallprojects { configurations.all { resolutionStrategy … } }block. Before Force snakeyaml_engine version #5762 this block forcedorg.yaml:snakeyaml:2.2but notorg.snakeyaml:snakeyaml-engine. The fix insertsresolutionStrategy.force "org.snakeyaml:snakeyaml-engine:${versions.snakeyaml_engine}"at L168.core/build.gradleL60 — wheresnakeyaml-enginefirst became a direct declared dependency, introduced by the Jackson 3 migration (Migrate to Jackson 3.x APIs #5703).Analysis
The Jackson 3 migration (#5703, commit
d9d15b1b3, 2026-08-24) addedapi "org.snakeyaml:snakeyaml-engine:${versions.snakeyaml_engine}"tocore/build.gradlebecausetools.jackson.dataformat:jackson-dataformat-yamlrequires it explicitly.${versions.snakeyaml_engine}inherits the OpenSearch parent's pin, which is3.1.1on OpenSearch3.9.0-SNAPSHOT.However,
:opensearch-sql-pluginalso brings inorg.opensearch:opensearch:3.9.0-SNAPSHOT→org.opensearch:opensearch-x-content:3.9.0-SNAPSHOT, which pinssnakeyaml-engineto3.0.1through its own transitive chain. That gives Gradle two paths:Under the standalone
sqlbuild these two versions are silently reconciled by Gradle's default "highest wins" strategy. Under the distribution build (opensearch-build'sbuild.sh, which usesfailOnVersionConflict()/ strict conflict resolution across all bundled plugins), the two paths become a hard conflict and Gradle emits:(quoted from the PR #5762 description, which pastes it verbatim from build 12192).
The same pattern already exists in the root
build.gradleforjackson-*,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, aresolutionStrategy.forceis added. Adding the missingsnakeyaml-engineforce (build.gradleL168) pins both paths to${versions.snakeyaml_engine}(i.e.,3.1.1) and unblocks distribution build.Nothing in
sqlitself is broken in the ordinary sense — the plugin builds fine standalone. The regression is specifically to the distribution-build path, and it was introduced whensnakeyaml-enginemoved from being an implicit transitive dep to an explicitly-declared one without a matching root-level force.Evidence
git show d9d15b1b3 -- core/build.gradleshowsapi "org.snakeyaml:snakeyaml-engine:${versions.snakeyaml_engine}"added as part of the Jackson 3 migration.git show be527b55bshows a single one-line addition tobuild.gradleL168 forcing the same version across all subprojects.ci.opensearch.org/ci/dbc/distribution-build-opensearch/3.9.0/12192/linux/x64/tar/dist/opensearch/manifest.ymllists 24 components —sql,alerting,anomaly-detection, andsecurity-analyticsare all absent (the latter three depend onsql, so they were skipped aftersqlfailed).git log --oneline -- core/build.gradle build.gradlebetween the last known-good release branch andmainshows exactly the two relevant commits:d9d15b1b3(introduces the direct dep) andbe527b55b(adds the force).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
sqlall support the single hypothesis with no contradicting evidence.Next steps
be527b55b. The nextdistribution-build-opensearchrun againstmainshould pass forsql-3.9.0, at which pointopensearch-ci-botwill auto-close this issue.distribution-build-opensearchmanually against3.9.0/main.v3.9.0only, so no backport is needed. Ifsnakeyaml-enginegets re-introduced as a direct dep on any earlier active branch (2.19,2.x), the same force should be added there.configurations.all { resolutionStrategy { failOnVersionConflict() } }under a-PstrictDepstoggle in the rootbuild.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.
RyanL1997 commentedon Sep 11, 2026
so no action needed - will wait for the auto resolve.
opensearch-ci-bot commentedon Sep 11, 2026
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