Skip to content

Conversation

@octo-sts
Copy link
Contributor

@octo-sts octo-sts bot commented Nov 6, 2025

@octo-sts octo-sts bot added request-version-update request for a newer version of a package automated pr drupal-11 labels Nov 6, 2025
@octo-sts
Copy link
Contributor Author

octo-sts bot commented Nov 6, 2025

🔄 Build Failed: Git Checkout Error

Expected commit 4c3161830109471259d87d9e9e869c98e502e78b for 11.2.6, found 0b1524c1a020397a165fd7f0bb53443173c81002

Build Details

Category Details
Build System melange
Failure Point git checkout step for drupal/recommended-project.git repository

Root Cause Analysis 🔍

Git checkout validation failed because the actual commit hash (0b1524c1a020397a165fd7f0bb53443173c81002) for tag 11.2.6 in the drupal/recommended-project repository does not match the expected commit hash (4c3161830109471259d87d9e9e869c98e502e78b). This indicates a mismatch between the expected and actual state of the repository at the specified tag.


🔍 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: drupal-11.yaml

  • update at line 85 (pipeline git-checkout for drupal/recommended-project.git)
    Original:
expected-commit: 4c3161830109471259d87d9e9e869c98e502e78b

Replacement:

expected-commit: 0b1524c1a020397a165fd7f0bb53443173c81002

Content:

Update the expected-commit hash for the drupal/recommended-project.git repository to match the actual commit hash found for tag 11.2.6
Click to expand fix analysis

Analysis

The similar fixes show a clear pattern: when git checkout fails due to expected-commit mismatch, the solution is to update the expected-commit value to match the actual commit hash that the tag points to in the repository. In all three examples, the fixes involved updating the expected-commit field from the old hash to the new hash that was found. The pattern shows that tags can be moved or updated in upstream repositories, requiring the build configuration to be updated with the correct commit hash. Additionally, version bumps are often accompanied by these commit hash updates.

Click to expand fix explanation

Explanation

The fix should work because the error indicates that the actual commit hash for tag 11.2.6 in the drupal/recommended-project repository is 0b1524c1a020397a165fd7f0bb53443173c81002, but the build configuration expects 4c3161830109471259d87d9e9e869c98e502e78b. This is a common scenario where upstream repositories update or move tags, and the build configuration needs to be updated to reflect the current state. Looking at the similar fixes, they all follow the same pattern: updating the expected-commit value to match what was actually found. The first git-checkout for drupal/drupal.git appears to be working correctly since the error specifically mentions the drupal/recommended-project.git repository checkout failure.

Click to expand alternative approaches

Alternative Approaches

  • Verify the correct commit hash by manually checking the repository state and ensure both repositories are synchronized for the same version
  • Consider updating both git checkouts if there's a systematic issue with the version 11.2.6 tagging across both repositories
  • Check if the tag 11.2.6 was force-pushed or updated in the upstream repository and validate that this is the intended commit

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 Nov 6, 2025
@octo-sts octo-sts bot closed this Nov 6, 2025
@octo-sts
Copy link
Contributor Author

octo-sts bot commented Nov 6, 2025

superseded by #71257

@octo-sts octo-sts bot deleted the wolfictl-0bb86ad2-74fa-43ea-9385-e85c37d1bd19 branch November 7, 2025 00:02
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 drupal-11 request-version-update request for a newer version of a package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants