Closed Honny1 closed 3 days ago
/approve LGTM @giuseppe @nalind @mtrmac @saschagrunert PTAL
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: Honny1, rhatdan
The full list of commands accepted by this bot can be found here.
The pull request process is described here
@mtrmac PTANL
I’m fine with the code, but I’d like to hear an assurance that this is covered by tests. (Yes, I could go verify that myself…)
I checked the unit tests by commenting out the parts of the code that were changed if the tests fail. The tests did not fail for the ~readUserXattrToTarHeader
~, (o overlayWhiteoutConverter) ConvertWrite
, writeZstdChunkedStream
functions. I haven't tried code changes that are specific to the darwin
os. Should I also try to run unit tests of padman with the imported local storage?
I’d guess that if c/storage does not test these somewhat obscure aspects of layer extraction itself, Podman is unlikely to; but triggering a Podman CI run with a modified c/storage is probably much cheaper than manual analysis, so, sure, go for it.
@mtrmac I ran podman CI with imported c/storage with changes in this PR. CI passes see the PR that runs the tests.
I checked the unit tests by commenting out the parts of the code that were changed if the tests fail. The tests did not fail for the
readUserXattrToTarHeader
,(o overlayWhiteoutConverter) ConvertWrite
,writeZstdChunkedStream
functions. I haven't tried code changes that are specific to thedarwin
os. Should I also try to run unit tests of padman with the imported local storage?
I added an xattr to TestTarUntarWithXattr
which is a user xattr. So the test fails for the commented change in readUserXattrToTarHeader
.
/lgtm
@Honny1 the tests are failing
@mtrmac The tests are passing.
/lgtm
This PR fixes warning deprecated use of
hdr.Xattrs
(SA1019) found bygolangci
when thestaticcheck
linter is enabled.Partially fixes:
1579