coffee-tools / coffee-tools/coffee

CI: http integration testing failure

Open
#208 1 comment 0 reactions 0 assignees View on GitHub
🎯 - triage 🐛 - bug
Dominant language
Rust
Stars
11
Forks
13
PR merge metrics
No merged PRs in 30d

Description

```
2023-10-12T19:08:14.8401429Z coffee_1 | ---- coffee_httpd_integration_tests::httpd_init_add_remote stdout ----
2023-10-12T19:08:14.8402659Z coffee_1 | thread '' panicked at tests/src/coffee_httpd_integration_tests.rs:66:10:
2023-10-12T19:08:14.8404338Z coffee_1 | called `Result::unwrap()` on an `Err` value: Rpc(RpcError { code: -32601, message: "Unknown command 'summary'", data: None })
2023-10-12T19:08:14.8405713Z coffee_1 | stack backtrace:
2023-10-12T19:08:14.8406267Z coffee_1 | 0: rust_begin_unwind
2023-10-12T19:08:14.8407588Z coffee_1 | at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:595:5
2023-10-12T19:08:14.8408688Z coffee_1 | 1: core::panicking::panic_fmt
2023-10-12T19:08:14.8409797Z coffee_1 | at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/panicking.rs:67:14
2023-10-12T19:08:14.8410869Z coffee_1 | 2: core::result::unwrap_failed
2023-10-12T19:08:14.8411965Z coffee_1 | at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/result.rs:1652:5
2023-10-12T19:08:14.8413060Z coffee_1 | 3: core::result::Result::unwrap
2023-10-12T19:08:14.8414168Z coffee_1 | at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/result.rs:1077:23
2023-10-12T19:08:14.8415629Z coffee_1 | 4: tests::coffee_httpd_integration_tests::httpd_init_add_remote::ntest_callback::{{closure}}
2023-10-12T19:08:14.8416794Z coffee_1 | at ./src/coffee_httpd_integration_tests.rs:64:5
2023-10-12T19:08:14.8417800Z coffee_1 | 5: as core::future::future::Future>::poll
2023-10-12T19:08:14.8419081Z coffee_1 | at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/future/future.rs:125:9
2023-10-12T19:08:14.8420385Z coffee_1 | 6: tokio::runtime::park::CachedParkThread::block_on::{{closure}}
2023-10-12T19:08:14.8421815Z coffee_1 | at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.1/src/runtime/park.rs:283:63
2023-10-12T19:08:14.8423035Z coffee_1 | 7: tokio::runtime::coop::with_budget
2023-10-12T19:08:14.8424286Z coffee_1 | at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.1/src/runtime/coop.rs:107:5
2023-10-12T19:08:14.8425477Z coffee_1 | 8: tokio::runtime::coop::budget
2023-10-12T19:08:14.8426851Z coffee_1 | at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.1/src/runtime/coop.rs:73:5
2023-10-12T19:08:14.8428178Z coffee_1 | 9: tokio::runtime::park::CachedParkThread::block_on
2023-10-12T19:08:14.8429530Z coffee_1 | at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.1/src/runtime/park.rs:283:31
2023-10-12T19:08:14.8430963Z coffee_1 | 10: tokio::runtime::context::blocking::BlockingRegionGuard::block_on
2023-10-12T19:08:14.8432475Z coffee_1 | at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.1/src/runtime/context/blocking.rs:66:9
2023-10-12T19:08:14.8434049Z coffee_1 | 11: tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}
2023-10-12T19:08:14.8435741Z coffee_1 | at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.1/src/runtime/scheduler/multi_thread/mod.rs:87:13
2023-10-12T19:08:14.8437206Z coffee_1 | 12: tokio::runtime::context::runtime::enter_runtime
2023-10-12T19:08:14.8438616Z coffee_1 | at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.1/src/runtime/context/runtime.rs:65:16
2023-10-12T19:08:14.8440110Z coffee_1 | 13: tokio::runtime::scheduler::multi_thread::MultiThread::block_on
2023-10-12T19:08:14.8441711Z coffee_1 | at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.1/src/runtime/scheduler/multi_thread/mod.rs:86:9
2023-10-12T19:08:14.8443149Z coffee_1 | 14: tokio::runtime::runtime::Runtime::block_on
2023-10-12T19:08:14.8444474Z coffee_1 | at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.29.1/src/runtime/runtime.rs:313:45
2023-10-12T19:08:14.8518051Z coffee_1 | 15: tests::coffee_httpd_integration_tests::httpd_init_add_remote::ntest_callback
2023-10-12T19:08:14.8519205Z coffee_1 | at ./src/coffee_httpd_integration_tests.rs:68:5
2023-10-12T19:08:14.8520646Z coffee_1 | 16: tests::coffee_httpd_integration_tests::httpd_init_add_remote::{{closure}}
2023-10-12T19:08:14.8521779Z coffee_1 | at ./src/coffee_httpd_integration_tests.rs:10:1
2023-10-12T19:08:14.8522968Z coffee_1 | note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2023-10-12T19:08:14.8524953Z coffee_1 | thread 'coffee_httpd_integration_tests::httpd_init_add_remote' panicked at tests/src/coffee_httpd_integration_tests.rs:10:1:
2023-10-12T19:08:14.8526121Z coffee_1 | explicit panic
2023-10-12T19:08:14.8529703Z coffee_1 | stack backtrace:
2023-10-12T19:08:14.8530536Z coffee_1 | 0: std::panicking::begin_panic
2023-10-12T19:08:14.8531666Z coffee_1 | at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/std/src/panicking.rs:627:12
2023-10-12T19:08:14.8532974Z coffee_1 | 1: tests::coffee_httpd_integration_tests::httpd_init_add_remote
2023-10-12T19:08:14.8533980Z coffee_1 | at ./src/coffee_httpd_integration_tests.rs:10:1
2023-10-12T19:08:14.8535092Z coffee_1 | 2: tests::coffee_httpd_integration_tests::httpd_init_add_remote::{{closure}}
2023-10-12T19:08:14.8536173Z coffee_1 | at ./src/coffee_httpd_integration_tests.rs:11:38
2023-10-12T19:08:14.8537082Z coffee_1 | 3: core::ops::function::FnOnce::call_once
2023-10-12T19:08:14.8538268Z coffee_1 | at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/ops/function.rs:250:5
2023-10-12T19:08:14.8539415Z coffee_1 | 4: core::ops::function::FnOnce::call_once
2023-10-12T19:08:14.8540589Z coffee_1 | at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library/core/src/ops/function.rs:250:5
2023-10-12T19:08:14.8542270Z coffee_1 | note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2023-10-12T19:08:14.8544121Z coffee_1 |
2023-10-12T19:08:14.8544513Z coffee_1 |
```

Unrelated failure but we should debug it @tareknaser

_Originally posted by @vincenzopalazzo in https://github.com/coffee-tools/coffee/issues/207#issuecomment-1760273746_

Contributor guide

Open the contributing guide

Research direction

Read tests/src/coffee_httpd_integration_tests.rs around lines 64-68 and trace the RPC call that returns Unknown command 'summary'. Reproduce the HTTP integration test, identify why the command is unavailable, and confirm that httpd_init_add_remote passes without the panic.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
networking, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.