Skip to content
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

pytest: fix test_cln_plugin_reentrant which panics rust under CI. #6263

Merged
merged 2 commits into from
May 19, 2023

Conversation

rustyrussell
Copy link
Contributor

@rustyrussell rustyrussell commented May 18, 2023

Test was hastily written, plugin crashed, command didn't return, pytest doesn't run with --timeout: CI just killed it after two hours.

Changelog-None

@rustyrussell rustyrussell added this to the v23.08 milestone May 18, 2023
When we release too fast, the plugin crashes:

```
thread 'tokio-runtime-worker' panicked at 'called Result::unwrap() on an Err value: SendError(())', plugins/examples/cln-plugin-reentrant.rs:31:27
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
```

This happens with CI under VALGRIND!

Signed-off-by: Rusty Russell <[email protected]>
Copy link
Contributor

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like there is some test that needs some more time?

FAILED tests/test_plugin.py::test_sql - Failed: Timeout >300.0s
===== 1 failed, 532 passed, 58 skipped, 11 warnings in 1447.95s (0:24:07) ======

Without this, a stuck test (such as before the previous commit, where a plugin crashed
when running a command) simply gets timed out by the full CI timeout.

Signed-off-by: Rusty Russell <[email protected]>
@rustyrussell
Copy link
Contributor Author

Indeed, I've bumped it up, let's see...

@cdecker
Copy link
Member

cdecker commented May 19, 2023

ACK 5b33ff3

Copy link
Contributor

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have some other timeout in the CI

=========================== short test summary info ============================
FAILED tests/test_connection.py::test_feerate_stress - Failed: Timeout >1200.0s

@cdecker cdecker merged commit 0850cbb into ElementsProject:master May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants