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
[Native] Reduce CI time for native code #18627
Comments
@majetideepak |
Ah, you are taking about ccache. Currently I reset the cache key daily, Is it because it's the first such build for today ? |
I checked the test run. It looks like we did have a github action cache hit:
but it seems that the cache is not warm so the ccache hit rate is zero:
I think we should look into that |
@mshang816 I agree. If we can resolve this, we can significantly reduce the test native CI job duration. |
test-native total time is very long now (~3 hours) and is impacting productivity. A significant portion of this is build time. In the build, the cache is only effective for the same Pull Request(PR) and not across PRs. Looking at the documentation, https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#example-of-search-priority If we enable test-native CI runs on master, we might be able to improve the build times. @mbasmanova who can help with this? Thanks. |
@majetideepak This is indeed a serious problem that needs attention. @amitkdutta @mshang816 Amit, Michael, would you help take a look? @majetideepak Another option is to switch to using CircleCI which has beefier machines which allow for multi-threaded build. This is something TSC may need to decide on. |
@mbasmanova Last I checked, @mshang816 was working with Meta OSS team to have Presto Foundation use Meta's larger account to run CircleCI tests for this reason. @mshang816, please let me know if you have run into any difficulty with this. |
CC: @pedroerp |
In the TSC meeting, it was decided that the test-native will be moved to CircleCI. I can take a stab at this. |
@majetideepak That's great news. Deepak, do you have a timeline for this? |
@mbasmanova I don't yet. This space is new to me. If anyone from Meta can give some pointers, it will be very helpful. |
@mshang816 Michael, can you help provide some guidance for Deepak? |
@mbasmanova, @tdcmeehan, @pedroerp A couple of posts on CircleCI seem to say that enabling jobs must be done by the account owner of CircleCI. So Meta OSS team must enable this. |
@mshang816 @amitkdutta are asking our internal team to get the right credentials. |
@majetideepak It's a long story. I created the circle ci runs last year but we didn't have enough credits for our daily runs so I believe @tdcmeehan turned off the circle ci runs. And a couple weeks ago, we finally are able to be added to Meta's enterprise account which gives us way more credits to burn so yes it's time to migrate github actions to circle ci again. |
@mshang816 thanks for the update! Let me know if I can help in any way. |
A change, say to a build script should not result in a total build.
However, that is the case today. This needs an investigation.
https://github.com/prestodb/presto/actions/runs/3386920136/jobs/5628225267
Documentation on cache https://github.com/marketplace/actions/cache
The text was updated successfully, but these errors were encountered: