Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
Polkabot
Browse files Browse the repository at this point in the history
  • Loading branch information
hakim-adamik committed May 12, 2022
1 parent b69223c commit 6bae3a2
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/bot-polkadot-silicium.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Bot 'Polkadot on Silicium'
on:
push:
branches:
- family/polkadot

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]
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:
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@v2
- 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.SEED3 }}
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: ci-dot-ll
BOT_FILTER_FAMILY: polkadot
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/

1 comment on commit 6bae3a2

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ 1 txs ($19.01) for Bot 'Polkadot on Silicium'

⚠️ 5 mutations uncovered

1 mutation errors
all accounts sync in 68.3s
▬ Polkadot 12.9200.0 on nanoS 2.1.0
→ FROM Polkadot 1 cross: 1.0619 DOT (164ops) (134PU8cEURfnfm9uH43zfLmSMzYv19qWmwb1vqndfyVbCVsX on 44'/354'/0'/0'/0') polkadotbip44#0 js:2:polkadot:134PU8cEURfnfm9uH43zfLmSMzYv19qWmwb1vqndfyVbCVsX:polkadotbip44 (! sum of ops 1.0619877176 DOT) 0.0618177264 DOT spendable. 1.00017 DOT locked. 1.00017 DOT unlocked. 
stash : 134PU8cEURfnfm9uH43zfLmSMzYv19qWmwb1vqndfyVbCVsX
controller : 134PU8cEURfnfm9uH43zfLmSMzYv19qWmwb1vqndfyVbCVsX

⚠️ LedgerAPI5xx: An invalid response was received from the upstream server

LedgerAPI5xx: An invalid response was received from the upstream server
Details of the 1 mutations

Spec Polkadot (3)

Spec Polkadot found 3 Polkadot accounts (preload: 71.7s). Will use Polkadot 12.9200.0 on nanoS 2.1.0
(58.6s) Polkadot 1 cross: 1.0619 DOT (164ops) (134PU8cEURfnfm9uH43zfLmSMzYv19qWmwb1vqndfyVbCVsX on 44'/354'/0'/0'/0') polkadotbip44#0 js:2:polkadot:134PU8cEURfnfm9uH43zfLmSMzYv19qWmwb1vqndfyVbCVsX:polkadotbip44
(52.6s) Polkadot 2: 1.0449 DOT (214ops) (1NxpxpMCxP8eV1ctrp8C3wXD7zN5f2WRNKENDa51w8e9hQC on 44'/354'/1'/0'/0') polkadotbip44#1 js:2:polkadot:1NxpxpMCxP8eV1ctrp8C3wXD7zN5f2WRNKENDa51w8e9hQC:polkadotbip44
(57.8s) Polkadot 3: 0 DOT (0ops) (11ysWistr6HA7ZQtAdyTWKTgwBfzTWKsACnxca4QQPGZHsG on 44'/354'/2'/0'/0') polkadotbip44#2 js:2:polkadot:11ysWistr6HA7ZQtAdyTWKTgwBfzTWKsACnxca4QQPGZHsG:polkadotbip44
all accounts sync in 68.3s
▬ Polkadot 12.9200.0 on nanoS 2.1.0
→ FROM Polkadot 1 cross: 1.0619 DOT (164ops) (134PU8cEURfnfm9uH43zfLmSMzYv19qWmwb1vqndfyVbCVsX on 44'/354'/0'/0'/0') polkadotbip44#0 js:2:polkadot:134PU8cEURfnfm9uH43zfLmSMzYv19qWmwb1vqndfyVbCVsX:polkadotbip44 (! sum of ops 1.0619877176 DOT) 0.0618177264 DOT spendable. 1.00017 DOT locked. 1.00017 DOT unlocked. 
stash : 134PU8cEURfnfm9uH43zfLmSMzYv19qWmwb1vqndfyVbCVsX
controller : 134PU8cEURfnfm9uH43zfLmSMzYv19qWmwb1vqndfyVbCVsX

⚠️ LedgerAPI5xx: An invalid response was received from the upstream server


Details of the 5 uncovered mutations

Spec Polkadot (5)

  • send 50%~: balance is too low (2)
  • bond - bondExtra: balance is too low (2)
  • unbond: balance is too low (2)
  • rebond: balance is too low (2)
  • nominate: balance is too low (2)

Portfolio ($19.01)

⚠️ 1 specs don't have enough funds! (Polkadot)

Details of the 1 currencies
Spec (accounts) Operations Balance funds?
Polkadot (1) 378 0.10649 DOT ($19.01) ❌ 134PU8cEURfnfm9uH43zfLmSMzYv19qWmwb1vqndfyVbCVsX

Please sign in to comment.