All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rafael Gago Castano <RGC@hms.se>
To: "Bird, Timothy" <Tim.Bird@sony.com>
Cc: "fuego@lists.linuxfoundation.org" <fuego@lists.linuxfoundation.org>
Subject: Re: [Fuego] First steps with fuego
Date: Fri, 12 May 2017 14:33:42 +0000	[thread overview]
Message-ID: <HE1PR06MB30365DD87F5942695ED855B7C2E20@HE1PR06MB3036.eurprd06.prod.outlook.com> (raw)
In-Reply-To: <HE1PR06MB3036959D51FD5FBFC02208C8C2ED0@HE1PR06MB3036.eurprd06.prod.outlook.com>

As I have no infinite budget to investigate fuego, I decided to skip looking at that signal error on "ls" and to assume that we can do communication tests with fuego, it may need some refinements but there isn't any big barrier.  As a matter of fact for our use case it's simpler than by using LAVA multinode tests.

Then I started looking at the device "power off + power off + flashing + wait for boot" procedure. I tried to do it as a test but it had a problem, when the device is rebooting it hasn't connectivity, so it does fail:

SDKTARGETSYSROOT=/opt/slp/dingo-next/sdk/sysroots/cortexa9hf-neon-oe-linux-gnueabi
Target_PreCleanup=true
_=/usr/bin/env
ssh: connect to host 192.168.1.2 port 22: No route to host
ssh: connect to host 192.168.1.2 port 22: No route to host

*** ABORTED ***

Fuego error reason: Cannot connect to 192.168.1.2 via ssh

in signal_handler
##### doing fuego phase: post_test ########

I guess that to do "power off + power off + flashing + wait for boot" would require a different approach than writing a test.

At first I thought about having two new types of tests: setup and teardown, but these aren't conceptually tests. IMO these belong to the board, so just adding an optional "setup" and "teardown" functions to the board file could be a good starting point.

Then the problem would be to decide when to run them. Running them as a test (of a new type) makes very explicit to see and control when they run. Having them on the board file would need rules or maybe flags for "ftc", because the setup/teardown functions should definitely run as the first and last actions of a testplan/batch, but they would be detrimental when developing tests.

Then the third approach would be to leave the board setup and teardown to the Jenkins side and let the user handle the integration. This makes the user to have more scattered configuration (configure boards in two places) but keeps Fuego simpler. I'm not very fluent  with Jenkins hacking but it seems doable too.

Which approach seems the best?

  parent reply	other threads:[~2017-05-12 14:33 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-09  9:49 [Fuego] First steps with fuego Rafael Gago Castano
2017-05-09 19:04 ` Bird, Timothy
2017-05-10  6:32   ` Rafael Gago Castano
2017-05-10 13:12   ` Rafael Gago Castano
2017-05-10 19:30     ` Bird, Timothy
     [not found]       ` <HE1PR06MB3036959D51FD5FBFC02208C8C2ED0@HE1PR06MB3036.eurprd06.prod.outlook.com>
     [not found]         ` <ECADFF3FD767C149AD96A924E7EA6EAF1FA88A98@USCULXMSG01.am.sony.com>
2017-05-12  9:38           ` Rafael Gago Castano
2017-05-12 18:05             ` Bird, Timothy
2017-05-15  8:21               ` Rafael Gago Castano
2017-05-12 14:33         ` Rafael Gago Castano [this message]
2017-05-12 18:39           ` Bird, Timothy
2017-05-15 13:57             ` Rafael Gago Castano
2017-05-15 22:37               ` Bird, Timothy
2017-05-16 14:38                 ` Rafael Gago Castano
2017-05-17  5:06                   ` Bird, Timothy
2017-05-17  6:35                     ` Rafael Gago Castano
2017-05-17 15:33                       ` Bird, Timothy
2017-05-22  8:23                         ` Rafael Gago Castano
2017-05-22 20:51                           ` Bird, Timothy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=HE1PR06MB30365DD87F5942695ED855B7C2E20@HE1PR06MB3036.eurprd06.prod.outlook.com \
    --to=rgc@hms.se \
    --cc=Tim.Bird@sony.com \
    --cc=fuego@lists.linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.