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

Replaced dependency on DotNetZip with System.IO.Compression.ZipFile #1360

Merged
merged 4 commits into from
Nov 19, 2024

Conversation

tombogle
Copy link
Contributor

@tombogle tombogle commented Nov 7, 2024

This change is Reviewable

@tombogle tombogle added the dependencies Pull requests that update a dependency file label Nov 7, 2024
@tombogle tombogle self-assigned this Nov 7, 2024
Copy link

github-actions bot commented Nov 7, 2024

LibPalaso Tests

   39 files   -     6     39 suites   - 6   5m 29s ⏱️ - 6m 26s
2 818 tests  - 2 012  2 644 ✅  - 1 955  161 💤  -  70  13 ❌ +13 
7 924 runs   - 6 084  7 533 ✅  - 5 848  378 💤  - 249  13 ❌ +13 

For more details on these failures, see this check.

Results for commit aae892c. ± Comparison against base commit de37405.

This pull request removes 2012 tests.
SIL.DictionaryServices.Tests.Lift.EmbeddedXmlCollectionCloneableTests ‑ CloneCopiesAllNeededMembers
SIL.DictionaryServices.Tests.Lift.EmbeddedXmlCollectionCloneableTests ‑ Equal_ItemsAreEqual_ReturnsTrue
SIL.DictionaryServices.Tests.Lift.EmbeddedXmlCollectionCloneableTests ‑ Equal_OneFieldDiffers_ReturnsFalse
SIL.DictionaryServices.Tests.Lift.EmbeddedXmlCollectionCloneableTests ‑ Equal_SecondFieldIsNull_ReturnsFalse
SIL.DictionaryServices.Tests.Lift.EmbeddedXmlCollectionCloneableTests ‑ Equals_OtherIsNull_ReturnsFalse
SIL.DictionaryServices.Tests.Lift.EmbeddedXmlCollectionCloneableTests ‑ ObjectEquals_OtherIsNull_ReturnsFalse
SIL.DictionaryServices.Tests.Lift.FlagStateCloneableTests ‑ CloneCopiesAllNeededMembers
SIL.DictionaryServices.Tests.Lift.FlagStateCloneableTests ‑ Equal_ItemsAreEqual_ReturnsTrue
SIL.DictionaryServices.Tests.Lift.FlagStateCloneableTests ‑ Equal_OneFieldDiffers_ReturnsFalse
SIL.DictionaryServices.Tests.Lift.FlagStateCloneableTests ‑ Equal_SecondFieldIsNull_ReturnsFalse
…

♻️ This comment has been updated with latest results.

Copy link
Member

@hatton hatton left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 11 files reviewed, 1 unresolved discussion (waiting on @andrew-polk, @josephmyers, and @tombogle)


a discussion (no related file):
What problem is this change solving?
Can you confirm that the unit tests covered corner cases like non-ascii characters?

@tombogle
Copy link
Contributor Author

tombogle commented Nov 8, 2024

Previously, hatton (John Hatton) wrote…

What problem is this change solving?
Can you confirm that the unit tests covered corner cases like non-ascii characters?

The DotNetZip package is now deprecated. Not sure that it actually represented any vulnerability or problem, but since we're making a bunch of other breaking changes and updating dependencies, this seemed like the right time to bite the bullet and switch to a package that is going to be actively maintained. I don't think any of the existing unit tests checked for handling special characters, but I just tweaked one of them to prove that it works. Not 100% sure that's what you had in mind.

Copy link
Collaborator

@josephmyers josephmyers left a comment

Choose a reason for hiding this comment

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

The code overall looks good, thanks for doing this. But take a look at the test failures. They look legitimate. Some version conflicts, probably due to the changed references

Copy link
Contributor

@hahn-kev hahn-kev left a comment

Choose a reason for hiding this comment

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

looks good to me, I left a comment about RAMP as there was an old comment which was lost about it being picky about the zip file

SIL.Archiving/RampArchivingDlgViewModel.cs Show resolved Hide resolved
Copy link

Palaso Tests

     3 files  ±0       3 suites  ±0   14m 22s ⏱️ - 1m 54s
 4 824 tests ±0   4 593 ✅ +1  231 💤 ±0  0 ❌  - 1 
13 996 runs  ±0  13 369 ✅ +1  627 💤 ±0  0 ❌  - 1 

Results for commit 11005e6. ± Comparison against base commit 1c95083.

@tombogle
Copy link
Contributor Author

@hatton @hahn-kev, if you guys are happy, please go ahead and release this PR from purgatory.

@hatton hatton requested a review from hahn-kev November 18, 2024 22:48
Copy link
Member

@hatton hatton left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 11 files reviewed, 2 unresolved discussions (waiting on @andrew-polk, @hahn-kev, and @tombogle)


a discussion (no related file):

Previously, tombogle (Tom Bogle) wrote…

The DotNetZip package is now deprecated. Not sure that it actually represented any vulnerability or problem, but since we're making a bunch of other breaking changes and updating dependencies, this seemed like the right time to bite the bullet and switch to a package that is going to be actively maintained. I don't think any of the existing unit tests checked for handling special characters, but I just tweaked one of them to prove that it works. Not 100% sure that's what you had in mind.

Sorry, I don't have the margin to follow up and look at details here. I just wanted to raise the issue.

@tombogle
Copy link
Contributor Author

Previously, hatton (John Hatton) wrote…

Sorry, I don't have the margin to follow up and look at details here. I just wanted to raise the issue.

Done.

@tombogle tombogle merged commit 742fbfe into master Nov 19, 2024
6 of 7 checks passed
@tombogle tombogle deleted the replace-dotnetzip branch November 19, 2024 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants