mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 02:27:51 +01:00
eff160cbae
The lnprototest occasionally fails on our CI due to the timeout duration we set while waiting for cln to start up. This timeout is insufficient for machines like the ones used in the GitHub CI environment. To address this issue, this commit introduces the use of environment variables to increase the lnprototest timeout, ensuring sufficient time for cln to initialize. Changelog-None Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
---
|
|
name: LN Proto Test
|
|
on:
|
|
push:
|
|
branches:
|
|
- "master"
|
|
pull_request:
|
|
jobs:
|
|
proto-test:
|
|
name: Protocol Test Config
|
|
runs-on: ubuntu-22.04
|
|
timeout-minutes: 120
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
include:
|
|
- {compiler: clang, db: sqlite3}
|
|
- {compiler: gcc, db: postgres}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Build and run
|
|
run: |
|
|
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 PYTEST_PAR=2 \
|
|
-e PYTEST_OPTS="--timeout=300" \
|
|
-e TEST_CMD="make check-protos" \
|
|
-e TEST_GROUP=1 \
|
|
-e TEST_GROUP_COUNT=1 \
|
|
-e TIMEOUT=120 \
|
|
cln-ci-ubuntu
|
|
- name: Upload Unit Test Results
|
|
if: always()
|
|
uses: actions/upload-artifact@v2.2.4
|
|
with:
|
|
name: Junit Report ${{ github.run_number }}.{{ matrix.cfg }}
|
|
path: report.*
|