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

Need timestamp data with Kyua runs to correlate failures which occur at the test system level #139

Closed
ngie-eign opened this issue May 12, 2015 · 3 comments

Comments

@ngie-eign
Copy link
Contributor

Version: 0.8/0.11

In the event a testcase fails to execute cleanly or something else occurred on the system which affected a kyua testcase, it's very hard to diagnose what caused the failure.

The start time (GMT) should be captured. With the start time one could determine when the testcase started, how long the testcase ran, and then correlate what the exact failure was for a given issue with the system, or whether or not a testcase caused a failure on the system.

ngie-eign pushed a commit to ngie-eign/scratch that referenced this issue May 12, 2015
This script is extremely helpful when trying to correlate results
with syslog data

Stopgap solution until freebsd/kyua#139 has
been fixed

Sponsored by: EMC / Isilon Storage Division
@ngie-eign
Copy link
Contributor Author

I wrote up a python script to get what I want:
https://github.com/yaneurabeya/scratch/blob/master/bayonetta/scratch/scripts/freebsd/annotate_kyua_runs_with_date.py . Will post it to freebsd-testing as well as I'm sure others have hit this caveat...

It won't work with parallel execution... but it works for serial execution quite nicely.

@jmmv
Copy link
Member

jmmv commented May 19, 2015

The start and end times of each test case are already recorded in the database; see the test_results table in store/schema_v3.sql. Mind you, this is how the run time of each test and the whole test suite is computed. We "just" need to extend the various report commands to do something with this information.

E.g. it'd be trivial to get kyua report --verbose to output these details for each test, if you are interested in giving this a go :-P

@ngie-eign
Copy link
Contributor Author

Please -- that would be fabulous!

@jmmv jmmv closed this as completed in 5c4cfe7 Jul 14, 2016
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

2 participants