feat: use buildkit API for clean up build cache within system prune#1360
Conversation
|
I think this PR is ready for review! PTAL @junnplus @AkihiroSuda @fahedouch |
|
After integrating with buildkit API directly, I noticed that the size of But introducing buildkit API would bring some dependency issue, for example, buildkit pinned docker with |
system prune
|
needs rebase |
fc47a3e to
c3083b2
Compare
Updated, PTAL! |
af75547 to
3ce94eb
Compare
|
Needs rebase |
a57c864 to
20e8662
Compare
|
CI What should I do? @AkihiroSuda |
2712b5a to
31f7e87
Compare
The test should be skipped when buildkitd is missing. Also please squash commits |
Hi @AkihiroSuda, it seems we already used "Squash and Merge" so the origin commits would not be taken in the main branch as is. Or are there any other things that I should consider? |
Untrue. We do not use this button, as we want to keep the commits including DCO sign-off as-is |
Oops, got that, I would try to rebase the commits on the latest main branch. Thanks for your explanation. ❤️ |
7beb541 to
bd96b9a
Compare
|
Hi @AkihiroSuda, @Zheaoli, there are 2 unrelated testcase failed
Maybe they are flaky tests, and give it a retry? PTAL, thanks! |
| base.Cmd("images").AssertNoOut("alpine") | ||
|
|
||
| if rootlessutil.IsRootless() { | ||
| t.Skip("test skipped for buildkitd is not available with rootless containers") |
There was a problem hiding this comment.
I remember that calling buildctl would be failed in the rootless container integration tests. So I append these lines of code.
There was a problem hiding this comment.
What is the error on rootless?
There was a problem hiding this comment.
I remember that calling buildctl would be failed in the rootless container integration tests.
I could not reproduce that error on rootless container integration tests with my local machine now. 🙈
I would remove these lines.
|
Commits don't seem squashed |
Do I need to squash them into only 1 commit? |
1 topic = 1 commit. |
934b05c to
2024bae
Compare
Signed-off-by: Zhou Zhiqiang <im@strrl.dev>
2024bae to
0575de8
Compare
|
I have
PTAL @AkihiroSuda ❤️ |
|
BuildKit v0.11 will support |
So you mean we still prefer to parse the JSON output rather than importing buildkit as a library? |
Yes, that might be better to avoid the |
Signed-off-by: Zhou Zhiqiang im@strrl.dev
This PR does not change the logic of
nerdctl builder prune, please let me know if we should also update it.prev #1284
close #1279