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

tests: show status of the partial test-snapd-huge snap in econnreset test #5333

Merged
merged 4 commits into from Jun 15, 2018

Conversation

mvo5
Copy link
Contributor

@mvo5 mvo5 commented Jun 15, 2018

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.

Copy link
Collaborator

@sergiocazzolato sergiocazzolato left a 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

Copy link
Contributor

@stolowski stolowski left a 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.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and trying

Copy link
Contributor

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
Copy link
Contributor

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?

Copy link
Contributor

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, never mind then.

@codecov-io
Copy link

Codecov Report

Merging #5333 into master will increase coverage by <.01%.
The diff coverage is 87.5%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
store/store.go 80.94% <100%> (+0.1%) ⬆️
image/helpers.go 65.6% <50%> (-0.21%) ⬇️

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 90c808b...0c2cd7f. Read the comment docs.

@chipaca chipaca merged commit f29ce8a into snapcore:master Jun 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants