<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:16:55 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>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-70718] Resmoke on error should float the most important info to end of log.</title>
                <link>https://jira.mongodb.org/browse/SERVER-70718</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;It should be easy to find the error in the resmoke log. Most of the time we should be able to see the problem as the last thing in the evergreen/resmoke log.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;For local development we still want this&lt;/p&gt;</description>
                <environment></environment>
        <key id="2162865">SERVER-70718</key>
            <summary>Resmoke on error should float the most important info to end of log.</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/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="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="tausif.rahman@mongodb.com">Tausif Rahman</assignee>
                                    <reporter username="charlie.swanson@mongodb.com">Charlie Swanson</reporter>
                        <labels>
                    </labels>
                <created>Wed, 19 Oct 2022 23:17:54 +0000</created>
                <updated>Sun, 29 Oct 2023 21:31:41 +0000</updated>
                            <resolved>Tue, 21 Feb 2023 17:22:02 +0000</resolved>
                                                    <fixVersion>7.0.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="5209626" author="xgen-internal-githook" created="Sat, 18 Feb 2023 03:02:31 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Tausif Rahman&apos;, &apos;email&apos;: &apos;tausif.rahman@mongodb.com&apos;, &apos;username&apos;: &apos;trahman1318&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-70718&quot; title=&quot;Resmoke on error should float the most important info to end of log.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-70718&quot;&gt;&lt;del&gt;SERVER-70718&lt;/del&gt;&lt;/a&gt; Resmoke on error should float the most important info to end of log.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/08c2bce1b232839552b3c665362b6bc783835afd&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/08c2bce1b232839552b3c665362b6bc783835afd&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5163163" author="JIRAUSER1258055" created="Thu, 2 Feb 2023 16:59:33 +0000"  >&lt;p&gt;Sounds great! I looked into this a little and It looks like resmoke continually &quot;reports&quot; data pre/post test. We might be able to store interesting logs to the &quot;report object&quot; upon &lt;a href=&quot;https://github.com/10gen/mongo/blob/1c950544c073ee40adda396e5795cfb068a1ff7e/buildscripts/resmokelib/testing/report.py#L140&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;stopTest&lt;/a&gt; or something similar. I think we have a good path forward &amp;amp; will put out a PR soon.&lt;/p&gt;</comment>
                            <comment id="5163057" author="charlie.swanson" created="Thu, 2 Feb 2023 16:37:35 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tausif.rahman%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;tausif.rahman@mongodb.com&quot;&gt;tausif.rahman@mongodb.com&lt;/a&gt; thanks for thinking it through!&lt;/p&gt;

&lt;p&gt;1. That&apos;s a good point and I think it&apos;s OK to only do it if --continueOnFailure is not specified, or to have it stop trying after spewing ~1000 lines of logs or something like that&lt;/p&gt;

&lt;p&gt;2. This is worth trying to avoid, but anything other than &quot;the MongoDs all shut down at the end of the test&quot; is better I think &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/biggrin.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; I do think we should be careful not to hide the displaying of which tests failed though. If those are pushed off screen and you instead get some incorrect guess at the cause of the failure, that&apos;d be bad. Of course, if we include log lines that are prefixed with the name of the test, that&apos;s not much of a concern anymore.&lt;/p&gt;

&lt;p&gt;3. Yes this is a reasonable take and one that would give flexibility for it to evolve over time. In fact, I use the bb-log-analyzer tool myself locally: &lt;a href=&quot;https://github.com/10gen/employees/blob/master/home/charlie.swanson/mongofiles/resmoke.sh&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/employees/blob/master/home/charlie.swanson/mongofiles/resmoke.sh&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One concern and pain point I&apos;ve had with this is that it takes a while to run after the test fails. I would still like to explore whether we can know in resmoke.py better which logs are relevant before we blow past them. For example, if a test fails, could we capture the previous 100 lines, save them, then shut down the test fixtures, then print those lines again? Or something like that - just spitballing. Maybe we could extract some of the code from the bb-log-analyzers and re-use it inside of resmoke to do it live when the test fails? And maybe that will speed it up?&lt;/p&gt;</comment>
                            <comment id="5163034" author="JIRAUSER1258055" created="Thu, 2 Feb 2023 16:28:27 +0000"  >&lt;p&gt;I see the convenience factor of this. In resmoke, the last logs tend to be &quot;TestXYZ failed &amp;#8211; go look at those logs to investigate this&quot; with no indication of what the issue could be. Then the dev has to go scroll/search for this test failure and filter out the noise. Instead, we&apos;d like those logs right at the end &#8211; or at least some idea of what went wrong. Does that sound right? A couple of questions:&lt;/p&gt;


&lt;p&gt;1. Will this get noisy if we have --continueOnFailure &amp;amp; there end up being a lot of failures? ie: If we run 100 tests and they all fail, our logs will look like &lt;span class=&quot;error&quot;&gt;&amp;#91;resmoke test logs&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;new additional logging&amp;#93;&lt;/span&gt; &#8211; where &lt;span class=&quot;error&quot;&gt;&amp;#91;new additional logging&amp;#93;&lt;/span&gt; can be huge. Or maybe this is not an issue because devs typically run 1 test at a time or do not run with --continueOnFailure. We could also only float the errors when --continueOnFailure is not passed.&lt;/p&gt;

&lt;p&gt;2. What if the &lt;span class=&quot;error&quot;&gt;&amp;#91;new additional logging&amp;#93;&lt;/span&gt; is not sufficient or misleading for investigation? Then did we just add noise, or is it still net positive to have &quot;some&quot; idea of what failed?&lt;/p&gt;

&lt;p&gt;3. This is kind of getting into the implementation details but I&apos;m not sure how effectively we will be able to get js stacktraces for processes launched by resmoke. I think the best we will be able to do is some regex on the js logs after a test fails. The results may be similar to what is seen in build baron tools: &lt;a href=&quot;https://buildbaron.corp.mongodb.com/ui/#/bfg/BFG-1793935&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://buildbaron.corp.mongodb.com/ui/#/bfg/BFG-1793935&lt;/a&gt; . Is that desirable?&lt;/p&gt;</comment>
                            <comment id="5147697" author="JIRAUSER1268551" created="Sat, 28 Jan 2023 02:54:33 +0000"  >&lt;p&gt;I am not totally sure what is involved with this ask or how hard it will be to do. But could you investigate it and see if this is something that is reasonable to do?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2303004">SERVER-75524</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25130"><![CDATA[Server Development Platform]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sat, 28 Jan 2023 02:54:33 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        50 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-3103</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            50 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>alex.neben@mongodb.com</customfieldvalue>
            <customfieldvalue>charlie.swanson@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>tausif.rahman@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i1eppb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i0xdeo:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_22250" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Special Downgrade Instructions Required</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23343"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i1ebun:</customfieldvalue>

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