<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:16:58 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-1476] configure not enforcing tag == version</title>
                <link>https://jira.whamcloud.com/browse/LU-1476</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;During the RC build for 2.1.2 the lustre version update was forgotten.  There used to be code in configure which detected exactly such a mistake and broke the build because of it.  It was put there for exactly this situation.  c487014a39a6e37dc22a957aad9ad9b739e3c8cf was landed for &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-278&quot; title=&quot;Tag check is broken in configure script&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-278&quot;&gt;&lt;del&gt;LU-278&lt;/del&gt;&lt;/a&gt; which changed this error into a warning, of course, hiding the breakage.&lt;/p&gt;

&lt;p&gt;Indeed, it is always nice when manual processes (such as incrementing the bits for a new release) go off without a hitch, but having checks to make sure we do them all is probably even better.&lt;/p&gt;

&lt;p&gt;I&apos;m still not convinced that the claims of the problems that were being made about that version/tag check in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-278&quot; title=&quot;Tag check is broken in configure script&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-278&quot;&gt;&lt;del&gt;LU-278&lt;/del&gt;&lt;/a&gt; were all true but it seems a patch was landed anyway.  That is, I&apos;m not convinced that any old tag on a branch would cause configure to error out as was being claimed since the format of tags being looked at is pretty strict.&lt;/p&gt;

&lt;p&gt;I propose that the claims in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-278&quot; title=&quot;Tag check is broken in configure script&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-278&quot;&gt;&lt;del&gt;LU-278&lt;/del&gt;&lt;/a&gt; be verified as either true or not and if found to be untrue, reverting c487014a39a6e37dc22a957aad9ad9b739e3c8cf so that we don&apos;t have this problem in the future.&lt;/p&gt;

&lt;p&gt;An alternative would be to add (yet) another switch to configure which toggles whether the checking code is to produce a warning or an error, defaulting to a warning.  We could then add that switch to our jenkins build steps so that a tag/version mismatch produce a configure error for our builds causing the build to fail.&lt;/p&gt;</description>
                <environment></environment>
        <key id="14731">LU-1476</key>
            <summary>configure not enforcing tag == version</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="10100">Low Priority</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="brian">Brian Murrell</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Jun 2012 07:23:42 +0000</created>
                <updated>Mon, 29 May 2017 03:59:06 +0000</updated>
                            <resolved>Mon, 29 May 2017 03:59:06 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="40021" author="adilger" created="Tue, 5 Jun 2012 11:22:22 +0000"  >&lt;p&gt;I hit the problem in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-278&quot; title=&quot;Tag check is broken in configure script&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-278&quot;&gt;&lt;del&gt;LU-278&lt;/del&gt;&lt;/a&gt; several times, as did LLNL.  The problem is when there is some other local tag that appears to be a valid tag, but doesn&apos;t exactly match the build version.  The LLNL tag that failed was &quot;2.0.59-1morrone&quot;, and the build version was 2.0.59:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;checking for buildid... configure: error: most recent tag found: 2.0.59-1morrone does not match current version 2.0.59&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Since we already have special build rules for release versions (removing the git hash from the version string), it makes sense to special-case the &quot;tag must match build version&quot; rule as well, so that normal users are not affected by it.&lt;/p&gt;</comment>
                            <comment id="40023" author="brian" created="Tue, 5 Jun 2012 11:57:43 +0000"  >&lt;p&gt;Looking at the source for that code the only tags that are considered for that check must match:&lt;/p&gt;

&lt;p&gt;ver=$(git describe --match v[&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9&amp;#93;&lt;/span&gt;]&lt;em&gt;&lt;b&gt;&lt;/em&gt;[&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9&amp;#93;&lt;/span&gt;]&lt;/b&gt; --tags)&lt;/p&gt;

&lt;p&gt;which is the m4 escaped regex &quot;v&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9&amp;#93;&lt;/span&gt;&lt;em&gt;*&lt;/em&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9&amp;#93;&lt;/span&gt;&quot;.  So a tag of &quot;2.0.59-1morrone&quot; would not match.  Neither would the &quot;very_fine_patch&quot; or &quot;10_things_I_hate_about_autoconf&quot; examples that were used in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-278&quot; title=&quot;Tag check is broken in configure script&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-278&quot;&gt;&lt;del&gt;LU-278&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The fix for that was landed in 3bf2ba3f3aa847e6d5ea9e0653e853aad0f4b95b specifically for &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-278&quot; title=&quot;Tag check is broken in configure script&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-278&quot;&gt;&lt;del&gt;LU-278&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;So as long as others didn&apos;t use that very specific tag format, they are safe.&lt;/p&gt;

&lt;p&gt;However, if we wanted to be even more flexible and allow the use that format with additional bits appended to it like the &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-278&quot; title=&quot;Tag check is broken in configure script&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-278&quot;&gt;&lt;del&gt;LU-278&lt;/del&gt;&lt;/a&gt; example: &quot;2.0.59-1morrone&quot; (which would not match any more so let&apos;s contort the example to something that would and call it &quot;v2_0_59-1morrone&quot;) a simple patch to the existing code could truncate anything after our standard versioning tag format.&lt;/p&gt;

&lt;p&gt;Ultimately, I think the specific tag format that we look for now is narrow enough (and could even allow for appendages per above) that it doesn&apos;t seem unreasonable to reserve that format for our own use.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Since we already have special build rules for release versions (removing the git hash from the version string), it makes sense to special-case the &quot;tag must match build version&quot; rule as well, so that normal users are not affected by it.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;That special &quot;release versions&quot; code to remove the git hash is in fact all part and parcel of this code that we are discussing so there is really no &quot;other&quot; code that this tag/version comparison feature can become part of.&lt;/p&gt;</comment>
                    </comments>
                    <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|hzw3x3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10729</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>