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 #5775
[RCA] AUTOCUT is spurious — sql plugin was actually built and included in distribution build 12212
The sql plugin zip is present in every platform artifact directory for build 12212 at commit ac0fb4c04, the built distribution manifest lists it, and no build-relevant files changed in sql since the previous successful build 12193. The AUTOCUT is a false positive triggered by the way updateBuildFailureIssues.groovy classifies a component: any per-platform stage that emits Error building sql in its log marks sql as failed regardless of whether a subsequent retry succeeded. Only the Windows Docker stage in the distribution-build Jenkinsfile is wrapped in retry(3), so a transient Windows failure would produce exactly this pattern — a "failed" record plus a "passed" record for the same component in the same build.
Environment
Tenant: sql (opensearch-project/sql)
Refs checked:
upstream/main @ c75d3bbd6 (current tip, includes the commits merged after the failing build)
upstream/main @ ac0fb4c04 (commit built by distribution build 12212, per the build manifest)
opensearch-project/opensearch-build @ 7e938b903 (main; where the retry-only-on-Windows stage lives)
opensearch-project/opensearch-build-libraries @ f76db2326 (main; where the AUTOCUT trigger lives)
External artifacts fetched from ci.opensearch.org, raw.githubusercontent.com, and api.github.com (all on the tenant's allowlist): distribution build & dist manifests for builds 12212 and 12193 (linux tar), the sql plugin zips for all seven platforms of build 12212, the plugin descriptor from opensearch-sql-3.9.0.0.zip, and the AUTOCUT groovy sources.
build.ci.opensearch.org/job/distribution-build-opensearch/12212/consoleText is not readable without Jenkins auth (403), so the raw pipeline log was not fetched; the analysis is inferred from the metric-emitter code plus the artifacts on ci.opensearch.org.
Suspected location
There is no fix required in this repo. The false positive originates in the shared library and pipeline that decide when to open a Distribution Build Failed issue:
The AUTOCUT template quoted in this issue (***Build Failed Error***: **sql failed during the distribution build for version: 3.9.0.**) is produced by updateBuildFailureIssues.groovy. That library reads two lists — failedComponents and passedComponents — from the opensearch-distribution-build-results metrics index. The lists are populated by publishDistributionBuildResults.groovy, which extracts component names from log messages using (?<=\bError building\s).* (failed) and (?<=\bSuccessfully built\s).* (passed). These log messages come from run_build.py's try/except around builder.build(). A component can appear in both lists in the same distribution build if any stage retries and eventually succeeds.
In this repo, the distribution-build Jenkinsfile wraps only the Windows stage with retry(3). If Windows's first attempt to build sql failed transiently (for example the Maven-Central rate-limit I hit locally, or any other flaky network-dependent step during --refresh-dependencies), the Python builder would print Error building sql, retry with: .... The Jenkins retry(3) then re-runs the whole stage; on a subsequent success the same stage prints Successfully built sql. Both lines are captured by buildMessage(search: ...) and indexed.
updateBuildFailureIssues.groovy then sees failedComponents = [..., 'sql', ...] and unconditionally creates/edits the AUTOCUT (if (failedComponents.contains(component.name))). The close branch further requires the absence of sql from failedComponents, so the issue is not auto-closed on the follow-up successful build unless every platform's log for that build is clean.
The artifact evidence rules out an actual sql build failure in 12212. Every platform (linux/x64/tar+rpm+deb, linux/arm64/tar+rpm+deb, windows/x64/zip) has an opensearch-sql-3.9.0.0.zip of ~68 MB with a valid plugin descriptor at commit ac0fb4c04, each builds/opensearch/manifest.yml lists sql, and the assembled dist/opensearch/manifest.yml for linux/x64/tar includes sql alongside the other 28 components. The Windows plugin zip was uploaded at 2026-09-15 19:44:51 GMT, i.e. before the AUTOCUT fired at 20:09:09Z.
The sql commits merged between builds 12193 and 12212 (be129ec8c, 8d684199e, 43b1af336, f64d4689e, 0f05d59a3, ac0fb4c04) do not touch build.gradle, plugin/build.gradle, the plugin descriptor, or scripts/build.sh; they only touch integ-tests and planner/type code that runs post-build, so there is no candidate change in this repo that could have made ./gradlew assemble fail deterministically.
Evidence
Build manifest listing sql for build 12212 (linux/x64/tar), at commit ac0fb4c0478d:
Fetched from ci.opensearch.org/ci/dbc/distribution-build-opensearch/3.9.0/12212/linux/x64/tar/builds/opensearch/manifest.yml.
Assembled dist manifest lists sql with a location: pointing at the same zip URL (ci.opensearch.org/.../plugins/opensearch-sql-3.9.0.0.zip). Both 12212 and 12193 dist manifests have 29 components.
HEAD checks against .../12212/<platform>/builds/opensearch/plugins/opensearch-sql-3.9.0.0.zip return HTTP 200 with content-length: 67998063–67998426 and last-modified timestamps 19:19–19:54 GMT on 2026-09-15, for all seven platforms.
All fields satisfy BuildArtifactOpenSearchCheckPlugin.check (version and opensearch.version are in the target's compatible sets).
Regression check between last-passing and current builds:
$ git log --oneline be527b55b..ac0fb4c04
ac0fb4c04 test(integ-test): stabilize deterministic fixtures across shards (#5730)
0f05d59a3 Fix code-coverage action (#5763)
f64d4689e test(integ-test): stabilize stream-order commands across shards (#5729)
43b1af336 Enable index pruning by default (#5759)
8d684199e Type a nested field access as the field's type, not the whole row (#5764)
be129ec8c Map Calcite ROW to STRUCT in convertSqlTypeNameToExprType (#5737)
$ git log be527b55b..ac0fb4c04 -- build.gradle plugin/build.gradle plugin/src scripts/build.sh
# empty — none of those commits touched the build/publish path
The regex used by the metric emitter and its consequence for retried stages:
Live verification not performed for the plugin build itself: an attempt at ./gradlew :opensearch-sql-plugin:assemble -DskipTests=true -Dbuild.snapshot=true from this workdir was blocked by an HTTP 429 from Maven Central (Received status code 429 from server: Too Many Requests on org.opensearch.gradle:build-tools:3.9.0-SNAPSHOT), which is itself the shape of transient dependency-resolution failure that the Windows retry(3) block is designed to paper over. The rest of the analysis rests on the artifact/log-emitter evidence above.
Confidence: Medium
Two independent signals — the S3 artifacts for build 12212 (sql present in every platform's build manifest and in the dist manifest) and the code-level explanation of how the AUTOCUT emitter can double-count a retried stage — support the "false positive" hypothesis. Full escalation would require reading the Jenkins console for build 12212 to confirm which platform emitted Error building sql; that log is behind auth (403). Live reproduction was blocked by a Maven Central 429.
Next steps
Close [AUTOCUT] Distribution Build Failed for sql-3.9.0 #5775 manually. The next distribution build in which sql produces no Error building sql on any stage will auto-close it via updateBuildFailureIssues.groovy, but that will only happen if none of the (Windows-retried) stages hits a transient failure again.
No code change is needed in opensearch-project/sql. Do not merge a "fix" here for this AUTOCUT.
Unverified suggestion (belongs upstream in opensearch-project/opensearch-build-libraries): teach updateBuildFailureIssues.groovy to treat passedComponents.contains(name) as authoritative on retried stages — either by exempting components from the create branch when they also appear in passedComponents, or by having publishDistributionBuildResults.groovy de-duplicate per (component, platform) and only record the final status of each retried stage. Filing this as an opensearch-build issue would prevent future spurious sql AUTOCUTs.
Unverified suggestion: if these false positives recur, the maintainer can request a /reproduce of the actual plugin install (bin/opensearch-plugin install file://.../opensearch-sql-3.9.0.0.zip on a fresh min distribution) — that step is what would actually surface any latent problem with the shipped zip, and it is independent of the metric-emitter path.
Activity
ahkcs commentedon Sep 15, 2026
@ryan-gh-bot rca
ryan-gh-bot commentedon Sep 15, 2026
Working on
/@triage(invoked by @ahkcs) — posting result when done.ryan-gh-bot commentedon Sep 15, 2026
[RCA] AUTOCUT is spurious — sql plugin was actually built and included in distribution build 12212
The
sqlplugin zip is present in every platform artifact directory for build 12212 at commitac0fb4c04, the built distribution manifest lists it, and no build-relevant files changed insqlsince the previous successful build 12193. The AUTOCUT is a false positive triggered by the wayupdateBuildFailureIssues.groovyclassifies a component: any per-platform stage that emitsError building sqlin its log markssqlas failed regardless of whether a subsequent retry succeeded. Only the Windows Docker stage in the distribution-build Jenkinsfile is wrapped inretry(3), so a transient Windows failure would produce exactly this pattern — a "failed" record plus a "passed" record for the same component in the same build.Environment
sql(opensearch-project/sql)upstream/main @ c75d3bbd6(current tip, includes the commits merged after the failing build)upstream/main @ ac0fb4c04(commit built by distribution build 12212, per the build manifest)upstream/main @ be527b55b(last known-good sql commit — closed #5761 via build 12193)opensearch-project/opensearch-build @ 7e938b903(main; where the retry-only-on-Windows stage lives)opensearch-project/opensearch-build-libraries @ f76db2326(main; where the AUTOCUT trigger lives)ci.opensearch.org,raw.githubusercontent.com, andapi.github.com(all on the tenant's allowlist): distribution build & dist manifests for builds 12212 and 12193 (linux tar), thesqlplugin zips for all seven platforms of build 12212, the plugin descriptor fromopensearch-sql-3.9.0.0.zip, and the AUTOCUT groovy sources.build.ci.opensearch.org/job/distribution-build-opensearch/12212/consoleTextis not readable without Jenkins auth (403), so the raw pipeline log was not fetched; the analysis is inferred from the metric-emitter code plus the artifacts onci.opensearch.org.Suspected location
There is no fix required in this repo. The false positive originates in the shared library and pipeline that decide when to open a
Distribution Build Failedissue:opensearch-project/opensearch-build-librariesvars/updateBuildFailureIssues.groovyL59-L72 — the create/edit condition isfailedComponents.contains(component.name)alone; a component that also appears inpassedComponentsis not exempted.opensearch-project/opensearch-build-librariesvars/updateBuildFailureIssues.groovyL74-L82 — the close condition additionally requires!failedComponents.contains(component.name), so a single failed record blocks auto-close even when every other platform succeeded.opensearch-project/opensearch-build-librariesvars/publishDistributionBuildResults.groovyL49-L50 — the failed/passed lists are derived from log regexes overError building XandSuccessfully built X, and both counterparts are indexed intoopensearch-distribution-build-resultswhen a stage prints both (which is exactly what a retried stage does).opensearch-project/opensearch-buildjenkins/opensearch/distribution-build.jenkinsfileL900-L928 —retry(3)is only present on the Windows/x64/zip stage, so this pattern is uniquely reachable there.sqlplugin's build/publish configuration was last touched by PR Force snakeyaml_engine version #5762; the current declaration is atplugin/build.gradleL55-L61 and matches the descriptor inside the shipped zip.Analysis
***Build Failed Error***: **sql failed during the distribution build for version: 3.9.0.**) is produced byupdateBuildFailureIssues.groovy. That library reads two lists —failedComponentsandpassedComponents— from theopensearch-distribution-build-resultsmetrics index. The lists are populated bypublishDistributionBuildResults.groovy, which extracts component names from log messages using(?<=\bError building\s).*(failed) and(?<=\bSuccessfully built\s).*(passed). These log messages come fromrun_build.py's try/except aroundbuilder.build(). A component can appear in both lists in the same distribution build if any stage retries and eventually succeeds.retry(3). If Windows's first attempt to buildsqlfailed transiently (for example the Maven-Central rate-limit I hit locally, or any other flaky network-dependent step during--refresh-dependencies), the Python builder would printError building sql, retry with: .... The Jenkinsretry(3)then re-runs the whole stage; on a subsequent success the same stage printsSuccessfully built sql. Both lines are captured bybuildMessage(search: ...)and indexed.updateBuildFailureIssues.groovythen seesfailedComponents = [..., 'sql', ...]and unconditionally creates/edits the AUTOCUT (if (failedComponents.contains(component.name))). The close branch further requires the absence ofsqlfromfailedComponents, so the issue is not auto-closed on the follow-up successful build unless every platform's log for that build is clean.sqlbuild failure in 12212. Every platform (linux/x64/tar+rpm+deb, linux/arm64/tar+rpm+deb, windows/x64/zip) has anopensearch-sql-3.9.0.0.zipof ~68 MB with a valid plugin descriptor at commitac0fb4c04, eachbuilds/opensearch/manifest.ymllistssql, and the assembleddist/opensearch/manifest.ymlforlinux/x64/tarincludessqlalongside the other 28 components. The Windows plugin zip was uploaded at2026-09-15 19:44:51 GMT, i.e. before the AUTOCUT fired at20:09:09Z.sqlcommits merged between builds 12193 and 12212 (be129ec8c,8d684199e,43b1af336,f64d4689e,0f05d59a3,ac0fb4c04) do not touchbuild.gradle,plugin/build.gradle, the plugin descriptor, orscripts/build.sh; they only touch integ-tests and planner/type code that runs post-build, so there is no candidate change in this repo that could have made./gradlew assemblefail deterministically.Evidence
sqlfor build 12212 (linux/x64/tar), at commitac0fb4c0478d:ci.opensearch.org/ci/dbc/distribution-build-opensearch/3.9.0/12212/linux/x64/tar/builds/opensearch/manifest.yml.sqlwith alocation:pointing at the same zip URL (ci.opensearch.org/.../plugins/opensearch-sql-3.9.0.0.zip). Both 12212 and 12193 dist manifests have 29 components..../12212/<platform>/builds/opensearch/plugins/opensearch-sql-3.9.0.0.zipreturn HTTP 200 withcontent-length: 67998063–67998426andlast-modifiedtimestamps19:19–19:54 GMTon 2026-09-15, for all seven platforms.BuildArtifactOpenSearchCheckPlugin.check(version andopensearch.versionare in the target's compatible sets)../gradlew :opensearch-sql-plugin:assemble -DskipTests=true -Dbuild.snapshot=truefrom this workdir was blocked by an HTTP 429 from Maven Central (Received status code 429 from server: Too Many Requestsonorg.opensearch.gradle:build-tools:3.9.0-SNAPSHOT), which is itself the shape of transient dependency-resolution failure that the Windowsretry(3)block is designed to paper over. The rest of the analysis rests on the artifact/log-emitter evidence above.Confidence: Medium
Two independent signals — the S3 artifacts for build 12212 (sql present in every platform's build manifest and in the dist manifest) and the code-level explanation of how the AUTOCUT emitter can double-count a retried stage — support the "false positive" hypothesis. Full escalation would require reading the Jenkins console for build 12212 to confirm which platform emitted
Error building sql; that log is behind auth (403). Live reproduction was blocked by a Maven Central 429.Next steps
sqlproduces noError building sqlon any stage will auto-close it viaupdateBuildFailureIssues.groovy, but that will only happen if none of the (Windows-retried) stages hits a transient failure again.opensearch-project/sql. Do not merge a "fix" here for this AUTOCUT.opensearch-project/opensearch-build-libraries): teachupdateBuildFailureIssues.groovyto treatpassedComponents.contains(name)as authoritative on retried stages — either by exempting components from the create branch when they also appear inpassedComponents, or by havingpublishDistributionBuildResults.groovyde-duplicate per(component, platform)and only record the final status of each retried stage. Filing this as an opensearch-build issue would prevent future spurioussqlAUTOCUTs./reproduceof the actual plugin install (bin/opensearch-plugin install file://.../opensearch-sql-3.9.0.0.zipon a fresh min distribution) — that step is what would actually surface any latent problem with the shipped zip, and it is independent of the metric-emitter path.Automated response from @ryan-gh-bot (maintainer-triggered agent). About this agent.