Skip to content

Commit 8a653ed

Browse files
authored
Remove PAT dependencies (#8147)
1 parent 88a215f commit 8a653ed

60 files changed

Lines changed: 717 additions & 591 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tools/pipeline-witness/Azure.Sdk.Tools.PipelineWitness.Tests/BlobUploadProcessorIntegrationTests.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@
55
using Azure.Sdk.Tools.PipelineWitness.Configuration;
66
using Azure.Sdk.Tools.PipelineWitness.Services;
77
using Azure.Storage.Blobs;
8-
using Microsoft.Extensions.DependencyInjection;
9-
using Microsoft.Extensions.Logging;
108
using Microsoft.Extensions.Logging.Abstractions;
119
using Microsoft.Extensions.Options;
1210
using Microsoft.TeamFoundation.Build.WebApi;
13-
using Microsoft.VisualStudio.Services.Account;
1411
using Microsoft.VisualStudio.Services.Common;
1512
using Microsoft.VisualStudio.Services.TestResults.WebApi;
1613
using Microsoft.VisualStudio.Services.WebApi;

tools/pipeline-witness/Azure.Sdk.Tools.PipelineWitness.Tests/EnvironmentConditionalSkipFact.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
62
using Xunit;
73

84
namespace Azure.Sdk.Tools.PipelineWitness.Tests

tools/pipeline-witness/Azure.Sdk.Tools.PipelineWitness.Tests/PassThroughFailureAnalyzer.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
21
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
52
using System.Threading.Tasks;
63
using Azure.Sdk.Tools.PipelineWitness.Entities.AzurePipelines;
74
using Azure.Sdk.Tools.PipelineWitness.Services.FailureAnalysis;

tools/pipeline-witness/Azure.Sdk.Tools.PipelineWitness.Tests/TestLogger.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
63
using Microsoft.Extensions.Logging;
74

85
namespace Azure.Sdk.Tools.PipelineWitness.Tests

tools/pipeline-witness/Azure.Sdk.Tools.PipelineWitness/ApplicationInsights/ApplicationVersionTelemetryInitializer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System.Reflection;
22
using Microsoft.ApplicationInsights.Channel;
3-
using Microsoft.ApplicationInsights.DataContracts;
43
using Microsoft.ApplicationInsights.Extensibility;
54

65
namespace Azure.Sdk.Tools.PipelineWitness.ApplicationInsights

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
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" />
16-
<PackageReference Include="Microsoft.TeamFoundationServer.Client" Version="16.170.0" />
17-
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
15+
<PackageReference Include="Microsoft.TeamFoundationServer.Client" Version="19.225.1" />
16+
<PackageReference Include="Microsoft.VisualStudio.Services.InteractiveClient" Version="19.225.1" />
17+
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
1818
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
1919
</ItemGroup>
2020

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

Lines changed: 4 additions & 5 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
{
@@ -531,7 +531,6 @@ private async Task UploadBuildBlobAsync(string account, Build build)
531531
QueueTime = build.QueueTime,
532532
StartTime = build.StartTime,
533533
FinishTime = build.FinishTime,
534-
KeepForever = build.KeepForever,
535534
LastChangedDate = build.LastChangedDate,
536535
LogsId = build.Logs?.Id,
537536
LogsType = build.Logs?.Type,

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

Lines changed: 0 additions & 11 deletions
This file was deleted.

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

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Runtime.Serialization;
1+
using System;
42

53
namespace Azure.Sdk.Tools.PipelineWitness.Configuration
64
{
@@ -72,38 +70,28 @@ public class PipelineWitnessSettings
7270
public int BuildCompleteWorkerCount { get; set; } = 1;
7371

7472
/// <summary>
75-
/// 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
7674
/// </summary>
7775
public string PipelineOwnersArtifactName { get; set; }
7876

7977
/// <summary>
80-
/// 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
8179
/// </summary>
8280
public string PipelineOwnersFilePath { get; set; }
8381

8482
/// <summary>
85-
/// 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
8684
/// </summary>
8785
public int PipelineOwnersDefinitionId { get; set; }
8886

8987
/// <summary>
90-
/// Gets or sets the database to use
88+
/// Gets or sets the database to use
9189
/// </summary>
9290
public string CosmosDatabase { get; set; }
9391

9492
/// <summary>
9593
/// Gets or sets the container to use for async locks
9694
/// </summary>
9795
public string CosmosAsyncLockContainer { get; set; }
98-
99-
/// <summary>
100-
/// Gets or sets the authorization key for the Cosmos account
101-
/// </summary>
102-
public string CosmosAuthorizationKey { get; set; }
103-
104-
/// <summary>
105-
/// Gets or sets the access token to use for Azure DevOps clients
106-
/// </summary>
107-
public string DevopsAccessToken { get; set; }
10896
}
10997
}

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

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)