Skip to content

Instantly share code, notes, and snippets.

@bowrocker
Created June 18, 2020 19:25
Show Gist options
  • Save bowrocker/7c33f6b8fee5b9d52f577f05023194ce to your computer and use it in GitHub Desktop.
Save bowrocker/7c33f6b8fee5b9d52f577f05023194ce to your computer and use it in GitHub Desktop.
(base) joyentmac12398:manta-rebalancer jonran$ sudo RUST_BACKTRACE=1 cargo test job --no-fail-fast -- --test-threads=1
Finished test [unoptimized + debuginfo] target(s) in 0.69s
Running target/debug/deps/rebalancer_agent-22956bc1022123e6
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 6 filtered out
Running target/debug/deps/manager-4d9e50a4a6fb89e1
running 12 tests
test jobs::evacuate::tests::assignment_processing_test ... Running target/debug/deps/rebalancer_adm-c00f7310d2b2184e
running 4 tests
test rebalancer_adm_tests::job_create_no_params ... ok
test rebalancer_adm_tests::job_evacuate_no_params ... ok
test rebalancer_adm_tests::job_get_no_params ... ok
test rebalancer_adm_tests::job_list_extra_params ... ok
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 1 filtered out
Running target/debug/deps/rebalancer_manager-75cd9c6b170d7ac6
running 1 test
test tests::job_dynamic_update ... {"msg":"listening","v":0,"name":"rebalancer","level":30,"time":"2020-06-18T15:13:39.785305-04:00","hostname":"joyentmac12398.local","pid":9720,"build-id":"0.1.0","address":"127.0.0.1:8878"}
{"msg":"rebalancer[ThreadId(1):main]: Rebalancer Online","v":0,"name":"rebalancer","level":30,"time":"2020-06-18T15:13:39.787402-04:00","hostname":"joyentmac12398.local","pid":9720,"build-id":"0.1.0"}
{"msg":"rebalancer[ThreadId(8):tokio-runtime-worker-2]: Could not connect to rebalancer DB: FATAL: role \"postgres\" does not exist\n","v":0,"name":"rebalancer","level":50,"time":"2020-06-18T15:13:39.810971-04:00","hostname":"joyentmac12398.local","pid":9720,"build-id":"0.1.0"}
{"msg":"rebalancer[ThreadId(4)]: Error receiving job message: receiving on an empty and disconnected channel","v":0,"name":"rebalancer","level":50FAILED
failures:
---- tests::job_dynamic_update stdout ----
thread 'main' panicked at 'assertion failed: `(left == right)`
left: `"Could not find job d32a189c-43b9-4edc-9f8e-e7cd095a49e1"`,
right: `"Could not connect to rebalancer DB: FATAL: role \"postgres\" does not exist\n"`', manager/src/main.rs:766:9
stack backtrace:
0: backtrace::backtrace::libunwind::trace
at /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88
1: backtrace::backtrace::trace_unsynchronized
at /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66
2: std::sys_common::backtrace::_print_fmt
at src/libstd/sys_common/backtrace.rs:77
3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
at src/libstd/sys_common/backtrace.rs:61
4: core::fmt::write
at src/libcore/fmt/mod.rs:1028
5: std::io::Write::write_fmt
at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/io/mod.rs:1412
6: std::io::impls::<impl std::io::Write for alloc::boxed::Box<W>>::write_fmt
at src/libstd/io/impls.rs:141
7: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:65
8: std::sys_common::backtrace::print
at src/libstd/sys_common/backtrace.rs:50
9: std::panicking::default_hook::{{closure}}
at src/libstd/panicking.rs:188
10: std::panicking::default_hook
at src/libstd/panicking.rs:202
11: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:464
12: std::panicking::continue_panic_fmt
at src/libstd/panicking.rs:373
13: std::panicking::begin_panic_fmt
at src/libstd/panicking.rs:328
14: rebalancer_manager::tests::job_dynamic_update
at manager/src/main.rs:766
15: rebalancer_manager::tests::job_dynamic_update::{{closure}}
at manager/src/main.rs:746
16: core::ops::function::FnOnce::call_once
at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libcore/ops/function.rs:227
17: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/liballoc/boxed.rs:942
18: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:78
19: std::panicking::try
at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/panicking.rs:265
20: std::panic::catch_unwind
at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/panic.rs:396
21: test::run_test_in_process
at src/libtest/lib.rs:570
22: test::run_test::run_test_inner::{{closure}}
at src/libtest/lib.rs:473
23: test::run_test::run_test_inner
at src/libtest/lib.rs:494
24: test::run_test
at src/libtest/lib.rs:530
25: test::run_tests
at src/libtest/lib.rs:299
26: test::console::run_tests_console
at src/libtest/console.rs:295
27: test::test_main
at src/libtest/lib.rs:120
28: test::test_main_static
at src/libtest/lib.rs:139
29: rebalancer_manager::main
30: std::rt::lang_start::{{closure}}
at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/rt.rs:61
31: std::rt::lang_start_internal::{{closure}}
at src/libstd/rt.rs:48
32: std::panicking::try::do_call
at src/libstd/panicking.rs:287
33: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:78
34: std::panicking::try
at src/libstd/panicking.rs:265
35: std::panic::catch_unwind
at src/libstd/panic.rs:396
36: std::rt::lang_start_internal
at src/libstd/rt.rs:47
37: std::rt::lang_start
at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/rt.rs:61
38: rebalancer_manager::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
failures:
tests::job_dynamic_update
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2 filtered out
,"time":"2020-06-18T15:13:43.099841-04:00","hostname":"joyentmac12398.local","pid":9720,"build-id":"0.1.0"}
Running target/debug/deps/rebalancer-00a2fe60062650e0
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
error: test failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment