-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Review disabled tests in Jetty 9.4.x #5684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The I see a few And there's also Assumptions that disable tests based on runtime criteria as well. (a JVM that doesn't support ALPN for example) |
You can use the "skipped" column (sort by it) on the latest test run to know which modules to focus first on. Example: https://jenkins.webtide.net/job/jetty.project/job/jetty-9.4.x/1863/testReport/ (click the "Skip" column heading once) |
@janbartel I edited your issue to make it a task list that any of us can check off when we've reviewed those @disabled entries. |
The ones labelled |
Signed-off-by: Jan Bartel <janb@webtide.com>
Signed-off-by: Jan Bartel <janb@webtide.com>
* Fixes for #5684 Simplified CyclicTimeoutTest#testBusy InclusiveByteRange clears range list on errors InclusiveByteRange is forgiving of tab separators and leading 0s Signed-off-by: Greg Wilkins <gregw@webtide.com>
Signed-off-by: Jan Bartel <janb@webtide.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
+ Assumption based on existence of possible DNS Hijacking + Alternate logic for client side protocol and cipher suite mismatch behavior on server side based on client side protocol existence of TLSv1.3 Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
…-tests Issue #5684 - Client and HttpServerTestBase disabled test cleanup
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
+ Migrate from @DisabledOnOs(WINDOWS) to assumptions on capabilities instead. + Fix other outstanding windows testing issues. Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
+ Cleanup FileBufferedResponseHandlerTest expectations on Windows. Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
+ Windows TLS behaviors between OpenJDK 8 and OpendJDK 11 and even between TLS versions make the test unreliable. Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
If we restrict to TLSv1.2 this passes. But on TLSv1.3 is a behavior differences between Linux and Windows. On Linux TLSv.13 on client side will always return a javax.net.ssl.SSLHandshakeException in those test cases that expect it. However, on Windows, Only the TLSv1.2 implementation will return a javax.net.ssl.SSLHandshakeException, All other TLS versions will result in a javax.net.ssl.SSLException: Software caused connection abort: recv failed Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
+ Not possible to create all of these streams. Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Using unique workdir per testcase. Don't expect to delete between tests (not supported on windows due to file locking anyway) Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
+ Migrate from @DisabledOnOs(WINDOWS) to assumptions on capabilities instead. + Fix other outstanding windows testing issues. + Cleanup FileBufferedResponseHandlerTest expectations on Windows. + PathWatcher scan interval is variable on windows + If unable to start testcase based on assumption, the stop shouldn't fail testcase + Increase various wait timeouts + Make tests less strict due to system speed issues + Disable Sni tests due to TLS behaviors differences in Windows + Windows TLSv1.3 seems to introduce this difference + If we restrict to TLSv1.2 this passes. + On Linux TLSv.13 on client side will always return a + javax.net.ssl.SSLHandshakeException in those test cases that expect it. + However, on Windows, Only the TLSv1.2 implementation will return a javax.net.ssl.SSLHandshakeException, + All other TLS versions on Windows will result in a + javax.net.ssl.SSLException: Software caused connection abort: recv failed + Disable ConcurrentStreamCreationTest + Not possible to create all of these streams. + Fixing DeploymentTempDirTest + Using unique workdir per testcase. + Don't expect to delete files / directories between tests (not supported on windows due to file locking anyway) Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Issue #5684 - Window's test overhaul + Migrate from @DisabledOnOs(WINDOWS) to assumptions on capabilities instead. + Fix other outstanding windows testing issues. + Cleanup FileBufferedResponseHandlerTest expectations on Windows. + PathWatcher scan interval is variable on windows + If unable to start testcase based on assumption, the stop shouldn't fail testcase + Increase various wait timeouts + Make tests less strict due to system speed issues + Disable Sni tests due to TLS behaviors differences in Windows + Windows TLSv1.3 seems to introduce this difference + If we restrict to TLSv1.2 this passes. + On Linux TLSv.13 on client side will always return a + javax.net.ssl.SSLHandshakeException in those test cases that expect it. + However, on Windows, Only the TLSv1.2 implementation will return a javax.net.ssl.SSLHandshakeException, + All other TLS versions on Windows will result in a + javax.net.ssl.SSLException: Software caused connection abort: recv failed + Disable ConcurrentStreamCreationTest + Not possible to create all of these streams. + Fixing DeploymentTempDirTest + Using unique workdir per testcase. + Don't expect to delete files / directories between tests (not supported on windows due to file locking anyway) + Fixing line ending difference on windows + InvalidPathException is a 404 Not Found + Cannot reuse test directory between runs due to memory mapped files that are still in use from previous run. + java.nio.file.FileSystemException: C:\code\jetty.project\jetty-webapp\target\tests\welcome#\index.html: The requested operation cannot be performed on a file with a user-mapped section open. at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92) at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103) at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108) at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:235) at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:478) at java.base/java.nio.file.Files.newOutputStream(Files.java:220) at org.eclipse.jetty.webapp/org.eclipse.jetty.webapp.WebAppDefaultServletTest.prepareServer(WebAppDefaultServletTest.java:84) + As is typical on windows, we are often unable to delete a file due to file locking issues. + Use a unique resource base between tests. This is to avoid file locking behaviors that prevent the resource base from being reused too quickly on windows. + Prevent test run if symlinks not supported + Allowing for Windows slosh char as well in asserts + SelectorUtils is File.separator dependent + Regex is now FS.separator independent + Using SelectorUtils from plexus correctly for include/exclude + Turning off mapped files for testing reasons. + Fix and re-enable RFC2616NIOHttpsTest + Issue #6552 - Fix test failures due to slf4j dep + Issue #6552 - upgrade testcontainers + Issue #6552 - move to assumption based docker existence + Issue #6552 - Fix enforcer rule violation on jna. Addresses the following side effect of upgrading testcontainers. [WARNING] Rule 3: org.apache.maven.plugins.enforcer.RequireUpperBoundDeps failed with message: Failed while enforcing RequireUpperBoundDeps. The error(s) are [ Require upper bound dependencies error for net.java.dev.jna:jna:5.6.0 paths to dependency are: +-org.eclipse.jetty:infinispan-remote-query:10.0.7-SNAPSHOT +-org.testcontainers:testcontainers:1.16.0 +-com.github.docker-java:docker-java-transport-zerodep:3.2.11 +-net.java.dev.jna:jna:5.6.0 (managed) <-- net.java.dev.jna:jna:5.8.0 + use annotation to disable test when docker not available and needed + Disabling FileSessionDistributionTests.stopRestartWebappTestSessionContentSaved on Windows + Using TLS basic + Programmatic removal of memory mapped behavior during testing + Fixing slf4j warning Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com> Co-authored-by: Olivier Lamy <oliver.lamy@gmail.com>
This issue has been automatically marked as stale because it has been a |
This issue has been closed due to it having no activity. |
We should only have very few disabled tests, and they should be disabled preferably with a condition.
See Issue #6327 for tests disabled in Jetty 10.0.x
This is the list of
@Disabled
for jetty-9.4.x:@Disabled
@Disabled
@Disabled("No longer viable, TLS protocol behavior changed in 8u272")
@DisabledIfSystemProperty(named = "env", matches = "ci") // TODO: SLOW, needs review
@DisabledIfSystemProperty(named = "env", matches = "ci") // TODO: SLOW, needs review
@DisabledIfSystemProperty(named = "env", matches = "ci") // TODO: SLOW, needs review
@Disabled
@DisabledIfSystemProperty(named = "env", matches = "ci") // TODO: SLOW, needs review
@Disabled("Since 8u272 this is no longer valid")
@DisabledOnOs(WINDOWS) // Don't run on Windows (buggy JVM)
@DisabledOnOs(WINDOWS) // Don't run on Windows (buggy JVM)
@DisabledOnJre({JRE.JAVA_8, JRE.JAVA_9, JRE.JAVA_10})
@DisabledOnOs(WINDOWS)
@Disabled("See issue #1200")
@Disabled("Relies on an external server")
@DisabledIfSystemProperty(named = "env", matches = "ci") // TODO: SLOW, needs review
@Disabled
@Disabled
@Disabled
@DisabledIfSystemProperty(named = "env", matches = "ci") // TODO: SLOW, needs review
@Disabled
@Disabled
@Disabled
@Disabled("Not working in jetty-9")
@Disabled("Not working in jetty-9")
@DisabledOnOs(MAC)
@DisabledOnOs({MAC, WINDOWS}) // File is locked on OS, cannot change.
@Disabled
@DisabledIfSystemProperty(named = "env", matches = "ci") // TODO: SLOW, needs review
@DisabledIfSystemProperty(named = "env", matches = "ci") // TODO: SLOW, needs review
@DisabledIfSystemProperty(named = "env", matches = "ci") // TODO: SLOW, needs review
@Disabled // TODO make more stable
@Disabled // TODO make more stable
@Disabled // TODO make more stable
@Disabled // TODO make more stable
@DisabledOnOs(WINDOWS) // TODO: needs more investigation
@Disabled // TODO disable while #2046 is fixed
@Disabled // TODO disable while #2046 is fixed
@DisabledIfSystemProperty(named = "env", matches = "ci") // TODO: SLOW, needs review
@DisabledIfSystemProperty(named = "env", matches = "ci") // TODO: SLOW, needs review
@DisabledOnJre({JRE.JAVA_8, JRE.JAVA_9, JRE.JAVA_10})
@DisabledOnJre({JRE.JAVA_8, JRE.JAVA_9, JRE.JAVA_10})
@Disabled
@Disabled
@Disabled
@Disabled("not reliable")
@Disabled
@Disabled("See issue #1175")
@Disabled("No longer relevant")
@Disabled("Issue #2626")
@Disabled("Issue #2626")
@Disabled
@DisabledOnOs(MAC) // TODO: needs investigation
@Disabled("Unfixed range bug - Issue #107")
@DisabledIfSystemProperty(named = "env", matches = "ci") // TODO: SLOW, needs review
@DisabledOnJre({JRE.JAVA_8, JRE.JAVA_9, JRE.JAVA_10})
@DisabledOnOs(WINDOWS) // Don't run on Windows (buggy JVM)
@DisabledOnOs(WINDOWS) // Don't run on Windows (buggy JVM)
@Disabled("Override and ignore this test as SSLSocket.shutdownOutput() is not supported, " +
@Disabled
@Disabled
@DisabledOnOs(OS.WINDOWS)
@DisabledOnOs(OS.WINDOWS)
@DisabledOnOs(OS.WINDOWS)
@Disabled
@Disabled
@Disabled("Issue #2627")
@DisabledIfSystemProperty(named = "env", matches = "ci") // TODO: SLOW, needs review
@Disabled
@Disabled("Too noisy for general testing")
@Disabled("Just a bit noisy for general testing")
@Disabled
@DisabledIfSystemProperty(named = "env", matches = "ci") // TODO: SLOW, needs review
@DisabledIfSystemProperty(named = "env", matches = "ci") // TODO: SLOW, needs review
@Disabled("Very simple microbenchmark to compare different writeTo implementations. Only for development thus " +
@DisabledOnJre(JRE.JAVA_8)
@Disabled
@Disabled
@DisabledOnOs(WINDOWS) // TODO: needs review
@DisabledIfSystemProperty(named = "env", matches = "ci") // TODO: SLOW, needs review
@DisabledOnOs(WINDOWS) // TODO: needs review
@DisabledOnJre(JRE.JAVA_8)
@DisabledOnJre(JRE.JAVA_8)
@Disabled
@DisabledOnOs(WINDOWS)
@DisabledOnOs(WINDOWS)
@DisabledOnOs(WINDOWS)
@DisabledOnOs(WINDOWS)
@DisabledOnOs(WINDOWS)
@DisabledOnOs(WINDOWS)
@DisabledOnOs(WINDOWS)
@DisabledOnOs(WINDOWS)
@DisabledOnOs(WINDOWS)
@DisabledOnJre(JRE.JAVA_8)
@Disabled("Not supported on Java 9+ Module API")
@DisabledOnJre(JRE.JAVA_8)
@Disabled("Not supported on Java 9+ Module API")
@DisabledOnJre(JRE.JAVA_8)
@Disabled("Not supported on Java 9+ Module API")
@DisabledOnJre(JRE.JAVA_8)
@DisabledOnJre(JRE.JAVA_8)
@DisabledOnOs(OS.WINDOWS) // this uses forbidden characters on some Windows Environments
@Disabled
@DisabledOnJre(JRE.JAVA_8)
@DisabledOnJre(JRE.JAVA_8)
@DisabledOnJre(JRE.JAVA_8)
@DisabledOnJre(JRE.JAVA_8)
@DisabledOnJre(JRE.JAVA_8)
@Disabled("Not working atm")
@Disabled("flappy test")
@Disabled
@Disabled("Unstable - see Issue #1815")
@Disabled
@Disabled
@DisabledOnJre(JRE.JAVA_8)
@DisabledOnJre(JRE.JAVA_8)
@DisabledOnJre(JRE.JAVA_8)
@DisabledOnJre(JRE.JAVA_8)
@DisabledOnOs(OS.WINDOWS) // jnr not supported on windows
@Disabled
@Disabled
@DisabledIfSystemProperty(named = "env", matches = "ci") // TODO: SLOW, needs review
@DisabledIfSystemProperty(named = "env", matches = "ci") // TODO: SLOW, needs review
@DisabledIfSystemProperty(named = "env", matches = "ci") // TODO: SLOW, needs review
@DisabledIfSystemProperty(named = "env", matches = "ci") // TODO: SLOW, needs review
@DisabledIfSystemProperty(named = "env", matches = "ci") // TODO: SLOW, needs review
@Disabled
@Disabled
@Disabled
@DisabledOnJre(JRE.JAVA_11)
@DisabledOnOs(WINDOWS) // does not support symbolic link
@DisabledOnOs(WINDOWS) // does not support symbolic link
@Disabled("Introduction of fix for realm-less security constraints has rendered this test invalid due to default configuration preventing use of TRACE in webdefault.xml")
@Disabled("TODO")
@Disabled
@Disabled
@Disabled
@DisabledIfSystemProperty(named = "env", matches = "ci") // TODO: SLOW, needs review
@Disabled("Not a test case")
The text was updated successfully, but these errors were encountered: