All of lore.kernel.org
 help / color / mirror / Atom feed
From: <Tim.Bird@sony.com>
To: daniel.sangorrin@toshiba.co.jp, fuego@lists.linuxfoundation.org
Subject: Re: [Fuego] [PATCH 02/11] testsuite version: record the testsuite	version
Date: Thu, 27 Sep 2018 19:55:07 +0000	[thread overview]
Message-ID: <ECADFF3FD767C149AD96A924E7EA6EAF80513F15@USCULXMSG01.am.sony.com> (raw)
In-Reply-To: <1537858732-32952-3-git-send-email-daniel.sangorrin@toshiba.co.jp>


Looks good. applied.
 -- Tim

> -----Original Message-----
> From: fuego-bounces@lists.linuxfoundation.org [mailto:fuego-
> bounces@lists.linuxfoundation.org] On Behalf Of Daniel Sangorrin
> Sent: Monday, September 24, 2018 11:59 PM
> To: fuego@lists.linuxfoundation.org
> Subject: [Fuego] [PATCH 02/11] testsuite version: record the testsuite
> version
> 
> For tarballs we use an md5sum hash value, and for git
> we use the current commit ID.
> 
> Signed-off-by: Daniel Sangorrin <daniel.sangorrin@toshiba.co.jp>
> ---
>  engine/scripts/functions.sh     | 11 ++++++++++-
>  engine/scripts/parser/common.py |  4 ++--
>  2 files changed, 12 insertions(+), 3 deletions(-)
> 
> diff --git a/engine/scripts/functions.sh b/engine/scripts/functions.sh
> index 05bdbc1..21a4b00 100755
> --- a/engine/scripts/functions.sh
> +++ b/engine/scripts/functions.sh
> @@ -379,6 +379,15 @@ function pre_build {
>      else
>          abort_job "Rebuild flag $Rebuild is not recognized."
>      fi
> +
> +    # Record the version of the test source
> +    if [ -e fuego_tarball_src_md5sum ]; then
> +        TESTSUITE_VERSION=$(cat fuego_tarball_src_md5sum | awk '{ print $1
> }')
> +    elif [ -d ".git" ]; then
> +        TESTSUITE_VERSION=$(git log -1 --format="%H")
> +    fi
> +    export TESTSUITE_VERSION
> +    echo "Testsuite version: $TESTSUITE_VERSION"
>  }
> 
>  function build {
> @@ -710,7 +719,7 @@ function make_pre_run_file {
>          "test_plan": "$TESTPLAN",
>          "test_spec": "$TESTSPEC",
>          "timestamp": "$BUILD_TIMESTAMP",
> -	"testsuite_version": "unknown",
> +        "testsuite_version": "$TESTSUITE_VERSION",
>  	"toolchain:": "$TOOLCHAIN",
>          "workspace": "$WORKSPACE"
>      },
> diff --git a/engine/scripts/parser/common.py
> b/engine/scripts/parser/common.py
> index c218190..b93a874 100644
> --- a/engine/scripts/parser/common.py
> +++ b/engine/scripts/parser/common.py
> @@ -59,7 +59,7 @@ env_list = ['FUEGO_RW', 'FUEGO_RO', 'FUEGO_CORE',
> 'NODE_NAME', 'TESTDIR',
>          'TESTSPEC', 'BUILD_NUMBER', 'BUILD_ID', 'BUILD_TIMESTAMP',
>          'TOOLCHAIN', 'FWVER', 'LOGDIR', 'FUEGO_START_TIME', 'Reboot',
>          'Rebuild', 'Target_PreCleanup', 'WORKSPACE', 'JOB_NAME',
> -        'FUEGO_VERSION', 'FUEGO_CORE_VERSION'
> +        'FUEGO_VERSION', 'FUEGO_CORE_VERSION', 'TESTSUITE_VERSION'
>          ]
> 
>  # add certain environment variables to this module
> @@ -456,7 +456,7 @@ def prepare_run_data(results, criteria_data):
>          "metadata":{
>              "fuego_version":FUEGO_VERSION,
>              "fuego_core_version":FUEGO_CORE_VERSION,
> -            "testsuite_version":"v1.1-805adb0", #FIXTHIS
> +            "testsuite_version":TESTSUITE_VERSION,
>              "host_name":FUEGO_HOST,
>              "board":NODE_NAME,
>              "compiled_on":"docker", #FIXTHIS
> --
> 2.7.4
> 
> _______________________________________________
> Fuego mailing list
> Fuego@lists.linuxfoundation.org
> https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__lists.linuxfoundation.org_mailman_listinfo_fuego&d=DwICAg&c=fP4tf-
> -1dS0biCFlB0saz0I0kjO5v7-
> GLPtvShAo4cc&r=jjTc71ylyJg68rRxrFQuDFMMybIqPCnrHF85A-
> GzCRg&m=xORNxB2czj6nk50V4iI20FjcfmxKIxk-rxhU5Zk288g&s=v-
> 3LXQeIQyxl2CZBZblqEGHFRRPsDTlKKL6sJhEQMFw&e=

  reply	other threads:[~2018-09-27 19:55 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-25  6:58 [Fuego] resending rebuild and kernel_build patches Daniel Sangorrin
2018-09-25  6:58 ` [Fuego] [PATCH 01/11] rebuild: add if_source_changed flag Daniel Sangorrin
2018-09-26  2:35   ` Daniel Sangorrin
2018-09-27 19:54   ` Tim.Bird
2018-09-28  1:43     ` Daniel Sangorrin
2018-09-28  6:36       ` Tim.Bird
2018-09-28  7:29         ` Daniel Sangorrin
     [not found]         ` <000101d4595f$c0b32c80$42198580$@toshiba.co.jp>
2018-10-06  1:20           ` Tim.Bird
2018-10-09  3:57             ` Daniel Sangorrin
2018-09-25  6:58 ` [Fuego] [PATCH 02/11] testsuite version: record the testsuite version Daniel Sangorrin
2018-09-27 19:55   ` Tim.Bird [this message]
     [not found]     ` <000001d4595d$92bc94d0$b835be70$@toshiba.co.jp>
2018-10-02 23:48       ` Tim.Bird
2018-09-25  6:58 ` [Fuego] [PATCH 03/11] kernel_build: check build target in pre_check Daniel Sangorrin
2018-09-27 19:56   ` Tim.Bird
2018-09-25  6:58 ` [Fuego] [PATCH 04/11] kernel_build: use tftpboot by default Daniel Sangorrin
2018-09-25  6:58 ` [Fuego] [PATCH 05/11] kernel_build: mkdir deploy path if non existent Daniel Sangorrin
2018-09-25  6:58 ` [Fuego] [PATCH 06/11] kernel_build: set local_dir and default path Daniel Sangorrin
2018-09-27 19:58   ` Tim.Bird
2018-09-25  6:58 ` [Fuego] [PATCH 07/11] make_pre_run_file: use spaces Daniel Sangorrin
2018-09-27 19:59   ` Tim.Bird
2018-09-25  6:58 ` [Fuego] [PATCH 08/11] Target_PostCleanup: output into run json Daniel Sangorrin
2018-09-25  6:58 ` [Fuego] [PATCH 09/11] ltp_process: add support for SIGNALED Daniel Sangorrin
2018-09-25  6:58 ` [Fuego] [PATCH 10/11] LTP: add small remark on how the rt list was obtained Daniel Sangorrin
2018-09-25  6:58 ` [Fuego] [PATCH 11/11] LTP: use git instead of tarball by default Daniel Sangorrin
2018-09-27 20:16   ` Tim.Bird
2018-09-28  1:52     ` Daniel Sangorrin

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=ECADFF3FD767C149AD96A924E7EA6EAF80513F15@USCULXMSG01.am.sony.com \
    --to=tim.bird@sony.com \
    --cc=daniel.sangorrin@toshiba.co.jp \
    --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.