change(scripts): verify copied file checksums and skip plots - #577
Open
zubeydecivelek wants to merge 1 commit into
Open
change(scripts): verify copied file checksums and skip plots#577zubeydecivelek wants to merge 1 commit into
zubeydecivelek wants to merge 1 commit into
Conversation
kpsherva
reviewed
Aug 18, 2026
Comment on lines
+59
to
+65
| prefix = "ERROR" if dest_md5 != expected else "SUCCESS" | ||
| if prefix == "ERROR": | ||
| print( | ||
| "ERROR checksum mismatch: recid={} expected={} dest={}".format( | ||
| recid, expected, dest_md5 | ||
| ) | ||
| ) |
Contributor
There was a problem hiding this comment.
Suggested change
| prefix = "ERROR" if dest_md5 != expected else "SUCCESS" | |
| if prefix == "ERROR": | |
| print( | |
| "ERROR checksum mismatch: recid={} expected={} dest={}".format( | |
| recid, expected, dest_md5 | |
| ) | |
| ) | |
| checksum_mismatch = dest_md5 != expected | |
| if checksum_mismatch: | |
| raise <appropriate error class>( | |
| "ERROR checksum mismatch: recid={} expected={} dest={}".format( | |
| recid, expected, dest_md5 | |
| ) | |
| ) |
I think it should fail if there is something wrong in the file, otherwise it fails silently and puts it in the log. What if I don't check the log?
Contributor
|
did you come across the checksum mismatch when copying the files or when running the migration? |
Contributor
Author
@kpsherva there’s no checksum verification mechanism when copying the files. I had the checksum mismatch during the migration. I copied the files again, and everything worked fine. I think we should verify the checksums when copying the files to prevent errors during migration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
During faser migration I had file checksum mismatch errors, it would be better to verify during copy script and log in case something goes wrong. And if we're skipping plots during migration, no need to copy the plot files.