Excluding Stress/Slow tests from normal CI builds. (#8314)

Nightly CI builds still run them.

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
Joakim Erdfelt 2022-07-21 02:40:26 -05:00 committed by GitHub
parent 5f93e02a6d
commit cbed42491a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -109,7 +109,7 @@ def mavenBuild(jdk, cmdline, mvnName) {
"MAVEN_OPTS=-Xms2g -Xmx4g -Djava.awt.headless=true"]) {
configFileProvider(
[configFile(fileId: 'oss-settings.xml', variable: 'GLOBAL_MVN_SETTINGS')]) {
sh "mvn --no-transfer-progress -s $GLOBAL_MVN_SETTINGS -Dmaven.repo.local=.repository -Pci -V -B -e -Djetty.testtracker.log=true $cmdline"
sh "mvn --no-transfer-progress -s $GLOBAL_MVN_SETTINGS -Dmaven.repo.local=.repository -Pci -DexcludedGroups=\"stress, slow\" -V -B -e -Djetty.testtracker.log=true $cmdline"
}
}
}

View File

@ -274,6 +274,7 @@ public class SocketChannelEndPointTest
}
}
@Tag("stress")
@ParameterizedTest
@MethodSource("scenarios")
public void testStress(Scenario scenario) throws Exception

View File

@ -22,6 +22,7 @@ import java.util.concurrent.atomic.AtomicInteger;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import static org.hamcrest.MatcherAssert.assertThat;
@ -290,6 +291,7 @@ public class ReservedThreadExecutorTest
}
}
@Tag("stress")
@Test
public void stressTest() throws Exception
{

View File

@ -55,6 +55,7 @@ import org.eclipse.jetty.util.IO;
import org.eclipse.jetty.util.ssl.SslContextFactory;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
@ -288,6 +289,7 @@ public class HttpInputIntegrationTest
assertTrue(response.contains("sum=" + sum));
}
@Tag("stress")
@ParameterizedTest(name = "[{index}] STRESS {0}")
@MethodSource("scenarios")
public void testStress(Scenario scenario) throws Exception