<!-- 
RSS generated by JIRA (1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d) at Thu Feb 08 23:22:37 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 add field=key&field=summary to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>FOLIO Jira</title>
    <link>https://folio-org.atlassian.net</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>1001.0.0-SNAPSHOT</version>
        <build-number>100246</build-number>
        <build-date>07-02-2024</build-date>
    </build-info>

<item>
            <title>[FOLIO-2703] look into handling multiple lcov.info reports in js builds</title>
                <link>https://folio-org.atlassian.net/browse/FOLIO-2703</link>
                <project id="10290" key="FOLIO">FOLIO</project>
                    <description>&lt;p&gt;With some teams using bigtest and Jest to generate lcov reports. Look into if its possible for Sonar to read two reports. &lt;/p&gt;

&lt;p&gt;See: &lt;a href=&quot;https://github.com/folio-org/ui-data-import/pull/632&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/folio-org/ui-data-import/pull/632&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;both BigTest and Jest are creating lcov.info reports. Can Sonar take them both?&lt;/p&gt;</description>
                <environment></environment>
        <key id="81754">FOLIO-2703</key>
            <summary>look into handling multiple lcov.info reports in js builds</summary>
                <type id="10002" iconUrl="https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10322?size=medium">New Feature</type>
                                            <priority id="10005" iconUrl="https://dev.folio.org/assets/jira-priority/tbd.svg">TBD</priority>
                        <status id="6" iconUrl="https://folio-org.atlassian.net/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10003">Done</resolution>
                                                        <assignee accountid="5cd423bebc70090d6ce241b1">Ian Hardy</assignee>
                                                                <reporter accountid="5cd423bebc70090d6ce241b1">Ian Hardy</reporter>
                                    <labels>
                            <label>devops-backlog</label>
                            <label>testing</label>
                    </labels>
                <created>Mon, 27 Jul 2020 17:45:58 +0000</created>
                <updated>Wed, 19 Aug 2020 07:00:04 +0000</updated>
                            <resolved>Mon, 10 Aug 2020 13:11:57 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                <comments>
                                                            <comment id="199379" author="5cd423bebc70090d6ce241b1" created="Wed, 29 Jul 2020 13:19:23 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=712020%3A13270e0e-c768-4fb6-ac84-1997ffd457c7&quot; class=&quot;user-hover&quot; rel=&quot;712020:13270e0e-c768-4fb6-ac84-1997ffd457c7&quot; data-account-id=&quot;712020:13270e0e-c768-4fb6-ac84-1997ffd457c7&quot; accountid=&quot;712020:13270e0e-c768-4fb6-ac84-1997ffd457c7&quot; rel=&quot;noreferrer&quot;&gt;Mariia Aloshyna&lt;/a&gt;, We&apos;ll give this a try. A few questions:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;is the goal to have a combined report, or two separate reports, one from each test suite?&lt;/li&gt;
	&lt;li&gt;Can you recreate the test on a branch where BigTest publishes to artifacts/coverage and Jest publishes to coverage? I&apos;d like to do some testing and see what if anything we can come up with.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Ian&lt;/p&gt;</comment>
                                                            <comment id="199380" author="712020:13270e0e-c768-4fb6-ac84-1997ffd457c7" created="Wed, 29 Jul 2020 14:34:52 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=5cd423bebc70090d6ce241b1&quot; class=&quot;user-hover&quot; rel=&quot;5cd423bebc70090d6ce241b1&quot; data-account-id=&quot;5cd423bebc70090d6ce241b1&quot; accountid=&quot;5cd423bebc70090d6ce241b1&quot; rel=&quot;noreferrer&quot;&gt;Ian Hardy&lt;/a&gt;!&lt;br/&gt;
1. The goal is to have a combined report.&lt;br/&gt;
2. Ok, I&apos;ll send you a link to a branch once I create it.&lt;br/&gt;
Thank you!&lt;/p&gt;</comment>
                                                            <comment id="199381" author="5cd423bebc70090d6ce241b1" created="Wed, 29 Jul 2020 14:47:10 +0000"  >&lt;p&gt;branch for working on combing reports (thanks!): &lt;a href=&quot;https://github.com/folio-org/ui-data-import/tree/coverage-report-test&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/folio-org/ui-data-import/tree/coverage-report-test&lt;/a&gt;&lt;/p&gt;</comment>
                                                            <comment id="199383" author="5cd423bebc70090d6ce241b1" created="Mon, 3 Aug 2020 19:45:27 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=712020%3A13270e0e-c768-4fb6-ac84-1997ffd457c7&quot; class=&quot;user-hover&quot; rel=&quot;712020:13270e0e-c768-4fb6-ac84-1997ffd457c7&quot; data-account-id=&quot;712020:13270e0e-c768-4fb6-ac84-1997ffd457c7&quot; accountid=&quot;712020:13270e0e-c768-4fb6-ac84-1997ffd457c7&quot; rel=&quot;noreferrer&quot;&gt;Mariia Aloshyna&lt;/a&gt;, How can I tell whether or not the Jest test is getting picked up? I see both reports in the workspace, and Sonar says it is analyzing both reports:&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;INFO: Analysing [/home/jenkins/workspace/data-import_coverage-report-test/project/artifacts/coverage/lcov.info, /home/jenkins/workspace/data-import_coverage-report-test/project/coverage/lcov.info]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;There&apos;s not much in the the sonar report of course since it doesn&apos;t differ much from master: &lt;a href=&quot;https://sonarcloud.io/dashboard?branch=coverage-report-test&amp;amp;id=org.folio%3Aui-data-import&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://sonarcloud.io/dashboard?branch=coverage-report-test&amp;amp;id=org.folio%3Aui-data-import&lt;/a&gt;&lt;/p&gt;</comment>
                                                            <comment id="199385" author="712020:13270e0e-c768-4fb6-ac84-1997ffd457c7" created="Mon, 3 Aug 2020 20:29:34 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=5cd423bebc70090d6ce241b1&quot; class=&quot;user-hover&quot; rel=&quot;5cd423bebc70090d6ce241b1&quot; data-account-id=&quot;5cd423bebc70090d6ce241b1&quot; accountid=&quot;5cd423bebc70090d6ce241b1&quot; rel=&quot;noreferrer&quot;&gt;Ian Hardy&lt;/a&gt;, When I was working on &lt;a href=&quot;https://github.com/folio-org/ui-data-import/pull/632&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;this PR&lt;/a&gt; I was checking it by &amp;lt;MARCTable&amp;gt; component coverage. As you can see &lt;a href=&quot;https://jenkins-aws.indexdata.com/job/folio-org/job/ui-data-import/job/UIDATIMP-586/15/LCov_20Coverage_20Report/&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;here&lt;/a&gt; the coverage of this component is quite low because the Jest report was overwritten or smth like that, and coverage indicators should be equal to data from a screenshot in PR&apos;s description (&amp;gt; 80%). I&apos;m not sure if this information helps for your case, but this is how I checked it.&lt;br/&gt;
Let me know if any help is needed.&lt;/p&gt;</comment>
                                                            <comment id="199387" author="5cd423bebc70090d6ce241b1" created="Tue, 4 Aug 2020 15:01:52 +0000"  >&lt;p&gt;OK, I think Sonar is already merging these for us, so we don&apos;t have to worry about that. The reports that are published in Jenkins are not merged. One option would be to make sure we publish them with separate names so they don&apos;t clobber one another, something like this:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jenkins-aws.indexdata.com/job/folio-org/job/ui-data-import/job/coverage-report-test/4/&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://jenkins-aws.indexdata.com/job/folio-org/job/ui-data-import/job/coverage-report-test/4/&lt;/a&gt; (notice the report names BigTest and jest).&lt;/p&gt;

&lt;p&gt;I&apos;d also like to try merging the reports first, that&apos;s in the spirit of the original request and might be cleaner to manage in Jenkins. I noticed there&apos;s js library for this. I&apos;ll give it a try and report back: &lt;a href=&quot;https://github.com/mweibel/lcov-result-merger&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/mweibel/lcov-result-merger&lt;/a&gt;&lt;/p&gt;</comment>
                                                            <comment id="199389" author="61cd0ca0bce5e00069e98be7" created="Sun, 9 Aug 2020 23:51:35 +0000"  >&lt;p&gt;Giving reports those specific names (BigTest and Jest) will clash with other testing frameworks (e.g. Cypress).&lt;/p&gt;</comment>
                                                            <comment id="199390" author="5cd423bebc70090d6ce241b1" created="Mon, 10 Aug 2020 12:33:00 +0000"  >&lt;p&gt;Thanks for the heads up &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=61cd0ca0bce5e00069e98be7&quot; class=&quot;user-hover&quot; rel=&quot;61cd0ca0bce5e00069e98be7&quot; data-account-id=&quot;61cd0ca0bce5e00069e98be7&quot; accountid=&quot;61cd0ca0bce5e00069e98be7&quot; rel=&quot;noreferrer&quot;&gt;David Crossley&lt;/a&gt;. I think we can close this investigation then since sonar supports merging multiple reports. In order to do so, a developer needs to set up so one report is created at coverage/lcov.info, and the other is created at artifacts/coverage/lcov.info.&lt;/p&gt;

&lt;p&gt;Jenkins will not publish both of these reports on the build result. If we want Jenkins to publish a merged report it needs to be done by some other means. For JS modules, might be worth looking at using &lt;a href=&quot;https://github.com/mweibel/lcov-result-merger&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/mweibel/lcov-result-merger&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=61cd0ca0bce5e00069e98be7&quot; class=&quot;user-hover&quot; rel=&quot;61cd0ca0bce5e00069e98be7&quot; data-account-id=&quot;61cd0ca0bce5e00069e98be7&quot; accountid=&quot;61cd0ca0bce5e00069e98be7&quot; rel=&quot;noreferrer&quot;&gt;David Crossley&lt;/a&gt; are you happy with this method of merging reports in Sonar (i.e. making use of the existing sonar scan paths)? &lt;/p&gt;</comment>
                                                            <comment id="199391" author="61cd0ca0bce5e00069e98be7" created="Mon, 10 Aug 2020 12:52:18 +0000"  >&lt;p&gt;Yes, that is fine.&lt;/p&gt;</comment>
                                                            <comment id="199392" author="61cd0ca0bce5e00069e98be7" created="Wed, 19 Aug 2020 07:00:04 +0000"  >&lt;p&gt;Added FAQ &lt;a href=&quot;https://dev.folio.org/faqs/how-to-integrate-coverage-reports/&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://dev.folio.org/faqs/how-to-integrate-coverage-reports/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="50249">UIDATIMP-586</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummarycf">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10057" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Development Team</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10155"><![CDATA[FOLIO DevOps]]></customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10020" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1947">DevOps: sprint 94</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10024" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>[CHART] Date of First Response</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 29 Jul 2020 14:34:52 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10025" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>[CHART] Time in Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>