Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci tests update #575

Closed
wants to merge 28 commits into from
Closed
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
f0014bb
sync pytests with research-archive
SirSevenG Feb 23, 2023
d0f1c8a
remove unused tests, switch to requests lib for pytests, fix tests co…
SirSevenG Feb 23, 2023
6026981
pytests: update bootstrap
SirSevenG Feb 24, 2023
00ca661
Workflow: Use requests instead of slickrpc, formatting, remove unnece…
SirSevenG Feb 24, 2023
0668136
Workflow: deps change
SirSevenG Feb 24, 2023
e7e3364
Workflow: pip deps
SirSevenG Feb 24, 2023
b3a41d0
Workflow: comment out mac CPATH
SirSevenG Feb 24, 2023
60b252f
Workflow: encomment CPATH, remove pycurl pip dep
SirSevenG Feb 24, 2023
c045bd0
Workflow: update deprecated actions
SirSevenG Feb 24, 2023
c131d20
Workflow: revert gcc version for mac
SirSevenG Feb 24, 2023
bfe7442
Workflow: Up artifact actions version
SirSevenG Feb 25, 2023
1a21aeb
Workflow: fix access to linux artifacts
SirSevenG Feb 25, 2023
a2b96c4
Pytests: update bootstrap domain
SirSevenG Mar 8, 2023
5019539
Merge pull request #571 from SirSevenG/pytest-sync
smk762 Mar 16, 2023
1b67953
use mac 11
smk762 Mar 16, 2023
2c6c2b6
use mac-12, get logs
smk762 Mar 16, 2023
9801241
specify xcode version
smk762 Mar 17, 2023
335b616
add build flag
smk762 Mar 17, 2023
195a66e
debug OSError
smk762 Mar 17, 2023
b6fe562
bump darwin gcc version to 12
DeckerSU Mar 17, 2023
88fcf1c
fix write NUL byte to the end of out
DeckerSU Mar 17, 2023
9fb82a2
add -Wno-deprecated-declarations to darwin build
DeckerSU Mar 17, 2023
13ccf1d
change py test check_synced on more reliable all nodes have same bloc…
dimxy Mar 28, 2023
dd44541
add waiting for importprivkey timed out; better handling komodod star…
dimxy Mar 28, 2023
cabdaa0
in py tests waiting for tx to mine add assert txid to fail early
dimxy Mar 28, 2023
2a4c220
in test_channels.py add -DTESTMODE warning
dimxy Mar 28, 2023
dcd6db3
Merge pull request #577 from KomodoPlatform/ci-tests-update-fix
ca333 Jan 26, 2024
e7b7738
Merge pull request #581 from dimxy/bugfix-py-test-err-handling
ca333 Jan 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 60 additions & 55 deletions .github/workflows/komodo_linux_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,46 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install deps (Linux)

env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get update # prevents repo404 errors on apt-remove below
sudo apt-get remove php* msodbcsql17 mysql* powershell dotn*
sudo apt-get update
sudo ACCEPT_EULA=Y apt-get upgrade -y
sudo apt-get install -q \
curl \
python3 \
python3-dev \
python3-setuptools \
python3-pip \
libcurl4-openssl-dev \
libssl-dev -y
python3 -m pip install setuptools wheel
python3 -m pip install pytest wget jsonschema
python3 -m pip install -Iv https://github.com/KomodoPlatform/slick-bitcoinrpc/archive/refs/tags/0.1.4.tar.gz
build-essential \
pkg-config \
libc6-dev \
m4 \
g++-multilib \
autoconf \
libtool \
ncurses-dev \
unzip \
git \
python3 \
python3-zmq \
zlib1g-dev \
wget \
libcurl4-gnutls-dev \
bsdmainutils \
automake \
curl \
cmake \
mingw-w64 \
libsodium-dev \
libevent-dev -y

- name: Build (Linux)
run: |
# flag for some CC tests transactions - so DO NOT USE THIS CI ARTIFACTS IN PRODUCTION!!!
CONFIGURE_FLAGS='CPPFLAGS=-DTESTMODE' ./zcutil/build.sh -j$(nproc)
tar -czvf komodo-linux.tar.gz src/komodod src/komodo-cli

- name: Upload komodo-linux.tar.gz as artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: komodo-linux
path: ./komodo-linux.tar.gz
Expand All @@ -53,7 +64,7 @@ jobs:
needs: linux-build

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install deps (Dice, Token, Faucet, Rewards CC)
run: |
Expand All @@ -63,33 +74,32 @@ jobs:
python3 \
python3-dev \
python3-setuptools \
python3-pip \
libcurl4-openssl-dev \
libssl-dev -y
python3 -m pip install setuptools wheel
python3-pip
python3 -m pip install wheel
python3 -m pip install pytest wget jsonschema
python3 -m pip install -Iv https://github.com/KomodoPlatform/slick-bitcoinrpc/archive/refs/tags/0.1.4.tar.gz
python3 -m pip install requests ujson

- name: Download komodo-linux.tar.gz
uses: actions/download-artifact@v1
uses: actions/download-artifact@v3
with:
name: komodo-linux

- name: Test CC (Linux)
run: |
mv komodo-linux/komodo-linux.tar.gz .
mkdir -p src
tar xzvf komodo-linux.tar.gz
./zcutil/fetch-params.sh
cd qa/pytest_komodo
./ci_setup.sh "cc_modules/test_dice.py cc_modules/test_faucet.py cc_modules/test_token.py cc_modules/test_rewards.py"

linux-test-oracles:

name: Test (Linux/OraclesCC)
runs-on: ubuntu-latest
needs: linux-build

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install deps (OraclesCC)
run: |
Expand All @@ -99,33 +109,32 @@ jobs:
python3 \
python3-dev \
python3-setuptools \
python3-pip \
libcurl4-openssl-dev \
libssl-dev -y
python3 -m pip install setuptools wheel
python3-pip
python3 -m pip install wheel
python3 -m pip install pytest wget jsonschema
python3 -m pip install -Iv https://github.com/KomodoPlatform/slick-bitcoinrpc/archive/refs/tags/0.1.4.tar.gz
python3 -m pip install requests ujson

- name: Download komodo-linux.tar.gz
uses: actions/download-artifact@v1
uses: actions/download-artifact@v3
with:
name: komodo-linux

- name: Oracles Test (Linux)
run: |
mv komodo-linux/komodo-linux.tar.gz .
mkdir -p src
tar xzvf komodo-linux.tar.gz
./zcutil/fetch-params.sh
cd qa/pytest_komodo
./ci_setup.sh cc_modules/test_oracles.py

linux-test-baserpc:

name: Test (Linux/BasicRPC)
runs-on: ubuntu-latest
needs: linux-build

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install deps (BasicRPC)
run: |
Expand All @@ -135,33 +144,32 @@ jobs:
python3 \
python3-dev \
python3-setuptools \
python3-pip \
libcurl4-openssl-dev \
libssl-dev -y
python3 -m pip install setuptools wheel
python3-pip
python3 -m pip install wheel
python3 -m pip install pytest wget jsonschema
python3 -m pip install -Iv https://github.com/KomodoPlatform/slick-bitcoinrpc/archive/refs/tags/0.1.4.tar.gz
python3 -m pip install requests ujson

- name: Download komodo-linux.tar.gz
uses: actions/download-artifact@v1
uses: actions/download-artifact@v3
with:
name: komodo-linux

- name: BasicRPC Test (Linux)
run: |
mv komodo-linux/komodo-linux.tar.gz .
mkdir -p src
tar xzvf komodo-linux.tar.gz
./zcutil/fetch-params.sh
cd qa/pytest_komodo
./ci_setup.sh basic

linux-test-channels:

name: Test (Linux/ChannelsCC)
runs-on: ubuntu-latest
needs: linux-build

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install deps (ChannelsCC)
run: |
Expand All @@ -171,33 +179,32 @@ jobs:
python3 \
python3-dev \
python3-setuptools \
python3-pip \
libcurl4-openssl-dev \
libssl-dev -y
python3 -m pip install setuptools wheel
python3-pip
python3 -m pip install wheel
python3 -m pip install pytest wget jsonschema
python3 -m pip install -Iv https://github.com/KomodoPlatform/slick-bitcoinrpc/archive/refs/tags/0.1.4.tar.gz
python3 -m pip install requests ujson

- name: Download komodo-linux.tar.gz
uses: actions/download-artifact@v1
uses: actions/download-artifact@v3
with:
name: komodo-linux

- name: Channels Test (Linux)
run: |
mv komodo-linux/komodo-linux.tar.gz .
mkdir -p src
tar xzvf komodo-linux.tar.gz
./zcutil/fetch-params.sh
cd qa/pytest_komodo
./ci_setup.sh cc_modules/test_channels.py

linux-test-heir:

name: Test (Linux/HeirCC)
runs-on: ubuntu-latest
needs: linux-build

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install deps (HeirCC)
run: |
Expand All @@ -207,20 +214,18 @@ jobs:
python3 \
python3-dev \
python3-setuptools \
python3-pip \
libcurl4-openssl-dev \
libssl-dev -y
python3 -m pip install setuptools wheel
python3-pip
python3 -m pip install wheel
python3 -m pip install pytest wget jsonschema
python3 -m pip install -Iv https://github.com/KomodoPlatform/slick-bitcoinrpc/archive/refs/tags/0.1.4.tar.gz
python3 -m pip install requests ujson

- name: Download komodo-linux.tar.gz
uses: actions/download-artifact@v1
uses: actions/download-artifact@v3
with:
name: komodo-linux

- name: Heir Test (Linux)
run: |
mv komodo-linux/komodo-linux.tar.gz .
mkdir -p src
tar xzvf komodo-linux.tar.gz
./zcutil/fetch-params.sh
Expand Down
Loading