Merge ~morphis/snappy-hwe-snaps/+git/build-scripts:f/disable-debug-option into ~snappy-hwe-team/snappy-hwe-snaps/+git/build-scripts:master

Proposed by Simon Fels
Status: Merged
Approved by: Jim Hodapp
Approved revision: ea4072b22c53104fe63236d2e725179e3277f30b
Merged at revision: 67d38fb0b29f068fc3a23b90b0bb6f2f6837eea6
Proposed branch: ~morphis/snappy-hwe-snaps/+git/build-scripts:f/disable-debug-option
Merge into: ~snappy-hwe-team/snappy-hwe-snaps/+git/build-scripts:master
Diff against target: 20 lines (+3/-3)
1 file modified
scripts/test-snap.sh (+3/-3)
Reviewer Review Type Date Requested Status
Jim Hodapp (community) Approve
Alfonso Sanchez-Beato Approve
System Enablement Bot continuous-integration Approve
Konrad Zapałowicz (community) code Approve
Review via email: mp+323977@code.launchpad.net

Description of the change

scripts: don't use -debug option for spread to keep output less verbose

We don't need the -debug option for spread as when a test fails
enough information should be printed automatically.

To post a comment you must log in.
Revision history for this message
Konrad Zapałowicz (kzapalowicz) wrote :

ack

review: Approve (code)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

Are we sure we should do this? The long traces are really annoying, I agree and hate that, but it would be an issue if there is a failing test in CI. We would want more traces, and the only way wold be to modify this script in a different repo.

Maybe this could be an option that can be set from the caller to run-tests.sh?

review: Needs Information
Revision history for this message
Simon Fels (morphis) wrote :

Actually we should get everything we need with just -v. In addition we started to ship debug-each: statements in every spread.yaml which prints out necessary debug information like from journalctl etc which should be enough to debug a failing test case. See https://s3.amazonaws.com/archive.travis-ci.org/jobs/231532079/log.txt?X-Amz-Expires=30&X-Amz-Date=20170512T125342Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJRYRXRSVGNKPKO5A/20170512/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=629bd50f0823db65797efeb3fd1afc149f3caf936b8a6f7fe2d347bf61460c2c for en example failing test run

Revision history for this message
Jim Hodapp (jhodapp) wrote :

What we lack though is a way to drop into a debug shell when a test fails. I was just using this yesterday to debug the failing alsa-utils tests. We need an option to allow doing this on demand from our run-tests.sh script. If we have that, then I'm a +1.

review: Needs Information
Revision history for this message
Simon Fels (morphis) wrote :

Please note that this only changes the jenkins build where you can't get a debug shell anyway. You can always still use ./run-tests --debug on your host to get a debug shell when needed.

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

LGTM

review: Approve
Revision history for this message
Jim Hodapp (jhodapp) wrote :

Good to know Simon, then I'll approve this, thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/scripts/test-snap.sh b/scripts/test-snap.sh
2index 6c0f04f..4851645 100755
3--- a/scripts/test-snap.sh
4+++ b/scripts/test-snap.sh
5@@ -65,12 +65,12 @@ if [ -e "run-tests.sh" ] ; then
6 EXTRA_ARGS="--channel=$CORE_CHANNEL"
7 fi
8
9- ./run-tests.sh --debug --force-new-image \$EXTRA_ARGS
10+ ./run-tests.sh --force-new-image \$EXTRA_ARGS
11 else
12 if [ ! -z "$CHANNEL" ] ; then
13- SNAP_CHANNEL=$CHANNEL spread -debug
14+ SNAP_CHANNEL=$CHANNEL spread -v
15 else
16- spread -debug
17+ spread -v
18 fi
19 fi
20 EOF

Subscribers

People subscribed via source and target branches

to all changes: