<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:01:21 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>[JAVA-4145] Slow tests not running as expected</title>
                <link>https://jira.mongodb.org/browse/JAVA-4145</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;ul&gt;
	&lt;li&gt;&lt;b&gt;Junit4&lt;/b&gt;&lt;br/&gt;
  The 3 Junit4 tests using &lt;tt&gt;@Tag(&quot;Slow&quot;)&lt;/tt&gt; are always run (as @Tag is a junit5 annotation)&lt;/li&gt;
	&lt;li&gt;&lt;b&gt;Spock&lt;/b&gt;&lt;br/&gt;
  The gradle configuration currently only runs &quot;normal&quot; tests for spock.&lt;br/&gt;
  Looks to using a single system property to determine which tests to include / exclude&lt;/li&gt;
&lt;/ul&gt;

</description>
                <environment></environment>
        <key id="1706873">JAVA-4145</key>
            <summary>Slow tests not running as expected</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</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="ross@mongodb.com">Ross Lawley</assignee>
                                    <reporter username="ross@mongodb.com">Ross Lawley</reporter>
                        <labels>
                    </labels>
                <created>Fri, 7 May 2021 16:52:33 +0000</created>
                <updated>Sat, 28 Oct 2023 11:21:15 +0000</updated>
                            <resolved>Tue, 10 Aug 2021 10:20:17 +0000</resolved>
                                                    <fixVersion>4.4.0</fixVersion>
                                    <component>Test Coverage</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3991870" author="xgen-internal-githook" created="Tue, 10 Aug 2021 10:19:18 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Ross Lawley&apos;, &apos;email&apos;: &apos;ross.lawley@gmail.com&apos;, &apos;username&apos;: &apos;rozza&apos;}
&lt;p&gt;Message: Build: Fix slow tests (#773)&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-4145&quot; title=&quot;Slow tests not running as expected&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-4145&quot;&gt;&lt;del&gt;JAVA-4145&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/fb6388caac5b7cd7e451012be91a7eb02d7db76f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/fb6388caac5b7cd7e451012be91a7eb02d7db76f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3983151" author="ross@10gen.com" created="Thu, 5 Aug 2021 15:22:51 +0000"  >&lt;p&gt;PR: &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/pull/773&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/pull/773&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3960103" author="JIRAUSER1258163" created="Fri, 23 Jul 2021 15:56:15 +0000"  >&lt;p&gt;Of all slow tests, only those marked with JUnit 5 &lt;tt&gt;@org.junit.jupiter.api.Tag(&quot;Slow&quot;)&lt;/tt&gt; are run: &lt;a href=&quot;https://spruce.mongodb.com/task/mongo_java_driver_tests_slow__version~4.2_os~linux_topology~replicaset_auth~noauth_ssl~nossl_jdk~jdk8_slow_test_patch_1b02a9dcf0ab357c26f5e938808a11a6d5604407_60f8ed54a4cf472373ac0e58_21_07_22_04_00_21/tests?execution=0&amp;amp;page=0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://spruce.mongodb.com/task/mongo_java_driver_tests_slow__version~4.2_os~linux_topology~replicaset_auth~noauth_ssl~nossl_jdk~jdk8_slow_test_patch_1b02a9dcf0ab357c26f5e938808a11a6d5604407_60f8ed54a4cf472373ac0e58_21_07_22_04_00_21/tests?execution=0&amp;amp;page=0&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;No Spock tests marked with &lt;tt&gt;@util.spock.annotations.Slow&lt;/tt&gt; are run by the Gradle &lt;tt&gt;:testSlowOnly&lt;/tt&gt; task, but they are correctly excluded by the Gradle &lt;tt&gt;:test&lt;/tt&gt; task. This is weird, given that the &lt;tt&gt;OnlySlow.groovy&lt;/tt&gt; Spock config is clearly picked up, as we can see its &lt;em&gt;&quot;Only including Slow Spock tests&quot;&lt;/em&gt; message in the logs. This may be related to this &lt;a href=&quot;https://github.com/junit-team/junit5/issues/2563&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;bug report&lt;/a&gt; which was closed as &lt;em&gt;&quot;works as designed&quot;&lt;/em&gt; with a link to &lt;a href=&quot;https://github.com/spockframework/spock/issues/1288#issuecomment-791901698&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/spockframework/spock/issues/1288#issuecomment-791901698&lt;/a&gt;, where eventually people suggest to have two different tasks for running Spock and JUnit tests.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hyu1p3:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>