Skip to content

Defer ChainMonitor updates and persistence to flush() #21951

Defer ChainMonitor updates and persistence to flush()

Defer ChainMonitor updates and persistence to flush() #21951

Workflow file for this run

name: Continuous Integration Checks
on:
push:
branches-ignore:
- master
pull_request:
branches-ignore:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: self-hosted
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Install Rust 1.75.0 toolchain
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain 1.75.0
- name: Run failing test in a loop
run: |
export RUST_BACKTRACE=1
for i in $(seq 1 50); do
echo "=== Run $i ==="
cargo test -p lightning-background-processor --lib tests::test_background_event_handling 2>&1
if [ $? -ne 0 ]; then
echo "FAILED on run $i"
exit 1
fi
done
echo "All 50 runs passed"