Date: Tue, 12 May 2015 01:31:53 -0700 From: Garrett Cooper <yanegomi@gmail.com> To: "freebsd-testing@freebsd.org" <freebsd-testing@freebsd.org> Subject: Getting timestamp data with kyua report, etc (ticket/stopgap solution) Message-ID: <CAGH67wTR9JC%2BgGj0vBED=yHUVt0d-TCvz4f4mXe8XZLaf-5z-w@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi all, With the increased adoption of kyua at $work as more and more subsystems and external components have been thrown into mix, one of the pain points (for us) has been correlating data retrieved by syslogd with testcase results. I filed an kyua ticket for this issue ( https://github.com/jmmv/kyua/issues/139 ), but in the interim have also thrown together a python script for this issue : https://github.com/yaneurabeya/scratch/blob/master/bayonetta/scratch/scripts/freebsd/annotate_kyua_runs_with_date.py . It's not useful with parallel execution, but it works for serial execution quite nicely -- all you need is the starting date. I've included some sample output below. Any and all feedback would be appreciated. Thanks, -NGie $ curl -s XXXX | ./annotate_kyua_runs_with_date.py --start-time-format '%a %b %d %H:%M:%S %Y' --start-time 'Wed Apr 22 01:44:51 2015' 2015-04-22 01:44:51: bin/sh/legacy_test:main -> passed [12.28] 2015-04-22 01:45:03: bin/mv/legacy_test:main -> passed [3.43] 2015-04-22 01:45:06: bin/ls/t_ls:ls_without_option -> passed [0.113] 2015-04-22 01:45:06: bin/ls/t_ls:ls_inode_hexadecimal -> passed [0.085] 2015-04-22 01:45:06: bin/ls/t_ls:ls_inode_validate -> passed [0.051] 2015-04-22 01:45:06: bin/ls/t_ls:ls_with_option_J -> passed [0.071] 2015-04-22 01:45:07: bin/ls/t_ls:ls_without_option_J -> passed [0.085] 2015-04-22 01:45:07: bin/ls/t_ls:ls_acl -> passed [0.228] 2015-04-22 01:45:07: bin/chmod/t_chmod:chmod_nonexistent_file -> passed [0.054] 2015-04-22 01:45:07: bin/chmod/t_chmod:chmod_file -> passed [0.1] 2015-04-22 01:45:07: bin/chmod/t_chmod:chmod_symlink -> passed [0.151] 2015-04-22 01:45:07: bin/chmod/t_chmod:chmod_follow_symlink -> passed [0.127] 2015-04-22 01:45:07: bin/chmod/t_chmod:chmod_directory -> passed [0.096] 2015-04-22 01:45:07: bin/chmod/t_chmod:chmod_directory_recursive -> passed [0.235] 2015-04-22 01:45:08: bin/chmod/t_chmod:chmod_file_op_symbols -> passed [0.118] 2015-04-22 01:45:08: bin/dd/t_dd:io -> passed [0.136] 2015-04-22 01:45:08: bin/dd/t_dd:seek -> passed [0.175] 2015-04-22 01:45:08: bin/dd/t_dd:irseek -> passed [0.121] 2015-04-22 01:45:08: bin/dd/t_dd:orseek -> passed [0.129] 2015-04-22 01:45:08: bin/pax/legacy_test:main -> passed [0.34] 2015-04-22 01:45:09: bin/date/legacy_test:main -> passed [0.21] 2015-04-22 01:45:09: bin/pkill/pgrep-F_test:main -> passed [0.354] 2015-04-22 01:45:09: bin/pkill/pgrep-LF_test:main -> passed [0.659] 2015-04-22 01:45:10: bin/pkill/pgrep-P_test:main -> passed [0.36] 2015-04-22 01:45:10: bin/pkill/pgrep-U_test:main -> passed [0.717] 2015-04-22 01:45:11: bin/pkill/pgrep-_g_test:main -> passed [0.705] 2015-04-22 01:45:12: bin/pkill/pgrep-_s_test:main -> passed [0.055] 2015-04-22 01:45:12: bin/pkill/pgrep-g_test:main -> passed [0.667] 2015-04-22 01:45:12: bin/pkill/pgrep-i_test:main -> passed [0.368] 2015-04-22 01:45:13: bin/pkill/pgrep-l_test:main -> passed [0.369] 2015-04-22 01:45:13: bin/pkill/pgrep-n_test:main -> passed [0.35] 2015-04-22 01:45:13: bin/pkill/pgrep-o_test:main -> passed [0.364] 2015-04-22 01:45:14: bin/pkill/pgrep-q_test:main -> passed [0.361] 2015-04-22 01:45:14: bin/pkill/pgrep-s_test:main -> passed [0.674] 2015-04-22 01:45:15: bin/pkill/pgrep-t_test:main -> passed [0.36] 2015-04-22 01:45:15: bin/pkill/pgrep-v_test:main -> passed [0.368] 2015-04-22 01:45:16: bin/pkill/pgrep-x_test:main -> passed [0.384] 2015-04-22 01:45:16: bin/pkill/pkill-F_test:main -> passed [0.368] 2015-04-22 01:45:16: bin/pkill/pkill-LF_test:main -> passed [0.702] 2015-04-22 01:45:17: bin/pkill/pkill-P_test:main -> passed [0.363] 2015-04-22 01:45:17: bin/pkill/pkill-U_test:main -> passed [0.721] 2015-04-22 01:45:18: bin/pkill/pkill-_g_test:main -> passed [0.688] 2015-04-22 01:45:19: bin/pkill/pkill-g_test:main -> passed [0.671] 2015-04-22 01:45:19: bin/pkill/pkill-i_test:main -> passed [0.361] 2015-04-22 01:45:20: bin/pkill/pkill-s_test:main -> passed [0.678] 2015-04-22 01:45:21: bin/pkill/pkill-t_test:main -> passed [0.669] 2015-04-22 01:45:21: bin/pkill/pkill-x_test:main -> passed [0.704] ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGH67wTR9JC%2BgGj0vBED=yHUVt0d-TCvz4f4mXe8XZLaf-5z-w>