Commit Graph

718 Commits

Author SHA1 Message Date
Christian Decker
8a2267dad2 donations: Migrate donations to poetry 2023-01-01 17:14:05 +01:00
Christian Decker
89598d094b historian: Upgrade dependencies 2023-01-01 17:14:05 +01:00
Christian Decker
719c936140 meta: Move the meta project to py3.7 as pyln-client requires that 2023-01-01 17:14:05 +01:00
Christian Decker
48fbe6448b gci: Further isolate the test runs
Turns out that poetry's directory based venv was reusing the same env
for all tests, making the testing far less isolated than expected.
2023-01-01 17:14:05 +01:00
Michael Schmoock
a22a73478e ci: update pytest
Some jobs were failing with an error that seems to be raised by an
outdated pytest with a newer pytest-rerunfailures. We let pip choose...

```
2022-12-28T16:41:10.1173259Z   File "/tmp/tmp_82tmdi_/lib/python3.7/site-packages/pytest_rerunfailures.py", line 7, in <module>
2022-12-28T16:41:10.1173840Z     from _pytest.resultlog import ResultLog
2022-12-28T16:41:10.1174387Z ModuleNotFoundError: No module named '_pytest.resultlog'
```
2023-01-01 16:04:20 +01:00
Michael Schmoock
e1e6a2258a workflows: increase timeout to 60 minutes 2023-01-01 16:04:20 +01:00
Michael Schmoock
5609865631 ci: remove Flask as its dep of testing anyway
Also specify a more recent minimal version of MarkupSafe and itsdangerous
2023-01-01 16:04:20 +01:00
Michael Schmoock
245e6a83da ci: install pyln client and testing via cln repo 2023-01-01 16:04:20 +01:00
Michael Schmoock
9b7cfb45de workflows: adds protobuf-compiler needed for cln-grpc 2023-01-01 16:04:20 +01:00
Michael Schmoock
a32cf006d0 workflows: use poetry on cln to create requirements.txt 2023-01-01 16:04:20 +01:00
Michael Schmoock
f11c9ca6ec workflows: remove use-feature=in-tree-build
Using `--use-feature=in-tree-build` is no longer needed for recent pip versions,
doing so raised:

```
option --use-feature: invalid choice: 'in-tree-build' (choose from 'fast-deps', 'truststore', 'no-binary-enable-wheel-cache')
```
2023-01-01 16:04:20 +01:00
Michael Schmoock
4b28f44f53 workflows: remove unspecified python version
Doing `apt-get install python` without a version number raises:
```
    Package python is not available, but is referred to by another package.
```

Since python3 is already on the list, I just removed it.
2023-01-01 16:04:20 +01:00
Michael Schmoock
6ab4d35003 backup: nits assert without parentheses 2022-12-31 14:55:43 +01:00
Michael Schmoock
70c1f0a4ee backup: fix a broken testcase
This fix works, but its a bit slow as it waits for a 30 second timeout
when a node could not have been started.
2022-12-31 14:55:43 +01:00
Michael Schmoock
7f18073a3a backup: fix flake8 code nits 2022-12-31 14:55:43 +01:00
Michael Schmoock
7953dc0011 noise: fix _msat purge leftover 2022-12-29 14:37:05 +01:00
Michael Schmoock
be112f7b39 jitrebalance: fix upstream changes 2022-12-29 14:37:05 +01:00
Michael Schmoock
748d50a2dc archive: commando plugin as cln comes with it 2022-12-29 14:37:05 +01:00
Michael Schmoock
13e65260bf autopilot: reduced networkx min version to 2.6 for py 3.7 compat 2022-12-29 14:37:05 +01:00
Michael Schmoock
1072053b3b autopilot: fix broken arg parse 2022-12-27 16:54:29 +01:00
Michael Schmoock
7dbe65ab8a autopilot: fix flake8 code nits 2022-12-27 16:54:02 +01:00
Michael Schmoock
bceca734d7 probe: fix flake8 code nits 2022-12-27 16:33:04 +01:00
Michael Schmoock
67224d0c26 rebalance: fix flake8 code nits 2022-12-27 13:39:30 +01:00
Michael Schmoock
7d5b4a9516 drain: fix flake8 code nits 2022-12-27 13:27:52 +01:00
Michael Schmoock
140efc2269 paytest: fix _msat purge leftover 2022-12-27 13:27:52 +01:00
Michael Schmoock
9c7a70f6ff paytest: fix flake8 code nits 2022-12-27 13:27:52 +01:00
Michael Schmoock
81899006e2 feeadjuster: fix forward_event hook msat parsing
Subscribed notifications have never been handled by `pyln.client.Plugin()`
in a way that for `_msat` keys values have been replaced by `Millisatoshi()`
on the fly. This only was the case for normal JSON request/responses.

On recent cln versions, having `--allow-deprecated-apis=True`,
cln actually returns a string ending with `msat`, which is not
compatible with a `Millisatoshi()` when doing arithmetic operations.

See: https://github.com/ElementsProject/lightning/pull/5798
2022-12-27 12:56:17 +01:00
Michael Schmoock
ec75211f0a feeadjuster: fix python code nits 2022-12-26 13:56:30 +01:00
Michael Schmoock
4d8b258f8b feeadjuster: fix testflake in test_feeadjuster_imbalance 2022-12-26 13:52:00 +01:00
Michael Schmoock
e20eb77885 autopilot: adds missing requirements.txt file 2022-12-20 12:11:13 +01:00
Gálli Zoltán
d836e44b4e rebalance: fix test for multithreading 2022-12-20 10:29:44 +01:00
Gálli Zoltán
381707eaaf rebalance: multithreading
`rebalanceall` can run on multiple threads for faster results
2022-12-20 10:29:44 +01:00
Gálli Zoltán
a778da4e10 feeadjuster: setchannelfee last two parameters are optional
- feeadjuster keeps crashing without this
2022-12-04 21:47:13 +01:00
Gálli Zoltán
29dfc0f3f8 rebalance: rebalanceall can be stopped quickly
waitsendpay could stuck for minutes making rebalancestop unresponsive
2022-12-04 13:58:57 +01:00
Michael Schmoock
6d1975e3ae autopilot: fix usage of deprecated value on listfunds
The usage of 'value' (satoshis) on listoutputs has been deprecated on v0.12.0.
See upstream #5306
This changes calculations to msat.
2022-12-04 13:16:52 +01:00
Michael Schmoock
2c7eeb9310 autopilot: fix type to msat for _msat option field
Having a "_msat" parameter with just an integer in it lead to
other plugins crash on startup because listconfigs could not
be correctly parsed by pyln-client.
2022-12-04 13:16:52 +01:00
Michael Schmoock
386f2f650b rebalance: rpcversion check for new format 2022-12-02 16:12:29 +01:00
Michael Schmoock
4a5fa4d64e drain: rpcversion check for new format 2022-12-02 16:12:29 +01:00
Michael Schmoock
656068ba09 feeadjuster: rpcversion check for new format 2022-12-02 16:12:29 +01:00
Swapnil Tripathi
1721ff6075 update resources for python-teos 2022-11-14 21:50:50 +01:00
Michael Schmoock
76af2722dc rebalance: adds version check for using status on listpays (#387) 2022-11-04 11:43:00 +01:00
Michael Schmoock
4d3560b129 reqirements: switch to pyln-client 0.12 for backup, drain, feeadj, rebalance and summary
This is required as newer versions of cln (>=0.12) use non numeric json
rpc IDs.
2022-11-04 11:43:00 +01:00
Michael Schmoock
2810f4d032 feeadjuster: update forward_event _msat values 2022-11-04 11:43:00 +01:00
Michael Schmoock
3514460ae8 summary: fixes a nasty test flake 2022-11-04 11:43:00 +01:00
Michael Schmoock
2322bf64a8 rebalance: getroute update msatoshi by amount_msat
rebalance: getroute outdated msatoshi by amount_msat
2022-11-04 11:43:00 +01:00
Michael Schmoock
8ed6e3870b rebalance: remove pointless pass-through of plugin paramter 2022-11-04 11:43:00 +01:00
Michael Schmoock
fb3d69200c drain: remove pointless pass-through of plugin paramter 2022-11-04 11:43:00 +01:00
Michael Schmoock
eb4463d43d drain: fixed and reenable test_drain_and_refill 2022-11-04 11:43:00 +01:00
Michael Schmoock
5691f717f4 drain: reenable test_setbalance as it is stable 2022-11-04 11:43:00 +01:00
Michael Schmoock
15e6f61052 drain: use fundchannel instead of openchannel
Affects: tests

Using openchannel does not always guarantee a channel to have a SCID.
Thus `node.get_channel_scid(...)` can raise an error when a channel
was opened using openchannel.
2022-11-04 11:43:00 +01:00