-
Notifications
You must be signed in to change notification settings - Fork 315
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
Improvements to archive handling and storages #7129
Conversation
QodanaIt seems all right 👌 No new problems found according to the checks applied View the detailed Qodana reportTo be able to view the detailed Qodana report, you can either:
Contact Qodana teamContact us at qodana-support@jetbrains.com
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #7129 +/- ##
============================================
- Coverage 64.28% 64.27% -0.02%
Complexity 1970 1970
============================================
Files 333 333
Lines 16681 16667 -14
Branches 2386 2389 +3
============================================
- Hits 10724 10713 -11
+ Misses 4918 4912 -6
- Partials 1039 1042 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
After this PR, the |
putFile(provenance, tempFile) | ||
|
||
tempFile.delete() | ||
putData(provenance, fileList.toYaml().byteInputStream()) |
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.
Would be nice if we could avoid serializing the list to memory first and instead directly serialize to the stream. But IIRC Jackson can only serialize to an output stream and converting that to an input stream requires to use the PipedInputStream
where I had problems the last time I tried to use it.
4aaacb1
to
727dc3d
Compare
QodanaIt seems all right 👌 No new problems found according to the checks applied View the detailed Qodana reportTo be able to view the detailed Qodana report, you can either:
Contact Qodana teamContact us at qodana-support@jetbrains.com
|
1 similar comment
QodanaIt seems all right 👌 No new problems found according to the checks applied View the detailed Qodana reportTo be able to view the detailed Qodana report, you can either:
Contact Qodana teamContact us at qodana-support@jetbrains.com
|
Ensure that always a distinguished primary extension is specified first. This can be used to automatically determine the best extension to use for a type. Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
This reduces code duplication and eases adding tests for new types. Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Help to better understand the archive type detected for a stream. Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
…ives The issue mentioned in 4e7671f actually only applies to TAR-based archives: All BZIP2-, GZ-, XZ-compressed archives may be detected as empty uncompressed TAR archives. To avoid that, simply trying compressed TAR archives first by reordering the `ArchiveType` enum entries is enough. Then throwing the `IOException` which cannot distinguish between unsupported and empty archives can be limited to TAR archives. Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
…iles This avoids the temporary creation of files as well as potential confusion about persisting the file name, and paves the way for storages that cannot operate on files but on streams. Resolves #7118. Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
727dc3d
to
992cd8f
Compare
QodanaIt seems all right 👌 No new problems found according to the checks applied View the detailed Qodana reportTo be able to view the detailed Qodana report, you can either:
Contact Qodana teamContact us at qodana-support@jetbrains.com
|
Please have a look at the individual commit messages for the details.