Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandSherwin committed Apr 2, 2024
1 parent 4fb740c commit b6e4e9d
Showing 1 changed file with 39 additions and 36 deletions.
75 changes: 39 additions & 36 deletions .github/workflows/nightly_wan_churn.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: Nightly -- Perform long running network churn

on:
schedule:
- cron: "0 */12 * * *"
workflow_dispatch:

# tests must run for a PR to be valid and pass merge queue muster
# on main, we want to know that all commits are passing at a glance, any deviation should help bisecting errors
# the merge run checks should show on master and enable this clear test/passing history
merge_group:
branches: [main, alpha*, beta*, rc*]
pull_request:
branches: ["*"]

env:
CARGO_INCREMENTAL: 0 # bookkeeping for incremental builds has overhead, not useful in CI.
Expand All @@ -31,7 +34,7 @@ jobs:
timeout-minutes: 30

- name: Start a WAN network
uses: maidsafe/sn-testnet-action@main
uses: RolandSherwin/sn-testnet-action@network_commands
with:
action: create
re-attempts: 3
Expand All @@ -45,44 +48,44 @@ jobs:
security-group-id: sg-0d47df5b3f0d01e2a
subnet-id: subnet-018f2ab26755df7f9
node-count: 20
vm-count: 5
vm-count: 1
provider: digital-ocean
testnet-name: NightlyChurnE2E
custom-node-bin-org-name: maidsafe
custom-node-bin-branch-name: main

- name: Download material, 1.6G
shell: bash
run: |
wget https://releases.ubuntu.com/16.04/ubuntu-16.04.7-desktop-amd64.iso
ls -l
# - name: Download material, 1.6G
# shell: bash
# run: |
# wget https://releases.ubuntu.com/16.04/ubuntu-16.04.7-desktop-amd64.iso
# ls -l

- name: Check env variables
shell: bash
run: |
echo "Peer is $SAFE_PEERS"
echo "Deployment inventory is $SN_INVENTORY"
- name: Obtain the funds from the faucet
run: |
# read the inventory file
inventory_path=/home/runner/.local/share/safe/testnet-deploy/NightlyChurnE2E-inventory.json
echo "Inventory Path: $inventory_path"
faucet_address=$(jq -r '.faucet_address' $inventory_path)
cargo run --bin safe --release -- wallet get-faucet ${faucet_address}
cargo run --bin safe --release -- wallet get-faucet ${faucet_address}
cargo run --bin safe --release -- wallet get-faucet ${faucet_address}
cargo run --bin safe --release -- wallet get-faucet ${faucet_address}
cargo run --bin safe --release -- wallet get-faucet ${faucet_address}
env:
SN_LOG: "all"
timeout-minutes: 2

- name: Start a client to upload
run: cargo run --bin safe -- --log-output-dest=data-dir files upload "ubuntu-16.04.7-desktop-amd64.iso" --retry-strategy quick
env:
SN_LOG: "all"
timeout-minutes: 45
# - name: Obtain the funds from the faucet
# run: |
# # read the inventory file
# inventory_path=/home/runner/.local/share/safe/testnet-deploy/NightlyChurnE2E-inventory.json
# echo "Inventory Path: $inventory_path"
# faucet_address=$(jq -r '.faucet_address' $inventory_path)
# cargo run --bin safe --release -- wallet get-faucet ${faucet_address}
# cargo run --bin safe --release -- wallet get-faucet ${faucet_address}
# cargo run --bin safe --release -- wallet get-faucet ${faucet_address}
# cargo run --bin safe --release -- wallet get-faucet ${faucet_address}
# cargo run --bin safe --release -- wallet get-faucet ${faucet_address}
# env:
# SN_LOG: "all"
# timeout-minutes: 2

# - name: Start a client to upload
# run: cargo run --bin safe -- --log-output-dest=data-dir files upload "ubuntu-16.04.7-desktop-amd64.iso" --retry-strategy quick
# env:
# SN_LOG: "all"
# timeout-minutes: 45

- name: Cause random churn
uses: RolandSherwin/sn-testnet-action/network_commands@network_commands
Expand All @@ -94,11 +97,11 @@ jobs:
random-churn-time-frame: 60
random-churn-count: 5

- name: Start a client to download files
run: cargo run --bin safe --release -- --log-output-dest=data-dir files download --retry-strategy quick
env:
SN_LOG: "all"
timeout-minutes: 30
# - name: Start a client to download files
# run: cargo run --bin safe --release -- --log-output-dest=data-dir files download --retry-strategy quick
# env:
# SN_LOG: "all"
# timeout-minutes: 30

- name: Fetch network logs
if: always()
Expand Down

0 comments on commit b6e4e9d

Please sign in to comment.