Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
make
llvm::is_ci_llvm_modified
logic more precise #131305make
llvm::is_ci_llvm_modified
logic more precise #131305Changes from all commits
ef51577
f6b7557
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this is wrong, and this code (which was in a previous commit) should be used instead.
Or at the very least, we should change the documentation of
get_closest_merge_commit
. Becausedetect_llvm_sha
usesget_closest_merge_commit
, which is supposed to return the latest upstream merge commit (that modified LLVM). In that case, it can by definition never returnHEAD
on CI (becauseHEAD
is definitely not upstream).However, we know that currently
get_closest_merge_commit
is bugged and probably just returnsHEAD
on CI, so we should probably first resolve #131358 before continuing with this PR.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR unblocks LLVM update PRs and it doesn't do anything other than improving current logic. I don't think #131358 should block this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, let's fix the
download_ci_llvm
test for now to unblock the update PRs. But the logic is still wrong, #131358 should hopefully fix it later.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if-unchanged
is not default since #130529. These didn’t fail before because if there are no changes (which is ensured here), bothdownload-ci-llvm=if-unchanged
andtrue
will behave the same.