This is an archive of the discontinued LLVM Phabricator instance.

[libc++][CI] Updates and improves the Docker image.
ClosedPublic

Authored by Mordante on Aug 6 2022, 7:21 AM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project
Commits
rG4761a74fd8eb: [libc++][CI] Updates and improves the Docker image.
Summary

Since we branched LLVM install Clang 16 and remove Clang 12.

Currently our Docker installs 4 versions of Clang so our CI can use the
same image for both the main and the release branch. This wasn't done for
the other Clang tools so they always use the same version for testing
the main and the release branch. Instead install 2 versions for the
tools.

However it seems the default for Clang and its tools were the latest
released version instead of the ToT. To lessen the risk of breaking the
release CI, version 14 is installed hard-coded as a temporary solution.

Updating the main branch to use the Clang 16 compiler will be done in a
separate patch.

Diff Detail

Event Timeline

Mordante created this revision.Aug 6 2022, 7:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 6 2022, 7:21 AM
Herald added a subscriber: arichardson. · View Herald Transcript
Mordante requested review of this revision.Aug 6 2022, 7:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 6 2022, 7:21 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne accepted this revision.Aug 16 2022, 9:46 AM

LGTM with comment changes.

libcxx/utils/ci/Dockerfile
66–67
67–77

IMO we should always use the latest *stable* version of clang-format available. We shouldn't build it from source, though, that's overkill.

This revision is now accepted and ready to land.Aug 16 2022, 9:46 AM
Mordante marked 2 inline comments as done.Aug 17 2022, 8:47 AM

Thanks for the review!

libcxx/utils/ci/Dockerfile
67–77

No we shouldn't build from source, but we could have used the ToT of the nightly builds.
Still I think using a non-moving target is better. That would make it easier to require formatting in the future.

This revision was automatically updated to reflect the committed changes.
Mordante marked an inline comment as done.