Skip to content

Commit

Permalink
Fix CI for Parachain and refactor a bit (#393)
Browse files Browse the repository at this point in the history
* [client] don't check bobs balance after faucet creation. The test fails in the parachain because of the higher tx fees.

* [client] fix misleading log

* [client] derive blocks to wait from cli and use it consistently

* [client] fix bad call to claim rewards

* [client] skip testing the rest of the faucet

* [client] introduce blocks to wait in go_to_phase call

* [client] do await in transfer test too

* [client] await blocks after each next phase call

* fix: add go to wait to all calls

* [client] fix facuet typo

* [client] wait in between token transfers

* [client] switch order of faucet integration test

* [client] fix faucet account declaration

* [client] minor fixes for the faucet

* [client] better faucet print statements

* fix docker build

* fix faucet

* only test reputation caching for solochain

* fix faucet test

* [client] extract print events method

* [client] make waiting blocks an explicit cli arg

* [client] fmt

* add waiting blocks to bot-community.py

* disable democracy test in parachain case

* extract first and second ceremony test

* split tests up into multiple

* update python version for newer syntax

* test python install

* test python install

* fix: make reputation cache testing independent of c_index

* add strategy comment

* add comment

* [client] refactor listen command
  • Loading branch information
clangenb authored Jan 22, 2025
1 parent 51adff3 commit 653b3c7
Show file tree
Hide file tree
Showing 8 changed files with 377 additions and 278 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,16 @@ jobs:
needs: build
strategy:
matrix:
test: [ test_bootstrap_demo_community.sh, test_bot_community.sh, test_register_business.sh ]
test: [
test_bootstrap_demo_community.sh cc-fee-payment,
test_bootstrap_demo_community.sh faucet,
test_bootstrap_demo_community.sh reputation-caching,
test_bootstrap_demo_community.sh unregister-and-upgrade-registration,
test_bootstrap_demo_community.sh endorsement,
test_bootstrap_demo_community.sh democracy,
test_bot_community.sh,
test_register_business.sh
]
steps:
- uses: actions/checkout@v3

Expand All @@ -265,7 +274,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.10.16
- name: install py dependencies
run: ./scripts/install_python_deps.sh

Expand Down Expand Up @@ -300,7 +309,12 @@ jobs:
fail-fast: false
matrix:
test:
- bootstrap_demo_community.py --signer //Bob --test
- bootstrap_demo_community.py --signer //Bob --test cc-fee-payment
- bootstrap_demo_community.py --signer //Bob --test faucet
- bootstrap_demo_community.py --signer //Bob --test reputation-caching
- bootstrap_demo_community.py --signer //Bob --test unregister-and-upgrade-registration
- bootstrap_demo_community.py --signer //Bob --test endorsement
- bootstrap_demo_community.py --signer //Bob --test democracy
- bot-community-test -f http://host.docker.internal:5000/api
# Todo: #386
# - test-register-businesses -f http://host.docker.internal:5000/api
Expand Down
Loading

0 comments on commit 653b3c7

Please sign in to comment.