From patchwork Wed Mar 15 00:52:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 13175161 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1CEBAC6FD1D for ; Wed, 15 Mar 2023 00:53:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229796AbjCOAxT (ORCPT ); Tue, 14 Mar 2023 20:53:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229988AbjCOAxS (ORCPT ); Tue, 14 Mar 2023 20:53:18 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46F7A59430; Tue, 14 Mar 2023 17:53:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DF05CB81C3A; Wed, 15 Mar 2023 00:53:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7919CC433EF; Wed, 15 Mar 2023 00:52:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678841579; bh=W2HFy7gevwuyCLmk5A6qMgfDk4GwnyEbZWcPH1HRhGk=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=clmVZzlRXM8a/Nv4c85SmS+QilPu155kgL5jaCwx0x4JvPal27kIpCjwUeVbTmvaT TsOB2/wcvup4Omw3px3cGX3H0u6Pxwq+MTANK1ZFziD3CRIw1eAV4bKJuOVIdIaM3V Hy4OfQ6IaaZGbA7EEXAbtABIFRjDOch2bFSXlhuHMlnSBSNT8oZ2A9x79RpDUCho1S JT58HOkFUKauV/44Ko5AIXZbaQWgCswmxSh+vr7zGsuATTMW2Q43ZGtmYts1Mlrfar wv4bKTy/HBWHydQ98rrDnm4WOu3xkdBDD1JvOIFcWMB4cQ/vlRrYuP2q8BnHd07Dkf NF0eppsdE9GQw== Subject: [PATCH 05/15] report: record fstests start and report generation timestamps From: "Darrick J. Wong" To: zlang@redhat.com, djwong@kernel.org Cc: linux-xfs@vger.kernel.org, fstests@vger.kernel.org, guan@eryu.me, leah.rumancik@gmail.com, quwenruo.btrfs@gmx.com, tytso@mit.edu Date: Tue, 14 Mar 2023 17:52:59 -0700 Message-ID: <167884157904.2482843.3935162326036259013.stgit@magnolia> In-Reply-To: <167884155064.2482843.4310780034948240980.stgit@magnolia> References: <167884155064.2482843.4310780034948240980.stgit@magnolia> User-Agent: StGit/0.19 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org From: Darrick J. Wong Report two new timestamps in the xml report: the time that ./check was started, and the time that the report was generated. We introduce new timestamps to minimize breakage with parsing scripts. Signed-off-by: Darrick J. Wong --- check | 1 + common/report | 4 +++- doc/xunit.xsd | 10 ++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/check b/check index f2be3d7d7d..1a58a2b269 100755 --- a/check +++ b/check @@ -668,6 +668,7 @@ _run_seq() { _detect_kmemleak _prepare_test_list +fstests_start_time="$(date +"%F %T")" if $OPTIONS_HAVE_SECTIONS; then trap "_summary; exit \$status" 0 1 2 3 15 diff --git a/common/report b/common/report index 8e19e9f557..be991b55f5 100644 --- a/common/report +++ b/common/report @@ -62,7 +62,9 @@ _xunit_make_section_report() name="xfstests" failures="$bad_count" skipped="$notrun_count" tests="$tests_count" time="$sect_time" hostname="$HOST" - timestamp="$timestamp" + start_timestamp="$(date -Iseconds --date="$fstests_start_time")" + timestamp="$timestamp" + report_timestamp="$(date -Iseconds)" > ENDL diff --git a/doc/xunit.xsd b/doc/xunit.xsd index 653f486871..3ed72f2f86 100644 --- a/doc/xunit.xsd +++ b/doc/xunit.xsd @@ -187,6 +187,16 @@ Time that the last testcase was started. If no tests are started, this is the time the report was generated. Timezone must be specified as an offset from UTC. + + + Time that the report was generated. + + + + + Time that fstests was started. + + Host on which the tests were executed. 'localhost' should be used if the hostname cannot be determined.