Refactor dockerResolver with resolveDockerBase helper#4302
Refactor dockerResolver with resolveDockerBase helper#4302estesp merged 1 commit intocontainerd:masterfrom
Conversation
|
Build succeeded.
|
Zyqsempai
left a comment
There was a problem hiding this comment.
Please sign your commit git commit -s to pass through CI.
6af4f00 to
ba0857f
Compare
|
Build succeeded.
|
|
@Zyqsempai thanks for your review, but there are some else failed cases, can you help me to figure out it. |
ba0857f to
3c2536e
Compare
|
Build succeeded.
|
|
@Zyqsempai code updated, review again please. |
|
needs rebase |
|
sorry late reply, I will rebase now. |
fa2ac41 to
3e042a2
Compare
|
Build succeeded.
|
3e042a2 to
679f35f
Compare
|
Build succeeded.
|
|
@AkihiroSuda code rebased, pr review again pls. |
679f35f to
16ff398
Compare
|
Build succeeded.
|
There was a problem hiding this comment.
For remote.Fetcher/Pusher, it can be done with digest. But for Resolve API, it still needs to check Object.
|
needs rebase |
16ff398 to
2475394
Compare
|
Build succeeded.
|
1.add resolveDockerBase helper 2.dockerBase header copy with header.Clone() Signed-off-by: songjiayang <[email protected]>
2475394 to
5867c88
Compare
|
Build succeeded.
|
|
This seems to have broken all the unit tests, i.e. from https://github.com/containerd/containerd/runs/1689382546
Edit: Nope, it's because Header.Clone() on a nil Header returns #4933 appears to be the fix. At least it's passing the CI tests. |
Recently I started reading the containerd 's source code, when I read at
remotes/docker/resolver.go, find there are some codes are too similar and repetitive.So I just add a
resolveDockerBasehelper for it , the changed code looks more simple.