Skip to content

Conversation

@larsxschneider
Copy link

@larsxschneider larsxschneider commented Oct 12, 2023

I would like to understand the corrupt archives better. Let's log their size. Maybe this gives us a new clue in what way these archives are corrupted.

⚠️ Untested! How do I test this properly? ⚠️

@larsxschneider larsxschneider requested a review from a team as a code owner October 12, 2023 12:18
@carlosmn
Copy link

What would help with figuring out if something's gone really wrong on the codeload side would be to store the error message from tar somewhere.

@larsxschneider larsxschneider changed the title Write archive size to log after extraction error Write archive hash/size to log after extraction error Oct 13, 2023
@AvaStancu
Copy link
Contributor

@larsxschneider Regarding testing, would extracting the new logic into a separate function that for ex. receives the archiveFile and returns the sha256hash / fi.Length, so you can unit test it, help? what else would you need to add a test?

@TingluoHuang
Copy link
Member

@larsxschneider I will take over the PR with more changes (ex: send the output from tar on failures) and get it tested and merged.

@TingluoHuang
Copy link
Member

Taking over with #2939

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.

4 participants