Skip to content

Conversation

@annabeth97c
Copy link

Issue:

This pull request addresses a MemoryError issue encountered when computing the SHA256 checksum for validation of each downloaded tar

Changes:

Modified the compute_sha256 function to read files in chunks rather than loading them entirely into memory.

Verified the fix, the script is able to run without a crash

Included screenshots demonstrating the issue before the fix and the successful execution after the fix.
Added system memory usage information (free -h) to provide context for a system where the issue should be replicable

Screenshots:

Screenshot 1: Error encountered when processing a download
Screenshot 2024-03-23 at 3 25 58 PM

Screenshot 2: Successful execution after implementing chunked reading
Screenshot 2024-03-23 at 3 39 29 PM

System Memory Usage
Screenshot 2024-03-23 at 4 12 17 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant