Skip to content

Commit 204c099

Browse files
committed
Clean up line endings
1 parent 0000efc commit 204c099

10 files changed

Lines changed: 19 additions & 21 deletions

File tree

tools/pipeline-witness/Azure.Sdk.Tools.PipelineWitness/Azure.Sdk.Tools.PipelineWitness.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.21.0" />
1212
<PackageReference Include="Microsoft.Azure.Cosmos" Version="3.29.0" />
1313
<PackageReference Include="Microsoft.Extensions.Azure" Version="1.3.0" />
14-
<PackageReference Include="Microsoft.Extensions.Configuration.AzureAppConfiguration" Version="5.1.0" />
1514
<PackageReference Include="Microsoft.Extensions.Http" Version="6.0.0" />
1615
<PackageReference Include="Microsoft.TeamFoundationServer.Client" Version="19.225.1" />
1716
<PackageReference Include="Microsoft.VisualStudio.Services.InteractiveClient" Version="19.225.1" />

tools/pipeline-witness/Azure.Sdk.Tools.PipelineWitness/BlobUploadProcessor.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ public class BlobUploadProcessor
5656
private readonly BlobContainerClient testResultsContainerClient;
5757
private readonly BlobContainerClient buildDefinitionsContainerClient;
5858
private readonly BlobContainerClient buildFailuresContainerClient;
59-
private readonly BlobContainerClient pipelineOwnersContainerClient;
59+
private readonly BlobContainerClient pipelineOwnersContainerClient;
6060
private readonly IOptions<PipelineWitnessSettings> options;
6161
private readonly Dictionary<string, int?> cachedDefinitionRevisions = new();
62-
private readonly IFailureAnalyzer failureAnalyzer;
62+
private readonly IFailureAnalyzer failureAnalyzer;
6363

6464
public BlobUploadProcessor(
6565
ILogger<BlobUploadProcessor> logger,
@@ -186,7 +186,7 @@ public async Task UploadBuildBlobsAsync(string account, Guid projectId, int buil
186186

187187
if (build.Definition.Id == options.Value.PipelineOwnersDefinitionId)
188188
{
189-
await UploadPipelineOwnersBlobAsync(account, build, timeline);
189+
await UploadPipelineOwnersBlobAsync(account, build, timeline);
190190
}
191191
}
192192

@@ -342,7 +342,7 @@ private async Task UploadBuildFailureBlobAsync(string account, Build build, Time
342342
stringBuilder.AppendLine(contentLine);
343343
}
344344

345-
await blobClient.UploadAsync(new BinaryData(stringBuilder.ToString()));
345+
await blobClient.UploadAsync(new BinaryData(stringBuilder.ToString()));
346346
}
347347
catch (RequestFailedException ex) when (ex.Status == (int)HttpStatusCode.Conflict)
348348
{

tools/pipeline-witness/Azure.Sdk.Tools.PipelineWitness/Configuration/PipelineWitnessSettings.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,22 +70,22 @@ public class PipelineWitnessSettings
7070
public int BuildCompleteWorkerCount { get; set; } = 1;
7171

7272
/// <summary>
73-
/// Gets or sets the artifact name used by the pipeline owners extraction build
73+
/// Gets or sets the artifact name used by the pipeline owners extraction build
7474
/// </summary>
7575
public string PipelineOwnersArtifactName { get; set; }
7676

7777
/// <summary>
78-
/// Gets or sets the file name used by the pipeline owners extraction build
78+
/// Gets or sets the file name used by the pipeline owners extraction build
7979
/// </summary>
8080
public string PipelineOwnersFilePath { get; set; }
8181

8282
/// <summary>
83-
/// Gets or sets the definition id of the pipeline owners extraction build
83+
/// Gets or sets the definition id of the pipeline owners extraction build
8484
/// </summary>
8585
public int PipelineOwnersDefinitionId { get; set; }
8686

8787
/// <summary>
88-
/// Gets or sets the database to use
88+
/// Gets or sets the database to use
8989
/// </summary>
9090
public string CosmosDatabase { get; set; }
9191

tools/pipeline-witness/Azure.Sdk.Tools.PipelineWitness/Entities/BuildLogBundle.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33

44
namespace Azure.Sdk.Tools.PipelineWitness
@@ -28,4 +28,3 @@ public class BuildLogBundle
2828
public List<BuildLogInfo> TimelineLogs { get; } = new List<BuildLogInfo>();
2929
}
3030
}
31-

tools/pipeline-witness/Azure.Sdk.Tools.PipelineWitness/Entities/BuildLogInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class BuildLogInfo
1414

1515
public Guid? RecordId { get; set; }
1616

17-
public Guid? ParentRecordId { get; set; }
17+
public Guid? ParentRecordId { get; set; }
1818
}
1919
}
2020

tools/pipeline-witness/Azure.Sdk.Tools.PipelineWitness/Services/BuildCompleteQueueWorker.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ public BuildCompleteQueueWorker(
2727
TelemetryClient telemetryClient,
2828
IOptionsMonitor<PipelineWitnessSettings> options)
2929
: base(
30-
logger,
30+
logger,
3131
telemetryClient,
3232
queueServiceClient,
33-
options.CurrentValue.BuildCompleteQueueName,
33+
options.CurrentValue.BuildCompleteQueueName,
3434
options)
3535
{
3636
this.logger = logger;

tools/pipeline-witness/Azure.Sdk.Tools.PipelineWitness/Services/FailureAnalysis/FailureAnalyzer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public async Task<IEnumerable<Failure>> AnalyzeFailureAsync(Build build, Timelin
2727

2828
if (failures.Count == 0)
2929
{
30-
if (build.Result != BuildResult.Succeeded &&
30+
if (build.Result != BuildResult.Succeeded &&
3131
build.Result != BuildResult.Canceled)
3232
{
3333
foreach (var record in timeline.Records.Where(x => x.ParentId.HasValue == false))

tools/pipeline-witness/Azure.Sdk.Tools.PipelineWitness/Services/QueueWorkerBackgroundService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ private async Task<string> RenewMessageLeaseAsync(QueueClient queueClient, Queue
185185
{
186186
// We extend the lease after half of the lease period has expired.
187187
// For a 30 second MessageLeasePeriod, every 15 seconds, we'll set the message to invisible
188-
// for 30 seconds.
188+
// for 30 seconds.
189189
await Task.Delay(halfLife, cancellationToken);
190190

191191
this.logger.LogDebug("Extending visibility timeout for message.\n Queue: {Queue}\n Message: {MessageId}\n Pop Receipt: {PopReceipt}\n Visible in: {VisibleIn}", queueName, messageId, popReceipt, nextVisibleOn - DateTimeOffset.UtcNow);

tools/pipeline-witness/Azure.Sdk.Tools.PipelineWitness/Services/WorkTokens/CosmosAsyncLockProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public async Task<IAsyncLock> GetLockAsync(string id, TimeSpan duration, Cancell
4949
new CosmosLockDocument(id, duration),
5050
id,
5151
partitionKey,
52-
new ItemRequestOptions { IfMatchEtag = response.ETag },
52+
new ItemRequestOptions { IfMatchEtag = response.ETag },
5353
cancellationToken);
5454

5555
if (response.StatusCode == HttpStatusCode.OK)
@@ -70,7 +70,7 @@ private async Task<IAsyncLock> CreateLockAsync(string id, TimeSpan duration, Can
7070
{
7171
var response = await this.container.CreateItemAsync(
7272
new CosmosLockDocument(id, duration),
73-
new PartitionKey(id),
73+
new PartitionKey(id),
7474
cancellationToken: cancellationToken);
7575

7676
return new CosmosAsyncLock(id, response.ETag, duration, this.container);

tools/pipeline-witness/infrastructure/qd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ BuildLogLine
552552
//
553553
// This query returns rows from given time range representing LintDiff runs that have at least 1 new error or warning.
554554
// Each row contains the following columns, among others:
555-
// - PrUrl: the PR URL
555+
// - PrUrl: the PR URL
556556
// - BuildUrl: the ADO build URL
557557
// - HasTypespecLabel: if the PR has TypeSpec label or not
558558
// - NewErrors: the number of new LintDiff errors
@@ -572,7 +572,7 @@ let lintDiffNewViolations = lintDiffBuildLogs
572572
| parse-where Message with * "\"title\": \"" NewErros "new errors / " NewWarnings "new warnings" *
573573
| where toint(NewErros) > 0 or toint(NewWarnings) > 0
574574
;
575-
let prInfoFromLintDiffBuildLogs =
575+
let prInfoFromLintDiffBuildLogs =
576576
lintDiffBuildLogs
577577
| parse-where Message with 'Current execution context is' raw
578578
| extend Context = parse_json(raw)
@@ -601,7 +601,7 @@ lintDiffBuildLogs
601601
| order by BuildId, LineNumber asc
602602
| summarize Report = parse_json(strcat_array(make_list(Message), "")) by BuildId
603603
;
604-
let lintDiffRows =
604+
let lintDiffRows =
605605
lintDiffNewViolations
606606
| join kind=inner prInfoFromLintDiffBuildLogs on BuildId
607607
| join kind=inner lintDiffReport on BuildId

0 commit comments

Comments
 (0)