diff --git a/.github/workflows/nightly_wan_churn.yml b/.github/workflows/nightly_wan_churn.yml index 8c136bd87e..a44b1f6ef3 100644 --- a/.github/workflows/nightly_wan_churn.yml +++ b/.github/workflows/nightly_wan_churn.yml @@ -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. @@ -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@network_commands with: action: create re-attempts: 3 @@ -45,17 +48,17 @@ 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 @@ -63,26 +66,26 @@ jobs: 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 @@ -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()