This repository has been archived by the owner on Jul 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow for backend to test staging (#1909)
* Add workflow for backend to test staging * all in one file
- Loading branch information
Showing
1 changed file
with
145 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
name: Bot Staging Explorer 'Bitcoin' | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ref: | ||
description: "Which ref (branch or tag) to pull from ?" | ||
required: false | ||
default: master | ||
|
||
jobs: | ||
start-runner: | ||
name: "start ec2 instance (Linux)" | ||
if: ${{ always() }} | ||
uses: ledgerhq/actions/.github/workflows/start-linux-runner.yml@main | ||
secrets: | ||
CI_BOT_TOKEN: ${{ secrets.CI_BOT_TOKEN }} | ||
|
||
stop-runner: | ||
name: "stop ec2 instance (Linux)" | ||
needs: [start-runner, run-bot-btc, run-bot-eth] | ||
uses: ledgerhq/actions/.github/workflows/stop-linux-runner.yml@main | ||
if: ${{ always() }} | ||
with: | ||
label: ${{ needs.start-runner.outputs.label }} | ||
ec2-instance-id: ${{ needs.start-runner.outputs.ec2-instance-id }} | ||
secrets: | ||
CI_BOT_TOKEN: ${{ secrets.CI_BOT_TOKEN }} | ||
|
||
run-bot-btc: | ||
needs: [start-runner] | ||
runs-on: ${{ needs.start-runner.outputs.label }} | ||
steps: | ||
- name: prepare runner | ||
run: | | ||
sudo growpart /dev/nvme0n1 1 | ||
sudo resize2fs /dev/nvme0n1p1 | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{github.event.inputs.ref}} | ||
- name: Retrieving coin apps | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: LedgerHQ/coin-apps | ||
token: ${{ secrets.PAT }} | ||
path: coin-apps | ||
- uses: actions/setup-node@master | ||
with: | ||
node-version: 14.x | ||
- name: install yarn | ||
run: npm i -g yarn | ||
- name: pull docker image | ||
run: docker pull ghcr.io/ledgerhq/speculos | ||
- name: kill apt-get | ||
run: sudo killall -w apt-get apt || echo OK | ||
- name: Install linux deps | ||
run: sudo apt-get install -y libusb-1.0-0-dev jq | ||
- name: Install dependencies | ||
run: | | ||
yarn global add yalc | ||
yarn --frozen-lockfile | ||
yarn ci-setup-cli | ||
- name: BOT | ||
env: | ||
SHOW_LEGACY_NEW_ACCOUNT: "1" | ||
DEBUG_HTTP_RESPONSE: "1" | ||
SEED: ${{ secrets.SEED4 }} | ||
BOT_REPORT_FOLDER: botreport | ||
VERBOSE_FILE: botreport/logs.txt | ||
GITHUB_SHA: ${GITHUB_SHA} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_RUN_ID: ${{ github.run_id }} | ||
GITHUB_WORKFLOW: ${{ github.workflow }} | ||
SLACK_API_TOKEN: ${{ secrets.SLACK_API_TOKEN }} | ||
SLACK_CHANNEL: explorer-bot-stg | ||
BOT_FILTER_FAMILY: bitcoin | ||
EXPLORER: https://explorers.api-01.live.ledger-stg.com | ||
run: mkdir botreport; COINAPPS=$PWD/coin-apps yarn ci-test-bot | ||
timeout-minutes: 120 | ||
- name: Run coverage | ||
if: failure() || success() | ||
run: CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }} npx codecov | ||
- name: upload logs | ||
if: failure() || success() | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: botreport | ||
path: botreport/ | ||
|
||
run-bot-eth: | ||
needs: [start-runner] | ||
runs-on: ${{ needs.start-runner.outputs.label }} | ||
steps: | ||
- name: prepare runner | ||
run: | | ||
sudo growpart /dev/nvme0n1 1 | ||
sudo resize2fs /dev/nvme0n1p1 | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{github.event.inputs.ref}} | ||
- name: Retrieving coin apps | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: LedgerHQ/coin-apps | ||
token: ${{ secrets.PAT }} | ||
path: coin-apps | ||
- uses: actions/setup-node@master | ||
with: | ||
node-version: 14.x | ||
- name: install yarn | ||
run: npm i -g yarn | ||
- name: pull docker image | ||
run: docker pull ghcr.io/ledgerhq/speculos | ||
- name: kill apt-get | ||
run: sudo killall -w apt-get apt || echo OK | ||
- name: Install linux deps | ||
run: sudo apt-get install -y libusb-1.0-0-dev jq | ||
- name: Install dependencies | ||
run: | | ||
yarn global add yalc | ||
yarn --frozen-lockfile | ||
yarn ci-setup-cli | ||
- name: BOT | ||
env: | ||
SEED: ${{ secrets.SEED2 }} | ||
BOT_REPORT_FOLDER: botreport | ||
VERBOSE_FILE: botreport/logs.txt | ||
GITHUB_SHA: ${GITHUB_SHA} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_RUN_ID: ${{ github.run_id }} | ||
GITHUB_WORKFLOW: ${{ github.workflow }} | ||
SLACK_API_TOKEN: ${{ secrets.SLACK_API_TOKEN }} | ||
SLACK_CHANNEL: explorer-bot-stg | ||
BOT_FILTER_FAMILY: ethereum | ||
EXPLORER: https://explorers.api-01.live.ledger-stg.com | ||
run: mkdir botreport; COINAPPS=$PWD/coin-apps yarn ci-test-bot | ||
timeout-minutes: 120 | ||
- name: Run coverage | ||
if: failure() || success() | ||
run: CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }} npx codecov | ||
- name: upload logs | ||
if: failure() || success() | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: botreport | ||
path: botreport/ |
76e3f11
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ 36 txs ❌ 4 txs⚠️ 1 specs ($85.23) for Bot Staging Explorer 'Bitcoin'
1 critical spec errors
Spec PivX failed!
4 mutation errors
Details of the 40 mutations
Spec Bitcoin (8)
Spec Bitcoin Testnet (30)
Spec Bitcoin Cash (7)
Spec Bitcoin Gold (5)
Spec Dash (7)
Spec Digibyte (7)
Spec DogeCoin (7)
Spec Komodo (5)
Spec Litecoin (7)
Spec Peercoin (5)
Spec PivX (failed)
Spec Qtum (5)
Spec Stakenet (failed)
Spec Vertcoin (6)
Spec Viacoin (6)
Spec ZCash (5)
Spec Horizen (5)
Spec Decred (5)
Details of the 34 uncovered mutations
Spec Bitcoin (4)
Spec Bitcoin Gold (2)
Spec Digibyte (2)
Spec DogeCoin (2)
Spec Komodo (1)
Spec Litecoin (1)
Spec Peercoin (1)
Spec PivX (4)
Spec Qtum (3)
Spec Stakenet (4)
Spec Vertcoin (2)
Spec Viacoin (2)
Spec ZCash (2)
Spec Horizen (2)
Spec Decred (2)
Portfolio ($85.23)
Details of the 18 currencies
76e3f11
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ 52 txs ❌ 8 txs ($332.26) for Bot 'Phosphore'
8 mutation errors
Details of the 60 mutations
Spec Algorand (6)
Spec Bitcoin (5)
Spec Bitcoin Testnet (22)
Spec Bitcoin Cash (7)
Spec Bitcoin Gold (5)
Spec Dash (2)
Spec Digibyte (7)
Spec DogeCoin (7)
Spec Komodo (5)
Spec Litecoin (7)
Spec Peercoin (5)
Spec PivX (5)
Spec Qtum (5)
Spec Stakenet (5)
Spec Vertcoin (5)
Spec Viacoin (5)
Spec ZCash (5)
Spec Horizen (5)
Spec Decred (failed)
Spec Celo (5)
Spec Cosmos (20)
Spec Crypto.org Testnet (7)
Spec Crypto.org (failed)
Spec Elrond (3)
Spec BSC (7)
Spec Polygon (10)
Spec Ethereum (failed)
Spec Ethereum Classic (6)
Spec Ethereum Ropsten (10)
Spec Polkadot (2)
Spec XRP (5)
Spec Solana (7)
Spec Stellar (failed)
Spec Tezos (failed)
Spec Tron (failed)
Details of the 81 uncovered mutations
Spec Algorand (2)
Spec Bitcoin (4)
Spec Bitcoin Gold (2)
Spec Dash (4)
Spec Digibyte (1)
Spec DogeCoin (1)
Spec Komodo (1)
Spec Litecoin (2)
Spec Peercoin (1)
Spec PivX (2)
Spec Qtum (2)
Spec Stakenet (2)
Spec Vertcoin (2)
Spec Viacoin (2)
Spec ZCash (4)
Spec Horizen (1)
Spec Decred (4)
Spec Cosmos (6)
Spec Crypto.org (1)
Spec Elrond (1)
Spec BSC (2)
Spec Polygon (1)
Spec Ethereum (6)
Spec Polkadot (5)
Spec Solana (6)
Spec Stellar (1)
Spec Tezos (7)
Spec Tron (8)
Portfolio ($332.26)
Details of the 35 currencies
76e3f11
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ 49 txs ❌ 9 txs ($331.88) for Bot 'Phosphore'
9 mutation errors
Details of the 58 mutations
Spec Algorand (6)
Spec Bitcoin (5)
Spec Bitcoin Testnet (22)
Spec Bitcoin Cash (7)
Spec Bitcoin Gold (5)
Spec Dash (2)
Spec Digibyte (7)
Spec DogeCoin (7)
Spec Komodo (5)
Spec Litecoin (7)
Spec Peercoin (5)
Spec PivX (5)
Spec Qtum (5)
Spec Stakenet (5)
Spec Vertcoin (5)
Spec Viacoin (5)
Spec ZCash (5)
Spec Horizen (5)
Spec Decred (failed)
Spec Celo (5)
Spec Cosmos (20)
Spec Crypto.org Testnet (7)
Spec Crypto.org (failed)
Spec Elrond (3)
Spec BSC (7)
Spec Polygon (10)
Spec Ethereum (failed)
Spec Ethereum Classic (6)
Spec Ethereum Ropsten (10)
Spec Polkadot (2)
Spec XRP (5)
Spec Solana (7)
Spec Stellar (failed)
Spec Tezos (failed)
Spec Tron (failed)
Details of the 82 uncovered mutations
Spec Algorand (2)
Spec Bitcoin (4)
Spec Bitcoin Cash (1)
Spec Bitcoin Gold (2)
Spec Dash (4)
Spec Digibyte (1)
Spec DogeCoin (1)
Spec Komodo (1)
Spec Litecoin (2)
Spec Peercoin (2)
Spec PivX (1)
Spec Qtum (2)
Spec Stakenet (2)
Spec Vertcoin (2)
Spec Viacoin (2)
Spec ZCash (4)
Spec Horizen (1)
Spec Decred (4)
Spec Celo (1)
Spec Cosmos (6)
Spec Crypto.org (1)
Spec Elrond (1)
Spec BSC (2)
Spec Polygon (1)
Spec Ethereum (6)
Spec Polkadot (5)
Spec Solana (5)
Spec Stellar (1)
Spec Tezos (7)
Spec Tron (8)
Portfolio ($331.88)
Details of the 35 currencies
76e3f11
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ 51 txs ❌ 6 txs⚠️ 1 specs ($315.69) for Bot 'Phosphore'
1 critical spec errors
Spec Solana failed!
6 mutation errors
Details of the 57 mutations
Spec Algorand (6)
Spec Bitcoin (5)
Spec Bitcoin Testnet (22)
Spec Bitcoin Cash (7)
Spec Bitcoin Gold (5)
Spec Dash (2)
Spec Digibyte (7)
Spec DogeCoin (7)
Spec Komodo (5)
Spec Litecoin (7)
Spec Peercoin (5)
Spec PivX (5)
Spec Qtum (5)
Spec Stakenet (5)
Spec Vertcoin (5)
Spec Viacoin (5)
Spec ZCash (5)
Spec Horizen (5)
Spec Decred (failed)
Spec Celo (5)
Spec Cosmos (20)
Spec Crypto.org Testnet (7)
Spec Crypto.org (failed)
Spec Elrond (3)
Spec BSC (7)
Spec Polygon (10)
Spec Ethereum (failed)
Spec Ethereum Classic (6)
Spec Ethereum Ropsten (10)
Spec Polkadot (2)
Spec XRP (5)
Spec Solana (failed)
Spec Stellar (failed)
Spec Tezos (failed)
Spec Tron (failed)
Details of the 83 uncovered mutations
Spec Algorand (2)
Spec Bitcoin (4)
Spec Bitcoin Cash (2)
Spec Bitcoin Gold (2)
Spec Dash (4)
Spec Digibyte (1)
Spec Komodo (1)
Spec Litecoin (3)
Spec Peercoin (2)
Spec PivX (1)
Spec Qtum (2)
Spec Stakenet (2)
Spec Vertcoin (2)
Spec Viacoin (2)
Spec ZCash (4)
Spec Horizen (1)
Spec Decred (4)
Spec Cosmos (4)
Spec Crypto.org (1)
Spec Elrond (1)
Spec BSC (2)
Spec Polygon (1)
Spec Ethereum (6)
Spec Polkadot (5)
Spec Solana (8)
Spec Stellar (1)
Spec Tezos (7)
Spec Tron (8)
Portfolio ($315.69)
Details of the 35 currencies
76e3f11
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ 47 txs ❌ 8 txs⚠️ 1 specs ($318.02) for Bot 'Phosphore'
1 critical spec errors
Spec Bitcoin Testnet failed!
8 mutation errors
Details of the 55 mutations
Spec Algorand (6)
Spec Bitcoin (5)
Spec Bitcoin Testnet (16)
Spec Bitcoin Cash (7)
Spec Bitcoin Gold (5)
Spec Dash (2)
Spec Digibyte (7)
Spec DogeCoin (7)
Spec Komodo (5)
Spec Litecoin (7)
Spec Peercoin (5)
Spec PivX (5)
Spec Qtum (5)
Spec Stakenet (5)
Spec Vertcoin (5)
Spec Viacoin (5)
Spec ZCash (5)
Spec Horizen (5)
Spec Decred (failed)
Spec Celo (5)
Spec Cosmos (20)
Spec Crypto.org Testnet (7)
Spec Crypto.org (failed)
Spec Elrond (3)
Spec BSC (7)
Spec Polygon (10)
Spec Ethereum (failed)
Spec Ethereum Classic (6)
Spec Ethereum Ropsten (10)
Spec Polkadot (2)
Spec XRP (5)
Spec Solana (7)
Spec Stellar (failed)
Spec Tezos (failed)
Spec Tron (failed)
Details of the 85 uncovered mutations
Spec Algorand (3)
Spec Bitcoin (4)
Spec Bitcoin Cash (2)
Spec Bitcoin Gold (2)
Spec Dash (4)
Spec Digibyte (2)
Spec DogeCoin (1)
Spec Komodo (1)
Spec Litecoin (2)
Spec Peercoin (2)
Spec PivX (1)
Spec Qtum (2)
Spec Stakenet (2)
Spec Vertcoin (2)
Spec Viacoin (2)
Spec ZCash (4)
Spec Horizen (1)
Spec Decred (4)
Spec Cosmos (6)
Spec Crypto.org (1)
Spec Elrond (1)
Spec BSC (2)
Spec Polygon (1)
Spec Ethereum (6)
Spec Polkadot (5)
Spec Solana (6)
Spec Stellar (1)
Spec Tezos (7)
Spec Tron (8)
Portfolio ($318.02)
Details of the 35 currencies
76e3f11
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ 52 txs ❌ 8 txs ($318.12) for Bot 'Phosphore'
8 mutation errors
Details of the 60 mutations
Spec Algorand (6)
Spec Bitcoin (5)
Spec Bitcoin Testnet (22)
Spec Bitcoin Cash (7)
Spec Bitcoin Gold (5)
Spec Dash (2)
Spec Digibyte (7)
Spec DogeCoin (7)
Spec Komodo (5)
Spec Litecoin (7)
Spec Peercoin (5)
Spec PivX (5)
Spec Qtum (5)
Spec Stakenet (5)
Spec Vertcoin (5)
Spec Viacoin (5)
Spec ZCash (5)
Spec Horizen (5)
Spec Decred (failed)
Spec Celo (5)
Spec Cosmos (20)
Spec Crypto.org Testnet (7)
Spec Crypto.org (failed)
Spec Elrond (3)
Spec BSC (7)
Spec Polygon (10)
Spec Ethereum (failed)
Spec Ethereum Classic (6)
Spec Ethereum Ropsten (10)
Spec Polkadot (2)
Spec XRP (5)
Spec Solana (7)
Spec Stellar (failed)
Spec Tezos (failed)
Spec Tron (failed)
Details of the 81 uncovered mutations
Spec Algorand (1)
Spec Bitcoin (4)
Spec Bitcoin Cash (2)
Spec Bitcoin Gold (2)
Spec Dash (4)
Spec Digibyte (1)
Spec DogeCoin (1)
Spec Komodo (1)
Spec Litecoin (1)
Spec Peercoin (2)
Spec PivX (1)
Spec Qtum (2)
Spec Stakenet (2)
Spec Vertcoin (2)
Spec Viacoin (2)
Spec ZCash (4)
Spec Horizen (1)
Spec Decred (4)
Spec Cosmos (6)
Spec Crypto.org (1)
Spec Elrond (1)
Spec BSC (2)
Spec Polygon (1)
Spec Ethereum (6)
Spec Polkadot (5)
Spec Solana (6)
Spec Stellar (1)
Spec Tezos (7)
Spec Tron (8)
Portfolio ($318.12)
Details of the 35 currencies