2021-01-09 16:23:06 +01:00
|
|
|
---
|
|
|
|
name: Continuous Integration
|
2022-02-24 14:56:09 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "master"
|
|
|
|
pull_request:
|
2021-01-09 16:23:06 +01:00
|
|
|
jobs:
|
2021-02-01 17:22:32 +01:00
|
|
|
smoke-test:
|
2021-05-18 06:28:45 +02:00
|
|
|
name: Smoke Test ${{ matrix.cfg }}
|
2021-02-01 17:22:32 +01:00
|
|
|
runs-on: ubuntu-20.04
|
2022-03-25 10:10:39 +01:00
|
|
|
timeout-minutes: 300
|
2021-01-13 11:21:57 +01:00
|
|
|
env:
|
|
|
|
DEVELOPER: 1
|
|
|
|
VALGRIND: 0
|
|
|
|
EXPERIMENTAL_FEATURES: 0
|
|
|
|
COMPAT: 1
|
2021-01-09 16:23:06 +01:00
|
|
|
strategy:
|
2021-02-01 17:22:32 +01:00
|
|
|
fail-fast: true
|
2021-01-13 11:21:57 +01:00
|
|
|
matrix:
|
|
|
|
include:
|
2021-05-18 06:28:45 +02:00
|
|
|
- CFG: "make"
|
|
|
|
TEST_CMD: "make"
|
|
|
|
- CFG: "make-O3-check"
|
|
|
|
TEST_CMD: "make check-source check-units installcheck check-gen-updated"
|
|
|
|
COPTFLAGS: "-O3"
|
|
|
|
- CFG: "make-32-bit-nodev-check"
|
|
|
|
ARCH: 32
|
|
|
|
TEST_CMD: "make check-source check-units installcheck"
|
|
|
|
DEVELOPER: 0
|
2022-06-29 06:41:10 +02:00
|
|
|
- CFG: "make-EXPERIMENTAL-check w/ VALGRIND"
|
2021-05-18 06:28:45 +02:00
|
|
|
TEST_CMD: "make check-source check-units installcheck check-gen-updated"
|
|
|
|
EXPERIMENTAL_FEATURES: 1
|
2022-06-29 06:41:10 +02:00
|
|
|
VALGRIND: 1
|
2021-02-01 17:22:32 +01:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2.0.0
|
|
|
|
|
2022-02-22 14:42:40 +01:00
|
|
|
- name: Set up Python 3.7
|
2021-02-01 17:22:32 +01:00
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
2022-02-22 15:37:30 +01:00
|
|
|
python-version: 3.7
|
2021-01-13 11:21:57 +01:00
|
|
|
|
2021-02-01 17:22:32 +01:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
bash -x .github/scripts/setup.sh
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
env:
|
|
|
|
VALGRIND: ${{ matrix.VALGRIND }}
|
|
|
|
DEVELOPER: ${{ matrix.DEVELOPER }}
|
|
|
|
EXPERIMENTAL_FEATURES: ${{ matrix.EXPERIMENTAL_FEATURES }}
|
|
|
|
COMPILER: ${{ matrix.COMPILER }}
|
|
|
|
ARCH: ${{ matrix.ARCH }}
|
|
|
|
COMPAT: ${{ matrix.COMPAT }}
|
|
|
|
PYTEST_PAR: ${{ matrix.PYTEST_PAR }}
|
|
|
|
PYTEST_OPTS: ${{ matrix.PYTEST_OPTS }}
|
|
|
|
COPTFLAGS: ${{ matrix.COPTFLAGS }}
|
|
|
|
NETWORK: ${{ matrix.NETWORK }}
|
|
|
|
TEST_CMD: ${{ matrix.TEST_CMD }}
|
|
|
|
TEST_GROUP_COUNT: ${{ matrix.TEST_GROUP_COUNT }}
|
|
|
|
TEST_GROUP: ${{ matrix.TEST_GROUP }}
|
|
|
|
run: |
|
|
|
|
bash -x .github/scripts/build.sh
|
|
|
|
|
|
|
|
- name: Upload Unit Test Results
|
|
|
|
if: always()
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: Junit Report ${{ github.run_number }}.${{ matrix.cfg }}
|
|
|
|
path: report.*
|
|
|
|
if-no-files-found: ignore
|
|
|
|
|
2021-11-04 15:10:21 +01:00
|
|
|
check-dock:
|
2022-04-06 07:09:48 +02:00
|
|
|
name: Check core-lightning doc
|
2021-11-04 15:10:21 +01:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
env:
|
|
|
|
DEVELOPER: 1
|
|
|
|
VALGRIND: 0
|
|
|
|
EXPERIMENTAL_FEATURES: 0
|
|
|
|
COMPAT: 1
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2.0.0
|
|
|
|
|
2022-02-22 15:37:30 +01:00
|
|
|
- name: Set up Python 3.7
|
2021-11-04 15:10:21 +01:00
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
2022-02-22 15:37:30 +01:00
|
|
|
python-version: 3.7
|
2021-11-04 15:10:21 +01:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: bash -x .github/scripts/setup.sh
|
|
|
|
|
|
|
|
- name: Check Doc
|
|
|
|
run: |
|
|
|
|
pip install mako
|
|
|
|
./configure
|
|
|
|
make check-doc
|
|
|
|
|
2021-03-19 17:52:39 +01:00
|
|
|
proto-test:
|
|
|
|
name: Protocol Test Config
|
|
|
|
runs-on: ubuntu-20.04
|
2022-03-25 10:10:39 +01:00
|
|
|
timeout-minutes: 300
|
2021-03-19 17:52:39 +01:00
|
|
|
needs: [smoke-test]
|
|
|
|
strategy:
|
|
|
|
fail-fast: true
|
|
|
|
matrix:
|
|
|
|
include:
|
2021-07-19 06:09:03 +02:00
|
|
|
- {compiler: clang, db: sqlite3}
|
|
|
|
- {compiler: gcc, db: postgres}
|
2021-03-19 17:52:39 +01:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2.0.0
|
2022-03-25 10:10:39 +01:00
|
|
|
- name: Build and run
|
2021-03-19 17:52:39 +01:00
|
|
|
run: |
|
2022-03-25 10:10:39 +01:00
|
|
|
docker build -f contrib/docker/Dockerfile.ubuntu -t cln-ci-ubuntu .
|
|
|
|
docker run -e ARCH=${{ matrix.arch }} \
|
|
|
|
-e COMPILER=${{ matrix.compiler }} \
|
|
|
|
-e DB=${{ matrix.db }} \
|
|
|
|
-e NETWORK=${{ matrix.network }} \
|
|
|
|
-e TARGET_HOST=${{ matrix.TARGET_HOST }} \
|
|
|
|
-e VALGRIND=${{ matrix.valgrind }} \
|
|
|
|
-e DEVELOPER=1 \
|
|
|
|
-e EXPERIMENTAL_FEATURES=1 \
|
|
|
|
-e COMPA=0 \
|
|
|
|
-e PYTEST_PAR=2 \
|
2022-03-25 23:45:30 +01:00
|
|
|
-e PYTEST_OPTS="--timeout=300" \
|
2022-03-25 10:10:39 +01:00
|
|
|
-e TEST_CMD="make check-protos" \
|
|
|
|
-e TEST_GROUP=1 \
|
|
|
|
-e TEST_GROUP_COUNT=1 \
|
|
|
|
cln-ci-ubuntu
|
2021-03-19 17:52:39 +01:00
|
|
|
- name: Upload Unit Test Results
|
|
|
|
if: always()
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: Junit Report ${{ github.run_number }}.{{ matrix.cfg }}
|
|
|
|
path: report.*
|
|
|
|
|
2021-02-01 17:22:32 +01:00
|
|
|
normal-test:
|
|
|
|
name: Normal Test Config ${{ matrix.cfg }}
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
needs: [smoke-test]
|
|
|
|
env:
|
|
|
|
DEVELOPER: 1
|
|
|
|
VALGRIND: 0
|
|
|
|
EXPERIMENTAL_FEATURES: 0
|
|
|
|
COMPAT: 1
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
2021-01-13 11:21:57 +01:00
|
|
|
# All of the following will just run `make pytest`
|
2021-05-18 06:28:45 +02:00
|
|
|
- CFG: "clang-fuzzing"
|
|
|
|
COMPILER: clang
|
|
|
|
FUZZING: 1
|
|
|
|
- CFG: "check-dbstmts"
|
|
|
|
COMPILER: gcc
|
|
|
|
TEST_CHECK_DBSTMTS: 1
|
|
|
|
- CFG: "non-DEVELOPER-non-COMPAT-1"
|
|
|
|
DEVELOPER: 0
|
|
|
|
COMPAT: 0
|
|
|
|
TEST_GROUP: 1
|
|
|
|
TEST_GROUP_COUNT: 2
|
|
|
|
- CFG: "non-DEVELOPER-non-COMPAT-2"
|
|
|
|
DEVELOPER: 0
|
|
|
|
COMPAT: 0
|
|
|
|
TEST_GROUP: 2
|
|
|
|
TEST_GROUP_COUNT: 2
|
2021-07-25 12:34:42 +02:00
|
|
|
- CFG: "DUAL_FUND"
|
|
|
|
EXPERIMENTAL_DUAL_FUND: 1
|
|
|
|
DEVELOPER: 1
|
|
|
|
COMPAT: 0
|
2021-02-01 17:22:32 +01:00
|
|
|
# Various other configurations
|
2021-05-18 06:28:45 +02:00
|
|
|
- CFG: "Elements"
|
|
|
|
NETWORK: liquid-regtest
|
|
|
|
- CFG: "PostgreSQL"
|
|
|
|
DB: postgres
|
|
|
|
PYTEST_PAR: 2
|
2021-02-01 17:22:32 +01:00
|
|
|
|
|
|
|
# The cross-compiled versions
|
2021-05-18 06:28:45 +02:00
|
|
|
- CFG: "cross-arm32"
|
|
|
|
ARCH: arm32v7
|
|
|
|
TARGET_HOST: arm-linux-gnueabihf
|
|
|
|
- CFG: "cross-arm64"
|
|
|
|
ARCH: arm64v8
|
|
|
|
TARGET_HOST: aarch64-linux-gnu
|
2021-05-11 08:08:24 +02:00
|
|
|
|
2021-05-18 06:28:45 +02:00
|
|
|
# The experimental feature test
|
|
|
|
- CFG: "EXPERIMENTAL"
|
|
|
|
EXPERIMENTAL_FEATURES: 1
|
2021-02-01 17:22:32 +01:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2.0.0
|
|
|
|
|
2022-02-22 15:37:30 +01:00
|
|
|
- name: Set up Python 3.7
|
2021-02-01 17:22:32 +01:00
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
2022-02-22 15:37:30 +01:00
|
|
|
python-version: 3.7
|
2021-02-01 17:22:32 +01:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
bash -x .github/scripts/setup.sh
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
env:
|
|
|
|
VALGRIND: ${{ matrix.VALGRIND }}
|
|
|
|
DEVELOPER: ${{ matrix.DEVELOPER }}
|
|
|
|
EXPERIMENTAL_FEATURES: ${{ matrix.EXPERIMENTAL_FEATURES }}
|
2021-05-07 20:47:17 +02:00
|
|
|
EXPERIMENTAL_DUAL_FUND: ${{ matrix.EXPERIMENTAL_DUAL_FUND }}
|
2021-02-01 17:22:32 +01:00
|
|
|
COMPILER: ${{ matrix.COMPILER }}
|
|
|
|
ARCH: ${{ matrix.ARCH }}
|
|
|
|
COMPAT: ${{ matrix.COMPAT }}
|
2021-04-19 05:56:09 +02:00
|
|
|
FUZZING: ${{ matrix.FUZZING }}
|
2021-02-01 17:22:32 +01:00
|
|
|
PYTEST_PAR: ${{ matrix.PYTEST_PAR }}
|
|
|
|
PYTEST_OPTS: ${{ matrix.PYTEST_OPTS }}
|
|
|
|
NETWORK: ${{ matrix.NETWORK }}
|
2022-01-20 05:57:09 +01:00
|
|
|
TEST_CHECK_DBSTMTS: ${{ matrix.TEST_CHECK_DBSTMTS }}
|
2021-02-01 17:22:32 +01:00
|
|
|
TEST_CMD: ${{ matrix.TEST_CMD }}
|
|
|
|
TEST_GROUP_COUNT: ${{ matrix.TEST_GROUP_COUNT }}
|
|
|
|
TEST_GROUP: ${{ matrix.TEST_GROUP }}
|
2021-10-08 13:05:54 +02:00
|
|
|
TEST_DB_PROVIDER: ${{ matrix.DB }}
|
2021-02-01 17:22:32 +01:00
|
|
|
run: |
|
|
|
|
bash -x .github/scripts/build.sh
|
|
|
|
|
|
|
|
- name: Upload Unit Test Results
|
|
|
|
if: always()
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: Junit Report ${{ github.run_number }}.${{ matrix.cfg }}
|
|
|
|
path: report.*
|
|
|
|
|
|
|
|
valgrind-test:
|
|
|
|
name: Valgrind Test Config ${{ matrix.cfg }}
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
needs: [smoke-test]
|
|
|
|
env:
|
|
|
|
DEVELOPER: 1
|
|
|
|
EXPERIMENTAL_FEATURES: 0
|
|
|
|
COMPAT: 1
|
|
|
|
TEST_GROUP_COUNT: 10
|
|
|
|
PYTEST_PAR: 3
|
2021-05-18 06:28:45 +02:00
|
|
|
LABEL: "Valgrind-test"
|
2021-02-01 17:22:32 +01:00
|
|
|
strategy:
|
|
|
|
fail-fast: true
|
|
|
|
matrix:
|
|
|
|
include:
|
2021-05-18 06:28:45 +02:00
|
|
|
- CFG: "valgrind-1"
|
|
|
|
VALGRIND: 1
|
|
|
|
TEST_GROUP: 1
|
|
|
|
TEST_GROUP_COUNT: 10
|
|
|
|
PYTEST_PAR: 3
|
|
|
|
- CFG: "valgrind-2"
|
|
|
|
VALGRIND: 1
|
|
|
|
TEST_GROUP: 2
|
|
|
|
TEST_GROUP_COUNT: 10
|
|
|
|
PYTEST_PAR: 3
|
|
|
|
- CFG: "valgrind-3"
|
|
|
|
VALGRIND: 1
|
|
|
|
TEST_GROUP: 3
|
|
|
|
TEST_GROUP_COUNT: 10
|
|
|
|
PYTEST_PAR: 3
|
|
|
|
- CFG: "valgrind-4"
|
|
|
|
VALGRIND: 1
|
|
|
|
TEST_GROUP: 4
|
|
|
|
TEST_GROUP_COUNT: 10
|
|
|
|
PYTEST_PAR: 3
|
|
|
|
- CFG: "valgrind-5"
|
|
|
|
VALGRIND: 1
|
|
|
|
TEST_GROUP: 5
|
|
|
|
TEST_GROUP_COUNT: 10
|
|
|
|
PYTEST_PAR: 3
|
|
|
|
- CFG: "valgrind-6"
|
|
|
|
VALGRIND: 1
|
|
|
|
TEST_GROUP: 6
|
|
|
|
TEST_GROUP_COUNT: 10
|
|
|
|
PYTEST_PAR: 3
|
|
|
|
- CFG: "valgrind-7"
|
|
|
|
VALGRIND: 1
|
|
|
|
TEST_GROUP: 7
|
|
|
|
TEST_GROUP_COUNT: 10
|
|
|
|
PYTEST_PAR: 3
|
|
|
|
- CFG: "valgrind-8"
|
|
|
|
VALGRIND: 1
|
|
|
|
TEST_GROUP: 8
|
|
|
|
TEST_GROUP_COUNT: 10
|
|
|
|
PYTEST_PAR: 3
|
|
|
|
- CFG: "valgrind-9"
|
|
|
|
VALGRIND: 1
|
|
|
|
TEST_GROUP: 9
|
|
|
|
TEST_GROUP_COUNT: 10
|
|
|
|
PYTEST_PAR: 3
|
|
|
|
- CFG: "valgrind-10"
|
|
|
|
VALGRIND: 1
|
|
|
|
TEST_GROUP: 10
|
|
|
|
TEST_GROUP_COUNT: 10
|
|
|
|
PYTEST_PAR: 3
|
2021-01-09 16:23:06 +01:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2.0.0
|
2021-01-19 12:02:02 +01:00
|
|
|
|
2022-02-22 15:37:30 +01:00
|
|
|
- name: Set up Python 3.7
|
2021-01-09 16:23:06 +01:00
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
2022-02-22 15:37:30 +01:00
|
|
|
python-version: 3.7
|
2021-01-09 16:23:06 +01:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2021-02-01 17:09:40 +01:00
|
|
|
bash -x .github/scripts/setup.sh
|
2021-01-09 16:23:06 +01:00
|
|
|
|
|
|
|
- name: Build
|
2021-01-13 11:21:57 +01:00
|
|
|
env:
|
|
|
|
VALGRIND: ${{ matrix.VALGRIND }}
|
|
|
|
DEVELOPER: ${{ matrix.DEVELOPER }}
|
|
|
|
EXPERIMENTAL_FEATURES: ${{ matrix.EXPERIMENTAL_FEATURES }}
|
2021-05-07 20:47:17 +02:00
|
|
|
EXPERIMENTAL_DUAL_FUND: ${{ matrix.EXPERIMENTAL_DUAL_FUND }}
|
2021-01-13 11:21:57 +01:00
|
|
|
COMPILER: ${{ matrix.COMPILER }}
|
|
|
|
ARCH: ${{ matrix.ARCH }}
|
|
|
|
COMPAT: ${{ matrix.COMPAT }}
|
|
|
|
PYTEST_PAR: ${{ matrix.PYTEST_PAR }}
|
|
|
|
PYTEST_OPTS: ${{ matrix.PYTEST_OPTS }}
|
|
|
|
NETWORK: ${{ matrix.NETWORK }}
|
|
|
|
TEST_CMD: ${{ matrix.TEST_CMD }}
|
|
|
|
TEST_GROUP_COUNT: ${{ matrix.TEST_GROUP_COUNT }}
|
|
|
|
TEST_GROUP: ${{ matrix.TEST_GROUP }}
|
2021-01-09 16:23:06 +01:00
|
|
|
run: |
|
2021-02-01 17:09:40 +01:00
|
|
|
bash -x .github/scripts/build.sh
|
2021-01-21 19:54:50 +01:00
|
|
|
|
|
|
|
- name: Upload Unit Test Results
|
|
|
|
if: always()
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2021-01-23 11:55:52 +01:00
|
|
|
name: Junit Report ${{ github.run_number }}.${{ matrix.cfg }}
|
2021-01-25 13:37:49 +01:00
|
|
|
path: report.*
|
2022-01-25 13:44:34 +01:00
|
|
|
|
|
|
|
rust-test:
|
|
|
|
name: Rust Test Config
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
needs: [smoke-test]
|
|
|
|
env:
|
|
|
|
DEVELOPER: 1
|
|
|
|
RUST: 1
|
|
|
|
VALGRIND: 0
|
2022-01-26 11:59:24 +01:00
|
|
|
# Run only the rust tests, others are not impacted.
|
|
|
|
TEST_CMD: "make -j 8 && pytest -vvv tests/test_cln_rs.py"
|
2022-01-25 13:44:34 +01:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2.0.0
|
|
|
|
|
2022-02-22 15:37:30 +01:00
|
|
|
- name: Set up Python 3.7
|
2022-01-25 13:44:34 +01:00
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
2022-02-22 15:37:30 +01:00
|
|
|
python-version: 3.7
|
2022-01-25 13:44:34 +01:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
bash -x .github/scripts/setup.sh
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
bash -x .github/scripts/build.sh
|
|
|
|
|
|
|
|
- name: Upload Unit Test Results
|
|
|
|
if: always()
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: Junit Report ${{ github.run_number }}.${{ matrix.cfg }}
|
|
|
|
path: report.*
|