-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
builder: fix build cache hash for broken symlink #34271
Conversation
This broke unit tests that checked for a hash of a missing file. It is possible to determine between a broken followed symlink and missing file but there is no utility function for that atm. I didn't find anything that actually relies on the not-found error being produced so I updated the tests. When this logic gets updated we should make sure the error case is put back. |
Looks like windows failure is related? |
ping @tonistiigi ^ |
ping @tonistiigi should someone carry this? /cc @johnstep @salah-khan |
Signed-off-by: Tonis Tiigi <[email protected]>
8907799
to
a77f078
Compare
Fixed the unit test. CI still red but this time I don't think it is related. |
Windows failure is now;
Which was marked racey; #33301 I'll trigger CI once more for good measures |
ok looks like the windows failure is racey |
ping @AkihiroSuda could you have a look at this one? |
builder/remotecontext/lazycontext.go
Outdated
if err != nil { | ||
return "", errors.WithStack(convertPathError(err, cleanPath)) | ||
return relPath, nil |
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.
if err != nil { return nil }
looks as if it were a typo. Please add a comment so that readers won't get confused?
ping @tonistiigi LGTM after adding the comment |
Signed-off-by: Tonis Tiigi <[email protected]>
a77f078
to
d5b15f0
Compare
ping @justincormack PTAL |
fixes #34260
This makes build cache hash for broken symlink in a directory to match the path of resolved path like it appears in the original tarsum version
moby/builder/remotecontext/archive.go
Lines 113 to 115 in 8c72417
ADD/COPY
semantics.@justincormack @dnephin
Signed-off-by: Tonis Tiigi [email protected]