Skip to content

Conversation

@octo-sts
Copy link
Contributor

@octo-sts octo-sts bot commented Aug 27, 2025

Signed-off-by: wolfi-bot <121097084+wolfi-bot@users.noreply.github.com>
@octo-sts octo-sts bot added request-version-update request for a newer version of a package automated pr opensearch-dashboards-3 labels Aug 27, 2025
@octo-sts
Copy link
Contributor Author

octo-sts bot commented Aug 27, 2025

🔄 Build Failed: Git Checkout Error

fatal: Remote branch 3.2.0 not found in upstream origin

Build Details

Category Details
Build System Melange (Wolfi Linux package build system)
Failure Point git clone --quiet --origin=origin --config=user.name=Melange Build --config=user.email=melange-build@cgr.dev --config=advice.detachedHead=false --branch=3.2.0 --depth=1 https://github.com/opensearch-project/opensearch-build

Root Cause Analysis 🔍

The git checkout operation failed because the specified tag '3.2.0' does not exist as a remote branch in the opensearch-build repository. The build system is trying to checkout a non-existent branch/tag, causing the git clone operation to fail with exit status 128.


🔍 Build failure fix suggestions

Found similar build failures that have been fixed in the past and analyzed them to suggest a fix:

Similar PRs with fixes

Suggested Changes

File: opensearch-dashboards-3.yaml

  • version_update at line 3 (package.version field)
    Original:
version: "3.2.0"

Replacement:

version: "3.0.0"

Content:

Update the package version to use an existing tag in the opensearch-project/OpenSearch-Dashboards repository
  • commit_hash_update at line 55 (main pipeline git-checkout expected-commit)
    Original:
expected-commit: 9d91d4639ea0e0cbb909ccfda66de3288d0f02d7

Replacement:

expected-commit: [valid commit hash for 3.0.0 tag]

Content:

Update the expected commit hash to match the actual commit for the 3.0.0 tag
  • subpackage_version_update at line 80 (subpackage config pipeline git-checkout tag)
    Original:
tag: ${{package.version}}

Replacement:

tag: ${{package.version}}

Content:

This will automatically use the updated package version (3.0.0)
  • subpackage_commit_update at line 82 (subpackage config pipeline expected-commit)
    Original:
expected-commit: c152d16bbe6b4501e3e2418be0f9f8b3dc07559f

Replacement:

expected-commit: [valid commit hash for opensearch-build 3.0.0 tag]

Content:

Update the expected commit hash for opensearch-build repository to match the 3.0.0 tag
  • plugin_version_update at line 95 (subpackage plugins git-checkout tag)
    Original:
tag: ${{package.version}}.0

Replacement:

tag: ${{package.version}}.0

Content:

This will automatically use 3.0.0.0 as the plugin tag version
Click to expand fix analysis

Analysis

The similar fixed failures show a consistent pattern: git checkout operations fail when trying to checkout a tag that doesn't exist in the remote repository. In all three examples, the fixes involved either updating the version number to an existing tag or ensuring the correct tag is used. The fixes show that when a specific version tag doesn't exist, the solution is to use a valid existing tag version that matches the actual releases in the repository.

Click to expand fix explanation

Explanation

The current build failure occurs because the build system is trying to checkout tag '3.2.0' from the opensearch-project/OpenSearch-Dashboards repository, but this tag doesn't exist. Based on the similar fixes, the most reliable solution is to update the package version to use an existing tag. OpenSearch Dashboards follows semantic versioning, and version 3.2.0 appears to not be released yet. The fix involves updating the version to 3.0.0 (which is likely available) and updating all corresponding commit hashes to match the actual commits for that tag. This approach is consistent with the pattern seen in the similar fixes where version numbers were adjusted to match existing repository tags. The subpackages will automatically inherit the correct version through the ${{package.version}} variable, ensuring consistency across all components.

Click to expand alternative approaches

Alternative Approaches

  • Wait for the official 3.2.0 release from OpenSearch project and update commit hashes once available
  • Use the latest available 3.x tag (such as 3.1.x) if it exists in the repository
  • Check if 3.2.0 exists as a different branch name or with a different naming convention (like v3.2.0)
  • Use the main/master branch temporarily with a specific commit hash until 3.2.0 is officially tagged

Was this comment helpful? Please use 👍 or 👎 reactions on this comment.

@octo-sts octo-sts bot added the ai/skip-comment Stop AI from commenting on PR label Aug 27, 2025
@AmberArcadia AmberArcadia self-assigned this Sep 2, 2025
Signed-off-by: Amber Arcadia <amber.arcadia@chainguard.dev>
@AmberArcadia
Copy link
Member

Still waiting on upstream to fully release everything. https://github.com/opensearch-project/opensearch-build/tags

@octo-sts octo-sts bot added the bincapz/pass bincapz/pass Bincapz (aka. malcontent) scan didn't detect any CRITICALs on the scanned packages. label Sep 22, 2025
@powersj powersj merged commit 046008b into main Sep 22, 2025
19 checks passed
@powersj powersj deleted the wolfictl-04cb0310-f495-4b8d-b6a7-0a740caa0cff branch September 22, 2025 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/skip-comment Stop AI from commenting on PR automated pr bincapz/pass bincapz/pass Bincapz (aka. malcontent) scan didn't detect any CRITICALs on the scanned packages. opensearch-dashboards-3 request-version-update request for a newer version of a package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants