<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:37:27 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-79] Validate autorelease must check dependencies before project removal</title>
                <link>https://jira.opendaylight.org/browse/RELENG-79</link>
                <project id="10164" key="RELENG">releng</project>
                    <description>&lt;p&gt;Presently the autorelease-validate-autorelease-{$STREAM},&#160;only throws up a&#160;WARNING when&#160;a project is removed from AR but not removed from int/dist.&#160;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;1.&amp;#93;&lt;/span&gt;&#160;&lt;a href=&quot;https://logs.opendaylight.org/releng/vex-yul-odl-jenkins-1/autorelease-validate-autorelease-oxygen/42/console.log.gz&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://logs.opendaylight.org/releng/vex-yul-odl-jenkins-1/autorelease-validate-autorelease-oxygen/42/console.log.gz&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;&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;04:54:11 [WARNING] The POM for org.opendaylight.bier:odl-bier-all:xml:features:0.3.0 is missing, no dependency information available&#160;
&#160;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The job should be doing some kind of validation by default such that if&#160;we remove a project from AR and not from int/dist,&#160;by checking the dependencies between projects or should figure out int/dist project requires a dependency that is not there anymore.&lt;/p&gt;

&lt;p&gt;The&#160;better way may be for `autorelease-validate-autorelease-oxygen` does the dependency validation and makes the job fail instead of&#160;failing the AR job after several hours.&lt;/p&gt;</description>
                <environment></environment>
        <key id="29223">RELENG-79</key>
            <summary>Validate autorelease must check dependencies before project removal</summary>
                <type id="10101" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10318&amp;avatarType=issuetype">Task</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <status id="5" iconUrl="https://jira.opendaylight.org/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="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="askb">Anil Belur</assignee>
                                    <reporter username="askb">Anil Belur</reporter>
                        <labels>
                            <label>autorelease-validate</label>
                    </labels>
                <created>Thu, 15 Feb 2018 02:14:58 +0000</created>
                <updated>Fri, 16 Mar 2018 16:33:47 +0000</updated>
                            <resolved>Fri, 16 Mar 2018 05:42:49 +0000</resolved>
                                                    <fixVersion>unspecified</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="61075" author="zxiiro" created="Thu, 15 Feb 2018 13:32:18 +0000"  >&lt;p&gt;I think the best way to handle this case to compare the list of int/dist projects with the list of autorelease projects and flag if they don&apos;t match.&lt;/p&gt;

&lt;p&gt;The tricky part here will be to handle projects that have subprojects like honeycomb/vbd and ofextensions/circuitsw kind of projects. So special care and attention should be paid to this kind of case.&lt;/p&gt;</comment>
                            <comment id="61079" author="ecelgp" created="Thu, 15 Feb 2018 18:17:02 +0000"  >&lt;p&gt;&amp;gt; While we get some script to do the magic, is it possible to fail the build if we get these &lt;br/&gt;
&amp;gt; dependencies WARNING? if this is difficult to achieve then we just wait until someone has the &lt;br/&gt;
&amp;gt; cycles for writing the script.&lt;/p&gt;

&lt;p&gt;I was not able to find any flag which can magically do this with mvn, also confirmed this with &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;. I work on a script to get this sorted out. &lt;/p&gt;</comment>
                            <comment id="61083" author="ecelgp" created="Fri, 16 Feb 2018 05:58:38 +0000"  >&lt;p&gt;Something I do not understand is if a project (e.g. NIC) tries to add itself to int/dist but it is not in autorelease, the distribution project autorelease-validate fails like here:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jenkins.opendaylight.org/releng/job/integration-distribution-validate-autorelease-oxygen/193/console&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jenkins.opendaylight.org/releng/job/integration-distribution-validate-autorelease-oxygen/193/console&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;However the opposite case, when a project is removed from autorelease but it is still in int/dist,&#160;autorelease&#160;project autorelease-validate does not fail.&#160;&#160;&lt;/p&gt;</comment>
                            <comment id="61091" author="zxiiro" created="Fri, 16 Feb 2018 17:16:37 +0000"  >&lt;p&gt;If a project adds itself to int/dist validate-autorelease needs to know that it&apos;s being added so that it can include them in the validate-autorelease build.&lt;/p&gt;

&lt;p&gt;In the other case if it&apos;s removed from autorelease the validate-autorelease job should still fail it&apos;s probably a timing thing that&apos;s allowing it to pass like maybe validate-autorelease ran before the project was actually removed from autorelease.&lt;/p&gt;

&lt;p&gt;Edit: Validate-autorelease could be improved to detect that it is running against a project that is not in autorelease currently and adds them (only for the build, does not need to do it for real). This way validate-autorelease will always build the project that&apos;s being validated regardless of it&apos;s really in autorelease or not. This will make it easier to test projects as if they are in autorelease.&lt;/p&gt;

&lt;p&gt;To add ontop of this if we have a job that compares distribution with autorelease we can ensure that we are always in sync in an automated way.&lt;/p&gt;</comment>
                            <comment id="61163" author="askb" created="Thu, 22 Feb 2018 05:55:02 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=ecelgp&quot; class=&quot;user-hover&quot; rel=&quot;ecelgp&quot;&gt;ecelgp&lt;/a&gt; Please confirm if this (integration/distribution/features/repos/index/pom.xml) is the best file to read to get a list of all the&#160;projects in int/dist?&lt;/p&gt;

&lt;p&gt;Also I see that is AR has a few extra modules which are SR projects, can we exclude or skip them as a part of the validation?&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; &#160;integration/distribution &lt;br/&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;mdsal &lt;br/&gt;
&#160; &#160; &#160; &#160;odlparent &lt;br/&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;yangtools&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="61164" author="ecelgp" created="Thu, 22 Feb 2018 06:25:08 +0000"  >&lt;p&gt;The validation should be simple: when removing a project from AR, make sure it does not have an active template in&#160;integration/distribution/features/repos/index/pom.xml&lt;/p&gt;

&lt;p&gt;For your comment: odlparent and yangtools should not be in AR from Oxygen onwards as they are not part of the SR. mdsal project can never be removed from&#160;AR unless we want to get rid of all projects as this is now at the root of the SR. int/dist is the distribution itself so no point to remove it unless we want to remove all projects again.&lt;/p&gt;</comment>
                            <comment id="61422" author="askb" created="Tue, 6 Mar 2018 02:37:44 +0000"  >&lt;p&gt;Check project removal in validate autorelease&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/69105&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/69105&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="61423" author="askb" created="Tue, 6 Mar 2018 02:52:47 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=ecelgp&quot; class=&quot;user-hover&quot; rel=&quot;ecelgp&quot;&gt;ecelgp&lt;/a&gt; When I run the validation with stable/oxygen or master branch. &lt;br/&gt;
I get the following differences in projects:&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;---&amp;gt; validate-projects.sh
ERROR: List of projects mismatch in releng/autorelease and integration/distribution: mdsal nic unimgr ocpplugin faas eman
releng/autorelease: mdsal
integration/distribution: nic unimgr ocpplugin faas eman
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I think `mdsal` is not in the list for `integration/distribution` or required directly? Do we need to remove `nic unimgr ocpplugin faas eman` projects from int/dist aswell?&lt;/p&gt;</comment>
                            <comment id="61424" author="ecelgp" created="Tue, 6 Mar 2018 03:07:50 +0000"  >&lt;p&gt;mdsal does not have a feature by itself and that is why you do not see it in int/dist. We should allow this mismatch.&lt;/p&gt;

&lt;p&gt;The other projects you mention are disabled in int/dist index pom.xml: &lt;a href=&quot;https://git.opendaylight.org/gerrit/gitweb?p=integration/distribution.git;a=blob;f=features/repos/index/pom.xml;h=6982eff18abf0f2abe6600b807faa9e1e482884f;hb=refs/heads/stable/oxygen&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/gitweb?p=integration/distribution.git;a=blob;f=features/repos/index/pom.xml;h=6982eff18abf0f2abe6600b807faa9e1e482884f;hb=refs/heads/stable/oxygen&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So there must be some issue in the script.&lt;/p&gt;</comment>
                            <comment id="61480" author="askb" created="Wed, 7 Mar 2018 10:15:24 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=ecelgp&quot; class=&quot;user-hover&quot; rel=&quot;ecelgp&quot;&gt;ecelgp&lt;/a&gt;&#160;Any specific reason they have been disabled? Can we remove the projects from the&#160;int/dist index pom.xml&#160;to get them on par with AR,&#160;instead&#160;of them being disabled?&lt;/p&gt;</comment>
                            <comment id="61525" author="askb" created="Wed, 7 Mar 2018 23:54:11 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=ecelgp&quot; class=&quot;user-hover&quot; rel=&quot;ecelgp&quot;&gt;ecelgp&lt;/a&gt; Another thing I noticed if that `integration/distribution/features/repos/index/pom.xml` pom file structure is completely different with every release and more consistent from stable/oxygen onwards. For instance, the activeByDefault tag is not available in the previous release.  Maybe we should only enable this script for releases which supports them in the pom file and going forward?&lt;/p&gt;</comment>
                            <comment id="61527" author="ecelgp" created="Thu, 8 Mar 2018 00:05:06 +0000"  >&lt;p&gt;2 answers:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;The maven templates in int/dist were introduced in Oxygen which means it is enough if script works from Oxygen onwards.&lt;/li&gt;
	&lt;li&gt;The way I see the templates will work going forward is: all projects part of the new Managed snapshot integrated group (what we call today SR) will have a template in int/dist. If a project miss-behave like break others or we have an upstream bump that requires removing projects from int/dist, we will do all this by just disabling/enabling templates. So this means 2 things:&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;1) In general AR script has to be template enable/disable aware.&lt;br/&gt;
2) While the above should work, we can also go ahead and remove from int/dist those projects that are out of Oxygen: nic unimgr ocpplugin faas eman.&lt;/p&gt;</comment>
                            <comment id="61529" author="askb" created="Thu, 8 Mar 2018 01:11:54 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=ecelgp&quot; class=&quot;user-hover&quot; rel=&quot;ecelgp&quot;&gt;ecelgp&lt;/a&gt; thanks for the response. I am been trying with xmlstarlet if its possible to work around with the have that activation tag checked and set to &apos;true&apos;, but hitting some issues hopefully should get resolved.&lt;/p&gt;

&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; Would you know why the first and last element is concatenated in the xmlstarlet output? The pom file looks good to me. Please note, this is on stable/oxygen branch.&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;$ xmlstarlet sel -N x=http://maven.apache.org/POM/4.0.0 -t -m &apos;/x:project/x:profiles/x:profile/x:activation[x:activeByDefault=&quot;true&quot;]&apos; --if /x:project/x:dependencies/x:depende/x:groupId -v /x:project/x:dependencies/x:dependency/x:groupId --elif /x:project/x:profiles/x:profile/x:id -v /x:project/x:profiles/x:profile/x:id --else -o &apos;&apos; integration/distribution/features/repos/index/pom.xml | sort -u
aaa
alto
bgpcep
bier
coe
controller
daexim
distribution
dlux
dluxapps
eman
faas
genius
groupbasedpolicy
honeycombvbd
infrautils
jsonrpc
l2switch
lispflowmapping
nemo
netconf
netvirt
neutron
nic
ocpplugin
odlparent
ofconfig
openflowplugin
ovsdb
p4plugin
packetcable
sfc
snmp
snmp4sdn
sxp
tsdr
unimgr
usc
vtn
vtnaaa
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="61650" author="askb" created="Sat, 10 Mar 2018 10:39:13 +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; The issue with `xmlstarlet` is now resolved. &lt;/p&gt;</comment>
                            <comment id="61665" author="askb" created="Mon, 12 Mar 2018 06:53:52 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=ecelgp&quot; class=&quot;user-hover&quot; rel=&quot;ecelgp&quot;&gt;ecelgp&lt;/a&gt; This is tested here on sandbox.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jenkins.opendaylight.org/sandbox/job/autorelease-validate-autorelease-oxygen/4/consoleFull&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jenkins.opendaylight.org/sandbox/job/autorelease-validate-autorelease-oxygen/4/consoleFull&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Please review/merge:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/69105&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/69105&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="61770" author="askb" created="Fri, 16 Mar 2018 05:43:56 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=ecelgp&quot; class=&quot;user-hover&quot; rel=&quot;ecelgp&quot;&gt;ecelgp&lt;/a&gt; I have closed this issue as resolved. Please feel free to reopen&#160;the issue if something related to this task is still pending.&lt;/p&gt;</comment>
                            <comment id="61775" author="ecelgp" created="Fri, 16 Mar 2018 16:33:47 +0000"  >&lt;p&gt;Thanks, this works as far as I can tell &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.opendaylight.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03afr:</customfieldvalue>

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