mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-26 18:34:39 +01:00
Revert "ci: add the pre-build check as dependencies on lnprototetest"
This reverts commit 00d9f28a85982ae3d1b74b795ee356381dcb8d54.
This commit is contained in:
committed by
Christian Decker
parent
8b30c34d48
commit
2bf3db623a
66
.github/workflows/ci.yaml
vendored
66
.github/workflows/ci.yaml
vendored
@@ -5,10 +5,6 @@ on:
|
||||
branches:
|
||||
- "master"
|
||||
pull_request:
|
||||
workflow_run:
|
||||
workflows: [Pre-Builds Checks]
|
||||
types:
|
||||
- completed
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
@@ -21,17 +17,65 @@ env:
|
||||
SLOW_MACHINE: 1
|
||||
|
||||
jobs:
|
||||
prebuild:
|
||||
name: Pre-build checks
|
||||
runs-on: ubuntu-20.04
|
||||
timeout-minutes: 30
|
||||
env:
|
||||
RUST: 1
|
||||
COMPAT: 1
|
||||
BOLTDIR: bolts
|
||||
strategy:
|
||||
fail-fast: true
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Rebase
|
||||
run: |
|
||||
git config user.name github-actions
|
||||
git config user.email github-actions@github.com
|
||||
git fetch origin ${{ github.base_ref }}
|
||||
git rebase origin/${{ github.base_ref }}
|
||||
|
||||
- name: Set up Python 3.7
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.7
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
bash -x .github/scripts/setup.sh
|
||||
pip install -U pip wheel poetry
|
||||
# Export and then use pip to install into the current env
|
||||
poetry export -o /tmp/requirements.txt --without-hashes --with dev
|
||||
pip install -r /tmp/requirements.txt
|
||||
# We're going to check BOLT quotes, so get the latest version
|
||||
git clone https://github.com/lightning/bolts.git ../${BOLTDIR}
|
||||
- name: Configure
|
||||
run: ./configure
|
||||
- name: Check source
|
||||
run: make -j 4 check-source BASE_REF="origin/${{ github.base_ref }}"
|
||||
- name: Check Generated Files have been updated
|
||||
run: make -j 4 check-gen-updated
|
||||
- name: Check docs
|
||||
run: make -j 4 check-doc
|
||||
|
||||
check-units:
|
||||
# The unit test checks are not in the critical path (not dependent
|
||||
# on the integration tests), so run them with `valgrind`
|
||||
name: Run unit tests
|
||||
runs-on: ubuntu-22.04
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
timeout-minutes: 30
|
||||
env:
|
||||
COMPAT: 1
|
||||
VALGRIND: 1
|
||||
BOLTDIR: bolts
|
||||
needs:
|
||||
- prebuild
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
@@ -60,13 +104,14 @@ jobs:
|
||||
check-units-sanitizers:
|
||||
name: Run unit tests with ASan and UBSan
|
||||
runs-on: ubuntu-22.04
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
timeout-minutes: 30
|
||||
env:
|
||||
COMPAT: 1
|
||||
ASAN: 1
|
||||
UBSAN: 1
|
||||
VALGRIND: 0
|
||||
needs:
|
||||
- prebuild
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
@@ -93,13 +138,14 @@ jobs:
|
||||
check-fuzz:
|
||||
name: Run fuzz regression tests
|
||||
runs-on: ubuntu-22.04
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
env:
|
||||
COMPAT: 1
|
||||
DEVELOPER: 1
|
||||
ASAN: 1
|
||||
UBSAN: 1
|
||||
VALGRIND: 0
|
||||
needs:
|
||||
- prebuild
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
@@ -125,10 +171,11 @@ jobs:
|
||||
compile:
|
||||
name: Compile CLN ${{ matrix.cfg }}
|
||||
runs-on: ubuntu-22.04
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
timeout-minutes: 30
|
||||
env:
|
||||
COMPAT: 1
|
||||
needs:
|
||||
- prebuild
|
||||
strategy:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
@@ -356,7 +403,6 @@ jobs:
|
||||
integration-sanitizers:
|
||||
name: Sanitizers Test CLN
|
||||
runs-on: ubuntu-22.04
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
timeout-minutes: 120
|
||||
env:
|
||||
COMPAT: 1
|
||||
@@ -370,6 +416,8 @@ jobs:
|
||||
SLOW_MACHINE: 1
|
||||
TEST_DEBUG: 1
|
||||
PYTEST_OPTS: --test-group-random-seed=42 --timeout=1800
|
||||
needs:
|
||||
- prebuild
|
||||
strategy:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
|
||||
11
.github/workflows/ci_build.yml
vendored
11
.github/workflows/ci_build.yml
vendored
@@ -1,15 +1,10 @@
|
||||
name: CI Compilation testing
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: [Pre-Builds Checks]
|
||||
types:
|
||||
- completed
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
timeout-minutes: 120
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -17,6 +12,10 @@ jobs:
|
||||
include:
|
||||
- { OS: alpine }
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: [Pre-build checks]
|
||||
types:
|
||||
- completed
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Integration testing
|
||||
|
||||
60
.github/workflows/pre_build.yml
vendored
60
.github/workflows/pre_build.yml
vendored
@@ -1,60 +0,0 @@
|
||||
name: Pre-Builds Checks
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
pull_request:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
prebuild:
|
||||
name: Codebase sanity Check
|
||||
runs-on: ubuntu-20.04
|
||||
timeout-minutes: 30
|
||||
env:
|
||||
RUST: 1
|
||||
COMPAT: 1
|
||||
BOLTDIR: bolts
|
||||
strategy:
|
||||
fail-fast: true
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Rebase
|
||||
run: |
|
||||
git config user.name github-actions
|
||||
git config user.email github-actions@github.com
|
||||
git fetch origin ${{ github.base_ref }}
|
||||
git rebase origin/${{ github.base_ref }}
|
||||
|
||||
- name: Set up Python 3.7
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.7
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
bash -x .github/scripts/setup.sh
|
||||
pip install -U pip wheel poetry
|
||||
# Export and then use pip to install into the current env
|
||||
poetry export -o /tmp/requirements.txt --without-hashes --with dev
|
||||
pip install -r /tmp/requirements.txt
|
||||
# We're going to check BOLT quotes, so get the latest version
|
||||
git clone https://github.com/lightning/bolts.git ../${BOLTDIR}
|
||||
- name: Configure
|
||||
run: ./configure
|
||||
- name: Check source
|
||||
run: make -j 4 check-source BASE_REF="origin/${{ github.base_ref }}"
|
||||
- name: Check Generated Files have been updated
|
||||
run: make -j 4 check-gen-updated
|
||||
- name: Check docs
|
||||
run: make -j 4 check-doc
|
||||
|
||||
6
.github/workflows/prototest.yaml
vendored
6
.github/workflows/prototest.yaml
vendored
@@ -5,16 +5,10 @@ on:
|
||||
branches:
|
||||
- "master"
|
||||
pull_request:
|
||||
workflow_run:
|
||||
workflows: [Pre-Builds Checks]
|
||||
types:
|
||||
- completed
|
||||
|
||||
jobs:
|
||||
proto-test:
|
||||
name: Protocol Test Config
|
||||
runs-on: ubuntu-22.04
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
timeout-minutes: 120
|
||||
strategy:
|
||||
fail-fast: true
|
||||
|
||||
Reference in New Issue
Block a user