Skip to content
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

Test suite started to fail #14

Open
eserte opened this issue Feb 18, 2022 · 1 comment
Open

Test suite started to fail #14

eserte opened this issue Feb 18, 2022 · 1 comment

Comments

@eserte
Copy link

eserte commented Feb 18, 2022

The test suite started to fail like this:

t/00_compile.t ........... ok
t/01_new.t ............... ok
invalid pid: one at /usr/home/cpansand/.cpan/build/2022021722/Linux-GetPidstat-0.10-0/blib/lib/Linux/GetPidstat.pm line 37.
invalid pid: dummy at /usr/home/cpansand/.cpan/build/2022021722/Linux-GetPidstat-0.10-0/blib/lib/Linux/GetPidstat.pm line 37.
Empty metric: name=cpu, lines=Linux 3.13.0-83-generic (ip-10-0-1-51)  04/02/2016      _x86_64_        (4 CPU),,#      Time   UID       PID    %usr %system  %guest    %CPU   CPU  minflt/s  majflt/s     VSZ    RSS   %MEM StkSize  StkRef   kB_rd/s   kB_wr/s kB_ccwr/s   cswch/s nvcswch/s  Command
Failed getting pidstat: pid=31908, target_pids=2,18352,18353,18360,18366,28264, program_name=target_script2
Empty metric: name=cpu, lines=Linux 3.13.0-83-generic (ip-10-0-1-51)  04/02/2016      _x86_64_        (4 CPU),,#      Time   UID       PID    %usr %system  %guest    %CPU   CPU  minflt/s  majflt/s     VSZ    RSS   %MEM StkSize  StkRef   kB_rd/s   kB_wr/s kB_ccwr/s   cswch/s nvcswch/s  Command
Failed getting pidstat: pid=31909, target_pids=1, program_name=target_script

    #   Failed test at t/02_basic.t line 146.
    #     Structures begin differing at:
    #          $got->[1] = '2016-06-10T00:00:00,1465484400,target_script,cswch_per_sec,19.9'
    #     $expected->[1] = '2016-06-10T00:00:00,1465484400,target_script,cswch_per_sec,19.87'
    # 2016-06-10T00:00:00,1465484400,target_script2,nvcswch_per_sec,182.4
    # 2016-06-10T00:00:00,1465484400,target_script2,stk_ref,153000
    # 2016-06-10T00:00:00,1465484400,target_script2,cswch_per_sec,119.4
    # 2016-06-10T00:00:00,1465484400,target_script2,stk_size,768000
    # 2016-06-10T00:00:00,1465484400,target_script2,memory_percent,207.6
    # 2016-06-10T00:00:00,1465484400,target_script2,disk_write_per_sec,0
    # 2016-06-10T00:00:00,1465484400,target_script2,disk_read_per_sec,0
    # 2016-06-10T00:00:00,1465484400,target_script2,memory_rss,65400000000
    # 2016-06-10T00:00:00,1465484400,target_script2,cpu,127.2
    # 2016-06-10T00:00:00,1465484400,target_script,cswch_per_sec,19.9
    # 2016-06-10T00:00:00,1465484400,target_script,stk_size,128000
    # 2016-06-10T00:00:00,1465484400,target_script,nvcswch_per_sec,30.4
    # 2016-06-10T00:00:00,1465484400,target_script,stk_ref,25500
    # 2016-06-10T00:00:00,1465484400,target_script,cpu,21.2
    # 2016-06-10T00:00:00,1465484400,target_script,memory_rss,10900000000
    # 2016-06-10T00:00:00,1465484400,target_script,memory_percent,34.6
    # 2016-06-10T00:00:00,1465484400,target_script,disk_write_per_sec,0
    # 2016-06-10T00:00:00,1465484400,target_script,disk_read_per_sec,0
    # Looks like you failed 1 test of 2.

#   Failed test 'output to a file'
#   at t/02_basic.t line 153.

    #   Failed test at t/02_basic.t line 189.
    #     Structures begin differing at:
    #          $got->[1] = '2016-06-10T00:00:00,1465484400,target_script,cswch_per_sec,19.9'
    #     $expected->[1] = '2016-06-10T00:00:00,1465484400,target_script,cswch_per_sec,19.87'
    # 2016-06-10T00:00:00,1465484400,target_script2,cpu,127.2
    # 2016-06-10T00:00:00,1465484400,target_script2,memory_rss,65400000000
    # 2016-06-10T00:00:00,1465484400,target_script2,disk_read_per_sec,0
    # 2016-06-10T00:00:00,1465484400,target_script2,memory_percent,207.6
    # 2016-06-10T00:00:00,1465484400,target_script2,disk_write_per_sec,0
    # 2016-06-10T00:00:00,1465484400,target_script2,cswch_per_sec,119.4
    # 2016-06-10T00:00:00,1465484400,target_script2,stk_size,768000
    # 2016-06-10T00:00:00,1465484400,target_script2,stk_ref,153000
    # 2016-06-10T00:00:00,1465484400,target_script2,nvcswch_per_sec,182.4
    # 2016-06-10T00:00:00,1465484400,target_script,nvcswch_per_sec,30.4
    # 2016-06-10T00:00:00,1465484400,target_script,stk_ref,25500
    # 2016-06-10T00:00:00,1465484400,target_script,stk_size,128000
    # 2016-06-10T00:00:00,1465484400,target_script,cswch_per_sec,19.9
    # 2016-06-10T00:00:00,1465484400,target_script,memory_rss,10900000000
    # 2016-06-10T00:00:00,1465484400,target_script,memory_percent,34.6
    # 2016-06-10T00:00:00,1465484400,target_script,disk_write_per_sec,0
    # 2016-06-10T00:00:00,1465484400,target_script,disk_read_per_sec,0
    # 2016-06-10T00:00:00,1465484400,target_script,cpu,21.2

    #   Failed test at t/02_basic.t line 193.
    #     Structures begin differing at:
    #          $got->[2] = 'mackerel post: name=custom.batch_cswch_per_sec.target_script, time=1465484400, metric=19.9'
    #     $expected->[2] = 'mackerel post: name=custom.batch_cswch_per_sec.target_script, time=1465484400, metric=19.87'
    # mackerel post: name=custom.batch_cpu.target_script2, time=1465484400, metric=127.2
    # mackerel post: name=custom.batch_memory_rss.target_script2, time=1465484400, metric=65400000000
    # mackerel post: name=custom.batch_disk_read_per_sec.target_script2, time=1465484400, metric=0
    # mackerel post: name=custom.batch_memory_percent.target_script2, time=1465484400, metric=207.6
    # mackerel post: name=custom.batch_disk_write_per_sec.target_script2, time=1465484400, metric=0
    # mackerel post: name=custom.batch_cswch_per_sec.target_script2, time=1465484400, metric=119.4
    # mackerel post: name=custom.batch_stk_size.target_script2, time=1465484400, metric=768000
    # mackerel post: name=custom.batch_stk_ref.target_script2, time=1465484400, metric=153000
    # mackerel post: name=custom.batch_nvcswch_per_sec.target_script2, time=1465484400, metric=182.4
    # mackerel post: name=custom.batch_nvcswch_per_sec.target_script, time=1465484400, metric=30.4
    # mackerel post: name=custom.batch_stk_ref.target_script, time=1465484400, metric=25500
    # mackerel post: name=custom.batch_stk_size.target_script, time=1465484400, metric=128000
    # mackerel post: name=custom.batch_cswch_per_sec.target_script, time=1465484400, metric=19.9
    # mackerel post: name=custom.batch_memory_rss.target_script, time=1465484400, metric=10900000000
    # mackerel post: name=custom.batch_memory_percent.target_script, time=1465484400, metric=34.6
    # mackerel post: name=custom.batch_disk_write_per_sec.target_script, time=1465484400, metric=0
    # mackerel post: name=custom.batch_disk_read_per_sec.target_script, time=1465484400, metric=0
    # mackerel post: name=custom.batch_cpu.target_script, time=1465484400, metric=21.2
    # Looks like you failed 2 tests of 2.

#   Failed test 'output to a file and mackerel'
#   at t/02_basic.t line 198.
# Looks like you failed 2 tests of 7.
t/02_basic.t ............. 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/7 subtests 
... etc, more similar failures following
@eserte
Copy link
Author

eserte commented Feb 18, 2022

It could be that the problem is caused by newer Math::BigFloat versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant