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

Write archive hash/size to log after extraction error #2923

Closed
wants to merge 2 commits into from

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