Issue #6728 - QUIC and HTTP/3

- Giving up on trying to get Jenkins run UDP/QUIC/HTTP3 load tests.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2021-11-09 13:02:58 +01:00
parent a587b42ba7
commit b9d63ef10e
3 changed files with 39 additions and 35 deletions

60
Jenkinsfile vendored
View File

@ -7,42 +7,42 @@ pipeline {
stages {
stage("Parallel Stage") {
parallel {
// stage("Build / Test - JDK11") {
// agent { node { label 'linux' } }
// steps {
// container('jetty-build') {
// timeout( time: 120, unit: 'MINUTES' ) {
// mavenBuild( "jdk11", "clean install -Perrorprone", "maven3")
// // Collect up the jacoco execution results (only on main build)
// jacoco inclusionPattern: '**/org/eclipse/jetty/**/*.class',
// exclusionPattern: '' +
// // build tools
// '**/org/eclipse/jetty/ant/**' + ',**/org/eclipse/jetty/maven/**' +
// ',**/org/eclipse/jetty/jspc/**' +
// // example code / documentation
// ',**/org/eclipse/jetty/embedded/**' + ',**/org/eclipse/jetty/asyncrest/**' +
// ',**/org/eclipse/jetty/demo/**' +
// // special environments / late integrations
// ',**/org/eclipse/jetty/gcloud/**' + ',**/org/eclipse/jetty/infinispan/**' +
// ',**/org/eclipse/jetty/osgi/**' +
// ',**/org/eclipse/jetty/http/spi/**' +
// // test classes
// ',**/org/eclipse/jetty/tests/**' + ',**/org/eclipse/jetty/test/**',
// execPattern: '**/target/jacoco.exec',
// classPattern: '**/target/classes',
// sourcePattern: '**/src/main/java'
// recordIssues id: "jdk11", name: "Static Analysis jdk11", aggregatingResults: true, enabledForFailure: true, tools: [mavenConsole(), java(), checkStyle(), spotBugs(), pmdParser(), errorProne()]
// }
// }
// }
// }
stage("Build / Test - JDK11") {
agent { node { label 'linux' } }
steps {
container('jetty-build') {
timeout( time: 120, unit: 'MINUTES' ) {
mavenBuild( "jdk11", "clean install -Perrorprone", "maven3")
// Collect up the jacoco execution results (only on main build)
jacoco inclusionPattern: '**/org/eclipse/jetty/**/*.class',
exclusionPattern: '' +
// build tools
'**/org/eclipse/jetty/ant/**' + ',**/org/eclipse/jetty/maven/**' +
',**/org/eclipse/jetty/jspc/**' +
// example code / documentation
',**/org/eclipse/jetty/embedded/**' + ',**/org/eclipse/jetty/asyncrest/**' +
',**/org/eclipse/jetty/demo/**' +
// special environments / late integrations
',**/org/eclipse/jetty/gcloud/**' + ',**/org/eclipse/jetty/infinispan/**' +
',**/org/eclipse/jetty/osgi/**' +
',**/org/eclipse/jetty/http/spi/**' +
// test classes
',**/org/eclipse/jetty/tests/**' + ',**/org/eclipse/jetty/test/**',
execPattern: '**/target/jacoco.exec',
classPattern: '**/target/classes',
sourcePattern: '**/src/main/java'
recordIssues id: "jdk11", name: "Static Analysis jdk11", aggregatingResults: true, enabledForFailure: true, tools: [mavenConsole(), java(), checkStyle(), spotBugs(), pmdParser(), errorProne()]
}
}
}
}
stage("Build / Test - JDK17") {
agent { node { label 'linux' } }
steps {
container( 'jetty-build' ) {
timeout( time: 120, unit: 'MINUTES' ) {
mavenBuild( "jdk17", "clean install -Dspotbugs.skip=true -Djacoco.skip=true -am -pl :test-http-client-transport -Dtest=HttpClientLoadTest", "maven3")
mavenBuild( "jdk17", "clean install -Dspotbugs.skip=true -Djacoco.skip=true", "maven3")
recordIssues id: "jdk17", name: "Static Analysis jdk17", aggregatingResults: true, enabledForFailure: true, tools: [mavenConsole(), java(), checkStyle(), spotBugs(), pmdParser()]
}
}

View File

@ -80,7 +80,9 @@ public class HttpClientLoadTest extends AbstractTest<HttpClientLoadTest.LoadTran
@ArgumentsSource(TransportProvider.class)
public void testIterative(Transport transport) throws Exception
{
Assumptions.assumeTrue(transport == Transport.H3);
// TODO: cannot run HTTP/3 (or UDP) in Jenkins.
if ("ci".equals(System.getProperty("env")))
Assumptions.assumeTrue(transport != Transport.H3);
init(transport);
scenario.start(new LoadHandler(), client ->
@ -95,14 +97,14 @@ public class HttpClientLoadTest extends AbstractTest<HttpClientLoadTest.LoadTran
// At least 25k requests to warmup properly (use -XX:+PrintCompilation to verify JIT activity)
int runs = 1;
int iterations = 50;
int iterations = 100;
for (int i = 0; i < runs; ++i)
{
run(transport, iterations);
}
// Re-run after warmup
iterations = 100;
iterations = 250;
for (int i = 0; i < runs; ++i)
{
run(transport, iterations);
@ -115,7 +117,9 @@ public class HttpClientLoadTest extends AbstractTest<HttpClientLoadTest.LoadTran
@ArgumentsSource(TransportProvider.class)
public void testConcurrent(Transport transport) throws Exception
{
Assumptions.assumeTrue(transport == Transport.H3);
// TODO: cannot run HTTP/3 (or UDP) in Jenkins.
if ("ci".equals(System.getProperty("env")))
Assumptions.assumeTrue(transport != Transport.H3);
init(transport);
scenario.start(new LoadHandler(), client ->

View File

@ -9,4 +9,4 @@ org.eclipse.jetty.http2.hpack.LEVEL=INFO
#org.eclipse.jetty.http3.LEVEL=DEBUG
org.eclipse.jetty.http3.qpack.LEVEL=INFO
#org.eclipse.jetty.quic.LEVEL=DEBUG
org.eclipse.jetty.quic.quiche.LEVEL=DEBUG
org.eclipse.jetty.quic.quiche.LEVEL=INFO