<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:33:28 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-54414] Prevent tests from using /data/db dbpath</title>
                <link>https://jira.mongodb.org/browse/SERVER-54414</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-46581&quot; title=&quot;mongo_embedded_test opens storage data files in the default dbpath (/data/db)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-46581&quot;&gt;&lt;del&gt;SERVER-46581&lt;/del&gt;&lt;/a&gt; describes a case where a test was using the default &lt;tt&gt;/data/db&lt;/tt&gt; path for its data files. In addition to fixing this specific case, we should do something to ensure this doesn&apos;t happen again, such as making one of the build variants have a non-writable /data/db with the resmoke paths either pointed somewhere else, or precreated with write perms just to them.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1617535">SERVER-54414</key>
            <summary>Prevent tests from using /data/db dbpath</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="robert.guo@mongodb.com">Robert Guo</assignee>
                                    <reporter username="mathias@mongodb.com">Mathias Stearn</reporter>
                        <labels>
                            <label>tig-qwin-eligible</label>
                            <label>tig-resmoke</label>
                    </labels>
                <created>Tue, 9 Feb 2021 09:46:38 +0000</created>
                <updated>Tue, 8 Jun 2021 22:15:16 +0000</updated>
                            <resolved>Tue, 8 Jun 2021 22:15:16 +0000</resolved>
                                                                    <component>Testing Infrastructure</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3867594" author="robert.guo" created="Tue, 8 Jun 2021 22:14:37 +0000"  >&lt;p&gt;I asked around a bit more but unfortunately wasn&apos;t able to come up with a good solution with managing /data/db. As Zakhar mentioned above, the &lt;tt&gt;/data/db&lt;/tt&gt;&#160;directory isn&apos;t baked onto the image; similarly, Evergreen only creates the &lt;tt&gt;/data&lt;/tt&gt;&#160;directory in the distro setup script. Resmoke.py also doesn&apos;t use &lt;tt&gt;/data/db directly&lt;/tt&gt;. It calls &lt;a href=&quot;https://github.com/mongodb/mongo/blob/d1ef0558db58bcee46c09f07a99ff0c056f4ea29/buildscripts/resmokelib/testing/testcases/dbtest.py#L41&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;os.makedirs()&lt;/a&gt;&#160;on its dbpath, which happens to be in &lt;tt&gt;/data/db&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;I&apos;m therefore not sure how we should go about limiting /data/db&apos;s permissions given how pervasively its used across many Evergreen projects but its ownership isn&apos;t clear. Ideally we shouldn&apos;t be doing much outside of Evergreen&apos;s workdir,but it&apos;s hard to verify that this change won&apos;t break other projects if the permission isn&apos;t reset for whatever reason. A clang-tidy-based linter could be a possible alternative solution that would be much more targeted at unittests.&lt;/p&gt;

&lt;p&gt;I&apos;m going to tentatively close this ticket as won&apos;t fix given the amount of work across resmoke and build images, but can be persuaded otherwise. Feel free to add an item to dev-prod&apos;s stakeholder spreadsheet if you still would like to see this.&lt;/p&gt;</comment>
                            <comment id="3866268" author="brooke.miller" created="Tue, 8 Jun 2021 14:57:57 +0000"  >&lt;p&gt;Thanks for the response, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=zakhar.kleyman&quot; class=&quot;user-hover&quot; rel=&quot;zakhar.kleyman&quot;&gt;zakhar.kleyman&lt;/a&gt;! Rob&apos;s going to investigate this further today.&lt;/p&gt;</comment>
                            <comment id="3786553" author="robert.guo" created="Tue, 18 May 2021 21:12:53 +0000"  >&lt;p&gt;I like the approach but I think the work should be done in the Server&apos;s CI config for now, not globally for all hosts since there may be tasks that do require the default db path. There was a similar request for changing the permissions of /opt (BUILD-2653); it&apos;s still in the open state after some discussion.&lt;/p&gt;</comment>
                            <comment id="3609111" author="redbeard0531" created="Wed, 10 Feb 2021 14:35:53 +0000"  >&lt;p&gt;Re-opening and refocusing on preventing this from happening again, rather than fixing the specific case&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="1217350">SERVER-46581</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 11 May 2021 19:35:53 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 35 weeks, 1 day 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_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>robert.guo@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 35 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>brooke.miller@mongodb.com</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
            <customfieldvalue>robert.guo@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hyu55j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hyfo2f:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="4928">STM 2021-06-14</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10555" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</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|hytren:</customfieldvalue>

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