Skip to content

Commit

Permalink
[preview5] Revert SDK update (#32785)
Browse files Browse the repository at this point in the history
* Revert SDK update
* Disable build of failing proj
* Quarantine 2 tests
* Fixup

- backport of 57b9c13

Co-authored-by: Pranav K <[email protected]>
  • Loading branch information
2 people authored and dougbu committed May 20, 2021
1 parent cb546a1 commit 8087909
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
7 changes: 5 additions & 2 deletions eng/Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,11 @@
$(RepoRoot)src\Components\WebView\Samples\BlazorWinFormsApp\**\*.csproj;
$(RepoRoot)src\Components\WebView\Samples\BlazorWpfApp\**\*.csproj;
" />

<!-- Skipping due to build race conditions for now -->

<!-- Projects won't build consistently. An SDK newer than 6.0.100-preview.5.21230.2 should fix the first.
See https://github.com/dotnet/aspnetcore/pull/32428 and https://github.com/dotnet/aspnetcore/issues/32788. -->
<ProjectToExclude Include="
$(RepoRoot)src\Components\benchmarkapps\Wasm.Performance\TestApp\Wasm.Performance.TestApp.csproj" />
<ProjectToExclude Include="
$(RepoRoot)src/Components/test/E2ETestMigration/Microsoft.AspNetCore.Components.Migration.E2ETests.csproj" />
</ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"sdk": {
"version": "6.0.100-preview.5.21264.3"
"version": "6.0.100-preview.5.21230.2"
},
"tools": {
"dotnet": "6.0.100-preview.5.21264.3",
"dotnet": "6.0.100-preview.5.21230.2",
"runtimes": {
"dotnet/x64": [
"2.1.27",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@implements IDisposable
@inject AuthenticationStateProvider AuthenticationStateProvider

<CascadingValue TValue="Task<AuthenticationState>" Value="@_currentAuthenticationStateTask" ChildContent="@ChildContent" />
<CascadingValue TValue="Task<AuthenticationState>" Value="@_currentAuthenticationStateTask" ChildContent="@((RenderFragment)ChildContent!)" />

@code {
private Task<AuthenticationState>? _currentAuthenticationStateTask;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@
<ProjectReference Include="..\testassets\TestServer\Components.TestServer.csproj" />
<ProjectReference Include="..\..\WebAssembly\testassets\Wasm.Authentication.Server\Wasm.Authentication.Server.csproj" />

<!-- TODO - turn this back on once the SDK is higher than 6.0.100-preview.5.21230.2: https://github.com/dotnet/aspnetcore/issues/32788
<ProjectReference Include="..\..\benchmarkapps\Wasm.Performance\TestApp\Wasm.Performance.TestApp.csproj"
Targets="Publish"
Properties="TestTrimmedApps=true;PublishDir=$(MSBuildThisFileDirectory)$(OutputPath)trimmed\Wasm.Performance.TestApp\"
Condition="'$(TestTrimmedApps)' == 'true'" />
Condition="'$(TestTrimmedApps)' == 'true'" /> -->

<ProjectReference
Include="..\testassets\BasicTestApp\BasicTestApp.csproj"
Expand Down
2 changes: 2 additions & 0 deletions src/Components/test/E2ETest/Tests/PerformanceTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@ protected override void InitializeAsyncCore()
public override Task InitializeAsync() => base.InitializeAsync(Guid.NewGuid().ToString());

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/32788")]
public void HasTitle()
{
Assert.Equal("E2EPerformance", Browser.Title);
}

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/32788")]
public void BenchmarksRunWithoutError()
{
// In CI, we only verify that the benchmarks run without throwing any
Expand Down

0 comments on commit 8087909

Please sign in to comment.