-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Improve speed on lint commits GH workflow #34848
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
Conversation
d81de00
to
b3236fe
Compare
ccache can be used to speed up builds of bpf programs. Signed-off-by: André Martins <andre@cilium.io>
With theses changes, the workflow run time will decreases tremendously up with the usage of ccache and golang caches. Signed-off-by: André Martins <andre@cilium.io>
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.
Nice work 💯
I agree in theory this could be missing some things leading to breakage, but generally speaking the bpf code is pretty self-contained and almost all C dependencies are under that path. I can't think of any particular dependencies for the C datapath build that reside outside this directory other than maybe a few makefiles.
Given the benefits of this, I think it's well worth merging this as-is. If it turns out that we frequently hit issues due to the way this PR detects changes in the tree, then those should become quite apparent by breaking the tree, and then we can revisit whether to iterate further on these heuristics.
Using cache to improve the build times of lint commit. As an example, a PR with 3-4 commits was taking: