<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:00:32 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-13352] Test duration not reset when using ONLY_REPEAT test parameter</title>
                <link>https://jira.whamcloud.com/browse/LU-13352</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Since the patch that added the ability to repeat tests landed, &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13169&quot; title=&quot;Allow test-framework to repeat subtests&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13169&quot;&gt;&lt;del&gt;LU-13169&lt;/del&gt;&lt;/a&gt; patch &lt;a href=&quot;https://review.whamcloud.com/37321/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/37321/&lt;/a&gt;, the individual test timer does not reset. We only see this when using the ONLY_REPEAT test parameter.&lt;/p&gt;

&lt;p&gt;Patch &lt;a href=&quot;https://review.whamcloud.com/37827/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/37827/&lt;/a&gt; uses the test parameters:&lt;br/&gt;
Test-Parameters: trivial testlist=sanity env=ONLY=76,ONLY_REPEAT=100&lt;/p&gt;

&lt;p&gt;Looking at the suite_log for &lt;a href=&quot;https://testing.whamcloud.com/test_sessions/50e48384-6222-4d06-ace3-35582f9710a2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sessions/50e48384-6222-4d06-ace3-35582f9710a2&lt;/a&gt;, we see&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;&#8230;
CMD: trevis-67vm1.trevis.whamcloud.com,trevis-67vm2,trevis-67vm3,trevis-67vm4 dmesg
PASS 76 (36s)
== sanity test 76: confirm clients recycle inodes properly =========================================== 01:01:29 (1583542889)
before inodes: 24
after inodes: 24
&#8230;
CMD: trevis-67vm1.trevis.whamcloud.com,trevis-67vm2,trevis-67vm3,trevis-67vm4 dmesg
PASS 76 (359s)
== sanity test 76: confirm clients recycle inodes properly =========================================== 01:06:52 (1583543212)
&#8230;
CMD: trevis-67vm1.trevis.whamcloud.com,trevis-67vm2,trevis-67vm3,trevis-67vm4 dmesg
PASS 76 (363s)
== sanity test 76: confirm clients recycle inodes properly =========================================== 01:06:56 (1583543216)
before inodes: 24
after inodes: 24
&#8230;
PASS 76 (367s)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Maloo prints the Duration for each test correctly. The problem is in the suite log.&lt;/p&gt;

&lt;p&gt;I think that we should be sending pass() duration_sub or use before_sub instead of before when calling pass()&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
6486         &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; testiter in $(seq ${repeat:-1}); &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt;
6487                 local before_sub=$SECONDS
6488                 log_sub_test_begin $TESTNAME
6489 
6490                 # remove temp files between repetitions to avoid test failures
6491                 [ -n &lt;span class=&quot;code-quote&quot;&gt;&quot;$append&quot;&lt;/span&gt; -a -n &lt;span class=&quot;code-quote&quot;&gt;&quot;$DIR&quot;&lt;/span&gt; -a -n &lt;span class=&quot;code-quote&quot;&gt;&quot;$tdir&quot;&lt;/span&gt; -a -n &lt;span class=&quot;code-quote&quot;&gt;&quot;$tfile&quot;&lt;/span&gt; ] &amp;amp;&amp;amp;
6492                         rm -rf $DIR/$tdir* $DIR/$tfile*
6493                 # loop around subshell so stack_trap EXIT triggers each time
6494                 (run_one $testnum &lt;span class=&quot;code-quote&quot;&gt;&quot;$testmsg&quot;&lt;/span&gt;) 2&amp;gt;&amp;amp;1 | tee -i $append $test_log
6495                 rc=${PIPESTATUS[0]}
6496                 local append=-a
6497                 local duration_sub=$((SECONDS - before_sub))
6498                 local test_error
6499 
&#8230;
6514 
6515                 pass &lt;span class=&quot;code-quote&quot;&gt;&quot;$testnum&quot;&lt;/span&gt; &lt;span class=&quot;code-quote&quot;&gt;&quot;($((SECONDS - before))s)&quot;&lt;/span&gt;
6516                 log_sub_test_end $TEST_STATUS $duration_sub &lt;span class=&quot;code-quote&quot;&gt;&quot;$rc&quot;&lt;/span&gt; &lt;span class=&quot;code-quote&quot;&gt;&quot;$test_error&quot;&lt;/span&gt;
6517                 [[ $rc != 0 ]] &amp;amp;&amp;amp; &lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt;
6518         done

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="58337">LU-13352</key>
            <summary>Test duration not reset when using ONLY_REPEAT test parameter</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="adilger">Andreas Dilger</assignee>
                                    <reporter username="jamesanunez">James Nunez</reporter>
                        <labels>
                            <label>test_script_improvements</label>
                    </labels>
                <created>Tue, 10 Mar 2020 21:18:49 +0000</created>
                <updated>Fri, 1 May 2020 05:01:39 +0000</updated>
                            <resolved>Fri, 1 May 2020 05:01:39 +0000</resolved>
                                    <version>Lustre 2.14.0</version>
                                    <fixVersion>Lustre 2.14.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="265044" author="gerrit" created="Tue, 10 Mar 2020 23:41:03 +0000"  >&lt;p&gt;Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/37872&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/37872&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13352&quot; title=&quot;Test duration not reset when using ONLY_REPEAT test parameter&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13352&quot;&gt;&lt;del&gt;LU-13352&lt;/del&gt;&lt;/a&gt; tests: fix subtest duration for ONLY_REPEAT&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 71fdc54cfdbcf5af8f27f639dc2025052b71ca81&lt;/p&gt;</comment>
                            <comment id="269065" author="gerrit" created="Fri, 1 May 2020 04:27:13 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/37872/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/37872/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13352&quot; title=&quot;Test duration not reset when using ONLY_REPEAT test parameter&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13352&quot;&gt;&lt;del&gt;LU-13352&lt;/del&gt;&lt;/a&gt; tests: fix subtest duration for ONLY_REPEAT&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: d76093613f063e58ec440145338dbea9d18a2a25&lt;/p&gt;</comment>
                            <comment id="269084" author="pjones" created="Fri, 1 May 2020 05:01:39 +0000"  >&lt;p&gt;Landed for 2.14&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="57885">LU-13169</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i00v9z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>