-
Notifications
You must be signed in to change notification settings - Fork 5.5k
ci: fix clang-tidy #9140
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
ci: fix clang-tidy #9140
Changes from 3 commits
ece76a1
c5699e6
cedeed8
e8d52a9
a905f7c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -e | ||
| set -eo pipefail | ||
|
|
||
| ENVOY_SRCDIR=${ENVOY_SRCDIR:-$(cd $(dirname $0)/.. && pwd)} | ||
|
|
||
|
|
@@ -70,7 +70,7 @@ elif [[ "${BUILD_REASON}" != "PullRequest" ]]; then | |
| else | ||
| echo "Running clang-tidy-diff against master branch..." | ||
| git fetch https://github.com/envoyproxy/envoy.git master | ||
| git diff "${SYSTEM_PULLREQUEST_TARGETBRANCH:-refs/heads/master}..HEAD" | filter_excludes | \ | ||
| git diff "$(git merge-base HEAD FETCH_HEAD)..HEAD" | filter_excludes | \ | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reason to use SYSTEM_PULLREQUEST_TARGETBRANCH is it will generate large diff for PR agains release branch and take forever. Also, AZP run's on HEAD at GH pull request merge commit (i.e. refs/pull/9140/merge), so the merge-base will just be HEAD, so this generates no diff.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see, so the issue isn't with
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. actually, I think just |
||
| "${LLVM_PREFIX}/share/clang/clang-tidy-diff.py" \ | ||
| -clang-tidy-binary=${CLANG_TIDY} \ | ||
| -p 1 | ||
|
|
||
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.
delete this line?