This is an archive of the discontinued LLVM Phabricator instance.

[libc++][CI] Improves Dockerfile
ClosedPublic

Authored by Mordante on Feb 22 2023, 10:49 AM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project
Commits
rGd22cab2e11f4: [libc++][CI] Improves Dockerfile
Summary
  • Remove temporary apt files
  • Removes LLVM16 TODO

Diff Detail

Event Timeline

Mordante created this revision.Feb 22 2023, 10:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 22 2023, 10:49 AM
Herald added a subscriber: arichardson. · View Herald Transcript
Mordante requested review of this revision.Feb 22 2023, 10:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 22 2023, 10:49 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
philnik added inline comments.
libcxx/utils/ci/Dockerfile
78–79

Could you align all the backslashes to 120 columns to make them less annoying?

83–87
Mordante marked an inline comment as done.Feb 25 2023, 5:15 AM
Mordante added inline comments.
libcxx/utils/ci/Dockerfile
83–87

I like to keep the comments for clarity.

Mordante updated this revision to Diff 500420.Feb 25 2023, 5:15 AM

Addresses review comments.

philnik added inline comments.Feb 25 2023, 5:20 AM
libcxx/utils/ci/Dockerfile
83–87

I really don't see how describing what the lines do on-by-one help in any way. They just make it harder to read IMO.

ldionne requested changes to this revision.Feb 27 2023, 10:11 AM
ldionne added a subscriber: ldionne.

I like that we are removing the LLVM 16 todo, but I am not sold on the other changes to the Dockerfile. I'd like to understand your rationale for them.

libcxx/utils/ci/Dockerfile
78–79

Isn't it better to have more layers? That way you get more layers of caching and can potentially re-download less when you update the image, no?

This revision now requires changes to proceed.Feb 27 2023, 10:11 AM

As discussed, I am not sure this actually solves a problem we encounter -- our image isn't that large and I don't think the image download times have been a problem. If that's incorrect, please LMK since that changes my opinion about this patch.

But assuming that we're not really gaining something noticeable in terms of speed/size, IMO this patch is a small net loss since it's a bit less readable than what we had before. This is a part of our CI infrastructure and IMO we should strive to keep it as simple as possible to keep the barrier for people maintaining it as low as possible -- to me that has more value than a bit more size in the image.

FWIW I'd be fine with cleaning up the Debian packages in a separate RUN command. This won't reduce the size we have to download, but would make the image itself a bit smaller, I guess.

Mordante marked 3 inline comments as done.Mar 8 2023, 10:05 AM

Thanks for the review. I will basically revert these changes and only remove the unneeded package and the apt removal.

libcxx/utils/ci/Dockerfile
83–87

As discussed with Louis this entire hunk will be reverted.

Mordante edited the summary of this revision. (Show Details)Mar 8 2023, 10:06 AM
Mordante updated this revision to Diff 503428.Mar 8 2023, 10:06 AM
Mordante marked an inline comment as done.

Addresses review comments.

ldionne accepted this revision.Mar 14 2023, 8:35 AM
This revision is now accepted and ready to land.Mar 14 2023, 8:35 AM
This revision was landed with ongoing or failed builds.Mar 14 2023, 9:32 AM
This revision was automatically updated to reflect the committed changes.