Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit b926704

Browse files
author
Scott Bommarito
authored
Add email hotfix to NuGet.Jobs (#662)
1 parent f276305 commit b926704

8 files changed

Lines changed: 11 additions & 9 deletions

File tree

src/Gallery.CredentialExpiration/Gallery.CredentialExpiration.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
<Version>9.0.1</Version>
104104
</PackageReference>
105105
<PackageReference Include="NuGet.Services.Messaging.Email">
106-
<Version>2.33.0</Version>
106+
<Version>2.36.0</Version>
107107
</PackageReference>
108108
<PackageReference Include="NuGet.Services.Storage">
109109
<Version>2.1.3</Version>

src/Gallery.CredentialExpiration/Job.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public override void Init(IServiceContainer serviceContainer, IDictionary<string
4545
var serializer = new ServiceBusMessageSerializer();
4646
var topicClient = new TopicClientWrapper(InitializationConfiguration.EmailPublisherConnectionString, InitializationConfiguration.EmailPublisherTopicName);
4747
var enqueuer = new EmailMessageEnqueuer(topicClient, serializer, LoggerFactory.CreateLogger<EmailMessageEnqueuer>());
48-
EmailService = new AsynchronousEmailMessageService(enqueuer);
48+
EmailService = new AsynchronousEmailMessageService(enqueuer, LoggerFactory.CreateLogger<AsynchronousEmailMessageService>());
4949

5050
FromAddress = new MailAddress(InitializationConfiguration.MailFrom);
5151

src/NuGet.Services.Validation.Orchestrator/NuGet.Services.Validation.Orchestrator.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
<PrivateAssets>all</PrivateAssets>
168168
</PackageReference>
169169
<PackageReference Include="NuGet.Services.Messaging.Email">
170-
<Version>2.33.0</Version>
170+
<Version>2.36.0</Version>
171171
</PackageReference>
172172
</ItemGroup>
173173
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

src/NuGet.SupportRequests.Notifications/NuGet.SupportRequests.Notifications.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
<Version>9.0.1</Version>
112112
</PackageReference>
113113
<PackageReference Include="NuGet.Services.Messaging.Email">
114-
<Version>2.33.0</Version>
114+
<Version>2.36.0</Version>
115115
</PackageReference>
116116
</ItemGroup>
117117
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

src/NuGet.SupportRequests.Notifications/Tasks/SupportRequestsNotificationScheduledTask.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected SupportRequestsNotificationScheduledTask(
3939
var serializer = new ServiceBusMessageSerializer();
4040
var topicClient = new TopicClientWrapper(configuration.EmailPublisherConnectionString, configuration.EmailPublisherTopicName);
4141
var enqueuer = new EmailMessageEnqueuer(topicClient, serializer, loggerFactory.CreateLogger<EmailMessageEnqueuer>());
42-
var messageService = new AsynchronousEmailMessageService(enqueuer);
42+
var messageService = new AsynchronousEmailMessageService(enqueuer, loggerFactory.CreateLogger<AsynchronousEmailMessageService>());
4343
_messagingService = new MessagingService(messageService, loggerFactory.CreateLogger<MessagingService>());
4444

4545
_supportRequestRepository = new SupportRequestRepository(loggerFactory, openSupportRequestSqlConnectionAsync);

src/Validation.Symbols/SymbolsValidatorService.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ public async Task<IValidationResult> ValidateSymbolsAsync(SymbolsValidatorMessag
6666
{
6767
orphanSymbolFiles.ForEach((symbol) =>
6868
{
69-
_telemetryService.TrackSymbolsAssemblyValidationResultEvent(message.PackageId, message.PackageNormalizedVersion, ValidationStatus.Failed, nameof(ValidationIssue.SymbolErrorCode_MatchingPortablePDBNotFound), assemblyName: symbol);
69+
_telemetryService.TrackSymbolsAssemblyValidationResultEvent(message.PackageId, message.PackageNormalizedVersion, ValidationStatus.Failed, nameof(ValidationIssue.SymbolErrorCode_MatchingAssemblyNotFound), assemblyName: symbol);
7070
});
7171
_telemetryService.TrackSymbolsValidationResultEvent(message.PackageId, message.PackageNormalizedVersion, ValidationStatus.Failed);
72-
return ValidationResult.FailedWithIssues(ValidationIssue.SymbolErrorCode_MatchingPortablePDBNotFound);
72+
return ValidationResult.FailedWithIssues(ValidationIssue.SymbolErrorCode_MatchingAssemblyNotFound);
7373
}
7474
var targetDirectory = Settings.GetWorkingDirectory();
7575
try
@@ -231,8 +231,8 @@ private bool IsChecksumMatch(string peFilePath, string packageId, string package
231231
}
232232
}
233233
}
234-
_telemetryService.TrackSymbolsAssemblyValidationResultEvent(packageId, packageNormalizedVersion, ValidationStatus.Failed, nameof(ValidationIssue.SymbolErrorCode_MatchingPortablePDBNotFound), assemblyName: Path.GetFileName(peFilePath));
235-
validationResult = ValidationResult.FailedWithIssues(ValidationIssue.SymbolErrorCode_MatchingPortablePDBNotFound);
234+
_telemetryService.TrackSymbolsAssemblyValidationResultEvent(packageId, packageNormalizedVersion, ValidationStatus.Failed, nameof(ValidationIssue.SymbolErrorCode_PdbIsNotPortable), assemblyName: Path.GetFileName(peFilePath));
235+
validationResult = ValidationResult.FailedWithIssues(ValidationIssue.SymbolErrorCode_PdbIsNotPortable);
236236
return false;
237237
}
238238

tests/NuGet.Services.Validation.Orchestrator.Tests/SymbolValidationMessageHandlerFacts.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ public MessageWithCustomDeliveryCount(IBrokeredMessage inner, int deliveryCount)
122122
public DateTimeOffset ScheduledEnqueueTimeUtc { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
123123
public DateTimeOffset ExpiresAtUtc => throw new NotImplementedException();
124124
public DateTimeOffset EnqueuedTimeUtc => throw new NotImplementedException();
125+
public TimeSpan TimeToLive { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
125126

126127
public string MessageId { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
127128

tests/NuGet.Services.Validation.Orchestrator.Tests/ValidationMessageHandlerFacts.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ public MessageWithCustomDeliveryCount(IBrokeredMessage inner, int deliveryCount)
145145
public DateTimeOffset ScheduledEnqueueTimeUtc { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
146146
public DateTimeOffset ExpiresAtUtc => throw new NotImplementedException();
147147
public DateTimeOffset EnqueuedTimeUtc => throw new NotImplementedException();
148+
public TimeSpan TimeToLive { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
148149

149150
public string MessageId { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
150151

0 commit comments

Comments
 (0)