#10677 Koji Build Tasks failing git commit hash lookup
Closed: Upstream 2 years ago by kevin. Opened 2 years ago by justinz.


Metadata Update from @mobrien:
- Issue priority set to: Waiting on Assignee (was: Needs Review)
- Issue tagged with: Needs investigation

2 years ago

Seems to have started happening yesterday morning UTC

https://koji.fedoraproject.org/koji/tasks?method=buildSRPMFromSCM&state=failed

All buildSRPMFromSCM tasks for F36+ seem to be failing with:

GenericError: Error getting commit hash for git

I am surprised some builds of others seem to be succeeding now, but not me either

https://koji.fedoraproject.org/koji/tasks?state=all&view=flat&method=buildSRPMFromSCM

I think this is due to the upgrade of git on builders. (It's a f35 security update and we apply those nightly).

git now errors if a repo is not owned by the user running a history command. ;(

I;ll try and figure out a fix.

Odd. I thought I closed this.

Anyhow, it's caused by git, but I downgraded git for now so we should be ok and koji upstream already has a fix.

Metadata Update from @kevin:
- Issue close_status updated to: Upstream
- Issue status updated to: Closed (was: Open)

2 years ago

Do you know what is the proper fix for this issue ( GenericError: Error getting commit hash for git ) ?

This particular issue was fixed in koji years ago.

If you are seeing this still, please file a new issue and we can take a look? Do make sure that the checkout you are doing a build from is the official one and has the commit you are trying to build pushed?

we are seeing this problem on RPMFusion

Odd. Well, I am happy to try and help, but not sure what it could be off hand. That error usually happens when there's some mismatch: either you are trying to do a build from a different repo, or hadn't pushed the commit or something like that.

Log in to comment on this ticket.

Metadata