forest icon indicating copy to clipboard operation
forest copied to clipboard

IaC: Service for creating and uploading calibnet snapshots

Open lemmih opened this issue 1 year ago • 1 comments

Summary of changes Changes introduced in this pull request:

  • Add script for initializing a service that automatically uploads calibnet snapshots to Digital Ocean and reports failures to slack.
  • Decided not to use terraform due to the complexity.
  • The infrastructure consists of a single boot script that is run on a server with docker installed. The bootscript takes care of all other dependencies and automatically updates itself via watchtower.

Reference issue to close (if applicable)

Closes #1694

Other information and links

lemmih avatar Jul 27 '22 13:07 lemmih

Codecov Report

Merging #1735 (8e4d6be) into main (241ccbe) will increase coverage by 0.09%. The diff coverage is n/a.

:exclamation: Current head 8e4d6be differs from pull request most recent head ae770a9. Consider uploading reports for the commit ae770a9 to get more accurate results

@@            Coverage Diff             @@
##             main    #1735      +/-   ##
==========================================
+ Coverage   27.02%   27.11%   +0.09%     
==========================================
  Files         195      194       -1     
  Lines       21638    21565      -73     
==========================================
  Hits         5848     5848              
+ Misses      15790    15717      -73     
Impacted Files Coverage Δ
vm/message/src/message.rs 28.43% <0.00%> (-0.70%) :arrow_down:
vm/actor_interface/src/lib.rs 1.92% <0.00%> (-0.08%) :arrow_down:
forest/src/cli/config.rs 100.00% <0.00%> (ø)
vm/interpreter/src/vm.rs 0.00% <0.00%> (ø)
types/src/verifier/mock.rs 0.00% <0.00%> (ø)
blockchain/state_manager/src/lib.rs 2.76% <0.00%> (ø)
blockchain/state_manager/src/utils.rs 0.00% <0.00%> (ø)
blockchain/consensus/fil_cns/src/validation.rs 0.00% <0.00%> (ø)
forest/src/cli/client.rs
forest/src/daemon.rs 0.33% <0.00%> (+0.01%) :arrow_up:
... and 4 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

codecov[bot] avatar Jul 27 '22 13:07 codecov[bot]

Random idea, it'd be useful to store the checksum as well (like for mainnet snapshots on AWS). Random file corruption occurred when I tried to upload large files into DO Spaces, so it'd be nice to have some checks.

LesnyRumcajs avatar Sep 05 '22 13:09 LesnyRumcajs