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
tests: show status of the partial test-snapd-huge snap in econnreset test #5333
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this. Code lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 with two remarks
store/store.go
Outdated
@@ -1391,6 +1397,7 @@ func (s *Store) Download(ctx context.Context, name string, targetPath string, do | |||
// If hashsum is incorrect retry once | |||
if _, ok := err.(HashError); ok { | |||
logger.Debugf("Hashsum error on download: %v", err.Error()) | |||
logger.Debugf("Truncating an trying again from scratch.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and trying
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tryin' an' tryin' an' tryin'
echo "Partial download status" | ||
ls -lh test-snapd-huge_* || true | ||
echo "other dir content" | ||
ls -lh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to dump /var/lib/snapd/cache here and reset it before the test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean, maybe? But snap download
does not use that directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, never mind then.
07b9183
to
0c2cd7f
Compare
Codecov Report
@@ Coverage Diff @@
## master #5333 +/- ##
==========================================
+ Coverage 78.98% 78.98% +<.01%
==========================================
Files 503 503
Lines 37749 37757 +8
==========================================
+ Hits 29815 29822 +7
- Misses 5528 5529 +1
Partials 2406 2406
Continue to review full report at Codecov.
|
I wonder if we simply have the problem that the download is so fast that the iptables block is too late and the file is already fully downloaded.