Skip to content

Commit

Permalink
[CCIP-2875] fix live network tests (#1250)
Browse files Browse the repository at this point in the history
## Problem
The previous shared wallet used in the live network tests is
discontinued and we are advised to use new
wallet(`0xB509c046e1182c7B36d2D9733554BC268716803C`) provided by
Security team and the private key of this wallet is stored in github
secret name `QA_SHARED_803C_KEY`. Need to wire this secret to our test
config to consume the private key in our test.

https://smartcontract-it.atlassian.net/browse/CCIP-2875

## Solution

1. Added a stop gap solution until
[testsecrets](#1189)
changes are merged and secrets are modified.
2. Enable the workflow schedule

---------

Co-authored-by: Balamurali Gopalswami <[email protected]>
Co-authored-by: Balamurali Gopalswami <[email protected]>
  • Loading branch information
3 people authored Aug 12, 2024
1 parent 9cfb5c3 commit 702e485
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 59 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ccip-live-network-tests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: CCIP On-Demand Live Network Tests
on:
# Enable this when CCIP-2875 is addressed
# schedule:
# - cron: '0 */6 * * *'
schedule:
- cron: '0 */6 * * *'
workflow_dispatch:
inputs:
base64_test_input : # base64 encoded toml for test input
Expand Down Expand Up @@ -145,6 +144,10 @@ jobs:
- name: Prepare Base64 TOML override
shell: bash
run: |
# this key secrets.QA_SHARED_803C_KEY has a story behind it. To know more, see CCIP-2875 and SECHD-16575 tickets.
BASE64_NETWORK_CONFIG=$(echo $BASE64_NETWORK_CONFIG | base64 -w 0 -d | sed -e 's/evm_key/${{ secrets.QA_SHARED_803C_KEY }}/g' | base64 -w 0)
echo ::add-mask::$BASE64_NETWORK_CONFIG
echo "BASE64_NETWORK_CONFIG=$BASE64_NETWORK_CONFIG" >> "$GITHUB_ENV"
SLACK_USER=$(jq -r '.inputs.slackMemberID' $GITHUB_EVENT_PATH)
echo ::add-mask::$SLACK_USER
echo "SLACK_USER=$SLACK_USER" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -248,6 +251,9 @@ jobs:
- name: Prepare Base64 TOML override
shell: bash
run: |
BASE64_NETWORK_CONFIG=$(echo $BASE64_NETWORK_CONFIG | base64 -w 0 -d | sed -e 's/evm_key/${{ secrets.QA_SHARED_803C_KEY }}/g' | base64 -w 0)
echo ::add-mask::$BASE64_NETWORK_CONFIG
echo "BASE64_NETWORK_CONFIG=$BASE64_NETWORK_CONFIG" >> "$GITHUB_ENV"
SLACK_USER=$(jq -r '.inputs.slackMemberID' $GITHUB_EVENT_PATH)
echo ::add-mask::$SLACK_USER
echo "SLACK_USER=$SLACK_USER" >> "$GITHUB_ENV"
Expand Down
Loading

0 comments on commit 702e485

Please sign in to comment.