<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:27:21 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>[ODLPARENT-4] SingleFeatureTest requires used features to be present in local m2 Repo</title>
                <link>https://jira.opendaylight.org/browse/ODLPARENT-4</link>
                <project id="10149" key="ODLPARENT">odlparent</project>
                    <description>&lt;p&gt;SingleFeatureTest does not test integration correctly and relies on Maven and compile time dependencies to download and resolve referenced third-party features.&lt;/p&gt;

&lt;p&gt;This does not test how user will observe installation of features, since any assumtion&lt;br/&gt;
about feature already present in local m2 repository could not be made.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="22127">ODLPARENT-4</key>
            <summary>SingleFeatureTest requires used features to be present in local m2 Repo</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="10003" iconUrl="https://jira.opendaylight.org/images/icons/status_generic.gif" description="">Confirmed</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="tony.tkacik@gmail.com">Tony Tkacik</reporter>
                        <labels>
                    </labels>
                <created>Thu, 25 Sep 2014 12:54:49 +0000</created>
                <updated>Wed, 24 Jan 2018 14:27:06 +0000</updated>
                                                                            <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="41712" author="rovarga" created="Wed, 18 Mar 2015 12:44:31 +0000"  >&lt;p&gt;SingleFeatureTest moved to odlparent.&lt;/p&gt;</comment>
                            <comment id="41713" author="rovarga" created="Wed, 24 Feb 2016 10:57:54 +0000"  >&lt;p&gt;There are two problems we are facing here:&lt;/p&gt;

&lt;p&gt;1) features artifacts require an explicit declaration of dependecies to artifacts mentioned in features.xml, so that maven ensures presence of these artifacts in .m2/repository. Failure to do so can lead to downstream breakage, like the one addressed in &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/35317/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/35317/&lt;/a&gt;, where a config file was added to a feature, but openflowplugin tests started failing. Note that in real life feature:install would have worked without any issues.&lt;/p&gt;

&lt;p&gt;2) artifacts are resolved via .m2 repository only, which does not match what karaf does, as it consults also remote repositories &amp;#8211; hence the above failure. Allowing resolution of artifacts from nexus can lead to the test not validating projects layout correctly, as for example it will not catch the case when a project removes an artifact, but its feature still refers to it, as it would just fetch a stale one from nexus. That would lead to the failure being silent until autorelease happens, which will fail to resolve the artifact due to version bump.&lt;/p&gt;

&lt;p&gt;These seem to be conflicting requirements, until we realize that there are two distinct cases here: required artifact comes from the project being built, or it comes from an external project (either ODL or third-party).&lt;/p&gt;

&lt;p&gt;If the artifact is part of the current project, it should only be resolved from .m2/repository, where it is expected to be populated by the current maven build reactor If the artifact is not part of the current project, it should only be resolved from external repository.&lt;/p&gt;</comment>
                            <comment id="41714" author="rovarga" created="Wed, 24 Feb 2016 11:11:05 +0000"  >&lt;p&gt;The core problem lies in how do we determine that a particular artifact is part of build or not. There are two base strategies which are usable:&lt;/p&gt;

&lt;p&gt;1) rely on ${project.groupId}, which is assigned to projects. This is a good indication whether the artifact is produced in the local project and this mapping is enforced by OpenDaylight infrastructure. Unfortunately it does not quite work for autorelease, as that builds all projects in one maven reactor.&lt;/p&gt;

&lt;p&gt;2) rely on maven reactor. This is works nicely in autorelease, as it will treat any dependency not part of the reactor as a third-party. Unfortunately if fails to detect removed artifacts and doesn&apos;t do the right thing in manual testing (e.g. will not use local artifacts and download immediately).&lt;/p&gt;

&lt;p&gt;A solution needs to somehow combine these two strategies and find the right set of rules to cover both scenarios. To deal with autorelease case, we may get help from outside in the form of an environment variable/maven property being present, which can give us clue about the build scope in which the test is executing.&lt;/p&gt;</comment>
                            <comment id="41715" author="vrpolak" created="Tue, 7 Mar 2017 15:12:33 +0000"  >&lt;p&gt;Is this still relevant after recent &lt;span class=&quot;error&quot;&gt;&amp;#91;0&amp;#93;&lt;/span&gt; strengthening of distribution-check jobs?&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;0&amp;#93;&lt;/span&gt; &lt;a href=&quot;https://git.opendaylight.org/gerrit/47575&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/47575&lt;/a&gt;&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_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2084</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=2084]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10206" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Issue Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10305"><![CDATA[Improvement]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i022pr:</customfieldvalue>

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