Skip to content

Commit

Permalink
chore: testing cd
Browse files Browse the repository at this point in the history
  • Loading branch information
sesheffield committed Sep 9, 2024
1 parent e367188 commit 1b2af8c
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 33 deletions.
4 changes: 3 additions & 1 deletion .github/scripts/put-all-chain-nodes-on-standby.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
set -x

# get all the node's ec2 instance ids for the specified chain id
chain_node_instance_ids=$(aws ec2 describe-instances --filters "Name=tag:KavaChainId,Values=$CHAIN_ID" | jq -r '[.Reservations | .[] | .Instances | .[] | .InstanceId] | join(" ")')
# TODO: fix this and the sharded cluster module to add tags
#chain_node_instance_ids=$(aws ec2 describe-instances --filters "Name=tag:KavaChainId,Values=$CHAIN_ID" | jq -r '[.Reservations | .[] | .Instances | .[] | .InstanceId] | join(" ")')
chain_node_instance_ids='i-0a363f6816eb3ae88'

for chain_node_instance_id in ${chain_node_instance_ids}
do
Expand Down
54 changes: 27 additions & 27 deletions .github/workflows/cd-protonet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,34 +30,34 @@ jobs:
chain-id: proto_2221-17000
ssm-document-name: kava-testnet-internal-node-update
playbook-name: reset-protonet-playbook.yml
playbook-infrastructure-branch: master
playbook-infrastructure-branch: ss-protonet
secrets: inherit
#
# # start kava with new binary and genesis state on api, peer and seed nodes, place nodes in service once they start and are synched to live
# start-chain-api:
# uses: ./.github/workflows/cd-start-chain.yml
# with:
# aws-region: us-east-1
# chain-id: proto_2221-17000
# ssm-document-name: kava-testnet-internal-node-update
# playbook-name: start-chain-api-playbook.yml
# playbook-infrastructure-branch: master
# secrets: inherit
# needs: [reset-chain-to-zero-state]
#
# # setup test and development accounts and balances, deploy contracts by calling the chain's api
# seed-chain-state:
# uses: ./.github/workflows/cd-seed-chain.yml
# with:
# chain-api-url: https://rpc.app.protonet.us-east.production.kava.io:443
# chain-id: proto_2221-17000
# seed-script-filename: seed-protonet.sh
# erc20-deployer-network-name: protonet
# genesis_validator_addresses: "kavavaloper1te0aljy2m4zzysymw7dxkxy0fa6d7ws5fj3vmp"
## genesis_validator_addresses: "kavavaloper14w4avgdvqrlpww6l5dhgj4egfn6ln7gmtp7r2m"
# kava_version_filepath: ./ci/env/kava-protonet/KAVA.VERSION
# secrets: inherit
# needs: [start-chain-api]

# start kava with new binary and genesis state on api, peer and seed nodes, place nodes in service once they start and are synched to live
start-chain-api:
uses: ./.github/workflows/cd-start-chain.yml
with:
aws-region: us-east-1
chain-id: proto_2221-17000
ssm-document-name: kava-testnet-internal-node-update
playbook-name: start-chain-api-playbook.yml
playbook-infrastructure-branch: ss-protonet
secrets: inherit
needs: [reset-chain-to-zero-state]

# setup test and development accounts and balances, deploy contracts by calling the chain's api
seed-chain-state:
uses: ./.github/workflows/cd-seed-chain.yml
with:
chain-api-url: https://rpc.app.protonet.us-east.production.kava.io:443
chain-id: proto_2221-17000
seed-script-filename: seed-protonet.sh
erc20-deployer-network-name: protonet
genesis_validator_addresses: "kavavaloper1te0aljy2m4zzysymw7dxkxy0fa6d7ws5fj3vmp"
# genesis_validator_addresses: "kavavaloper14w4avgdvqrlpww6l5dhgj4egfn6ln7gmtp7r2m"
kava_version_filepath: ./ci/env/kava-protonet/KAVA.VERSION
secrets: inherit
needs: [start-chain-api]
## post-pipeline-metrics:
## uses: ./.github/workflows/metric-pipeline.yml
## if: always() # always run so we metric failures and successes
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/cd-reset-internal-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ jobs:
--max-upgrade-batch-size=0 \
--wait-for-node-sync-after-upgrade=false
env:
SSM_DOCUMENT_NAME: ${{ inputs.ssm-document-name }}
PLAYBOOK_NAME: ${{ inputs.playbook-name }}
CHAIN_ID: ${{ inputs.chain-id }}
AWS_REGION: ${{ inputs.aws-region }}
SSM_DOCUMENT_NAME: ${{ inputs.ssm-document-name }} # kava-testnet-internal-node-update
PLAYBOOK_NAME: ${{ inputs.playbook-name }} # reset-protonet-playbook.yml
CHAIN_ID: ${{ inputs.chain-id }} # proto_2221-17000
AWS_REGION: ${{ inputs.aws-region }} # us-east-1
AWS_ACCESS_KEY_ID: ${{ secrets.CI_AWS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.CI_AWS_KEY_SECRET }}
AWS_SDK_LOAD_CONFIG: 1
PLAYBOOK_INFRASTRUCTURE_BRANCH: ${{ inputs.playbook-infrastructure-branch }}
PLAYBOOK_INFRASTRUCTURE_BRANCH: ${{ inputs.playbook-infrastructure-branch }} # master

0 comments on commit 1b2af8c

Please sign in to comment.