Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apache-nifi/2.1.0 package update #38300

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

octo-sts[bot]
Copy link
Contributor

@octo-sts octo-sts bot commented Dec 24, 2024

@octo-sts octo-sts bot added request-version-update request for a newer version of a package automated pr labels Dec 24, 2024
Copy link
Contributor Author

octo-sts bot commented Dec 24, 2024

Gen AI suggestions to solve the build error:

• Detected Error: "Expected commit dbf663c6d1e46917634321e12db852df4c223129 for rel/nifi-2.1.0, found f3af2394f90f2326a3ddacf1bf3a2f3160fbe6a6"

• Error Category: Version/Configuration

• Failure Point: git-checkout step in the pipeline

• Root Cause Analysis: The expected commit hash in the melange YAML doesn't match the actual commit hash for the specified tag (rel/nifi-2.1.0)

• Suggested Fix:
Update the expected-commit hash in the git-checkout step to match the current commit:

  - uses: git-checkout
    with:
      repository: https://github.com/apache/nifi
      tag: rel/nifi-2.1.0
      expected-commit: f3af2394f90f2326a3ddacf1bf3a2f3160fbe6a6

• Explanation:
The build system verifies the commit hash as a security measure to ensure the exact version being built. The current mismatch indicates the upstream repository has either:

  1. Force-pushed changes to the tag
  2. The tag was moved to a different commit
    The new commit hash represents the current state of the rel/nifi-2.1.0 tag.

• Additional Notes:

  • This is a common occurrence when upstream repositories modify release tags
  • The commit hash verification is a security feature to ensure reproducible builds
  • You can verify the current commit hash using:
    git ls-remote https://github.com/apache/nifi refs/tags/rel/nifi-2.1.0

• References:

@rawlingsj rawlingsj marked this pull request as draft December 24, 2024 12:54
@rawlingsj
Copy link
Member

I'm marking this as draft to block the bot. The upstream project uses nested tags

When querying GitHub's GraphQL API for tag information, some repositories (like apache/nifi) use nested tags where a tag points to another tag rather than directly to a commit. This was causing incorrect commit SHAs to be returned.

Example of a nested tag chain:
rel/nifi-2.1.0 (tag) -> nifi-2.1.0-RC3 (tag) -> f3af2394... (commit)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automated pr 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