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

cleanup archive file if there is a problem while uploading to s3 or writing to DB #47

Merged
merged 2 commits into from
Nov 6, 2020

Conversation

nicpottier
Copy link
Contributor

@nicpottier nicpottier commented Nov 6, 2020

We'll leak files in the case of an error writing to S3 or writing the archive attributes to the DB. Defer should fix that.

@codecov-io
Copy link

codecov-io commented Nov 6, 2020

Codecov Report

Merging #47 into master will decrease coverage by 0.25%.
The diff coverage is 44.44%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #47      +/-   ##
==========================================
- Coverage   68.21%   67.96%   -0.26%     
==========================================
  Files           3        3              
  Lines         840      849       +9     
==========================================
+ Hits          573      577       +4     
- Misses        154      156       +2     
- Partials      113      116       +3     
Impacted Files Coverage Δ
archiver.go 67.48% <44.44%> (-0.29%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7b676bd...2c768bf. Read the comment docs.

@nicpottier nicpottier merged commit 483526c into master Nov 6, 2020
@nicpottier nicpottier deleted the cleanup-files branch November 6, 2020 17:15
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