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

feat(archive-apis)!: use .7z format to archive studies #2013

Merged
merged 28 commits into from
Oct 24, 2024

Conversation

mabw-rte
Copy link
Contributor

@mabw-rte mabw-rte commented Apr 18, 2024

Context:
After a benchmark comparing .zip vs .7z in order to archive studies, the conclusions drawn from the experiments showed that we may gain better efficiency in both time and memory if we use .7z format.

Goal of PR:
Full migration of studies export into a .7z format.
This PR may solve ANT-1551 and ANT-1549 all at once.

@mabw-rte mabw-rte self-assigned this Apr 18, 2024
Copy link
Contributor

@laurent-laporte-pro laurent-laporte-pro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lire la doc de 7zip avant de coder 👻

antarest/core/utils/utils.py Outdated Show resolved Hide resolved
antarest/study/storage/abstract_storage_service.py Outdated Show resolved Hide resolved
@laurent-laporte-pro laurent-laporte-pro marked this pull request as draft April 19, 2024 17:35
@mabw-rte mabw-rte force-pushed the feature/1551-7zip-archive branch from 6220f9f to 566a8b2 Compare April 23, 2024 14:24
@pull-request-size pull-request-size bot added size/L and removed size/M labels Apr 23, 2024
@mabw-rte mabw-rte marked this pull request as ready for review April 23, 2024 14:44
@mabw-rte mabw-rte force-pushed the feature/1551-7zip-archive branch 3 times, most recently from f0e1637 to f44dc68 Compare April 25, 2024 09:26
Copy link
Contributor

@MartinBelthle MartinBelthle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you specify which features this PR handles because it's not really clear for me.
From my understanding, the only thing it does is handling the archiving/unarchiving process with 7z (and retro compatibility)

antarest/study/storage/rawstudy/raw_study_service.py Outdated Show resolved Hide resolved
tests/study/storage/test_abstract_storage_service.py Outdated Show resolved Hide resolved
@mabw-rte mabw-rte force-pushed the feature/1551-7zip-archive branch from 60259df to 7916350 Compare June 12, 2024 17:55
@mabw-rte mabw-rte requested a review from MartinBelthle June 12, 2024 18:51
Copy link
Contributor

@MartinBelthle MartinBelthle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not a major bug but your change in the code didn't fix the issue of the . folder inside your .7zarchive.
Also, you didn't answer my previous comment on what does this PR really achieve.

Copy link
Contributor

@laurent-laporte-pro laurent-laporte-pro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il convient d'améliorer la couverture des tests at de tester avec ZIP et 7z.

Lorsqu'on exporte une étude, on télécharge un fichier au format 7z, mais avec l'extension ".zip". Il faut corriger cela.

@laurent-laporte-pro laurent-laporte-pro modified the milestones: v2.17.2, v2.18 Jun 19, 2024
@mabw-rte mabw-rte force-pushed the feature/1551-7zip-archive branch 2 times, most recently from a0ef379 to 9079c11 Compare October 11, 2024 15:14
@mabw-rte mabw-rte force-pushed the feature/1551-7zip-archive branch from ee43b1f to 2f2ca59 Compare October 24, 2024 10:38
@mabw-rte mabw-rte force-pushed the feature/1551-7zip-archive branch from c7d973c to 02f3d17 Compare October 24, 2024 11:35
@mabw-rte mabw-rte merged commit 843bd3a into dev Oct 24, 2024
11 checks passed
@mabw-rte mabw-rte deleted the feature/1551-7zip-archive branch October 24, 2024 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants