Skip to content
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

Merge sylabs/sif up to the creation of v1 branch #105

Merged
merged 35 commits into from
Aug 10, 2021

Conversation

DrDaveD
Copy link
Contributor

@DrDaveD DrDaveD commented Aug 10, 2021

This merges in all the commits from sylabs/sif up to the creation of the v1 branch, importing the following PRs:

Also fixes the following hpcng/sif issues:

After this the only differences between sylabs/sif and hpcng/sif at the time of the v1 branch are:

  1. The include path
  2. The use of github actions instead of circleci for continuous integration.
  3. The included spf13/cobra is version 1.2.1 instead of 1.13, which sylabs later upgraded in the v1 branch
  4. "id generation failed" error messages if uuid.NewV4() fails in internal/app/siftool/modif.go or pkg/integrity/testdata/gen_sifs.go.

Adam Hughes and others added 30 commits August 9, 2021 17:56
Address occasional SIGBUS when accessing SIF file stored on a non-local
filesystem (#11) by removing mmap usage.
GetData returns nil on error. By using GetReadSeeker instead, a detailed
error message can be reported.
The ReadWriter passed to LoadContainerFp may have a non-zero seek
location. Extend LoadContainerFp unit test to provide coverage of this
scenario.
The underlying source of headers/descriptors may contain a non-zero seek
offset when LoadContainerFp is called. Switch to ReadAt so these code
paths are unaffeected in this case.
Add GetReader and deprecate GetReadSeeker. Replace usage of
GetReadSeeker with GetReader in integrity package.
Expose String() for Fstype, Parttype, Hashtype, Formattype, Messagetype
types, to support the eventual removal of formatting functions from the
SIF package.
@codecov-commenter
Copy link

Codecov Report

Merging #105 (0dbd405) into master (772602c) will increase coverage by 0.29%.
The diff coverage is 39.13%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #105      +/-   ##
==========================================
+ Coverage   64.79%   65.08%   +0.29%     
==========================================
  Files          11       12       +1     
  Lines        1440     1395      -45     
==========================================
- Hits          933      908      -25     
+ Misses        325      310      -15     
+ Partials      182      177       -5     
Flag Coverage Δ
unittests 65.08% <39.13%> (+0.29%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/sif/sif.go 25.00% <25.00%> (ø)
pkg/integrity/metadata.go 53.21% <50.00%> (ø)
pkg/integrity/select.go 62.88% <50.00%> (-0.95%) ⬇️
pkg/integrity/verify.go 75.68% <50.00%> (-1.55%) ⬇️
pkg/sif/create.go 50.71% <50.00%> (+1.06%) ⬆️
pkg/sif/load.go 53.22% <53.84%> (+1.37%) ⬆️
pkg/sif/fmt.go 73.21% <62.50%> (+15.82%) ⬆️
pkg/sif/lookup.go 65.17% <83.33%> (+0.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 772602c...0dbd405. Read the comment docs.

@kmuriki kmuriki merged commit acaf90f into apptainer:master Aug 10, 2021
@DrDaveD DrDaveD deleted the pre-v2 branch August 10, 2021 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants