LCOW: lazycontext: Use correct lstat, fix archive check#37356
LCOW: lazycontext: Use correct lstat, fix archive check#37356thaJeztah merged 1 commit intomoby:masterfrom
Conversation
|
@johnstep PTAL |
|
@cpuguy83 This addresses your feedback on the original PR: #37316 (comment) |
pkg/archive/archive_windows.go
Outdated
There was a problem hiding this comment.
That seems same as filepath.ToSlash()
There was a problem hiding this comment.
Ha, yes, indeed. Not sure how long it's been like that. Will update.
There was a problem hiding this comment.
I thought just removing this function completely but that can be a follow-up.
Codecov Report
@@ Coverage Diff @@
## master #37356 +/- ##
==========================================
+ Coverage 34.83% 34.85% +0.01%
==========================================
Files 610 610
Lines 44986 44981 -5
==========================================
+ Hits 15672 15677 +5
+ Misses 27201 27196 -5
+ Partials 2113 2108 -5 |
pkg/archive/archive_windows_test.go
Outdated
There was a problem hiding this comment.
@cpuguy83 Is is a desired behavior for these paths to fail? I would think not.
There was a problem hiding this comment.
Not fail but stay the same at least.
There was a problem hiding this comment.
Sure, added back in and updated to check they stay the same.
Signed-off-by: John Howard <[email protected]>
|
LGTM |
|
@thaJeztah Is this a known failure in experimental and Janky - both failed the same, but restarted: |
|
Janky https://jenkins.dockerproject.org/job/Docker-PRs/49887/console failing on a flaky test; tracked through #36501 Experimental https://jenkins.dockerproject.org/job/Docker-PRs-experimental/41137 also failing on a flaky test (tracked through #37246) |
|
None of those failures are related in any way, so I'll go ahead and merge |
Signed-off-by: John Howard [email protected]
Fixes #36793. Replacement for #37316
First - thanks @yusuf-gunaydin for debugging and coming up with a fix. Yours was so very close :)
Here's the output using the same files as described in #36793 with the updated fix:
Note on the last build step:
bce0113cef4correctly.During debugging this (happened to be building the Microsoft/opengcs repo as that exercises LCOW code quite well in lieu of format CI yet), as mentioned in the issue, I noticed that as the
Lstatcall is now being made, and can succeed, there's an incorrect assertion in generating the hash (prepareHashfunction) when it calls into the archiver to Canonicalise the path, which causes build failures to occur on a step such asCOPY --from=runc /usr/bin/runc /usr/bin. Have removed the incorrect assertion, updated the function to no longer return anerror, and updated unit tests/call-sites not to handle the error there.