<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:37:28 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>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[RELENG-89] Dependencies script should detect profiles and commented out code</title>
                <link>https://jira.opendaylight.org/browse/RELENG-89</link>
                <project id="10164" key="RELENG">releng</project>
                    <description>&lt;p&gt;The code that generates the dependencies.log needs to be able to handle profiles and commented out code.&lt;/p&gt;

&lt;p&gt;A first step should be the comments as its easier.&lt;/p&gt;

&lt;p&gt;Profiles will be more difficult as we can&apos;t be sure if it&apos;s activated or not but maybe assume it&apos;s activated and then if &amp;lt;activeByDefault&amp;gt;false&amp;lt;/activeByDefault&amp;gt; then ignore (Although there&apos;s other cases where it needs to ignore too).&lt;/p&gt;</description>
                <environment></environment>
        <key id="29714">RELENG-89</key>
            <summary>Dependencies script should detect profiles and commented out code</summary>
                <type id="10001" iconUrl="https://jira.opendaylight.org/images/icons/issuetypes/story.svg">Story</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <status id="3" iconUrl="https://jira.opendaylight.org/images/icons/statuses/inprogress.png" description="This issue is being actively worked on at the moment by the assignee.">In Progress</status>
                    <statusCategory id="4" key="indeterminate" colorName="yellow"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="abelur">Anil Belur</assignee>
                                    <reporter username="zxiiro">Thanh Ha (zxiiro)</reporter>
                        <labels>
                    </labels>
                <created>Mon, 9 Apr 2018 22:54:05 +0000</created>
                <updated>Mon, 17 Aug 2020 20:11:29 +0000</updated>
                                                                            <component>Autorelease</component>
                    <component>Jenkins Job Builder</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="62356" author="askb" created="Wed, 11 Apr 2018 02:31:44 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=zxiiro&quot; class=&quot;user-hover&quot; rel=&quot;zxiiro&quot;&gt;zxiiro&lt;/a&gt; Please share some github links on existing commented lines in the projects, unable to find them?  &lt;/p&gt;

&lt;p&gt;&amp;gt; Profiles will be more difficult as we can&apos;t be sure if it&apos;s activated or not but maybe assume it&apos;s activated and then if &amp;lt;activeByDefault&amp;gt;false&amp;lt;/activeByDefault&amp;gt; then ignore (Although there&apos;s other cases where it needs to ignore too).&lt;/p&gt;

&lt;p&gt;Assuming its active, assumes that the project is included in the list and exclude them if its set to `false`,  but need to understand why we can&apos;t check simply check the poms for `&amp;lt;activeByDefault&amp;gt;true&amp;lt;/activeByDefault&amp;gt;`. &lt;/p&gt;</comment>
                            <comment id="62363" author="zxiiro" created="Wed, 11 Apr 2018 17:13:24 +0000"  >&lt;p&gt;&lt;b&gt;Regarding commented out code&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;This comes in 2 forms:&lt;/p&gt;

&lt;p&gt;1. A module that is not even listed as a module to build&lt;/p&gt;

&lt;p&gt;In this case it is not commented out code, the project just did not declare the module. It&apos;s similar to how in autorelease we have a modules list:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/opendaylight/releng-autorelease/blob/master/pom.xml&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/opendaylight/releng-autorelease/blob/master/pom.xml&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can disable a project from building by simply just removing it from the pom. I don&apos;t have an example off hand but I&apos;ve seen it.&lt;/p&gt;

&lt;p&gt;2. Using XML &amp;lt;!-- comment --&amp;gt; flag&lt;/p&gt;

&lt;p&gt;This one is easier to detect as it has a specific syntax. For example:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/opendaylight/lispflowmapping/blob/37c6bb104b8884ef35a836dec739e9451e3f757f/pom.xml#L24-L26&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/opendaylight/lispflowmapping/blob/37c6bb104b8884ef35a836dec739e9451e3f757f/pom.xml#L24-L26&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is the most common way projects disable things in their own projects.&lt;/p&gt;


&lt;p&gt;&lt;b&gt;Regarding profiles&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;We can not assume &amp;lt;activeByDefault&amp;gt; because it is only one of many activation/deactivation methods of Maven.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://maven.apache.org/guides/introduction/introduction-to-profiles.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maven.apache.org/guides/introduction/introduction-to-profiles.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Additionally without inspecting the profile we cannot tell what is even in the profile as there are many things Maven pom.xml files support in a profile.&lt;/p&gt;

</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03d07:</customfieldvalue>

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