Skip to content

Quarantine a bunch of flaky tests #9751

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

Merged
merged 21 commits into from
Apr 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
769f6ae
quarantine ClientDisconnectTests.ReaderThrowsCancelledException
analogrelay Apr 25, 2019
05882b2
update quarantine for RequestStart
analogrelay Apr 25, 2019
60a4446
updating quarantine references for some HttpSys flaky testss
analogrelay Apr 25, 2019
b34685d
update quarantine on HttpSys HttpsTests
analogrelay Apr 25, 2019
0b02be5
updating quarantine on StartsWithDotnetInstallLocation
analogrelay Apr 25, 2019
c2443cb
updating quarantine on CheckMofFile
analogrelay Apr 25, 2019
0c8b507
update issue link for skipped IIS test
analogrelay Apr 25, 2019
95d8d30
quarantine WritesSucceedAfterClientDisconnect
analogrelay Apr 25, 2019
95d7f84
updating quarantine reference for AppCanHandleClientAbortingConnectio…
analogrelay Apr 25, 2019
3452c08
updating quarantine reference for ClientCertificateValidationGetsCall…
analogrelay Apr 25, 2019
5666c14
changing GeneratedCodeIsUpToDate from skipped to quarantined
analogrelay Apr 25, 2019
dd1e40e
marking AppCanHandleClientAbortingConnectionMidRequest as quarantined
analogrelay Apr 25, 2019
eb5f28d
marking ValidationFailureRejectsConnection as quarantined
analogrelay Apr 25, 2019
fcb9157
changing h2spec tests from skipped on helix to quarantined
analogrelay Apr 25, 2019
6f755bc
update quarantine reference for LoggingConnectionAdapterCanBeAddedBef…
analogrelay Apr 25, 2019
9ddb171
quarantining Caching_JustPublic_NotCached
analogrelay Apr 25, 2019
4734b81
update quarantine reference for ErrorDuringPollWillCloseConnection
analogrelay Apr 25, 2019
35e3474
changing WebHostStopAsyncUsesDefaultTimeoutIfNoTokenProvided to quara…
analogrelay Apr 25, 2019
662f900
namespace fix-up
analogrelay Apr 25, 2019
d3fca54
what even is flakty
analogrelay Apr 25, 2019
6bc71fc
fix build issues
analogrelay Apr 25, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Hosting/Hosting/test/Internal/HostingEventSourceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Diagnostics.Tracing;
using System.Reflection;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Testing;
using Microsoft.AspNetCore.Testing.xunit;
using Xunit;

Expand Down Expand Up @@ -108,7 +109,7 @@ public static TheoryData<DefaultHttpContext, string[]> RequestStartData

[Theory]
[MemberData(nameof(RequestStartData))]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2040", "All")]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2230", FlakyOn.All)]
public void RequestStart(DefaultHttpContext httpContext, string[] expected)
{
// Arrange
Expand Down
3 changes: 2 additions & 1 deletion src/Hosting/Hosting/test/WebHostTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using Microsoft.AspNetCore.Hosting.Server.Features;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore.Testing;
using Microsoft.AspNetCore.Testing.xunit;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
Expand Down Expand Up @@ -238,7 +239,7 @@ public async Task WebHostStopAsyncUsesDefaultTimeoutIfGivenTokenDoesNotFire()
}

[ConditionalFact]
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/7291
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2244", FlakyOn.Helix.All)]
public async Task WebHostStopAsyncUsesDefaultTimeoutIfNoTokenProvided()
{
var data = new Dictionary<string, string>
Expand Down
10 changes: 9 additions & 1 deletion src/Servers/HttpSys/test/FunctionalTests/HttpsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,18 @@
using Microsoft.AspNetCore.Connections.Features;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore.Testing;
using Microsoft.AspNetCore.Testing.xunit;
using Xunit;

namespace Microsoft.AspNetCore.Server.HttpSys
{
[SkipOnHelix] // https://github.com/aspnet/AspNetCore-Internal/issues/1816
// Flaky doesn't support classes :(
// https://github.com/aspnet/Extensions/issues/1568
public class HttpsTests
{
[ConditionalFact]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2209", FlakyOn.Helix.All)]
public async Task Https_200OK_Success()
{
using (Utilities.CreateDynamicHttpsServer(out var address, httpContext =>
Expand All @@ -34,6 +37,7 @@ public async Task Https_200OK_Success()
}

[ConditionalFact]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2209", FlakyOn.Helix.All)]
public async Task Https_SendHelloWorld_Success()
{
using (Utilities.CreateDynamicHttpsServer(out var address, httpContext =>
Expand All @@ -49,6 +53,7 @@ public async Task Https_SendHelloWorld_Success()
}

[ConditionalFact]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2209", FlakyOn.Helix.All)]
public async Task Https_EchoHelloWorld_Success()
{
using (Utilities.CreateDynamicHttpsServer(out var address, async httpContext =>
Expand All @@ -66,6 +71,7 @@ public async Task Https_EchoHelloWorld_Success()
}

[ConditionalFact]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2209", FlakyOn.Helix.All)]
public async Task Https_ClientCertNotSent_ClientCertNotPresent()
{
using (Utilities.CreateDynamicHttpsServer(out var address, async httpContext =>
Expand Down Expand Up @@ -102,6 +108,7 @@ public async Task Https_ClientCertRequested_ClientCertPresent()
}

[ConditionalFact]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2209", FlakyOn.Helix.All)]
[OSDontSkipCondition(OperatingSystems.Windows, WindowsVersions.Win7, WindowsVersions.Win2008R2)]
public async Task Https_SkipsITlsHandshakeFeatureOnWin7()
{
Expand All @@ -124,6 +131,7 @@ public async Task Https_SkipsITlsHandshakeFeatureOnWin7()
}

[ConditionalFact]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2209", FlakyOn.Helix.All)]
[OSSkipCondition(OperatingSystems.Windows, WindowsVersions.Win7, WindowsVersions.Win2008R2)]
public async Task Https_SetsITlsHandshakeFeature()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ public async Task RequestBody_ReadAsyncPartialBodyAndCancel_Canceled()
}

[ConditionalFact]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2206", FlakyOn.All)]
public async Task RequestBody_ReadAsyncPartialBodyAndExpiredTimeout_Canceled()
{
StaggardContent content = new StaggardContent();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public async Task Caching_NoCacheControl_NotCached()
}

[ConditionalFact]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2135", FlakyOn.All)]
public async Task Caching_JustPublic_NotCached()
{
var requestCount = 1;
Expand Down Expand Up @@ -86,7 +87,7 @@ public async Task Caching_WithoutContentType_NotCached()
}

[ConditionalFact]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/1826", FlakyOn.All)]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2207", FlakyOn.All)]
public async Task Caching_WithoutContentType_Cached_OnWin7AndWin2008R2()
{
if (Utilities.IsWin8orLater)
Expand Down Expand Up @@ -237,7 +238,7 @@ public async Task Caching_DisallowedResponseHeaders_NotCached(string headerName)
[ConditionalTheory]
[InlineData("0")]
[InlineData("-1")]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/1826", FlakyOn.All)]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2208", FlakyOn.All)]
public async Task Caching_InvalidExpires_NotCached(string expiresValue)
{
var requestCount = 1;
Expand Down Expand Up @@ -378,7 +379,7 @@ public async Task Caching_SendFileWithFullContentLength_Cached()
}

[ConditionalFact]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/1826", FlakyOn.All)]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2209", FlakyOn.All)]
public async Task Caching_VariousStatusCodes_Cached()
{
var requestCount = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public async Task AppOfflineDroppedWhileSiteFailedToStartInShim_AppOfflineServed
DeletePublishOutput(deploymentResult);
}

[ConditionalFact(Skip = "https://github.com/aspnet/IISIntegration/issues/933")]
[ConditionalFact(Skip = "https://github.com/aspnet/AspNetCore/issues/3835")]
public async Task AppOfflineDroppedWhileSiteFailedToStartInRequestHandler_SiteStops_InProcess()
{
var deploymentResult = await DeployApp(HostingModel.InProcess);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ public async Task StartsWithDotnetOnThePath(string path)
Assert.Equal(1, TestSink.Writes.Count(w => w.Message.Contains("Invoking where.exe to find dotnet.exe")));
}

[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/7972
[ConditionalTheory]
[InlineData(RuntimeArchitecture.x64)]
[InlineData(RuntimeArchitecture.x86)]
[SkipIfNotAdmin]
[RequiresNewShim]
[RequiresIIS(IISCapability.PoolEnvironmentVariables)]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2221", FlakyOn.Helix.All)]
public async Task StartsWithDotnetInstallLocation(RuntimeArchitecture runtimeArchitecture)
{
var deploymentParameters = Fixture.GetBaseDeploymentParameters();
Expand Down Expand Up @@ -651,7 +651,7 @@ public async Task ExceptionIsLoggedToEventLogDoesNotWriteToResponse()

private static void VerifyDotnetRuntimeEventLog(IISDeploymentResult deploymentResult)
{
var entries = GetEventLogsFromDotnetRuntime(deploymentResult);
var entries = GetEventLogsFromDotnetRuntime(deploymentResult);

var expectedRegex = new Regex("Exception Info: System\\.InvalidOperationException:", RegexOptions.Singleline);
var matchedEntries = entries.Where(entry => expectedRegex.IsMatch(entry.Message)).ToArray();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ public async Task DebugLogsAreWrittenToEventLog(TestVariant variant)
}

[ConditionalTheory]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2200", FlakyOn.All)]
[MemberData(nameof(TestVariants))]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2200", FlakyOn.All)]
public async Task CheckUTF8File(TestVariant variant)
{
var path = "CheckConsoleFunctions";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class MofFileTests
[ConditionalFact]
[OSSkipCondition(OperatingSystems.Linux | OperatingSystems.MacOSX)]
[RequiresIIS(IISCapability.TracingModule)]
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/7972
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2222", FlakyOn.Helix.All)]
public void CheckMofFile()
{
var path = Path.Combine(TestPathUtilities.GetSolutionRootDirectory("IISIntegration"), "aspnetcoremodulev2", "aspnetcore", "ancm.mof");
Expand Down
3 changes: 2 additions & 1 deletion src/Servers/IIS/IIS/test/IIS.Tests/ClientDisconnectTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests
public class ClientDisconnectTests : StrictTestServerTests
{
[ConditionalFact]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2358", FlakyOn.All)]
public async Task WritesSucceedAfterClientDisconnect()
{
var requestStartedCompletionSource = CreateTaskCompletionSource();
Expand Down Expand Up @@ -178,7 +179,7 @@ public async Task WriterThrowsCancelledException()
}

[ConditionalFact]
[Repeat(100)]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/1798", FlakyOn.All)]
public async Task ReaderThrowsCancelledException()
{
var requestStartedCompletionSource = CreateTaskCompletionSource();
Expand Down
5 changes: 3 additions & 2 deletions src/Servers/Kestrel/Kestrel/test/GeneratedCodeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
using System.IO;
using System.Linq;
using System.Reflection;
using Microsoft.AspNetCore.Testing;
using Microsoft.AspNetCore.Testing.xunit;
using Xunit;

namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests
{
public class GeneratedCodeTests
{
[ConditionalFact]
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/6720
[ConditionalFact]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2223", FlakyOn.Helix.All)]
public void GeneratedCodeIsUpToDate()
{
var repositoryRoot = typeof(GeneratedCodeTests).Assembly.GetCustomAttributes<AssemblyMetadataAttribute>().First(f => string.Equals(f.Key, "RepositoryRoot", StringComparison.OrdinalIgnoreCase)).Value;
Expand Down
4 changes: 2 additions & 2 deletions src/Servers/Kestrel/test/FunctionalTests/RequestTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public Task RemoteIPv4Address()
[ConditionalFact]
[IPv6SupportedCondition]
#if LIBUV
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/8109
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/1977", FlakyOn.Helix.All)] // https://github.com/aspnet/AspNetCore/issues/8109
#endif
public Task RemoteIPv6Address()
{
Expand Down Expand Up @@ -796,7 +796,7 @@ await connection.Send(

[Theory]
#if LIBUV
[SkipOnHelix]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/1971", FlakyOn.Helix.All)]
#endif
[MemberData(nameof(ConnectionAdapterData))]
public async Task AppCanHandleClientAbortingConnectionMidRequest(ListenOptions listenOptions)
Expand Down
2 changes: 1 addition & 1 deletion src/Servers/Kestrel/test/FunctionalTests/ResponseTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ await connection.Send(
}

[Theory]
[Flaky("https://github.com/aspnet/AspNetCore/issues/7342", FlakyOn.All)]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/1972", FlakyOn.All)]
[MemberData(nameof(ConnectionAdapterData))]
public async Task AppCanHandleClientAbortingConnectionMidResponse(ListenOptions listenOptions)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ public async Task DoesNotSupportTls10()
}

[Theory]
[Flaky("https://github.com/aspnet/AspNetCore/issues/7265", FlakyOn.All)]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/1976", FlakyOn.All)]
[InlineData(ClientCertificateMode.AllowCertificate)]
[InlineData(ClientCertificateMode.RequireCertificate)]
public async Task ClientCertificateValidationGetsCalledWithNotNullParameters(ClientCertificateMode mode)
Expand Down Expand Up @@ -485,7 +485,7 @@ public async Task ClientCertificateValidationGetsCalledWithNotNullParameters(Cli
}

[ConditionalTheory]
[SkipOnHelix]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/1950", FlakyOn.Helix.All)]
[InlineData(ClientCertificateMode.AllowCertificate)]
[InlineData(ClientCertificateMode.RequireCertificate)]
public async Task ValidationFailureRejectsConnection(ClientCertificateMode mode)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.InMemory.FunctionalTests
public class LoggingConnectionAdapterTests : LoggedTest
{
[Fact]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/1753", FlakyOn.Helix.All)]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2276", FlakyOn.Helix.All)]
public async Task LoggingConnectionAdapterCanBeAddedBeforeAndAfterHttpsAdapter()
{
await using (var server = new TestServer(context =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class H2SpecTests : LoggedTest
{
[ConditionalTheory]
[MemberData(nameof(H2SpecTestCases))]
[SkipOnHelix] // https://github.com/aspnet/AspNetCore/issues/7299
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2225", FlakyOn.Helix.All)]
public async Task RunIndividualTestCase(H2SpecTestCase testCase)
{
var hostBuilder = new WebHostBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2077,7 +2077,7 @@ public async Task LongPollingCanPollIfWritePipeHasBackpressure()
}

[Fact]
[Flaky("https://github.com/aspnet/AspNetCore/issues/8138", FlakyOn.All)]
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/1975", FlakyOn.All)]
public async Task ErrorDuringPollWillCloseConnection()
{
bool ExpectedErrors(WriteContext writeContext)
Expand Down