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

Fix LLVM githash check failure on buildbots #211

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shenhanc78
Copy link
Collaborator

"git log --format=%h" does not always give the 12-hex long githash, this causes githash check failure.

Fixed by using "git log --format=%H" which gives the full githash, and only compare the first 12 hex numbers to the predefined githash.

Tested by running this both on the buildbot and on workstations.

"git log --format=%h" does not always give the 12-hex long githash,
this causes githash check failure.  Fixed by using "git log
--format=%H" which gives the full githash, and only compare the first
12 hex numbers to the predefined githash.

Tested by running this both on the buildbot and on workstations.
@shenhanc78 shenhanc78 requested a review from snehasish July 17, 2024 02:53
Copy link
Collaborator

@snehasish snehasish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw the same issue in my draft PR which adds a basic CI. I'll rebase my changes on this if you want to get this in sooner or I can fix it when I push my changes.

If you do want to go ahead with this, can you use the full hash instead of taking a substring, it should be "e4f9175d23950ecaef32db075ed47dafe3be555c".

@shenhanc78
Copy link
Collaborator Author

I see. Either way should be fine.

@snehasish
Copy link
Collaborator

Ok, lets hold on to this and I'll rebase and send out my changes for review by the end of the day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants