-
Notifications
You must be signed in to change notification settings - Fork 922
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
Fix flakes #13 #8073
Merged
endothermicdev
merged 6 commits into
ElementsProject:master
from
rustyrussell:guilt/fix-flakes13
Feb 11, 2025
Merged
Fix flakes #13 #8073
endothermicdev
merged 6 commits into
ElementsProject:master
from
rustyrussell:guilt/fix-flakes13
Feb 11, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We can actually delete it before counters are updated: ``` wait_for(lambda: len(l3.rpc.listinvoices()['invoices']) == 2) > assert l3.rpc.autoclean_status()['autoclean']['expiredinvoices']['cleaned'] == 3 E assert 1 == 3 tests/test_plugin.py:3266: AssertionError ``` Signed-off-by: Rusty Russell <[email protected]>
We didn't update this when we extended the timeout to 120 seconds in ee3133f ("lightningd: increase startup time for plugins to 120 seconds.") ``` def test_failing_plugins(directory): fail_plugins = [ os.path.join(os.getcwd(), 'contrib/plugins/fail/failtimeout.py'), os.path.join(os.getcwd(), 'contrib/plugins/fail/doesnotexist.py'), ] for p in fail_plugins: > with pytest.raises(subprocess.CalledProcessError): E Failed: DID NOT RAISE <class 'subprocess.CalledProcessError'> tests/test_plugin.py:420: Failed ----------------------------- Captured stdout call ----------------------------- {'github_repository': 'ElementsProject/lightning', 'github_sha': '83dca18c5e9610bfaac766f957387b9a1ec48f50', 'github_ref': 'refs/pull/7887/merge', 'github_ref_name': 'HEAD', 'github_run_id': 13253210143, 'github_head_ref': 'guilt/bolt-updates-after-24.11', 'github_run_number': 12237, 'github_base_ref': 'master', 'github_run_attempt': '2', 'testname': 'test_failing_plugins', 'start_time': 1739239278, 'end_time': 1739239340, 'outcome': 'fail'} =========================== short test summary info ============================ FAILED tests/test_plugin.py::test_failing_plugins - Failed: DID NOT RAISE <class 'subprocess.CalledProcessError'> ============= 1 failed, 80 passed, 2 skipped in 855.37s (0:14:15) ============== ```
plugins/Makefile has target/${RUST_PROFILE}/cln-grpc depend on the generated files via $(MSGGEN_GENALL), but cln-rpc/Makefile adds to that variable, so needs to be included first. Here's an example build error: ``` Combining schemas from /home/rusty/lightning-ltest/doc/schemas into /home/rusty/lightning-ltest/contrib/msggen/msggen/schema.json Created /home/rusty/lightning-ltest/contrib/msggen/msggen/schema.json from 2 files error: failed to run custom build command for `cln-grpc v0.3.0 (/home/rusty/lightning-ltest/cln-grpc)` Caused by: process didn't exit successfully: `/home/rusty/lightning-ltest/target/debug/build/cln-grpc-95489e3ba33c0ab3/build-script-build` (exit status: 101) --- stdout cargo:rerun-if-changed=proto/node.proto cargo:rerun-if-changed=proto --- stderr thread 'main' panicked at cln-grpc/build.rs:7:10: called `Result::unwrap()` on an `Err` value: Custom { kind: Other, error: "protoc failed: node.proto:134:52: \"AskreneageResponse\" is not defined.\nnode.proto:135:23: \"GetroutesRequest\" is not defined.\nnode.proto:135:50: \"GetroutesResponse\" is not defined.\nnode.proto:136:32: \"AskrenedisablenodeRequest\" is not defined.\nnode.proto:136:68: \"AskrenedisablenodeResponse\" is not defined.\nnode.proto:137:34: \"AskreneinformchannelRequest\" is not defined.\nnode.proto:137:72: \"AskreneinformchannelResponse\" is not defined.\nnode.proto:138:34: \"AskrenecreatechannelRequest\" is not defined.\nnode.proto:138:72: \"AskrenecreatechannelResponse\" is not defined.\nnode.proto:139:34: \"AskreneupdatechannelRequest\" is not defined.\nnode.proto:139:72: \"AskreneupdatechannelResponse\" is not defined.\nnode.proto:140:32: \"AskrenebiaschannelRequest\" is not defined.\nnode.proto:140:68: \"AskrenebiaschannelResponse\" is not defined.\nnode.proto:141:37: \"AskrenelistreservationsRequest\" is not defined.\nnode.proto:141:78: \"AskrenelistreservationsResponse\" is not defined.\nnode.proto:142:32: \"InjectpaymentonionRequest\" is not defined.\nnode.proto:142:68: \"InjectpaymentonionResponse\" is not defined.\nnode.proto:143:18: \"XpayRequest\" is not defined.\nnode.proto:143:40: \"XpayResponse\" is not defined.\nnode.proto:145:33: \"StreamBlockAddedRequest\" is not defined.\nnode.proto:145:74: \"BlockAddedNotification\" is not defined.\nnode.proto:146:40: \"StreamChannelOpenFailedRequest\" is not defined.\nnode.proto:146:88: \"ChannelOpenFailedNotification\" is not defined.\nnode.proto:147:36: \"StreamChannelOpenedRequest\" is not defined.\nnode.proto:147:80: \"ChannelOpenedNotification\" is not defined.\nnode.proto:148:30: \"StreamConnectRequest\" is not defined.\nnode.proto:148:68: \"PeerConnectNotification\" is not defined.\nnode.proto:149:32: \"StreamCustomMsgRequest\" is not defined.\nnode.proto:149:72: \"CustomMsgNotification\" is not defined.\n" } note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace make: *** [plugins/Makefile:305: target/debug/cln-grpc] Error 101 make: *** Waiting for unfinished jobs.... ``` Signed-off-by: Rusty Russell <[email protected]>
e20627b
to
459f110
Compare
In 4e7ba96 (ightningd: don't kill onchaind if we are forcing a disconnect.) actually was something which happened in our generate examples script. This updates that. Signed-off-by: Rusty Russell <[email protected]>
459f110
to
5e0798a
Compare
solves check-shellcheck complaints of: note: Double quote to prevent globbing and word splitting. [SC2086] Changelog-None
There's another case where testing the timeout needs to be extended in test_plugin.py::test_plugin_slowinit. I started a parallel effort in #8075. I'm going to close that an push this other timeout update and the linter fix here instead. |
I just found those too... SNAP! |
cdecker
approved these changes
Feb 11, 2025
c060cef
into
ElementsProject:master
38 of 40 checks passed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changelog-None