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
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
Christian Decker
e96d400c10
gci: I like colors ;-)
2022-04-28 12:57:06 +02:00
Christian Decker
8077a5cebb
gci: Do not nest virtualenvs in poetry
...
Poetry will automatically manage virtualenvs for our project, so we
can rely on `poetry install` and `poetry run` in the main environment
to keep the nested env up-to-date and enter it for testing.
2022-04-28 12:57:06 +02:00
Christian Decker
74594a5b6e
gci: Add support for poetry / PEP 517 based plugins
...
We also migrate the `historian` plugin to show how this looks
like. Next up is migrating the individual plugins.
2022-04-28 12:57:06 +02:00
Christian Decker
3c2ac14ad8
ci: Reduce the noise of initializing virtualenvs
2022-01-04 18:17:24 +01:00
Christian Decker
dd7e2e2bff
gci: Use the pyln-proto from the repository too
2021-09-25 15:03:14 +02:00
Christian Decker
296cb34464
ci: Install master pyln-testing when testing against master c-lightning
2021-06-22 19:18:13 +02:00
Christian Decker
a097606495
ci: Increase timeout so we don't kill tests too often
2021-01-13 11:23:56 +01:00
Christian Decker
d807acf2eb
gci: Use pytest-xdist since pytest-parallel seems to hang on timeout
2021-01-13 11:23:56 +01:00
Christian Decker
0c7a0b3a6c
gci: Use pytest-parallel instead of pytest-xdist
2021-01-13 11:23:56 +01:00
Christian Decker
9b541961b5
gci: Re-enable DEVELOPER=0 builds
2021-01-13 11:23:56 +01:00
Christian Decker
37547d39ff
gci: Silence the xunit1 warning
2021-01-13 11:23:56 +01:00
Christian Decker
0b4f321fc7
ci: Add rerunfailures due to flaky tests
2021-01-13 11:23:56 +01:00
Christian Decker
708b382bd0
meta: JUnit reports as artifacts
2021-01-13 11:23:56 +01:00
Christian Decker
0a825d0c99
meta: Temporarily disable feeadjuster tests
...
An msat conversion seems to fail atm.
2021-01-13 11:23:56 +01:00
Christian Decker
c4f6688ffd
meta: Add locale to the environment when running tests
...
Click seems particularly upset if the locale is not UTF-8
2021-01-13 11:23:56 +01:00
Christian Decker
980ab57a88
meta: Exclude lightning directory from tests
...
On CI we clone into the CWD, which results in it being picked up by
our runner. Exclude it.
2021-01-13 11:23:56 +01:00
Christian Decker
430ccd5042
gci: Add Junit test reporting
2021-01-13 11:23:56 +01:00
Christian Decker
35dffbd71b
testing: Add a simple test to run each plugin in isolation
2021-01-13 11:23:56 +01:00