Request to collect/attach more logs for stress tests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Provider - Base |
Fix Released
|
Wishlist
|
Pierre Equoy |
Bug Description
Currently, after running the following stress tests:
* reboot, poweroff with pm_test
* s3, s4 with fwts
the output logs "pm_test.
- actions performed by pm_test or fwts
- fwts checks
However, these info are not enough for debugging when a pm_test cycle fails.
(e.g. for pm_tests. a failed test always ends with logs like "Failed to resume within [timeframe]", which is not very useful information.
We don't know whether the failure occurred during boot up or shutdown, what process was causing the failure, at which cycle did the test fail...etc.)
We still have to manually go through system logs and compare them with plainbox logs to figure out at what stage and for what reason the failure occurred.
-------
Therefore we would like the propose the following request:
1. Insert the output of "journalctl -x" that occurred during the test to the log, hopefully alongside the current existing pm_test/fwts logs in chronological order.
2. If the above method will result in a log file that is too large in size, create a separate file/tarball that contains the only the logs of the last cycle.
e.g. If a total of 3 cycles are run with command "pm_test reboot -r 3, then in the end this file/tarball should only contain the log for the 3rd cycle of test (with info also indicating that this is the 3rd cycle , this part would be bug #1576570).
This way we will always have a way to quickly check the logs of the last round, thus having a way to quickly check the logs of a failed cycle.
Related branches
- Sylvain Pineau: Approve
-
Diff: 232 lines (+48/-19)8 files modifiedproviders/plainbox-provider-checkbox/bin/fwts_test (+12/-1)
providers/plainbox-provider-checkbox/bin/pm_test (+22/-4)
providers/plainbox-provider-checkbox/jobs/cpu.txt.in (+3/-3)
providers/plainbox-provider-checkbox/jobs/firmware.txt.in (+1/-1)
providers/plainbox-provider-checkbox/jobs/miscellanea.txt.in (+2/-2)
providers/plainbox-provider-checkbox/jobs/power-management.txt.in (+1/-1)
providers/plainbox-provider-checkbox/jobs/stress.txt.in (+2/-2)
providers/plainbox-provider-checkbox/jobs/suspend.txt.in (+5/-5)
- Sylvain Pineau: Approve
-
Diff: 16 lines (+2/-2)1 file modifiedproviders/plainbox-provider-checkbox/bin/fwts_test (+2/-2)
description: | updated |
description: | updated |
description: | updated |
Changed in plainbox-provider-checkbox: | |
importance: | Undecided → Wishlist |
Changed in plainbox-provider-checkbox: | |
status: | New → In Progress |
assignee: | nobody → Pierre Equoy (pierre-equoy) |
Changed in plainbox-provider-checkbox: | |
status: | In Progress → Fix Committed |
Changed in plainbox-provider-checkbox: | |
milestone: | none → 0.29 |
Changed in plainbox-provider-checkbox: | |
status: | Fix Committed → Fix Released |
journactl is shipped with systemd, which is available only starting with Ubuntu 15.04.
Kristin suggested to use dmesg and syslog instead, which are available on both Trusty and Xenial.