Skip to content

Commit

Permalink
CCIP-2875: Attempting to wire wallet key to secret config
Browse files Browse the repository at this point in the history
  • Loading branch information
b-gopalswami committed Jul 29, 2024
1 parent 8ad2a30 commit c1da779
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
17 changes: 16 additions & 1 deletion .github/actions/setup-create-base64-config-ccip/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ inputs:
evmNodeLogLevel:
description: Log level for the custom EVM nodes
default: "info"
walletKey:
description: Holds private key of wallet that used in the test

runs:
using: composite
Expand All @@ -65,6 +67,7 @@ runs:
GRAFANA_BEARER_TOKEN: ${{ inputs.grafanaBearerToken }}
CUSTOM_EVM_NODES: ${{ inputs.customEvmNodes }}
EVM_NODE_LOG_LEVEL: ${{ inputs.evmNodeLogLevel }}
WALLET_KEY: ${{ inputs.walletKey }}
run: |
echo ::add-mask::$CHAINLINK_IMAGE
function convert_to_toml_array() {
Expand Down Expand Up @@ -133,11 +136,20 @@ runs:
fi
fi
wallet_key_from_secret="[CCIP.Env.Network.WalletKeys]"
for i in "${!networks_array[@]}"; do
wallet_key_from_secret += "
${networks_array[i]} = [$wallet_key]
"
done
grafana_bearer_token=""
if [ -n "$GRAFANA_BEARER_TOKEN" ]; then
grafana_bearer_token="bearer_token_secret=\"$GRAFANA_BEARER_TOKEN\""
fi
cat << EOF > config.toml
[CCIP]
[CCIP.Env]
Expand All @@ -155,6 +167,8 @@ runs:
version="$UPGRADE_VERSION"

$custom_nodes_toml

$wallet_key_from_secret

[CCIP.Env.Logging]
test_log_collect=$test_log_collect
Expand All @@ -178,6 +192,7 @@ runs:

[CCIP.Groups.smoke]
TestRunName = '$EXISTING_NAMESPACE'


EOF

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/ccip-live-network-tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CCIP On-Demand Live Network Tests
on:
schedule:
- cron: '0 */6 * * *'
# schedule:
# - cron: '0 */6 * * *'
workflow_dispatch:
inputs:
base64_test_input : # base64 encoded toml for test input
Expand Down Expand Up @@ -180,6 +180,7 @@ jobs:
logstreamLogTargets: ${{ vars.LOGSTREAM_LOG_TARGETS }}
grafanaUrl: ${{ vars.GRAFANA_URL }}
grafanaDashboardUrl: "/d/6vjVx-1V8/ccip-long-running-tests"
walletKey: ${{ secrets.WALLET_KEY }}
- name: Run Tests
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/run-tests@5dd916d08c03cb5f9a97304f4f174820421bb946 # v2.3.11
env:
Expand Down

0 comments on commit c1da779

Please sign in to comment.