Skip to content

Rust cli #327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 34 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
0e2e700
initial rust commit
willcl-ark Mar 27, 2024
cc20d8b
split into logical modules
willcl-ark Mar 28, 2024
6724739
use anyhow, and pass network arg
willcl-ark Mar 28, 2024
cf7f3ce
move to rust-cli subdir
willcl-ark Mar 28, 2024
c2f7cdd
add scenarios & available
willcl-ark Mar 28, 2024
8e12b72
add more scenarios
willcl-ark Mar 28, 2024
8df6caa
add run_file command
willcl-ark Mar 28, 2024
0182834
add rpc command
willcl-ark Mar 28, 2024
4c707e2
move pretty_print into util
willcl-ark Mar 28, 2024
4938203
add lncli command
willcl-ark Mar 28, 2024
0ad7e14
add debug-log command
willcl-ark Mar 28, 2024
726b331
add messages command
willcl-ark Mar 28, 2024
04699f4
pass in params
willcl-ark Mar 28, 2024
beb31f1
add grep-logs command
willcl-ark Mar 28, 2024
0ba1762
add stop command
willcl-ark Mar 28, 2024
24f5584
fixup formatting
willcl-ark Mar 28, 2024
d648511
add graph create
willcl-ark Mar 28, 2024
c7afb19
convert node ids to ints
willcl-ark Mar 29, 2024
925d546
refactor graph create
willcl-ark Mar 29, 2024
43242b4
use petgraph directly
willcl-ark Mar 29, 2024
5307265
WIP: add graph validataion
willcl-ark Mar 29, 2024
94c88a1
cleanup network fns
willcl-ark Mar 29, 2024
a99d0dc
cleanup scenarios fns
willcl-ark Mar 29, 2024
1db7bc4
cleanup graph fns
willcl-ark Mar 29, 2024
76d44ed
use argparse in tests
willcl-ark Mar 29, 2024
2d51140
add rust cli to rpc test matrix
willcl-ark Mar 29, 2024
b3f3c3a
fixup arg passing in rpc test_base.py
willcl-ark Mar 29, 2024
6262511
only add network param if provided
willcl-ark Mar 29, 2024
e487063
allow hyphen values on rpc methods
willcl-ark Mar 29, 2024
f2e1924
pretty print network start responses
willcl-ark Apr 1, 2024
8b00aae
add image build command
willcl-ark Apr 1, 2024
8845a50
tidy up help strings
willcl-ark Apr 1, 2024
22728cf
use bail! macro. Fix lncli RPC call
willcl-ark Apr 1, 2024
b87d36f
doc: add rust cli docs
willcl-ark Mar 29, 2024
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
14 changes: 9 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ jobs:
just start
kubectl wait --for=condition=Ready --timeout=2m pod rpc-0
kubectl port-forward svc/rpc 9276:9276 &
- run: ./test/scenarios_test.py ${{matrix.backend}}
- run: ./test/scenarios_test.py --backend=${{matrix.backend}}
rpc:
runs-on: ubuntu-latest
strategy:
matrix:
backend: [compose, k8s]
cli: [--rust_cli, ""]
steps:
- uses: actions/checkout@v4
- if: matrix.backend == 'compose'
Expand All @@ -41,14 +42,17 @@ jobs:
uses: extractions/setup-just@v1
- if: matrix.backend == 'k8s'
uses: medyagh/setup-minikube@master
- if: matrix.cli == '--rust_cli'
run: |
cargo build
- if: matrix.backend == 'k8s'
run: |
pip install --upgrade pip
pip install -e .
just start
kubectl wait --for=condition=Ready --timeout=2m pod rpc-0
kubectl port-forward svc/rpc 9276:9276 &
- run: ./test/rpc_test.py ${{matrix.backend}}
- run: ./test/rpc_test.py --backend=${{matrix.backend}} ${{matrix.cli}}
graph:
runs-on: ubuntu-latest
strategy:
Expand All @@ -69,7 +73,7 @@ jobs:
just start
kubectl wait --for=condition=Ready --timeout=2m pod rpc-0
kubectl port-forward svc/rpc 9276:9276 &
- run: ./test/graph_test.py ${{matrix.backend}}
- run: ./test/graph_test.py --backend=${{matrix.backend}}
ln:
runs-on: ubuntu-latest
strategy:
Expand All @@ -90,7 +94,7 @@ jobs:
just start
kubectl wait --for=condition=Ready --timeout=2m pod rpc-0
kubectl port-forward svc/rpc 9276:9276 &
- run: ./test/ln_test.py ${{matrix.backend}}
- run: ./test/ln_test.py --backend=${{matrix.backend}}
build:
needs: [scenarios, rpc, graph, ln] # Only run if the others complete successfully as it's slow
runs-on: ubuntu-latest
Expand All @@ -112,4 +116,4 @@ jobs:
just start
kubectl wait --for=condition=Ready --timeout=2m pod rpc-0
kubectl port-forward svc/rpc 9276:9276 &
- run: ./test/build_branch_test.py ${{matrix.backend}}
- run: ./test/build_branch_test.py --backend=${{matrix.backend}}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ __pycache__
warnet.egg-info
.python-version
.env


# Added by cargo

/target
Loading
Loading