Skip to content

Commit 0faacb8

Browse files
authored
Merge branch 'ElementsProject:master' into bolt12_offer_issuer_id
2 parents 73d4ef6 + ae320cd commit 0faacb8

File tree

236 files changed

+13612
-4144
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

236 files changed

+13612
-4144
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
> [!IMPORTANT]
22
>
3-
> 25.05 FREEZE MAY 12TH: Non-bugfix PRs not ready by this date will wait for 25.08.
3+
> 25.05 FREEZE MAY 05TH: Non-bugfix PRs not ready by this date will wait for 25.08.
44
>
5-
> RC1 is scheduled on _May 23rd_, RC2 on _May 26th_, ...
5+
> RC1 is scheduled on _May 12th_, RC2 on _May 16th_, ...
66
>
7-
> The final release is on MAY 29TH.
7+
> The final release is on MAY 20TH.
88
99

1010
## Checklist

.github/scripts/setup.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,20 +72,17 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
7272
# which comes from the same tree. Makes sense!
7373

7474
# And
75-
# grpcio-tools-1.54.0` requires `protobuf = ">=4.21.6,<5.0dev"`
75+
# grpcio-tools-1.69.0` requires `protobuf = ">=5.26.1,<6.0dev"`
7676

7777
# Now, protoc changed to date-based releases, BUT Python protobuf
7878
# didn't, so Python protobuf 4.21.12 (in Ubuntu 23.04) corresponds to
7979
# protoc 21.12 (which, FYI, is packaged in Ubuntu as version 3.21.12).
8080

81-
# So we're going to nail these versions as 21.12, which is what recent
82-
# Ubuntu has, and hopefully everyone else can get. And this means that
83-
# When CI checks that no files have changed under regeneration, you won't
84-
# get a fail just because the dev's protoc is a different version.
81+
# In general protobuf version x.y.z corresponds to protoc version y.z
8582

8683
# Honorable mention go to Matt Whitlock for spelunking this horror with me!
8784

88-
PROTOC_VERSION=21.12
85+
PROTOC_VERSION=29.4
8986
PB_REL="https://github.com/protocolbuffers/protobuf/releases"
9087
curl -LO $PB_REL/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip
9188
sudo unzip protoc-${PROTOC_VERSION}-linux-x86_64.zip -d /usr/local/

.github/scripts/sync-rpc-cmds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def extract_rpc_commands(rst_content):
7070
commands = re.findall(
7171
r"\b([a-zA-Z0-9_-]+)" r"\s+<([^>]+)>\n", manpages_block.group(1)
7272
)
73-
return [(re.sub(r"\blightning-", "", rpc_name), file_name) for rpc_name, file_name in commands]
73+
return commands
7474
return []
7575

7676

.github/workflows/ci.yaml

Lines changed: 36 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ jobs:
209209
- name: Check
210210
run: |
211211
tar -xaf cln-${{ matrix.CFG }}.tar.bz2
212-
make -j $(nproc) check-units installcheck VALGRIND=${{ matrix.VALGRIND }}
212+
eatmydata make -j $(nproc) check-units installcheck VALGRIND=${{ matrix.VALGRIND }}
213213
214214
check-fuzz:
215215
name: Run fuzz regression tests
@@ -249,7 +249,7 @@ jobs:
249249
needs:
250250
- compile
251251
strategy:
252-
fail-fast: true
252+
fail-fast: false
253253
matrix:
254254
include:
255255
- NAME: gcc
@@ -343,7 +343,7 @@ jobs:
343343
run: |
344344
env
345345
cat config.vars
346-
VALGRIND=0 poetry run pytest tests/ -vvv -n ${PYTEST_PAR} ${PYTEST_OPTS}
346+
VALGRIND=0 poetry run eatmydata pytest tests/ -vvv -n ${PYTEST_PAR} ${PYTEST_OPTS}
347347
348348
integration-valgrind:
349349
name: Valgrind Test CLN ${{ matrix.name }}
@@ -356,7 +356,7 @@ jobs:
356356
needs:
357357
- compile
358358
strategy:
359-
fail-fast: true
359+
fail-fast: false
360360
matrix:
361361
include:
362362
- NAME: Valgrind (01/10)
@@ -411,7 +411,7 @@ jobs:
411411
SLOW_MACHINE: 1
412412
TEST_DEBUG: 1
413413
run: |
414-
VALGRIND=1 poetry run pytest tests/ -vvv -n 3 ${PYTEST_OPTS} ${{ matrix.PYTEST_OPTS }}
414+
VALGRIND=1 poetry run eatmydata pytest tests/ -vvv -n 3 ${PYTEST_OPTS} ${{ matrix.PYTEST_OPTS }}
415415
416416
integration-sanitizers:
417417
name: Sanitizers Test CLN
@@ -425,7 +425,7 @@ jobs:
425425
needs:
426426
- compile
427427
strategy:
428-
fail-fast: true
428+
fail-fast: false
429429
matrix:
430430
include:
431431
- NAME: ASan/UBSan (01/10)
@@ -477,14 +477,15 @@ jobs:
477477

478478
- name: Test
479479
run: |
480-
poetry run pytest tests/ -vvv -n 2 ${PYTEST_OPTS} ${{ matrix.PYTEST_OPTS }}
480+
poetry run eatmydata pytest tests/ -vvv -n 2 ${PYTEST_OPTS} ${{ matrix.PYTEST_OPTS }}
481481
482482
update-docs-examples:
483-
name: Update examples in doc schemas
483+
name: Update examples in doc schemas (disabled temporarily!)
484+
if: false
484485
runs-on: ubuntu-22.04
485486
timeout-minutes: 30
486487
strategy:
487-
fail-fast: true
488+
fail-fast: false
488489
env:
489490
VALGRIND: 0
490491
GENERATE_EXAMPLES: 1
@@ -519,7 +520,7 @@ jobs:
519520
tar -xaf cln-compile-gcc.tar.bz2
520521
- name: Test
521522
run: |
522-
make -j $(nproc) check-doc-examples
523+
eatmydata make -j $(nproc) check-doc-examples
523524
524525
min-btc-support:
525526
name: Test minimum supported BTC v${{ matrix.MIN_BTC_VERSION }} with ${{ matrix.NAME }}
@@ -531,7 +532,7 @@ jobs:
531532
needs:
532533
- compile
533534
strategy:
534-
fail-fast: true
535+
fail-fast: false
535536
matrix:
536537
include:
537538
- NAME: clang
@@ -591,7 +592,7 @@ jobs:
591592
run: |
592593
env
593594
cat config.vars
594-
VALGRIND=0 poetry run pytest tests/ -vvv -n ${PYTEST_PAR} ${PYTEST_OPTS}
595+
VALGRIND=0 poetry run eatmydata pytest tests/ -vvv -n ${PYTEST_PAR} ${PYTEST_OPTS}
595596
596597
check-flake:
597598
name: Check Nix Flake
@@ -615,18 +616,38 @@ jobs:
615616
gather:
616617
# A dummy task that depends on the full matrix of tests, and
617618
# signals successful completion. Used for the PR status to pass
618-
# before merging.
619+
# before merging. Needs to run even if they failed!
619620
name: CI completion
620621
runs-on: ubuntu-22.04
621622
needs:
622623
- integration
623624
- check-units
624625
- integration-valgrind
625626
- integration-sanitizers
626-
- update-docs-examples
627627
- min-btc-support
628628
- check-flake
629+
if: ${{ always() }}
629630
steps:
630631
- name: Complete
632+
env:
633+
JOB_NAMES: "INTEGRATION CHECK_UNITS VALGRIND SANITIZERS BTC FLAKE"
634+
INTEGRATION: ${{ needs.integration.result }}
635+
CHECK_UNITS: ${{ needs['check-units'].result }}
636+
VALGRIND: ${{ needs['integration-valgrind'].result }}
637+
SANITIZERS: ${{ needs['integration-sanitizers'].result }}
638+
DOCS: ${{ needs['update-docs-examples'].result }}
639+
BTC: ${{ needs['min-btc-support'].result }}
640+
FLAKE: ${{ needs['check-flake'].result }}
631641
run: |
632-
echo CI completed successfully
642+
failed=""
643+
for name in $JOB_NAMES; do
644+
result="${!name}"
645+
echo "$name: $result"
646+
if [[ "$result" != "success" ]]; then
647+
failed="yes"
648+
fi
649+
done
650+
if [[ "$failed" == "yes" ]]; then
651+
echo "One or more required jobs failed"
652+
exit 1
653+
fi

.github/workflows/pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
jobs:
1717
deploy:
1818
name: Build and publish ${{ matrix.package }} 🐍
19-
runs-on: ubuntu-20.04
19+
runs-on: ubuntu-22.04
2020
timeout-minutes: 120
2121
strategy:
2222
fail-fast: true

0 commit comments

Comments
 (0)