<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:55:17 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>[CONTROLLER-1339] categorize YANG model changes from Helium to Lithium</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-1339</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;Right now we have no idea what YANG models changed and how. Ideally, we need a script that will take two branches/tags and then identify all YANG models that have changed in that time frame with the first goal of looking at Helium to to Lithium.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="25893">CONTROLLER-1339</key>
            <summary>categorize YANG model changes from Helium to Lithium</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <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="colindixon">Colin Dixon</assignee>
                                    <reporter username="colindixon">Colin Dixon</reporter>
                        <labels>
                    </labels>
                <created>Tue, 26 May 2015 16:48:50 +0000</created>
                <updated>Tue, 25 Jul 2023 08:24:04 +0000</updated>
                            <resolved>Fri, 29 May 2015 01:28:28 +0000</resolved>
                                                                    <component>mdsal</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="50722" author="colin@colindixon.com" created="Tue, 26 May 2015 19:27:48 +0000"  >&lt;p&gt;Running this command will give you a basic idea of what yang files have changed:&lt;br/&gt;
./odlutils/for-all.pl odlutils/li-repos.txt &apos;git diff --stat release/helium..HEAD &amp;#8211; blank `find . -name *.yang | grep -v target/ | grep -v test` | cat&apos;&lt;/p&gt;

&lt;p&gt;It uses the for-all.pl from here:&lt;br/&gt;
&lt;a href=&quot;https://github.com/nilok/odlutils&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/nilok/odlutils&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A few notes&lt;br/&gt;
0.) This assumes you&apos;ve checked out all the lithium repos and moved to the stable/lithium branch if there is one, something like:&lt;br/&gt;
    ./odlutils/for-all.pl --no-cd odlutils/li-repos.txt &quot;git clone &lt;a href=&quot;https://git.opendaylight.org/gerrit/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/&lt;/a&gt;&lt;/p&gt;
{f}
&lt;p&gt;.git&quot;&lt;br/&gt;
    ./odlutils/for-all.pl odlutils/li-repos.txt &quot;git co -b stable/lithium remotes/origin/stable/lithium&quot;&lt;br/&gt;
1.) The &quot;-- blank&quot; ensures that it will avoid logging any differences if there are no yang files because presumably the file blank doesn&apos;t exist.&lt;br/&gt;
2.) The &quot;| cat&quot; stops git from waiting for keyboard input&lt;/p&gt;

&lt;p&gt;This won&apos;t tell you if a file was deleted or created over that period to do that I&apos;m going to to have to write a script that uses &quot;git cat-file -e&quot; to test if the file exists in release/helium and HEAD.&lt;/p&gt;</comment>
                            <comment id="50727" author="colin@colindixon.com" created="Tue, 26 May 2015 19:30:49 +0000"  >&lt;p&gt;Attachment he-to-li-changed-yang-files--stat.txt has been added with description: yang files that have changed since release/helium using git diff --stat&lt;/p&gt;</comment>
                            <comment id="50728" author="colin@colindixon.com" created="Tue, 26 May 2015 19:34:21 +0000"  >&lt;p&gt;Attachment he-to-li-changed-yang-files.zip has been added with description: yang files that have changed since release/helium using git diff&lt;/p&gt;</comment>
                            <comment id="50723" author="colin@colindixon.com" created="Tue, 26 May 2015 19:41:23 +0000"  >&lt;p&gt;I&apos;ve attached the results from running the above command with diff (as a zip file) and diff --stat (as a txt file). They should help start to answer the questions.&lt;/p&gt;

&lt;p&gt;The result of that is that only 15 projects changed, added, or deleted any yang files:&lt;br/&gt;
aaa 6&lt;br/&gt;
bgpcep 19&lt;br/&gt;
controller 32&lt;br/&gt;
groupbasedpolicy 23&lt;br/&gt;
lispflowmapping 8&lt;br/&gt;
openflowjava 11&lt;br/&gt;
openflowplugin 44&lt;br/&gt;
ovsdb 6&lt;br/&gt;
packetcable 4&lt;br/&gt;
sdninterfaceapp 15&lt;br/&gt;
sfc 29&lt;br/&gt;
ttp 2&lt;br/&gt;
vtn 14&lt;br/&gt;
yangtools 5&lt;/p&gt;

&lt;p&gt;For silly reasons, that actually the number of changed yang files + 1 in each case since it&apos;s &quot;git diff | wc -l&quot; which includes the one line of summary.&lt;/p&gt;</comment>
                            <comment id="50724" author="colin@colindixon.com" created="Thu, 28 May 2015 21:31:43 +0000"  >&lt;p&gt;I finally got a script that does more or less what you&apos;d want and attached a zip file of it&apos;s output both of just a list of files as well as providing diffs for the files that changed using &quot;git diff&quot; and &quot;git diff --stat&quot;.&lt;/p&gt;</comment>
                            <comment id="50729" author="colin@colindixon.com" created="Thu, 28 May 2015 21:31:43 +0000"  >&lt;p&gt;Attachment he-to-li-changed-and-added-yang-files.zip has been added with description: a list of added and changed models from release/helium to stable/lithium&lt;/p&gt;</comment>
                            <comment id="50725" author="colin@colindixon.com" created="Fri, 29 May 2015 01:08:09 +0000"  >&lt;p&gt;Here&apos;s a script which you can use to get lists of the models that were added/changed and/or removed between two arbitrary points in git history. It will also optionally give you the output for &quot;git diff&quot; or &quot;git diff --stat&quot; for the models that changed.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/21381/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/21381/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can run it over all projects by combining it with the odlutils/for-all.pl script here:&lt;br/&gt;
&lt;a href=&quot;https://github.com/nilok/odlutils&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/nilok/odlutils&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once the above patch is merged, this should work from scratch:&lt;br/&gt;
git clone &lt;a href=&quot;https://github.com/nilok/odlutils.git&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/nilok/odlutils.git&lt;/a&gt;&lt;br/&gt;
./odlutils/for-all.pl --no-cd odlutils/li-repos.txt &apos;git clone &lt;a href=&quot;https://git.opendaylight.org/gerrit/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/&lt;/a&gt;&lt;/p&gt;
{f}
&lt;p&gt;.git&apos;&lt;br/&gt;
./odlutils/for-all.pl odlutils/li-repos.txt &apos;git co -b stable/lithium remotes/origin/stable/lithium&apos;&lt;br/&gt;
./odlutils/for-all.pl odlutils/li-repos.txt &apos;../autorelease/scripts/changed-models.pl --diff release/helium &amp;amp;&amp;amp; echo&apos;&lt;/p&gt;

&lt;p&gt;That whole process on my laptop takes just under 3 minutes from scratch and 15 seconds over all the projects in OpenDaylight if you already have them cloned and on the master or stable/lithium branches as appropriate.&lt;/p&gt;</comment>
                            <comment id="50726" author="colin@colindixon.com" created="Fri, 29 May 2015 01:28:28 +0000"  >&lt;p&gt;I updated the lists to use the new lithium repos (removing discovery and plugin2oc) as well as adding support for tracking deleted models.&lt;/p&gt;</comment>
                            <comment id="50730" author="colin@colindixon.com" created="Fri, 29 May 2015 01:28:28 +0000"  >&lt;p&gt;Attachment he-to-li-changed-yang-files.zip has been added with description: added, deleted, and changed yang files from helium to lithium&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="25854">CONTROLLER-1300</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="13515" name="he-to-li-changed-and-added-yang-files.zip" size="78149" author="colindixon" created="Thu, 28 May 2015 21:31:43 +0000"/>
                            <attachment id="13513" name="he-to-li-changed-yang-files--stat.txt" size="14243" author="colindixon" created="Tue, 26 May 2015 19:30:49 +0000"/>
                            <attachment id="13516" name="he-to-li-changed-yang-files.zip" size="85339" author="colindixon" created="Fri, 29 May 2015 01:28:28 +0000"/>
                            <attachment id="13514" name="he-to-li-changed-yang-files.zip" size="162696" author="colindixon" created="Tue, 26 May 2015 19:34:21 +0000"/>
                    </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>3377</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=3377]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10315"><![CDATA[Lithium]]></customfieldvalue>

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

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