Skip to content

Commit

Permalink
Switch all scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles committed Dec 6, 2023
1 parent 0992efb commit e66bf1d
Show file tree
Hide file tree
Showing 72 changed files with 76 additions and 80 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ jobs:
integration_tests:
name: run integration tests
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/pre_release_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@ jobs:
shared-key: "build-debug"
save-if: "false"
- name: Run integration tests
shell: bash
run: ./scripts/run-integration-tests.sh $GITHUB_REF_NAME
2 changes: 1 addition & 1 deletion scripts/deploy-local.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Deploys everything needed to test OpenChat locally (OpenChat, OpenStorage and the NNS canisters)

Expand Down
4 changes: 2 additions & 2 deletions scripts/deploy-testnet.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

NETWORK=$1
IC_URL=$2
Expand Down Expand Up @@ -45,4 +45,4 @@ dfx --identity $IDENTITY canister create --provisional-create-canister-effective
$NNS_CMC_CANISTER_ID \
$NNS_SNS_WASM_CANISTER_ID \
$NNS_INDEX_CANISTER_ID \
true \
true \
2 changes: 1 addition & 1 deletion scripts/deploy-website-prod-test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Pass in DFX identity name and website version
# eg './deploy-website-prod-test.sh openchat 2.0.305'
Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy-website-prod.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Pass in DFX identity name and website version
# eg './deploy-website-prod.sh openchat 2.0.305'
Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy-website-testnet.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Pass in DFX identity name, website version and network name
# eg './deploy-website-testnet.sh openchat 2.0.305 small06'
Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy-website-web-test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Pass in DFX identity name and website version
# eg './deploy-website-web-test.sh openchat 2.0.305'
Expand Down
4 changes: 2 additions & 2 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Pass in network name, IC url, identity name, Governance canisterId, Ledger canisterId, CMC canisterId, and test mode (true/false)
# eg './deploy.sh ic https://ic0.app/ openchat rrkah-fqaaa-aaaaa-aaaaq-cai ryjl3-tyaaa-aaaaa-aaaba-cai rkp4c-7iaaa-aaaaa-aaaca-cai false'
Expand Down Expand Up @@ -68,4 +68,4 @@ cargo run \
--nns-ledger $NNS_LEDGER_CANISTER_ID \
--nns-cmc $NNS_CMC_CANISTER_ID \
--nns-sns-wasm $NNS_SNS_WASM_CANISTER_ID \
--nns-index $NNS_INDEX_CANISTER_ID
--nns-index $NNS_INDEX_CANISTER_ID
2 changes: 1 addition & 1 deletion scripts/docker-build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

SCRIPT=$(readlink -f "$0")
SCRIPT_DIR=$(dirname "$SCRIPT")
Expand Down
2 changes: 1 addition & 1 deletion scripts/make_custom_function_proposal.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# cd into folder containing this script
SCRIPT=$(readlink -f "$0")
Expand Down
2 changes: 1 addition & 1 deletion scripts/make_proposal.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# cd into root of OpenChat repo
SCRIPT=$(readlink -f "$0")
Expand Down
4 changes: 2 additions & 2 deletions scripts/make_upgrade_canister_proposal.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# cd into root of OpenChat repo
SCRIPT=$(readlink -f "$0")
Expand Down Expand Up @@ -34,7 +34,7 @@ if [ "$FUNCTION_ID" -ge "1000" ] ; then
# Setup variables
WASM_FILE=$CANISTER_NAME.wasm.gz
WASM_PATH=$WASM_FOLDER/$WASM_FILE
PROPOSAL_BUILDER_FOLDER=$SCRIPT_DIR/../backend/canister_upgrade_proposal_builder
PROPOSAL_BUILDER_FOLDER=$SCRIPT_DIR/../backend/canister_upgrade_proposal_builder
PROPOSAL_FILE=proposal.candid
PROPOSAL_BUILDER_PATH=$PROPOSAL_BUILDER_FOLDER/$PROPOSAL_FILE

Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/add_canister_to_cycles_dispenser.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Extract the args or use defaults
CANISTER_ID=$1
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/add_platform_operator.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Extract the args or use defaults
USER_ID=$1
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/add_token_to_registry.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Extract the args or use defaults
TOKEN_NAME=$1
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/appoint_admins_in_proposals_group.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

GOVERNANCE_CANISTER_ID=$1
SNS_NAME=$2
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/call_infinity_swap_burn.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Set current directory to the scripts root
SCRIPT=$(readlink -f "$0")
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/call_infinity_swap_mint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Set current directory to the scripts root
SCRIPT=$(readlink -f "$0")
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/call_infinity_swap_receive_tokens.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Set current directory to the scripts root
SCRIPT=$(readlink -f "$0")
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/call_infinity_swap_refund_transfer.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Set current directory to the scripts root
SCRIPT=$(readlink -f "$0")
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/import_proposals_group_into_community.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Extract the args
GOVERNANCE_CANISTER_ID=$1
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/manage_nns_neuron.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Set current directory to the scripts root
SCRIPT=$(readlink -f "$0")
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/motion.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# cd into the scripts folder
SCRIPT=$(readlink -f "$0")
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/remove_custom_sns_function.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Extract the args or use defaults
TITLE=$1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Extract the args or use defaults
CONCURRENCY=$1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

TITLE="Increase max concurrent user canister upgrades to 50 per subnet"
SUMMARY="It currently takes 1.5 days for all user canisters to be upgraded.
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/stake_nns_neuron.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Set current directory to the scripts root
SCRIPT=$(readlink -f "$0")
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/transfer_from_treasury.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Extract the args
TITLE=$1
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/update_cycles_dispenser_config.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

TITLE="Update CyclesDispenser config"
SUMMARY="Set the min cycles balance to 1000T and set the ICP burn amount to 50 ICP.
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/update_token_in_registry.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Extract the args or use defaults
LEDGER_CANISTER_ID=$1
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/upgrade_asset_canister.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# cd into the folder containing this script
SCRIPT=$(readlink -f "$0")
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/upgrade_communities.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

VERSION=$1
SUMMARY_PATH=$2
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/upgrade_cycles_dispenser.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

VERSION=$1
SUMMARY_PATH=$2
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/upgrade_group_index.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

VERSION=$1
SUMMARY_PATH=$2
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/upgrade_groups.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

VERSION=$1
SUMMARY_PATH=$2
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/upgrade_local_group_indexes.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

VERSION=$1
SUMMARY_PATH=$2
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/upgrade_local_user_indexes.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

VERSION=$1
SUMMARY_PATH=$2
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/upgrade_market_maker.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

VERSION=$1
SUMMARY_PATH=$2
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/upgrade_neuron_controller.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

VERSION=$1
SUMMARY_PATH=$2
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/upgrade_notifications.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

VERSION=$1
SUMMARY_PATH=$2
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/upgrade_notifications_index.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

VERSION=$1
SUMMARY_PATH=$2
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/upgrade_online_users.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

VERSION=$1
SUMMARY_PATH=$2
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/upgrade_proposal_validation.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

VERSION=$1
SUMMARY_PATH=$2
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/upgrade_proposals_bot.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

VERSION=$1
SUMMARY_PATH=$2
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/upgrade_registry.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

VERSION=$1
SUMMARY_PATH=$2
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/upgrade_sns_canisters_to_next_version.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Extract the args or use defaults
TITLE=$1
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/upgrade_storage_buckets.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

VERSION=$1
SUMMARY_PATH=$2
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/upgrade_storage_index.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

VERSION=$1
SUMMARY_PATH=$2
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/upgrade_user_index.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

VERSION=$1
SUMMARY_PATH=$2
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/upgrade_users.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

VERSION=$1
SUMMARY_PATH=$2
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/upgrade_website_motion.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# cd into the folder containing this script
SCRIPT=$(readlink -f "$0")
Expand Down
2 changes: 1 addition & 1 deletion scripts/upgrade-canister-local.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Pass in the dfx identity name
# eg './upgrade-canister-local.sh openchat user_index 1.0.0'
Expand Down
2 changes: 1 addition & 1 deletion scripts/upgrade-canister-prod-test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Pass in the dfx identity name
# eg './upgrade-canister-prod-test.sh openchat user_index 1.0.0'
Expand Down
2 changes: 1 addition & 1 deletion scripts/upgrade-canister-prod.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Pass in the dfx identity name
# eg './upgrade-canister-prod.sh openchat user_index 1.0.0'
Expand Down
4 changes: 2 additions & 2 deletions scripts/upgrade-canister.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Pass in network name, IC url, identity name, canister name, and version
# eg './upgrade-canister.sh local http://127.0.0.1:8080/ openchat user_index 1.0.0'
Expand Down Expand Up @@ -50,4 +50,4 @@ cargo run \
--neuron-controller $NEURON_CONTROLLER_CANISTER_ID \
--escrow $ESCROW_CANISTER_ID \
--canister-to-upgrade $CANISTER_NAME \
--version $VERSION \
--version $VERSION \
2 changes: 1 addition & 1 deletion scripts/validate-candid-matches-rust.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

SCRIPT=$(readlink -f "$0")
SCRIPT_DIR=$(dirname "$SCRIPT")
Expand Down
2 changes: 1 addition & 1 deletion scripts/validate-candid-syntax.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

SCRIPT=$(readlink -f "$0")
SCRIPT_DIR=$(dirname "$SCRIPT")
Expand Down
4 changes: 2 additions & 2 deletions sns/config/sns_proposal.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Set current directory to the directory this script is in
SCRIPT=$(readlink -f "$0")
Expand Down Expand Up @@ -75,4 +75,4 @@ ic-admin --nns-url $NNS_URL \
--sale-delay-seconds 86400 \
--proposal-title "$PROPOSAL_TITLE" \
--proposal-url "$PROPOSAL_URL" \
--summary "$SUMMARY"
--summary "$SUMMARY"
Loading

0 comments on commit e66bf1d

Please sign in to comment.