<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:27:47 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-9619] automatically add Test-Parameters: line for simple patches</title>
                <link>https://jira.whamcloud.com/browse/LU-9619</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;It would be possible to have the &lt;tt&gt;contrib/git-hooks/prepare-commit-message&lt;/tt&gt; script automatically add a &lt;tt&gt;Test-Parameters: trivial&lt;/tt&gt; tag (with an optional &lt;tt&gt;testlist=&amp;lt;test&amp;gt;&lt;/tt&gt; item) to patches that are only modifying test scripts.  As with the &lt;tt&gt;Signed-off-by:&lt;/tt&gt; line, this should be added in a commented-out form so that it is up to the developer to determine if this is appropriate, but having the line present would at least remind the user about this option to reduce testing time.&lt;/p&gt;</description>
                <environment></environment>
        <key id="46572">LU-9619</key>
            <summary>automatically add Test-Parameters: line for simple patches</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="timday">Tim Day</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                            <label>easy</label>
                            <label>tests</label>
                    </labels>
                <created>Thu, 8 Jun 2017 00:04:27 +0000</created>
                <updated>Wed, 20 Sep 2023 04:06:39 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="365942" author="gerrit" created="Tue, 14 Mar 2023 21:17:22 +0000"  >&lt;p&gt;&quot;Timothy Day &amp;lt;timday@amazon.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/50298&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/50298&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9619&quot; title=&quot;automatically add Test-Parameters: line for simple patches&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9619&quot;&gt;LU-9619&lt;/a&gt; misc: add Test-Parameters to git-hook&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: de150d9f0479eafdae5a2b0d28ca8297fd6afd4c&lt;/p&gt;</comment>
                            <comment id="366211" author="adilger" created="Fri, 17 Mar 2023 03:33:14 +0000"  >&lt;p&gt;Tim, as a follow-on to your above patch, it would be useful if &lt;tt&gt;prepare-commit-msg&lt;/tt&gt; could add a &quot;real&quot; Test-Parameters: lines (not just examples) based on the output of &quot;&lt;tt&gt;git diff $DIFFOPT --stat&lt;/tt&gt;&quot;. &lt;/p&gt;

&lt;p&gt;For example, if the patch is only modifying files like &quot;&lt;tt&gt;lustre/tests/conf-sanity.sh&lt;/tt&gt;&quot; then the commit message could add:&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;Test-Parameters: trivial testlist=conf-sanity
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Similarly, though a bit more complex, would be if patches add lines in test scripts with &lt;tt&gt;version_code&lt;/tt&gt; then it makes sense to automatically add lines that run interop testing:&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;Test-Parameters: testlist=&amp;lt;test_script&amp;gt; serverversion=&amp;lt;older_version&amp;gt;
Test-Parameters: testlist=&amp;lt;test_script&amp;gt; clientversion=&amp;lt;older_version&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;This is a bit tricky if it is kernel or distro versions being checked, but it couldn&apos;t hurt to highlight this at least (maybe also &lt;tt&gt;checkpatch.pl&lt;/tt&gt;, so that it is posted in Gerrit as a reminder for reviewers).&lt;/p&gt;

&lt;p&gt;Also, &lt;tt&gt;commit-msg&lt;/tt&gt; could potentially sanity-check any existing &lt;tt&gt;Test-Parameters:&lt;/tt&gt; lines to confirm that either no &lt;tt&gt;trivial&lt;/tt&gt; keyword is added, or that every test script in &lt;tt&gt;lustre/tests/&amp;#42;.sh&lt;/tt&gt; is explicitly listed with &lt;tt&gt;testlist=&lt;/tt&gt; (excluding &quot;&lt;tt&gt;sanity.sh&lt;/tt&gt; because that is &lt;b&gt;always&lt;/b&gt; run regardless of any &lt;tt&gt;Test-Parameters:&lt;/tt&gt; specified).  However, I&apos;d prefer the &quot;carrot&quot; approach that automatically adds the &lt;tt&gt;Test-Parameters:&lt;/tt&gt; lines rather than complaining afterward.&lt;/p&gt;</comment>
                            <comment id="369138" author="gerrit" created="Tue, 11 Apr 2023 20:10:32 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/50298/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/50298/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9619&quot; title=&quot;automatically add Test-Parameters: line for simple patches&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9619&quot;&gt;LU-9619&lt;/a&gt; misc: add Test-Parameters to git-hook&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: a7cd87862470899fe6ceb08b50267ea058221a13&lt;/p&gt;</comment>
                            <comment id="385334" author="adilger" created="Fri, 8 Sep 2023 20:12:39 +0000"  >&lt;p&gt;Oleg&apos;s code for determining tests to be run based on the patch content is in &lt;a href=&quot;https://github.com/verygreen/lustretester/blob/master/gerrit_build-and-test-new.py&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/verygreen/lustretester/blob/master/gerrit_build-and-test-new.py&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="385339" author="adilger" created="Fri, 8 Sep 2023 20:24:18 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=timday&quot; class=&quot;user-hover&quot; rel=&quot;timday&quot;&gt;timday&lt;/a&gt;, are you planning to work on this any further?  I think automating the generation of &lt;tt&gt;Test-Parameters:&lt;/tt&gt; lines in the &lt;tt&gt;prepare-commit-message&lt;/tt&gt; Git hook would optimize the use of testing resources, and simplify the submission of larger patch series (which in turn would make patch reviews easier to do).  I&apos;ve linked Oleg&apos;s script to do something similar for the Gerrit Janitor testing, but doing something similar for &lt;tt&gt;Test-Parameters:&lt;/tt&gt; would also help Autotest.&lt;/p&gt;</comment>
                            <comment id="386490" author="gerrit" created="Wed, 20 Sep 2023 04:06:39 +0000"  >&lt;p&gt;&quot;Timothy Day &amp;lt;timday@amazon.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/52420&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/52420&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9619&quot; title=&quot;automatically add Test-Parameters: line for simple patches&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9619&quot;&gt;LU-9619&lt;/a&gt; contrib: rewrite prepare-commit-msg in python&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 4fd637ebe2f6fed1ac3da8fc5ee044cd61f271ee&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </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|hzzejb:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>