Giter Club home page Giter Club logo

Comments (6)

freeekanayaka avatar freeekanayaka commented on July 24, 2024

Look at the .travis.yml file, which contains roughly everything needed to setup the environment and run tests. Basically it should just be:

./test/lib/fs.sh setup

(you'll probably need to run rm -rf ./tmp before the command above)

from raft.

amiloradovsky avatar amiloradovsky commented on July 24, 2024

It seems to mostly work (most tests pass), but some still fail, and the amount of privileges it requires prevents it from inclusion in, say, Guix with libUV enabled.

==================================
   raft 0.9.3: ./test-suite.log
==================================

# TOTAL: 4
# PASS:  3
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: test/unit/uv
==================

Running test suite with seed 0x0a9dacb3...
uv_os/join                                                  [ OK    ] [ 0.00001104 / 0.00001090 CPU ]
uv_os/ensure_dir/does_not_exists                            [ OK    ] [ 0.00000890 / 0.00000863 CPU ]
uv_os/ensure_dir/exists                                     [ OK    ] [ 0.00000326 / 0.00000306 CPU ]
uv_os/ensure_dir/error/mkdir                                [ OK    ] [ 0.00000989 / 0.00000975 CPU ]
uv_os/ensure_dir/error/stat                                 [ OK    ] [ 0.00001248 / 0.00001233 CPU ]
uv_os/ensure_dir/error/not_a_dir                            [ OK    ] [ 0.00000954 / 0.00000937 CPU ]
uv_os/sync_dir/error/open                                   [ OK    ] [ 0.00000851 / 0.00000842 CPU ]
uv_os/open_file/error/open                                  [ OK    ] [ 0.00001289 / 0.00001276 CPU ]
uv_os/probe/tmpfs                                           
  dir-fs=tmpfs                                              [ OK    ] [ 0.00002146 / 0.00002133 CPU ]
uv_os/probe/zfs                                             
  dir-fs=zfs                                                [ ERROR ]
Error: test/lib/dir.c:97: No such file or directory
Error: child killed by signal 6 (Aborted)
uv_os/probe/error/no_access                                 [ OK    ] [ 0.00001141 / 0.00001127 CPU ]
uv_os/probe/error/no_space                                  [ OK    ] [ 0.00355717 / 0.00337692 CPU ]
uv_file/create/success                                      
  dir-fs=tmpfs                                              [ OK    ] [ 0.00023528 / 0.00026541 CPU ]
  dir-fs=ext4                                               [ ERROR ]
Error: test/lib/dir.c:97: Permission denied
Error: child killed by signal 6 (Aborted)
uv_file/create/error/no_entry                               [ OK    ] [ 0.00001131 / 0.00001119 CPU ]
uv_file/create/error/already_exists                         [ OK    ] [ 0.00001647 / 0.00001640 CPU ]
uv_file/create/error/no_space                               [ OK    ] [ 0.00061578 / 0.00014996 CPU ]
uv_file/create/error/no_resources                           [ OK    ] [ 0.03103860 / 0.00053074 CPU ]
uv_file/create/error/cancel                                 [ OK    ] [ 0.04754278 / 0.00056602 CPU ]
uv_file/write/one                                           
  dir-fs=tmpfs                                              [ OK    ] [ 0.03882863 / 0.00012033 CPU ]
  dir-fs=ext4                                               [ ERROR ]
Error: test/lib/dir.c:97: Permission denied
Error: child killed by signal 6 (Aborted)
uv_file/write/two                                           
  dir-fs=tmpfs                                              [ OK    ] [ 0.07049846 / 0.00033598 CPU ]
  dir-fs=ext4                                               [ ERROR ]
Error: test/lib/dir.c:97: Permission denied
Error: child killed by signal 6 (Aborted)
uv_file/write/twice                                         
  dir-fs=tmpfs                                              [ OK    ] [ 0.08683964 / 0.00032826 CPU ]
  dir-fs=ext4                                               [ ERROR ]
Error: test/lib/dir.c:97: Permission denied
Error: child killed by signal 6 (Aborted)
uv_file/write/vec                                           
  dir-fs=tmpfs                                              [ OK    ] [ 0.03862380 / 0.00016911 CPU ]
  dir-fs=ext4                                               [ ERROR ]
Error: test/lib/dir.c:97: Permission denied
Error: child killed by signal 6 (Aborted)
uv_file/write/vec_twice                                     
  dir-fs=tmpfs                                              [ OK    ] [ 0.06641409 / 0.00029766 CPU ]
  dir-fs=ext4                                               [ ERROR ]
Error: test/lib/dir.c:97: Permission denied
Error: child killed by signal 6 (Aborted)
uv_file/write/concurrent                                    
  dir-fs=tmpfs                                              [ SKIP  ]
  dir-fs=ext4                                               [ ERROR ]
Error: test/lib/dir.c:97: Permission denied
Error: child killed by signal 6 (Aborted)
uv_file/write/concurrent_twice                              
  dir-fs=tmpfs                                              [ SKIP  ]
  dir-fs=ext4                                               [ ERROR ]
Error: test/lib/dir.c:97: Permission denied
Error: child killed by signal 6 (Aborted)
uv_file/write/error/no_resources                            
  dir-fs=tmpfs                                              [ OK    ] [ 0.03845367 / 0.00062321 CPU ]
uv_file/write/error/cancel                                  
  dir-fs=tmpfs                                              [ OK    ] [ 0.07880557 / 0.00017744 CPU ]
  dir-fs=ext4                                               [ ERROR ]
Error: test/lib/dir.c:97: Permission denied
Error: child killed by signal 6 (Aborted)
uv_init/ensure_dir/error/cant_create                        [ OK    ] [ 0.00005447 / 0.00005430 CPU ]
uv_init/ensure_dir/error/not_a_dir                          [ OK    ] [ 0.00004755 / 0.00004744 CPU ]
uv_init/ensure_dir/error/no_access                          [ OK    ] [ 0.00004999 / 0.00004991 CPU ]
uv_init/metadata/empty_dir                                  [ OK    ] [ 0.00011410 / 0.00011401 CPU ]
uv_init/metadata/only_1                                     [ OK    ] [ 0.00011384 / 0.00011376 CPU ]
uv_init/metadata/1                                          [ OK    ] [ 0.00010653 / 0.00010653 CPU ]
uv_init/metadata/2                                          [ OK    ] [ 0.00011863 / 0.00011853 CPU ]
uv_init/metadata/short_file                                 [ OK    ] [ 0.00011860 / 0.00011852 CPU ]
uv_init/metadata/same_version                               [ OK    ] [ 0.00006860 / 0.00006851 CPU ]
uv_init/metadata/error/no_access                            [ OK    ] [ 0.00005375 / 0.00005366 CPU ]
uv_init/metadata/error/bad_format                           [ OK    ] [ 0.00005804 / 0.00005796 CPU ]
uv_init/metadata/error/bad_version                          [ OK    ] [ 0.00005768 / 0.00005758 CPU ]
uv_init/metadata/error/no_space                             [ OK    ] [ 0.00319170 / 0.00319164 CPU ]
uv_list/segments/empty                                      [ OK    ] [ 0.00004920 / 0.00004914 CPU ]
uv_list/snapshots/one                                       [ OK    ] [ 0.00007313 / 0.00007316 CPU ]
uv_list/snapshots/many                                      [ OK    ] [ 0.00011462 / 0.00011465 CPU ]
uv_load/segments/ignore_unknown                             [ OK    ] [ 0.00004599 / 0.00004594 CPU ]
uv_load/segments/closed                                     [ OK    ] [ 0.00009747 / 0.00009745 CPU ]
uv_load/segments/open_empty                                 [ OK    ] [ 0.00004024 / 0.00004016 CPU ]
uv_load/segments/open_all_zeros                             [ OK    ] [ 0.00004601 / 0.00004592 CPU ]
uv_load/segments/open_not_all_zeros                         [ OK    ] [ 0.00007847 / 0.00007844 CPU ]
uv_load/segments/open_truncate                              [ OK    ] [ 0.00007207 / 0.00007205 CPU ]
uv_load/segments/open_partial_bach                          [ OK    ] [ 0.00006425 / 0.00006421 CPU ]
uv_load/segments/open_second                                [ OK    ] [ 0.00010455 / 0.00010453 CPU ]
uv_load/segments/open_second_all_zeroes                     [ OK    ] [ 0.00008608 / 0.00008607 CPU ]
uv_load/segments/open                                       [ OK    ] [ 0.00006832 / 0.00006830 CPU ]
uv_load/snapshot/many                                       [ OK    ] [ 0.00011141 / 0.00011137 CPU ]
uv_load/snapshot/closed_segment_with_old_entries            [ OK    ] [ 0.00006828 / 0.00006823 CPU ]
uv_load/snapshot/dangling_open_segment                      [ OK    ] [ 0.00010875 / 0.00010873 CPU ]
uv_load/snapshot/dangling_open_segment_behind               [ OK    ] [ 0.00010743 / 0.00010740 CPU ]
uv_load/snapshot/valid_closed_segments                      [ OK    ] [ 0.00009820 / 0.00009818 CPU ]
uv_load/snapshot/noncontigous_closed_segments               [ OK    ] [ 0.00008594 / 0.00008590 CPU ]
uv_load/snapshot/more_recent_closed_segment                 [ OK    ] [ 0.00006592 / 0.00006589 CPU ]
uv_load/error/short_format                                  [ OK    ] [ 0.00004002 / 0.00003994 CPU ]
uv_load/error/short_preamble                                [ OK    ] [ 0.00004888 / 0.00004880 CPU ]
uv_load/error/short_header                                  [ OK    ] [ 0.00004805 / 0.00004799 CPU ]
uv_load/error/short_data                                    [ OK    ] [ 0.00004829 / 0.00004824 CPU ]
uv_load/error/corrupt_header                                [ OK    ] [ 0.00004628 / 0.00004622 CPU ]
uv_load/error/corrupt_data                                  [ OK    ] [ 0.00004668 / 0.00004665 CPU ]
uv_load/error/closed_bad_index                              [ OK    ] [ 0.00003529 / 0.00003525 CPU ]
uv_load/error/closed_empty                                  [ OK    ] [ 0.00003185 / 0.00003176 CPU ]
uv_load/error/closed_bad_format                             [ OK    ] [ 0.00003549 / 0.00003542 CPU ]
uv_load/error/open_no_access                                [ OK    ] [ 0.00004449 / 0.00004439 CPU ]
uv_load/error/open_zero_format                              [ OK    ] [ 0.00004769 / 0.00004748 CPU ]
uv_load/error/open_bad_format                               [ OK    ] [ 0.00004463 / 0.00004455 CPU ]
uv_prepare/success/first                                    [ OK    ] [ 0.00133267 / 0.00136528 CPU ]
uv_prepare/success/second                                   [ OK    ] [ 0.05078221 / 0.00214194 CPU ]
uv_prepare/error/no_resources                               [ OK    ] [ 0.03021567 / 0.00050904 CPU ]
uv_prepare/error/no_space                                   [ OK    ] [ 0.03122434 / 0.00057710 CPU ]
uv_prepare/error/oom                                        
  heap-fault-delay=0, heap-fault-repeat=1                   [ OK    ] [ 0.00000642 / 0.00000581 CPU ]
  heap-fault-delay=1, heap-fault-repeat=1                   [ OK    ] [ 0.00000527 / 0.00000505 CPU ]
uv_prepare/close/noop                                       [ OK    ] [ 0.00000635 / 0.00000612 CPU ]
uv_prepare/close/cancel_requests                            [ OK    ] [ 0.00018575 / 0.00034821 CPU ]
uv_prepare/close/remove_pool                                [ OK    ] [ 0.09517486 / 0.00279952 CPU ]
uv_append/success/first                                     [ OK    ] [ 0.00048545 / 0.00078288 CPU ]
uv_append/success/fit_block                                 [ OK    ] [ 0.00048555 / 0.00079530 CPU ]
uv_append/success/match_block                               [ OK    ] [ 0.00057036 / 0.00081900 CPU ]
uv_append/success/exceed_block                              [ OK    ] [ 0.00076610 / 0.00108030 CPU ]
uv_append/success/batch                                     [ OK    ] [ 0.00050375 / 0.00066267 CPU ]
uv_append/success/wait                                      [ OK    ] [ 0.00049985 / 0.00078200 CPU ]
uv_append/success/resize_arena                              [ OK    ] [ 0.00044848 / 0.00060781 CPU ]
uv_append/success/truncate                                  [ ERROR ]
00:29:44.545 [DEBUG]:                       src/uv.c: 40 - data dir: ./tmp/tmpfs/raft-test-tAUD8u
00:29:44.545 [DEBUG]:              src/uv_metadata.c:152 - metadata1: version 0, term 0, voted for 0
00:29:44.545 [DEBUG]:              src/uv_metadata.c:158 - metadata2: version 0, term 0, voted for 0
00:29:44.545 [DEBUG]:                       src/uv.c: 56 - metadata: version 2, term 0, voted for 0
00:29:44.545 [DEBUG]:                       src/uv.c: 67 - I/O: direct 0, block 4096
00:29:44.545 [DEBUG]:               src/uv_prepare.c:211 - create open segment open-1
00:29:44.546 [DEBUG]:               src/uv_prepare.c:167 - completed creation of open-1
00:29:44.546 [DEBUG]:               src/uv_prepare.c:211 - create open segment open-2
00:29:44.546 [DEBUG]:               src/uv_prepare.c:167 - completed creation of open-2
00:29:44.546 [DEBUG]:               src/uv_prepare.c:211 - create open segment open-3
00:29:44.546 [DEBUG]:              src/uv_finalize.c: 33 - finalize open-1 into 1-4
00:29:44.577 [DEBUG]:               src/uv_prepare.c:167 - completed creation of open-3
00:29:44.577 [DEBUG]:               src/uv_prepare.c:211 - create open segment open-4
00:29:44.577 [DEBUG]:               src/uv_prepare.c:167 - completed creation of open-4
00:29:44.577 [DEBUG]:                  src/uv_list.c: 56 - ignore .
00:29:44.577 [DEBUG]:                  src/uv_list.c: 56 - ignore ..
00:29:44.577 [DEBUG]:                  src/uv_list.c: 77 - segment 1-4
00:29:44.577 [DEBUG]:                  src/uv_list.c: 56 - ignore metadata1
00:29:44.577 [DEBUG]:                  src/uv_list.c: 56 - ignore metadata2
00:29:44.577 [DEBUG]:                  src/uv_list.c: 77 - segment open-2
00:29:44.577 [DEBUG]:                  src/uv_list.c: 77 - segment open-3
00:29:44.577 [DEBUG]:                  src/uv_list.c: 77 - segment open-4
00:29:44.577 [DEBUG]:               src/uv_segment.c:977 - truncate 1-4 at 2
Error: test/unit/test_uv_append.c:423: assertion failed: f->invoked == 2 (1 == 2)
Error: child killed by signal 6 (Aborted)
uv_append/success/truncate_closing                          [ OK    ] [ 0.00042747 / 0.00064237 CPU ]
uv_append/success/counter                                   [ OK    ] [ 0.11928925 / 0.00236858 CPU ]
uv_append/error/too_big                                     [ OK    ] [ 0.00001299 / 0.00001242 CPU ]
uv_append/error/cancel                                      [ ERROR ]
00:29:44.930 [DEBUG]:                       src/uv.c: 40 - data dir: ./tmp/tmpfs/raft-test-VS8O2X
00:29:44.930 [DEBUG]:              src/uv_metadata.c:152 - metadata1: version 0, term 0, voted for 0
00:29:44.930 [DEBUG]:              src/uv_metadata.c:158 - metadata2: version 0, term 0, voted for 0
00:29:44.930 [DEBUG]:                       src/uv.c: 56 - metadata: version 2, term 0, voted for 0
00:29:44.930 [DEBUG]:                       src/uv.c: 67 - I/O: direct 0, block 4096
00:29:44.930 [DEBUG]:               src/uv_prepare.c:211 - create open segment open-1
Error: test/unit/test_uv_append.c:511: assertion failed: test_dir_has_file(f->dir, "open-1") is not false
Error: child killed by signal 6 (Aborted)
uv_append/error/write                                       [ SKIP  ]
uv_append/error/oom                                         
  heap-fault-delay=0, heap-fault-repeat=1                   [ OK    ] [ 0.00000185 / 0.00000148 CPU ]
  heap-fault-delay=1, heap-fault-repeat=1                   [ OK    ] [ 0.00000187 / 0.00000160 CPU ]
uv_append/close/during_write                                [ OK    ] [ 0.04179664 / 0.00085080 CPU ]
uv_append/close/current_segment                             [ OK    ] [ 0.09109340 / 0.00096925 CPU ]
uv_finalize/success/first                                   [ OK    ] [ 0.00029232 / 0.00047147 CPU ]
uv_finalize/success/unused                                  [ OK    ] [ 0.00030341 / 0.00046698 CPU ]
uv_finalize/success/wait                                    [ OK    ] [ 0.00036111 / 0.00054911 CPU ]
uv_finalize/error/oom                                       
  heap-fault-delay=0, heap-fault-repeat=1                   [ OK    ] [ 0.00000126 / 0.00000097 CPU ]
uv_snapshot/load/success/first                              [ OK    ] [ 0.00002257 / 0.00002227 CPU ]
uv_snapshot/load/error/no_metadata                          [ OK    ] [ 0.00000739 / 0.00000713 CPU ]
uv_snapshot/load/error/no_header                            [ OK    ] [ 0.00001435 / 0.00001407 CPU ]
uv_snapshot/load/error/format                               [ OK    ] [ 0.00001862 / 0.00001850 CPU ]
uv_snapshot/load/error/configuration_too_big                [ OK    ] [ 0.00001792 / 0.00001770 CPU ]
uv_snapshot/load/error/no_configuration                     [ OK    ] [ 0.00001778 / 0.00001755 CPU ]
uv_snapshot/load/error/no_data                              [ OK    ] [ 0.00001996 / 0.00001978 CPU ]
uv_snapshot/load/error/oom                                  
  heap-fault-delay=0, heap-fault-repeat=1                   [ OK    ] [ 0.00001869 / 0.00001847 CPU ]
  heap-fault-delay=1, heap-fault-repeat=1                   [ OK    ] [ 0.00001604 / 0.00001584 CPU ]
  heap-fault-delay=2, heap-fault-repeat=1                   [ OK    ] [ 0.00001699 / 0.00001675 CPU ]
  heap-fault-delay=3, heap-fault-repeat=1                   [ OK    ] [ 0.00002064 / 0.00002047 CPU ]
  heap-fault-delay=4, heap-fault-repeat=1                   [ OK    ] [ 0.00002147 / 0.00002127 CPU ]
uv_snapshot/put/first                                       [ OK    ] [ 0.00028877 / 0.00035365 CPU ]
uv_snapshot/put/entries_less_than_trailing                  [ OK    ] [ 0.07199204 / 0.00431950 CPU ]
uv_snapshot/put/entries_more_than_trailing                  [ OK    ] [ 0.08019270 / 0.00477840 CPU ]
uv_snapshot/put/after_truncate                              [ OK    ] [ 0.04343048 / 0.00346946 CPU ]
uv_snapshot/get/first                                       [ OK    ] [ 0.00046318 / 0.00059079 CPU ]
uv_truncate/success/whole_segment                           [ OK    ] [ 0.04208941 / 0.00321218 CPU ]
uv_truncate/success/same_as_last_index                      [ OK    ] [ 0.03929363 / 0.00319901 CPU ]
uv_truncate/success/partial_segment                         [ OK    ] [ 0.04320758 / 0.01212599 CPU ]
uv_truncate/error/oom                                       
  heap-fault-delay=0, heap-fault-repeat=1                   [ OK    ] [ 0.00000137 / 0.00000087 CPU ]
uv_tcp_connect/success/first                                [ OK    ] [ 0.00008173 / 0.00008159 CPU ]
uv_tcp_connect/error/refused                                [ OK    ] [ 0.00004728 / 0.00004720 CPU ]
uv_tcp_connect/error/oom                                    
  heap-fault-delay=0, heap-fault-repeat=1                   [ OK    ] [ 0.00000105 / 0.00000078 CPU ]
  heap-fault-delay=1, heap-fault-repeat=1                   [ OK    ] [ 0.00000244 / 0.00000228 CPU ]
uv_tcp_connect/error/oom_async                              
  heap-fault-delay=0, heap-fault-repeat=1                   [ OK    ] [ 0.00005092 / 0.00005084 CPU ]
uv_tcp_connect/close/immediately                            [ OK    ] [ 0.00005002 / 0.00004993 CPU ]
uv_tcp_connect/close/handshake                              [ OK    ] [ 0.00005934 / 0.00005923 CPU ]
uv_tcp_listen/success/first                                 [ OK    ] [ 0.00005570 / 0.00005557 CPU ]
uv_tcp_listen/error/bad_protocol                            [ OK    ] [ 0.00005529 / 0.00005517 CPU ]
uv_tcp_listen/error/abort                                   
  n=8                                                       [ OK    ] [ 0.00006400 / 0.00006391 CPU ]
  n=16                                                      [ OK    ] [ 0.00005597 / 0.00005592 CPU ]
  n=24                                                      [ OK    ] [ 0.00005596 / 0.00005593 CPU ]
  n=32                                                      [ OK    ] [ 0.00011690 / 0.00011692 CPU ]
uv_tcp_listen/error/oom                                     
  heap-fault-delay=0, heap-fault-repeat=1                   [ OK    ] [ 0.00002972 / 0.00002967 CPU ]
  heap-fault-delay=1, heap-fault-repeat=1                   [ OK    ] [ 0.00002986 / 0.00002981 CPU ]
  heap-fault-delay=2, heap-fault-repeat=1                   [ OK    ] [ 0.00004567 / 0.00004565 CPU ]
uv_tcp_listen/close/pending                                 [ OK    ] [ 0.00001473 / 0.00001464 CPU ]
uv_tcp_listen/close/connected                               [ OK    ] [ 0.00002910 / 0.00002904 CPU ]
uv_tcp_listen/close/handshake                               
  n=8                                                       [ OK    ] [ 0.00003907 / 0.00003905 CPU ]
  n=16                                                      [ OK    ] [ 0.00003825 / 0.00003824 CPU ]
  n=24                                                      [ OK    ] [ 0.00003992 / 0.00003990 CPU ]
  n=32                                                      [ OK    ] [ 0.00003858 / 0.00003855 CPU ]
io_uv_recv/success/first                                    [ OK    ] [ 0.00004374 / 0.00004366 CPU ]
io_uv_recv/success/second                                   [ OK    ] [ 0.00004669 / 0.00004662 CPU ]
io_uv_recv/success/request_vote_result                      [ OK    ] [ 0.00004258 / 0.00004252 CPU ]
io_uv_recv/success/append_entries                           [ OK    ] [ 0.00004983 / 0.00004975 CPU ]
io_uv_recv/success/heartbeat                                [ OK    ] [ 0.00004255 / 0.00004248 CPU ]
io_uv_recv/success/append_entries_result                    [ OK    ] [ 0.00004203 / 0.00004196 CPU ]
io_uv_recv/success/install_snapshot                         [ OK    ] [ 0.00004784 / 0.00004780 CPU ]
io_uv_recv/error/bad_protocol                               [ OK    ] [ 0.00004460 / 0.00004455 CPU ]
io_uv_recv/error/bad_size                                   [ OK    ] [ 0.00006211 / 0.00006206 CPU ]
io_uv_recv/error/bad_type                                   [ OK    ] [ 0.00005834 / 0.00005827 CPU ]
io_uv_recv/error/oom                                        
  heap-fault-delay=3, heap-fault-repeat=1                   [ OK    ] [ 0.00005736 / 0.00005734 CPU ]
  heap-fault-delay=4, heap-fault-repeat=1                   [ OK    ] [ 0.00005614 / 0.00005611 CPU ]
  heap-fault-delay=5, heap-fault-repeat=1                   [ OK    ] [ 0.00005563 / 0.00005558 CPU ]
  heap-fault-delay=6, heap-fault-repeat=1                   [ OK    ] [ 0.00005794 / 0.00005790 CPU ]
io_uv_recv/close/accept                                     [ OK    ] [ 0.00004137 / 0.00004128 CPU ]
io_uv_recv/close/append_entries                             [ OK    ] [ 0.00005323 / 0.00005316 CPU ]
io_uv_send/success/first                                    [ OK    ] [ 0.00004283 / 0.00004271 CPU ]
io_uv_send/success/second                                   [ OK    ] [ 0.00004547 / 0.00004538 CPU ]
io_uv_send/success/vote_result                              [ OK    ] [ 0.00004083 / 0.00004070 CPU ]
io_uv_send/success/append_entries                           [ OK    ] [ 0.00004353 / 0.00004343 CPU ]
io_uv_send/success/heartbeat                                [ OK    ] [ 0.00004043 / 0.00004031 CPU ]
io_uv_send/success/append_entries_result                    [ OK    ] [ 0.00004000 / 0.00003993 CPU ]
io_uv_send/success/install_snapshot                         [ OK    ] [ 0.00004225 / 0.00004218 CPU ]
io_uv_send/error/connect                                    [ OK    ] [ 0.00113566 / 0.00008268 CPU ]
io_uv_send/error/bad_address                                [ OK    ] [ 0.00001083 / 0.00001066 CPU ]
io_uv_send/error/bad_message                                [ OK    ] [ 0.00000131 / 0.00000110 CPU ]
io_uv_send/error/reconnect                                  [ OK    ] [ 0.00014877 / 0.00014870 CPU ]
io_uv_send/error/queue                                      [ OK    ] [ 0.00002138 / 0.00002131 CPU ]
io_uv_send/error/oom                                        
  heap-fault-delay=0, heap-fault-repeat=1                   [ OK    ] [ 0.00000108 / 0.00000089 CPU ]
  heap-fault-delay=1, heap-fault-repeat=1                   [ OK    ] [ 0.00000144 / 0.00000124 CPU ]
  heap-fault-delay=2, heap-fault-repeat=1                   [ OK    ] [ 0.00000161 / 0.00000140 CPU ]
  heap-fault-delay=3, heap-fault-repeat=1                   [ OK    ] [ 0.00001407 / 0.00001389 CPU ]
  heap-fault-delay=4, heap-fault-repeat=1                   [ OK    ] [ 0.00000182 / 0.00000162 CPU ]
  heap-fault-delay=5, heap-fault-repeat=1                   [ OK    ] [ 0.00000184 / 0.00000164 CPU ]
io_uv_send/error/oom_async                                  
  heap-fault-delay=0, heap-fault-repeat=1                   [ OK    ] [ 0.00119284 / 0.00013826 CPU ]
io_uv_send/close/writing                                    [ OK    ] [ 0.00005504 / 0.00005508 CPU ]
io_uv_send/close/connecting                                 [ OK    ] [ 0.00003045 / 0.00003035 CPU ]
uv/init/dir_too_long                                        [ OK    ] [ 0.00000096 / 0.00000077 CPU ]
uv/start/tick                                               [ OK    ] [ 0.05035918 / 0.00005082 CPU ]
uv/start/recv                                               [ OK    ] [ 0.00007135 / 0.00007116 CPU ]
uv/load/pristine                                            [ OK    ] [ 0.00002712 / 0.00002692 CPU ]
uv/bootstrap/pristine                                       [ OK    ] [ 0.00004660 / 0.00004646 CPU ]
uv/set_term/term                                            [ OK    ] [ 0.00003315 / 0.00003293 CPU ]
uv/set_vote/pristine                                        [ OK    ] [ 0.00003689 / 0.00003676 CPU ]
uv/append/pristine                                          [ OK    ] [ 0.30154128 / 0.00326729 CPU ]
uv/send/first                                               [ OK    ] [ 0.00011184 / 0.00011151 CPU ]
185 of 197 (94%) tests successful, 3 (2%) test skipped.
FAIL test/unit/uv (exit status: 1)

P.S. It says, 0.9.3; should be 0.9.5, configure.ac needs update?

from raft.

freeekanayaka avatar freeekanayaka commented on July 24, 2024

The version has been bumped in #68.

from raft.

freeekanayaka avatar freeekanayaka commented on July 24, 2024

What do you mean exactly with

the amount of privileges it requires prevents it from inclusion in, say, Guix with libUV enabled.

?

Root privileges are required by ./test/lib/fs.sh for creating the ./tmp tree, with the various file system backends. Do you mean you would like to have a way to run the test suite also without invoking ./test/lib/fs.sh? Of course that would skip tests that are specific to a certain file system.

from raft.

amiloradovsky avatar amiloradovsky commented on July 24, 2024

In Guix, the tests (make check) are performed by default, and the privileges available in the test environment are those given to guixbuilders. So, if the tests depend on the root privileges, one has to either disable the tests or the parts requiring the privileges.
I preferred the latter, although libuv is already ported to Guix:

https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/cluster.scm?id=45151bcb94b4ae943551ab444d8006c21f6cd69b

This makes libraft pretty much useless without implementing own I/O backend. But currently I'm trying to do exactly that, with ZeroMQ+GDBM.

P.S. Where I could ask a few questions, about the library and Raft in general?
ATM, I don't get how do I make the initial configuration "work" (become active) at startup, so the elections could ever happen.

from raft.

freeekanayaka avatar freeekanayaka commented on July 24, 2024

Okay, I'll work so that by default "make check" does not require any root privilege.

Why do you need to implement a backend based on ZeroMQ+GDBM? That seems like a lot of work (you'll find that it's tricky to get right, if you want to have it asynchronous).

If you want to ask questions about the library and Raft in general, please join the #lxc-dev channel on FreeNode, and ping me (free). I'm generally available during work hours, European time zone.

from raft.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.