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

[DEVNET] Add Deploy Script + Fix Restart Issue #514

Merged
merged 44 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
ab7a1c1
progress on DEVNET config
patrick-ogrady Sep 6, 2023
38981b9
Merge branch 'main' into update-devnets
patrick-ogrady Oct 4, 2023
84eff58
working on script
patrick-ogrady Oct 4, 2023
11f5c6c
working on scripts
patrick-ogrady Oct 4, 2023
54c4894
add TODOs
patrick-ogrady Oct 4, 2023
4c64143
experiment with yaml overwrites
patrick-ogrady Oct 5, 2023
a836750
use cache for downloads
patrick-ogrady Oct 5, 2023
9db9ecf
update yaml overwrite
patrick-ogrady Oct 5, 2023
3afee2c
add apply
patrick-ogrady Oct 5, 2023
93a770a
cache profile name
patrick-ogrady Oct 5, 2023
1126ee9
add note about SSO session name
patrick-ogrady Oct 5, 2023
4049d82
fix metric issue
patrick-ogrady Oct 5, 2023
9a3d01d
use deploy folder
patrick-ogrady Oct 5, 2023
c9770e1
use right date order
patrick-ogrady Oct 5, 2023
e9d3890
add custom spec name
patrick-ogrady Oct 6, 2023
439cd2a
update spec name
patrick-ogrady Oct 6, 2023
7eca68b
change date format
patrick-ogrady Oct 6, 2023
e763997
use single folder
patrick-ogrady Oct 6, 2023
6bb00d9
fix json
patrick-ogrady Oct 6, 2023
19ba59b
working on dev machine setup
patrick-ogrady Oct 6, 2023
7bbcbd4
load chainID from ops file
patrick-ogrady Oct 6, 2023
2f32db1
generate prometheus dashboard on remote node
patrick-ogrady Oct 6, 2023
2bb32a8
remove unused var
patrick-ogrady Oct 6, 2023
a374f2d
add more logging
patrick-ogrady Oct 6, 2023
8759555
don't archive build artifacts
patrick-ogrady Oct 6, 2023
64f7127
found bug
patrick-ogrady Oct 6, 2023
a7463c4
handle last accepted read after restart
patrick-ogrady Oct 6, 2023
e8af649
simplify View function
patrick-ogrady Oct 6, 2023
10e3253
cleanup comments
patrick-ogrady Oct 6, 2023
9347041
add test for unprocessed block
patrick-ogrady Oct 6, 2023
f03c4ae
static analysis
patrick-ogrady Oct 6, 2023
c7cc310
don't set upload as latest
patrick-ogrady Oct 9, 2023
a697f0e
script working
patrick-ogrady Oct 9, 2023
911f22d
use pre-built token-cli file
patrick-ogrady Oct 9, 2023
b744db3
exit if insufficent funds
patrick-ogrady Oct 9, 2023
36dde1f
fix fee params
patrick-ogrady Oct 9, 2023
f3a7790
add multi-region as default
patrick-ogrady Oct 9, 2023
056c80a
add more comments
patrick-ogrady Oct 9, 2023
307ca2b
enable profiles on devnet
patrick-ogrady Oct 9, 2023
09f9e3a
working on READMEs
patrick-ogrady Oct 9, 2023
de5f483
update README
patrick-ogrady Oct 11, 2023
525c884
nits
patrick-ogrady Oct 11, 2023
5c6c28c
clarify OS type
patrick-ogrady Oct 11, 2023
818a1c0
Merge branch 'main' into update-devnets
patrick-ogrady Oct 11, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
found bug
  • Loading branch information
patrick-ogrady committed Oct 6, 2023
commit 64f71274abdc2a61b64b52d4a213a6bfdeef9bd5
9 changes: 6 additions & 3 deletions examples/tokenvm/scripts/deploy.devnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,13 @@ ${DEPLOY_ARTIFACT_PREFIX}/avalancheup-aws apply \
ACCESS_KEY=./aops-${DATE}-ec2-access.us-west-2.key
chmod 400 ${ACCESS_KEY}
DEV_MACHINE_IP=$(yq '.dev_machine_ips[0]' ${SPEC_FILE})
scp -i ${ACCESS_KEY} ${SPEC_FILE} ubuntu@${DEV_MACHINE_IP}:/home/ubuntu/aops.yml
scp -o "StrictHostKeyChecking=no" -i ${ACCESS_KEY} ${SPEC_FILE} ubuntu@${DEV_MACHINE_IP}:/home/ubuntu/aops.yml
cd $pw
scp -i ${DEPLOY_PREFIX}/${ACCESS_KEY} demo.pk ubuntu@${DEV_MACHINE_IP}:/home/ubuntu/demo.pk
ssh -o "StrictHostKeyChecking no" -i ${DEPLOY_PREFIX}/${ACCESS_KEY} ubuntu@${DEV_MACHINE_IP} ./scripts/setup.dev-machine.sh
scp -o "StrictHostKeyChecking=no" -i ${DEPLOY_PREFIX}/${ACCESS_KEY} demo.pk ubuntu@${DEV_MACHINE_IP}:/home/ubuntu/demo.pk
scp -o "StrictHostKeyChecking=no" -i ${DEPLOY_PREFIX}/${ACCESS_KEY} scripts/setup.dev-machine.sh ubuntu@${DEV_MACHINE_IP}:/home/ubuntu/setup.sh

# Configure token-cli and start prometheus
ssh -o "StrictHostKeyChecking=no" -i ${DEPLOY_PREFIX}/${ACCESS_KEY} ubuntu@${DEV_MACHINE_IP} /home/ubuntu/setup.sh

# Generate prometheus link
${DEPLOY_ARTIFACT_PREFIX}/token-cli chain import-ops ${DEPLOY_PREFIX}/${SPEC_FILE}
Expand Down
2 changes: 2 additions & 0 deletions vm/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ func (vm *VM) Initialize(
return err
}
snowCtx.Log.Info("initialized vm from last accepted", zap.Stringer("block", blk.ID()))

// TODO: need to mark "Processed" and loaded blocks
} else {
// Set balances and compute genesis root
sps := state.NewSimpleMutable(vm.stateDB)
Expand Down