Skip to content

llvm: Switch from git clone to archive curl #370

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HadrienPatte
Copy link
Member

@HadrienPatte HadrienPatte commented Jul 31, 2025

This essentially reverts 09f4e53 which is no longer necessary as we don't have any cherry-picks anymore since #267.

This improves image build time as a full clone of llvm/llvm-project takes about ~15 min while a release archive download and extraction takes about one minute (not a real benchmark, but it's a perf gain).

Note: also add a renovate comment to manage the LLVM version, see #349

@HadrienPatte HadrienPatte force-pushed the pr/HadrienPatte/checkout-llvm branch 4 times, most recently from 8a08ec1 to e3f4d3b Compare August 1, 2025 09:37
@HadrienPatte HadrienPatte marked this pull request as ready for review August 1, 2025 19:13
@HadrienPatte HadrienPatte requested a review from a team as a code owner August 1, 2025 19:13
@HadrienPatte HadrienPatte requested a review from rgo3 August 1, 2025 19:13
@rgo3
Copy link

rgo3 commented Aug 5, 2025

@gentoo-root Do you think it makes sense to have renovate manage the llvm version? AFAIU this has been somewhat of a manual process intentionally, so I'm wondering if automated updates just create additional review overhead.

@gentoo-root
Copy link
Contributor

@rgo3

The process is pretty much described in this issue: cilium/cilium#32801. I actually wanted to make this checklist a template. It indeed involves manual steps: we normally have to fix code that relied on implicit assumptions (and doesn't compile anymore), and we need to check how the complexity changes.

So, I don't think that blindly automating it is a good idea. If we do automate some steps, we still need to make sure that manual fixes and steps are done.

Copy link

@rgo3 rgo3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HadrienPatte I think we should keeo managing the llvm version manually for now, otherwise the changes LGTM

@HadrienPatte HadrienPatte force-pushed the pr/HadrienPatte/checkout-llvm branch from e3f4d3b to 856c1af Compare August 6, 2025 13:50
@HadrienPatte
Copy link
Member Author

Thanks! updated the PR to remove the renovate comment

@HadrienPatte HadrienPatte added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Aug 7, 2025
This essentially reverts 09f4e53 which
is no longer necessary as we don't have any cherry-picks anymore since #267.

This improves image build time as a full it clone of `llvm/llvm-project`
takes about ~15 min while a release archive download and extraction
takes about one minute (not a real benchmark, but it's a perf gain).

Signed-off-by: Hadrien Patte <hadrien.patte@datadoghq.com>
@HadrienPatte HadrienPatte force-pushed the pr/HadrienPatte/checkout-llvm branch from 856c1af to 558ada3 Compare August 12, 2025 20:36
@HadrienPatte HadrienPatte added ready-to-merge This PR has passed all tests and received consensus from code owners to merge. and removed ready-to-merge This PR has passed all tests and received consensus from code owners to merge. labels Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants