Skip to content

Comments

Add CRC check during mod upload#221

Merged
Shivansps merged 3 commits intoKnossosNET:mainfrom
Shivansps:add-crc-check-upload
Aug 26, 2024
Merged

Add CRC check during mod upload#221
Shivansps merged 3 commits intoKnossosNET:mainfrom
Shivansps:add-crc-check-upload

Conversation

@Shivansps
Copy link
Member

This is in response to bta mod owners reporting packages being uploaded on a mod update that werent changed, that on futher investigation it was determinated that those packages had a different sha256 hash because they had a single random changed byte, corrupting the file and preventing at least one file from being decompressed correctly.

-Add a CRC check after compressing a mod pkg, to make sure we arent uploading a corrupted file to nebula.
-If the file fails the CRC check up to 5 attempts at recompressing the pkg are done before giving up and cancelling the upload.
-Now knossos will use the "max compression parallelism" value to determine how many mod pkgs will be compressed at the same time, previuosly this number was hardcoded to 4.
-Lower the default max compression paralelism value from 4 to 2.

-Add a CRC check after compressing a mod pkg, to make sure we arent uploading a corrupted file to nebula.
-If the file fails the CRC check up to 5 attempts at recompressing the pkg are done before giving up and cancelling the upload.
-Now knossos will use the "max compression parallelism" value to determine how many mod pkgs will be compressed at the same time, previuosly this number was hardcoded to 4.
-Lower the default max compression paralelism value from 4 to 2.
@Shivansps Shivansps added enhancement New feature or request fix Fix for a bug labels Aug 20, 2024
Copy link
Contributor

@wookieejedi wookieejedi 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 at least, thanks for turning this around quickly!

@Shivansps Shivansps merged commit 9a10d6c into KnossosNET:main Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request fix Fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants