Skip to content

Commit b8ed985

Browse files
committed
skip
1 parent 3f4af69 commit b8ed985

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

azure-pipelines.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,6 @@ stages:
408408

409409
- powershell: eng/build.ps1 -configuration Release -prepareMachine -ci -build -pack -publish -sign -binaryLogName Build.binlog /p:DotnetPublishUsingPipelines=true /p:ContinuousIntegrationBuildCorrectness=true
410410
displayName: Build
411-
continueOnError: true
412-
413-
- powershell: git diff
414411

415412
# While this task is not executed in the official build, this serves as a PR check for whether symbol exclusions
416413
# are properly set up.

src/RoslynAnalyzers/Tools/GenerateDocumentationAndConfigFiles/Program.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,8 @@ await checkHelpLinkAsync(helpLinkUri).ConfigureAwait(false))
640640
{
641641
await Console.Error.WriteLineAsync($"Missing entry in {fileWithPath}").ConfigureAwait(false);
642642
await Console.Error.WriteLineAsync(line).ConfigureAwait(false);
643+
await Console.Error.WriteLineAsync("Actual:").ConfigureAwait(false);
644+
await Console.Error.WriteLineAsync(string.Join(Environment.NewLine, actualContent)).ConfigureAwait(false);
643645
// The file is missing an entry. Mark it as invalid and break the loop as there is no need to continue validating.
644646
fileNamesWithValidationFailures.Add(fileWithPath);
645647
break;
@@ -664,6 +666,7 @@ async Task<bool> checkHelpLinkAsync(string helpLink)
664666
{
665667
if (!Uri.TryCreate(helpLink, UriKind.Absolute, out var uri))
666668
{
669+
await Console.Error.WriteLineAsync($"Failed to create URI for {helpLink}:").ConfigureAwait(false);
667670
return false;
668671
}
669672

@@ -674,10 +677,15 @@ async Task<bool> checkHelpLinkAsync(string helpLink)
674677

675678
var request = new HttpRequestMessage(HttpMethod.Head, uri);
676679
using var response = await httpClient.SendAsync(request).ConfigureAwait(false);
680+
await Console.Error.WriteLineAsync("Response: " + response).ConfigureAwait(false);
681+
await Console.Error.WriteLineAsync("Status code: " + response?.StatusCode).ConfigureAwait(false);
682+
await Console.Error.WriteLineAsync("content: " + response?.Content).ConfigureAwait(false);
677683
return response?.StatusCode == HttpStatusCode.OK;
678684
}
679-
catch (WebException)
685+
catch (WebException ex)
680686
{
687+
await Console.Error.WriteLineAsync($"Exception checking {helpLink}:").ConfigureAwait(false);
688+
await Console.Error.WriteLineAsync(ex.ToString()).ConfigureAwait(false);
681689
return false;
682690
}
683691
}
@@ -1185,6 +1193,10 @@ private static void Validate(string fileWithPath, string fileContents, List<stri
11851193
string actual = File.ReadAllText(fileWithPath);
11861194
if (actual != fileContents)
11871195
{
1196+
Console.Error.WriteLine($"{fileWithPath} is different. We built:");
1197+
Console.Error.WriteLine(fileContents);
1198+
Console.Error.WriteLine($"But actually had:");
1199+
Console.Error.WriteLine(actual);
11881200
fileNamesWithValidationFailures.Add(fileWithPath);
11891201
}
11901202
}

0 commit comments

Comments
 (0)