Skip to content

Instantly share code, notes, and snippets.

@timbray
Created May 13, 2024 15:35
Show Gist options
  • Save timbray/3b4c3117a9ee82b797bee8ee8a39f36c to your computer and use it in GitHub Desktop.
Save timbray/3b4c3117a9ee82b797bee8ee8a39f36c to your computer and use it in GitHub Desktop.
topfew/sketch> git clone -b fix/macos-build [email protected]:cube-js/datasketches-rs.git
Cloning into 'datasketches-rs'...
remote: Enumerating objects: 527, done.
remote: Counting objects: 100% (37/37), done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 527 (delta 15), reused 26 (delta 10), pack-reused 490
Receiving objects: 100% (527/527), 617.05 KiB | 1.98 MiB/s, done.
Resolving deltas: 100% (269/269), done.
topfew/sketch> cd datasketches-rs
sketch/datasketches-rs> cargo test
Compiling cfg-if v1.0.0
Compiling serde v1.0.201
Compiling getrandom v0.1.16
Compiling ppv-lite86 v0.2.17
Compiling rustversion v1.0.16
Compiling libm v0.2.8
Compiling crossbeam-utils v0.8.19
Compiling autocfg v1.3.0
Compiling serde_derive v1.0.201
Compiling either v1.11.0
Compiling rustix v0.38.34
Compiling errno v0.3.9
Compiling getrandom v0.2.15
Compiling serde_json v1.0.117
Compiling rand_core v0.6.4
Compiling itertools v0.10.5
Compiling ryu v1.0.18
Compiling num-traits v0.2.19
Compiling itoa v1.0.11
Compiling rand_chacha v0.3.1
Compiling bitflags v2.5.0
Compiling rayon-core v1.12.1
Compiling regex-syntax v0.8.3
Compiling rand_core v0.5.1
Compiling rand v0.8.5
Compiling rand_pcg v0.2.1
Compiling rand_chacha v0.2.2
Compiling rand v0.7.3
Compiling wait-timeout v0.2.0
Compiling crossbeam-epoch v0.9.18
Compiling fnv v1.0.7
Compiling crossbeam-deque v0.8.5
Compiling doc-comment v0.3.3
Compiling fastrand v2.1.0
Compiling plotters-backend v0.3.5
Compiling predicates-core v1.0.6
Compiling serde_closure v0.3.3
Compiling plotters-svg v0.3.5
Compiling amadeus-streaming v0.4.3
Compiling serde_closure_derive v0.3.3
Compiling csv-core v0.1.11
Compiling half v1.8.3
Compiling regex-automata v0.4.6
Compiling tempfile v3.10.1
Compiling cast v0.3.0
Compiling static_assertions v1.1.0
Compiling termtree v0.4.1
Compiling quick-error v1.2.3
Compiling siphasher v0.3.11
Compiling bit-vec v0.6.3
Compiling same-file v1.0.6
Compiling difflib v0.4.0
Compiling byteorder v1.5.0
Compiling walkdir v2.5.0
Compiling bit-set v0.5.3
Compiling predicates v2.1.5
Compiling predicates-tree v1.0.9
Compiling rusty-fork v0.3.0
Compiling criterion-plot v0.4.5
Compiling twox-hash v1.6.3
Compiling plotters v0.3.5
Compiling rayon v1.10.0
Compiling rand_xorshift v0.2.0
Compiling rand_xorshift v0.3.0
Compiling bit-vec v0.4.4
Compiling oorandom v11.1.3
Compiling unarray v0.1.4
Compiling bytecount v0.6.8
Compiling assert_cmd v1.0.8
Compiling proptest v1.4.0
Compiling ordered-float v2.10.1
Compiling byte-slice-cast v1.2.2
Compiling regex v1.10.4
Compiling serde_cbor v0.11.2
Compiling bincode v1.3.3
Compiling csv v1.3.0
Compiling probably v0.3.1
Compiling hyperloglogplus v0.4.1
Compiling probabilistic-collections v0.7.0
Compiling tinytemplate v1.2.1
Compiling criterion v0.3.6
Compiling dsrs v0.6.1 (/Users/timothybray/dev/topfew/sketch/datasketches-rs)
warning: unreachable statement
--> src/main.rs:438:9
|
435 | return;
| ------ any code following this expression is unreachable
...
438 | validate_unix_hh("seq 1000 | sed 's/$/\\n1\\n2\\n3/'", 3);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
|
= note: `#[warn(unreachable_code)]` on by default
warning: unreachable expression
--> src/main.rs:449:9
|
446 | return;
| ------ any code following this expression is unreachable
...
449 | validate_unix_hh("echo ; echo ; echo 1", 1)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression
warning: `dsrs` (bin "dsrs" test) generated 2 warnings
Finished test [unoptimized + debuginfo] target(s) in 5.77s
Running unittests src/lib.rs (target/debug/deps/dsrs-de54d7460edc9c67)
running 25 tests
test wrapper::cpc::tests::union_empty ... ok
test wrapper::cpc::tests::cpc_deserialization_error ... ok
test wrapper::cpc::tests::cpc_empty ... ok
test wrapper::hh::tests::check_hh_lgk4_multiplier2_nunique2 ... ok
test wrapper::hh::tests::basic_heavy ... ok
test wrapper::hh::tests::basic_merge ... ok
test wrapper::hh::tests::check_hh_lgk4_multiplier2_nunique1 ... ok
test wrapper::hh::tests::hh_empty ... ok
test wrapper::hh::tests::check_hh_lgk4_multiplier2_nunique3 ... ok
test wrapper::hh::tests::retains_all ... ok
test wrapper::hh::tests::check_hh_lgk4_multiplier5_nunique2 ... ok
test wrapper::hh::tests::retains_all_clone ... ok
test wrapper::hh::tests::check_hh_lgk4_multiplier5_nunique1 ... ok
test wrapper::theta::tests::theta_static_deserialization_error ... ok
test wrapper::hh::tests::check_hh_lgk4_multiplier5_nunique3 ... ok
test wrapper::hh::tests::check_hh_lgk4_multiplier20_nunique3 ... ok
test wrapper::hh::tests::check_hh_lgk4_multiplier20_nunique2 ... ok
test wrapper::hh::tests::check_hh_lgk4_multiplier20_nunique1 ... ok
test stream_reducer::tests::reduces_stream ... ok
test wrapper::cpc::tests::basic_union_distinct ... ok
test wrapper::cpc::tests::basic_count_distinct ... ok
test wrapper::cpc::tests::basic_union_overlap ... ok
test wrapper::theta::tests::basic_count_distinct ... ok
test wrapper::theta::tests::basic_intersect_overlap ... ok
test wrapper::theta::tests::basic_intersect ... ok
test result: ok. 25 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.72s
Running unittests src/main.rs (target/debug/deps/dsrs-eacacfd996e3b15e)
running 10 tests
test tests::hh_count_empty ... ok
test tests::hh_equally_dup_lines ... ok
test tests::count_empty ... FAILED
test tests::unique_lines ... FAILED
test tests::keyed_count_empty ... FAILED
test tests::hh_unique_lines ... ok
test tests::equally_dup_lines ... FAILED
test tests::unequally_dup_lines ... FAILED
test tests::unique_keyed_lines ... FAILED
test tests::keyed_dup_lines ... FAILED
failures:
---- tests::count_empty stdout ----
thread 'tests::count_empty' panicked at src/main.rs:250:9:
/bin/bash: gwc: command not found
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---- tests::unique_lines stdout ----
thread 'tests::unique_lines' panicked at src/main.rs:250:9:
/bin/bash: gwc: command not found
---- tests::keyed_count_empty stdout ----
thread 'tests::keyed_count_empty' panicked at src/main.rs:250:9:
/bin/bash: guniq: command not found
---- tests::equally_dup_lines stdout ----
thread 'tests::equally_dup_lines' panicked at src/main.rs:250:9:
/bin/bash: gwc: command not found
---- tests::unequally_dup_lines stdout ----
thread 'tests::unequally_dup_lines' panicked at src/main.rs:250:9:
/bin/bash: gwc: command not found
---- tests::unique_keyed_lines stdout ----
thread 'tests::unique_keyed_lines' panicked at src/main.rs:250:9:
/bin/bash: guniq: command not found
---- tests::keyed_dup_lines stdout ----
thread 'tests::keyed_dup_lines' panicked at src/main.rs:250:9:
/bin/bash: guniq: command not found
failures:
tests::count_empty
tests::equally_dup_lines
tests::keyed_count_empty
tests::keyed_dup_lines
tests::unequally_dup_lines
tests::unique_keyed_lines
tests::unique_lines
test result: FAILED. 3 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.95s
error: test failed, to rerun pass `--bin dsrs`
sketch/datasketches-rs>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment