-
Notifications
You must be signed in to change notification settings - Fork 10.4k
[release/2.1] Update branding to 2.1.28 #31547
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
Changes from all commits
f6b2202
b354b4d
abfe954
6d7bb39
c15fee6
2a8b114
ab356a7
63ee84c
780c75b
10e5c3b
147d5ac
5d3c985
7c41d9f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,4 +100,8 @@ Later on, this will be checked using this condition: | |
@aspnet/signalr-protocol-msgpack; | ||
</PackagesInPatch> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(VersionPrefix)' == '2.1.28' "> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Above changes are for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah so this is the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, my changes in build/dependencies.props are just to use the packages that are already public in rolling and PR builds. We'll move to 2.1.27 when updating the baselines on Patch Tuesday. |
||
<PackagesInPatch> | ||
</PackagesInPatch> | ||
</PropertyGroup> | ||
</Project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
using System.Text.RegularExpressions; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Testing.xunit; | ||
using Xunit; | ||
using Xunit.Abstractions; | ||
|
||
|
@@ -23,7 +24,9 @@ public CdnScriptTagTests(ITestOutputHelper output) | |
_output = output; | ||
} | ||
|
||
[Fact] | ||
// Because this test runs on .NET Core and seems reliable there, likely not worth running on .NET Framework. | ||
[ConditionalFact] | ||
[FrameworkSkipCondition(RuntimeFrameworks.CLR, SkipReason = "At least flaky on .NET Framework.")] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Pilchie @dotnet/aspnet-build thoughts about filing a follow-up issue❔ I'm leaning toward no because the test is about external resources. Also realized the test runs fine on Linux and macOS. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should at least file an issue about figuring out why the test failed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If that's in dotnet/runtime, so be it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @wtgodbe I agree and wasn't really questioning that. My question was more whether we needed an issue about removing the @karelz @scalablecory where should I file an issue about the .NET Framework There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @dougbu I believe we do not run dotnet/runtime tests on .NET Framework anymore. Before we stopped to run them, we saw quite some flakiness on .NET Framework in networking. I wonder if this is similar ... |
||
public async Task IdentityUI_ScriptTags_SubresourceIntegrityCheck() | ||
{ | ||
var slnDir = GetSolutionDir(); | ||
|
@@ -39,7 +42,7 @@ public async Task IdentityUI_ScriptTags_SubresourceIntegrityCheck() | |
Assert.NotEmpty(scriptTags); | ||
|
||
var shasum = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); | ||
using (var client = new HttpClient(new RetryHandler(new HttpClientHandler() { }))) | ||
using (var client = new HttpClient(new RetryHandler(new HttpClientHandler(), _output))) | ||
{ | ||
foreach (var script in scriptTags) | ||
{ | ||
|
@@ -63,22 +66,52 @@ public async Task IdentityUI_ScriptTags_SubresourceIntegrityCheck() | |
}); | ||
} | ||
|
||
class RetryHandler : DelegatingHandler | ||
private class RetryHandler : DelegatingHandler | ||
{ | ||
public RetryHandler(HttpMessageHandler innerHandler) : base(innerHandler) { } | ||
private readonly ITestOutputHelper _output; | ||
|
||
public RetryHandler(HttpMessageHandler innerHandler, ITestOutputHelper output) : base(innerHandler) | ||
{ | ||
_output = output; | ||
} | ||
|
||
protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) | ||
{ | ||
HttpResponseMessage result = null; | ||
for (var i = 0; i < 10; i++) | ||
var method = request.Method; | ||
var url = request.RequestUri; | ||
var waitIntervalBeforeRetry = 1; | ||
|
||
// Try 6 times with 1, 2, 4, 8, 16 seconds between attempts. Last attempt may throw or report | ||
// error to caller. | ||
for (var i = 0; i < 5; i++) | ||
{ | ||
result = await base.SendAsync(request, cancellationToken); | ||
if (result.IsSuccessStatusCode) | ||
try | ||
{ | ||
return result; | ||
_output.WriteLine($"Sending request '{method} - {url}' {i+1} attempt."); | ||
result = await base.SendAsync(request, cancellationToken); | ||
if (result.IsSuccessStatusCode) | ||
{ | ||
return result; | ||
} | ||
else | ||
{ | ||
_output.WriteLine($"Request '{method} - {url}' failed with {result.StatusCode}."); | ||
} | ||
} | ||
catch (Exception e) | ||
{ | ||
_output.WriteLine($"Request '{method} - {url}' failed with {e.ToString()}"); | ||
} | ||
finally | ||
{ | ||
await Task.Delay(TimeSpan.FromSeconds(waitIntervalBeforeRetry), cancellationToken); | ||
waitIntervalBeforeRetry = waitIntervalBeforeRetry * 2; | ||
} | ||
await Task.Delay(1000); | ||
} | ||
return result; | ||
|
||
// Try one last time to show the actual error. | ||
return await base.SendAsync(request, cancellationToken); | ||
} | ||
} | ||
|
||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this long list can be pared down because the Ubuntu 18.04 image contains them already, I'll do that in #30729