Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
dc9b94b
add max fee test
gpBlockchain May 28, 2025
5861282
add backup test
gpBlockchain May 28, 2025
131ee96
add overflow test
gpBlockchain May 29, 2025
df7bcda
add stable action
gpBlockchain Jun 4, 2025
07e3739
update stable test case
gpBlockchain Jun 4, 2025
dac03c3
update ckb and fiber version
gpBlockchain Jun 6, 2025
908f1f3
update fiber version
gpBlockchain Jun 6, 2025
a2e43be
add features
gpBlockchain Jun 6, 2025
7bd274d
add compatibility
gpBlockchain Jun 6, 2025
0e39602
fix download notfount
gpBlockchain Jun 6, 2025
b5dae6e
add mpp
gpBlockchain Jul 15, 2025
955e1d8
update debug
gpBlockchain Jul 15, 2025
1c05c97
update node
gpBlockchain Jul 15, 2025
f04a8f9
remove telnet
gpBlockchain Jul 15, 2025
70b6331
Merge remote-tracking branch 'origin/gp/mpp' into gp/mpp
gpBlockchain Jul 17, 2025
0ecb21e
update wasm test
gpBlockchain Jul 24, 2025
ab5791a
update python version
gpBlockchain Jul 24, 2025
c61a912
fix wasm ci
gpBlockchain Jul 24, 2025
98f0fa5
update wasm ci
gpBlockchain Jul 24, 2025
6409865
fix wasm ci failed
gpBlockchain Jul 25, 2025
97313f8
skip bench test
gpBlockchain Jul 28, 2025
9b7e393
format code
gpBlockchain Jul 28, 2025
2608d01
update ckb repo
gpBlockchain Aug 4, 2025
b6284ee
update prepare script
gpBlockchain Aug 4, 2025
a5238f0
update open_channel test
gpBlockchain Aug 4, 2025
b85cdea
update ci test err
gpBlockchain Aug 4, 2025
e73e693
fix test err
gpBlockchain Aug 4, 2025
dd8aded
fix ci
gpBlockchain Aug 5, 2025
bafdc29
update fiber version
gpBlockchain Aug 6, 2025
8299322
fix ci
gpBlockchain Aug 6, 2025
20f30bb
add mpp test
gpBlockchain Aug 6, 2025
d25e7a7
fix test ci err
gpBlockchain Aug 7, 2025
69624bc
fix ci
gpBlockchain Aug 7, 2025
f7e06c6
update fiber version
gpBlockchain Aug 7, 2025
e09f813
update fiber version
gpBlockchain Aug 7, 2025
8eeddd0
fix make file
gpBlockchain Aug 7, 2025
42b0ead
fix yml
gpBlockchain Aug 7, 2025
7a8be3d
fix ci
gpBlockchain Aug 7, 2025
fd4427a
update prepare
gpBlockchain Aug 12, 2025
cc3ea7c
Update prepare.sh
gpBlockchain Aug 17, 2025
b311778
style:format code
gpBlockchain Aug 18, 2025
cd73cb8
update fiber branch
gpBlockchain Aug 21, 2025
d163fdd
update graph node
gpBlockchain Aug 22, 2025
fed60f4
Update prepare.sh
gpBlockchain Aug 25, 2025
333ae6a
update force shutdown
gpBlockchain Aug 26, 2025
47cf246
update v0.6.0-rc4
gpBlockchain Aug 27, 2025
c5aa306
add prepare
gpBlockchain Sep 1, 2025
78ce0b5
fix open channel
gpBlockchain Sep 3, 2025
edee446
fix test_remove_channels_with_force
gpBlockchain Sep 3, 2025
0234d48
fix ci err
gpBlockchain Sep 4, 2025
bdd14d2
update rc5
gpBlockchain Sep 12, 2025
3534b98
update commitment_delay_epoch
gpBlockchain Sep 12, 2025
79c2b34
update test
gpBlockchain Sep 26, 2025
9dd5791
fix mpp
gpBlockchain Sep 26, 2025
d8a5aa7
format code
gpBlockchain Sep 26, 2025
834e8b5
update test
gpBlockchain Oct 12, 2025
2244fb1
update pending tlc
gpBlockchain Oct 12, 2025
b22230a
add pending tlc test
gpBlockchain Oct 15, 2025
6f2217c
add pending tlc
gpBlockchain Oct 15, 2025
df9204a
update dev config
gpBlockchain Oct 15, 2025
214e631
fix ci
gpBlockchain Sep 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions .github/workflows/fiber-stable-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: fiber stable action
on:
workflow_dispatch: # Allows the workflow to be manually triggered
inputs:
GitUrl:
description: 'fiber -git url'
default: 'https://github.com/nervosnetwork/fiber.git'
GitBranch:
description: 'fiber -git branch'
default: 'develop'
BuildFIBER:
description: 'build fiber'
default: 'true'

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"

- name: Print Input Values
run: |
echo "**Input Values:**"
echo " GitUrl: ${{ github.event.inputs.GitUrl }}"
echo " GitBranch: ${{ github.event.inputs.GitBranch }}"
echo " BuildCKbCLI: ${{ github.event.inputs.BuildFIBER }}"


- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

- name: Install dependencies
run: make prepare_develop_testnet
env:
GitUrl: '${{ github.event.inputs.GitUrl }}'
GitBranch: '${{ github.event.inputs.GitBranch }}'
BuildFIBER: '${{ github.event.inputs.BuildFIBER }}'

- name: Run tests
run: make fiber_test_demo FIBER_TEST_DEMO="test_cases/fiber/devnet/stable"

# - name: Setup upterm session
# if: always()
# uses: lhotari/action-upterm@v1

- name: Publish reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: jfoa-build-reports-${{ runner.os }}
path: ./report
4 changes: 2 additions & 2 deletions .github/workflows/fiber-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.10"
python-version: "3.12"

- name: Print Input Values
run: |
Expand Down
162 changes: 140 additions & 22 deletions .github/workflows/fiber.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.10"
python-version: "3.12"

- name: Install dependencies
run: |
Expand Down Expand Up @@ -49,10 +49,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.10"
python-version: "3.12"

- name: Install dependencies
run: |
Expand All @@ -79,16 +79,16 @@ jobs:
name: jfoa-open_channel-reports-${{ runner.os }}
path: ./report

fiber_test_accept_channel_cancel_invoice_connect_peer_disconnect_peer:
fiber_test_accept_channel_cancel_invoice_connect_peer_disconnect_peer_backup:
needs: prepare
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.10"
python-version: "3.12"

- name: Install dependencies
run: |
Expand All @@ -106,7 +106,7 @@ jobs:
tar -xzf prepare-backup.tar.gz

- name: Run fiber_test_demo
run: make fiber_test_demo FIBER_TEST_DEMO="test_cases/fiber/devnet/accept_channel test_cases/fiber/devnet/cancel_invoice test_cases/fiber/devnet/connect_peer test_cases/fiber/devnet/disconnect_peer"
run: make fiber_test_demo FIBER_TEST_DEMO="test_cases/fiber/devnet/accept_channel test_cases/fiber/devnet/cancel_invoice test_cases/fiber/devnet/connect_peer test_cases/fiber/devnet/disconnect_peer test_cases/fiber/devnet/backup"

- name: Publish reports
if: failure()
Expand All @@ -121,10 +121,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.10"
python-version: "3.12"

- name: Install dependencies
run: |
Expand Down Expand Up @@ -157,10 +157,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.10"
python-version: "3.12"

- name: Install dependencies
run: |
Expand Down Expand Up @@ -193,10 +193,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.10"
python-version: "3.12"

- name: Install dependencies
run: |
Expand Down Expand Up @@ -230,10 +230,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.10"
python-version: "3.12"

- name: Install dependencies
run: |
Expand Down Expand Up @@ -267,10 +267,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.10"
python-version: "3.12"

- name: Install dependencies
run: |
Expand Down Expand Up @@ -303,10 +303,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.10"
python-version: "3.12"

- name: Install dependencies
run: |
Expand Down Expand Up @@ -340,10 +340,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.10"
python-version: "3.12"

- name: Install dependencies
run: |
Expand All @@ -369,3 +369,121 @@ jobs:
with:
name: jfoa-fiber_test_send_payment_debug_mixed-reports-${{ runner.os }}
path: ./report

fiber_test_wasm:
needs: prepare
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

- name: Download prepare backup
uses: actions/download-artifact@v4
with:
name: prepare-backup-${{ runner.os }}
path: ./

- name: Extract tarball and restore permissions
run: |
tar -xzf prepare-backup.tar.gz
- name: prepare wasm env
run: |
git clone https://github.com/gpBlockchain/fiber-wasm-demo.git
cd fiber-wasm-demo
bash prepare.sh
cd ../
- name: Run fiber_test_demo
run: |
make fiber_test_demo FIBER_TEST_DEMO="test_cases/fiber/devnet/wasm"

- name: Publish reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: jfoa-fiber_test_send_payment_debug_mixed-reports-${{ runner.os }}
path: ./report

fiber_test_send_payment_mpp:
needs: prepare
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

- name: Download prepare backup
uses: actions/download-artifact@v4
with:
name: prepare-backup-${{ runner.os }}
path: ./

- name: Extract tarball and restore permissions
run: |
tar -xzf prepare-backup.tar.gz

- name: Run fiber_test_demo
run: make fiber_test_demo FIBER_TEST_DEMO="test_cases/fiber/devnet/send_payment/mpp"

- name: Publish reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: jfoa-fiber_test_send_payment_debug_mixed-reports-${{ runner.os }}
path: ./report

fiber_test_BiscuitAuth_config:
needs: prepare
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

- name: Download prepare backup
uses: actions/download-artifact@v4
with:
name: prepare-backup-${{ runner.os }}
path: ./

- name: Extract tarball and restore permissions
run: |
tar -xzf prepare-backup.tar.gz

- name: Run fiber_test_demo
run: make fiber_test_demo FIBER_TEST_DEMO="test_cases/fiber/BiscuitAuth test_cases/fiber/config"

- name: Publish reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: jfoa-fiber_test_send_payment_debug_mixed-reports-${{ runner.os }}
path: ./report
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Created by pytest automatically.
tmp
tmp1
.pytest_cache
download
pytest.ini
Expand Down
14 changes: 6 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ prepare_fiber_testnet:
python3 -m download_ckb_light_client
echo "install ckb cli"
python3 -m download_fiber
cp download/0.119.0/ckb-cli ./source/ckb-cli
cp download/0.201.0/ckb-cli ./source/ckb-cli
cp download/0.110.2/ckb-cli ./source/ckb-cli-old

prepare_develop_testnet:
Expand All @@ -37,7 +37,7 @@ prepare_develop_testnet:

echo "install fiber"
python3 -m download_fiber
cp download/0.119.0/ckb-cli ./source/ckb-cli
cp download/0.201.0/ckb-cli ./source/ckb-cli
cp download/0.110.2/ckb-cli ./source/ckb-cli-old
bash develop_fiber.sh

Expand Down Expand Up @@ -169,12 +169,10 @@ develop_test:


clean:
pkill ckb
rm -rf tmp
rm -rf download
rm -rf report
rm -rf source/ckb-cli*
rm -rf ckb-*
- pkill ckb
- pkill fnn
- rm -rf tmp
- rm -rf report

docs:
python -m pytest --docs=docs/soft.md --doc-type=md test_cases/soft_fork
4 changes: 2 additions & 2 deletions develop_fiber.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ BUILD_FIBER="${BuildFIBER:-$DEFAULT_BUILD_FIBER}"
if [ "$BUILD_FIBER" == "true" ]; then
git clone -b $GitFIBERBranch $GitFIBERUrl
cd fiber
cargo build
cp target/debug/fnn ../download/fiber/current/fnn
cargo build --release
cp target/release/fnn ../download/fiber/current/fnn
cd migrate
cargo build
cp target/debug/fnn-migrate ../../download/fiber/current/fnn-migrate
Expand Down
Loading
Loading