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
.travis: fix failure to install clang-10 on Arm64 #11418
Conversation
Please set the appropriate release note label. |
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.
Would be nice if we could dowload the .sig
file for the clang tarball as well and verify the signature before installing. Do you think this would be possible to add?
.travis/prepare.sh
Outdated
NEWPATH="/usr/local/clang/bin" | ||
export PATH="$NEWPATH:$PATH" |
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.
Nit: these two lines could be combined as
NEWPATH="/usr/local/clang/bin" | |
export PATH="$NEWPATH:$PATH" | |
export PATH="/usr/local/clang/bin:$PATH" |
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.
Done, Please review.
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.
Thanks for fixing the build @Jianlin-lv!
15dc559
to
e4343fc
Compare
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.
Thanks, looks good mostly. Some small remarks inline.
.travis/prepare.sh
Outdated
|
||
if gpg --verify $CLANG_FILE_SIG $CLANG_FILE | ||
then | ||
echo $CLANG_FILE signed sucessfully |
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.
echo $CLANG_FILE signed sucessfully | |
echo $CLANG_FILE verified successfully |
.travis/prepare.sh
Outdated
then | ||
echo $CLANG_FILE signed sucessfully | ||
else | ||
echo ERROR: Failed to sign $CLANG_FILE |
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.
echo ERROR: Failed to sign $CLANG_FILE | |
echo ERROR: Failed to verify $CLANG_FILE |
.travis/prepare.sh
Outdated
CLANG_URL="https://github.com/llvm/llvm-project/releases/download/llvmorg-$CLANG_VERSION/$CLANG_FILE_SIG" | ||
wget -nv $CLANG_URL | ||
|
||
wget -nv https://releases.llvm.org/3.7.0/hans-gpg-key.asc |
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.
For consistency we might want to use the public key file for the same release:
wget -nv https://releases.llvm.org/3.7.0/hans-gpg-key.asc | |
wget -nv https://releases.llvm.org/$CLANG_VERSION/hans-gpg-key.asc |
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.
Good comments, Thanks
I have updated this patch.
source.list repository does not have a release clang-10, Install clang-10 pre-built binaries from github release Signed-off-by: Jianlin Lv <Jianlin.Lv@arm.com>
e4343fc
to
45e9665
Compare
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.
LGTM, thanks.
I noticed this in the aarch64 build on Travis:
Let's keep an eye on this. It might make sense to also remove the clang tarball from the filesystem before running the tests to prevent it from consuming disk quota that we need for writing test artifacts. |
I think this may be an issue of Travis LXD container, https://travis-ci.community/t/disk-quota-exceeded-on-ppc64le/8006/8 |
source.list repository does not have a release clang-10,
Install clang-10 pre-built binaries from github release
Signed-off-by: Jianlin Lv Jianlin.Lv@arm.com
issue as:
https://travis-ci.com/github/cilium/cilium/jobs/329541260#L390