johnnychen94 / StorageMirrorServer.jl

As I want it be available, fast, complete and persistent
MIT License
7 stars 0 forks source link

[WIP] add mirror feature #2

Closed johnnychen94 closed 4 years ago

johnnychen94 commented 4 years ago

The strategy is:

  1. if the tarball already exists locally, great, skip the downloading/building
  2. try to download from upstream (if provided)
  3. if the download fails (e.g., upstream server doesn't provide tarball, network issue), try to build from scratch
  4. if fails again, this tarball is skipped in this round. Will try to do it again in the next round
codecov[bot] commented 4 years ago

Codecov Report

Merging #2 into master will decrease coverage by 9.44%. The diff coverage is 39.28%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #2      +/-   ##
==========================================
- Coverage   81.28%   71.83%   -9.45%     
==========================================
  Files           6        7       +1     
  Lines         203      245      +42     
==========================================
+ Hits          165      176      +11     
- Misses         38       69      +31     
Impacted Files Coverage Δ
src/StorageServer.jl 100.00% <ø> (ø)
src/resources.jl 0.00% <0.00%> (ø)
src/utils.jl 70.96% <42.85%> (-13.65%) :arrow_down:
src/gittree.jl 74.28% <55.55%> (+0.09%) :arrow_up:
src/artifact.jl 75.00% <62.50%> (+2.27%) :arrow_up:
src/registry.jl 82.35% <63.63%> (-13.95%) :arrow_down:
src/package.jl 81.17% <100.00%> (ø)

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 efd7c89...5cbd7ab. Read the comment docs.