<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:43:07 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-80270] Test new evergreen function var behavior</title>
                <link>https://jira.mongodb.org/browse/SERVER-80270</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Evergreen is making a change to how some variables can be set in the evergreen yaml. These changes will go into effect on Oct 6th and can be tested by setting{&lt;tt&gt;} `unset_function_vars: true&lt;/tt&gt;` at the top of our project config. It is possible this introduces issues with out current configuration and we should at the very least look for obvious failures before the change happens.&lt;/p&gt;


&lt;p&gt;Original slack thread with context: &lt;a href=&quot;https://mongodb.slack.com/archives/C0V896UV8/p1691517624121179&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://mongodb.slack.com/archives/C0V896UV8/p1692628286890599?thread_ts=1691517624.121179&amp;amp;cid=C0V896UV8&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Original messages:&lt;br/&gt;
Hi all,&lt;br/&gt;
Due to a bug, vars defined in&#160;&lt;a href=&quot;https://docs.devprod.prod.corp.mongodb.com/evergreen/Project-Configuration/Project-Configuration-Files/#functions&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;functions&lt;/a&gt;&#160;in the evergreen project config would persist after the function finished running. This work is tracked in&#160;EVG-20276.In the example below, foo should only be defined in the function itself and no longer be defined in the command that follows it.&lt;br/&gt;
name: my-test&lt;br/&gt;
    commands:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;func: func-name&lt;br/&gt;
        vars:&lt;br/&gt;
          foo: &quot;bar&quot;&lt;/li&gt;
	&lt;li&gt;command: shell.exec&lt;br/&gt;
        params:&lt;br/&gt;
          script: echo value of foo after the function ${foo}&lt;br/&gt;
However, due to a bug it was still defined in the echo after the function finished running.We will be fixing it to stop persisting vars outside of functions. Please note that anything set using&#160;&lt;a href=&quot;https://docs.devprod.prod.corp.mongodb.com/evergreen/Project-Configuration/Project-Commands#expansionsupdate&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;expansions.update&lt;/a&gt;&#160;will continue to persist for the entire task as promised in the docs, even if it&#8217;s used inside of a function.While we don&#8217;t normally send out announcements for bug fixes, we realize that some teams may have come to rely on this behavior, so we wanted to give everyone time to audit their configurations, if preferred. Please take a look at your project config to see if there are any instances where function vars are relied on outside of the function. A summary of potential scenarios and impacts can be found in the ticket linked above.&lt;b&gt;&lt;em&gt;We plan to deploy the fix for this bug on Wednesday September 6,&lt;/em&gt;&lt;/b&gt;&#160;__&#160;and will have a rollback plan in place in the instance that this causes unforeseen complications. If you need more time or have any questions, please reach out here and let us know.&lt;br/&gt;
&#160;&lt;br/&gt;
&#160;&lt;br/&gt;
follow up:&lt;br/&gt;
I sent out an email extending the deadline to October 6, and explaining how to set&#160;&lt;tt&gt;unset_function_vars: true&lt;/tt&gt;&#160;at the top of your project config to test this change. I included tips for what to look out for when auditing the yaml and testing.I also included instructions for what to do in the where somebody wants to preserve the current behavior for function vars.
&lt;blockquote&gt;&lt;p&gt;If anyone wishes to&#160;&lt;b&gt;preserve the current behavior&lt;/b&gt;, either because it&#8217;s desired for a use case or because more time is needed to fix it, the old behavior can be preserved by simply calling expansions.update at the end of every function with the key value pairs of the vars you want to persist.For example,&#160;&lt;a href=&quot;https://github.com/evergreen-ci/commit-queue-sandbox/blob/7819ed1f8115e08e403473ce1ab4022dad758583/functionVar.yml&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this project config&lt;/a&gt;&#160;has foo defined as a function var and then calls expansions.update to save the current function value ${foo} as an expansion. As you can see by the echos&#160;&lt;a href=&quot;https://parsley-staging.corp.mongodb.com/evergreen/sandbox_build_variant_my_task_patch_f6e6183659511dd48b2bee7463d32e470af15f95_64de5a15b23736d761127520_23_08_17_17_34_44/0/task?bookmarks=0,24&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;in this example&lt;/a&gt;, despite unset_function_vars being set to true, it behaved in a manner consistent with the current behavior and the function vars continued to be defined after the function exited. The output is the same as&lt;a href=&quot;https://parsley-staging.corp.mongodb.com/evergreen/sandbox_build_variant_my_task_patch_f6e6183659511dd48b2bee7463d32e470af15f95_64de5a40b23736d761127527_23_08_17_17_35_19/0/task?bookmarks=0,24&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&#160;in this patch&lt;/a&gt;&#160;where unset_function_vars was not set.&lt;/p&gt;&lt;/blockquote&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="2422236">SERVER-80270</key>
            <summary>Test new evergreen function var behavior</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="trevor.guidry@mongodb.com">Trevor Guidry</assignee>
                                    <reporter username="trevor.guidry@mongodb.com">Trevor Guidry</reporter>
                        <labels>
                    </labels>
                <created>Mon, 21 Aug 2023 14:52:33 +0000</created>
                <updated>Sun, 29 Oct 2023 21:17:17 +0000</updated>
                            <resolved>Tue, 29 Aug 2023 20:16:10 +0000</resolved>
                                                    <fixVersion>7.1.0-rc0</fixVersion>
                    <fixVersion>7.0.3</fixVersion>
                    <fixVersion>6.0.12</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="5770737" author="xgen-internal-githook" created="Wed, 11 Oct 2023 15:30:42 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Trevor Guidry&apos;, &apos;email&apos;: &apos;trevor.guidry@mongodb.com&apos;, &apos;username&apos;: &apos;&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-80270&quot; title=&quot;Test new evergreen function var behavior&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-80270&quot;&gt;&lt;del&gt;SERVER-80270&lt;/del&gt;&lt;/a&gt; support evergreen unset function vars&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 89b9f6ce244782328b79ff3e874ad117b767543d)&lt;br/&gt;
Branch: v6.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/40e6dcd1069fe3edcc6e5c3380637d0665570323&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/40e6dcd1069fe3edcc6e5c3380637d0665570323&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5770736" author="xgen-internal-githook" created="Wed, 11 Oct 2023 15:30:02 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Trevor Guidry&apos;, &apos;email&apos;: &apos;trevor.guidry@mongodb.com&apos;, &apos;username&apos;: &apos;&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-80270&quot; title=&quot;Test new evergreen function var behavior&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-80270&quot;&gt;&lt;del&gt;SERVER-80270&lt;/del&gt;&lt;/a&gt; support evergreen unset function vars&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 89b9f6ce244782328b79ff3e874ad117b767543d)&lt;br/&gt;
Branch: v7.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0c8bcddbbc9c885e3da8649358b275635adfa474&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0c8bcddbbc9c885e3da8649358b275635adfa474&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5658140" author="xgen-internal-githook" created="Thu, 24 Aug 2023 23:50:47 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Trevor Guidry&apos;, &apos;email&apos;: &apos;trevor.guidry@mongodb.com&apos;, &apos;username&apos;: &apos;&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-80270&quot; title=&quot;Test new evergreen function var behavior&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-80270&quot;&gt;&lt;del&gt;SERVER-80270&lt;/del&gt;&lt;/a&gt; support evergreen unset function vars&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/89b9f6ce244782328b79ff3e874ad117b767543d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/89b9f6ce244782328b79ff3e874ad117b767543d&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25578"><![CDATA[v7.0]]></customfieldvalue>
    <customfieldvalue key="23470"><![CDATA[v6.0]]></customfieldvalue>
    <customfieldvalue key="21777"><![CDATA[v5.0]]></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>Thu, 24 Aug 2023 15:13:14 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        17 weeks 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_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>
                            17 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>162.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>trevor.guidry@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i2n4f3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i255tc:</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|i2mqkf:</customfieldvalue>

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