diff --git a/release_notes.md b/release_notes.md index 7f2d3d806a..86c22783a7 100644 --- a/release_notes.md +++ b/release_notes.md @@ -5,5 +5,5 @@ --> - Add JitTrace Files for v4.1042 - Updating OTel related nuget packages (#11216) -- Moving to version 1.5.7 of Microsoft.Azure.AppService.Middleware.Functions (https://github.com/Azure/azure-functions-host/pull/11231) - +- Moving to version 1.5.7 of Microsoft.Azure.AppService.Middleware.Functions (#11231) +- Update outdated bundle message - removed deprecation date (#11230) diff --git a/src/WebJobs.Script/Diagnostics/Extensions/LoggerExtension.cs b/src/WebJobs.Script/Diagnostics/Extensions/LoggerExtension.cs index 225f86ae84..99228e761d 100644 --- a/src/WebJobs.Script/Diagnostics/Extensions/LoggerExtension.cs +++ b/src/WebJobs.Script/Diagnostics/Extensions/LoggerExtension.cs @@ -206,15 +206,10 @@ internal static class LoggerExtension private static readonly Action _publishingMetrics = LoggerMessage.Define(LogLevel.Debug, new EventId(338, nameof(PublishingMetrics)), "{metrics}"); - private static readonly Action _outdatedExtensionBundleFuture = + private static readonly Action _outdatedExtensionBundle = LoggerMessage.Define(LogLevel.Warning, new EventId(342, nameof(OutdatedExtensionBundle)), - "Your current bundle version {currentVersion} will reach end of support on Aug 4, 2026. Upgrade to [{suggestedMinVersion}.*, {suggestedMaxVersion}.0.0). For more information, see https://aka.ms/FunctionsBundlesUpgrade"); - - private static readonly Action _outdatedExtensionBundlePast = - LoggerMessage.Define(LogLevel.Warning, - new EventId(342, nameof(OutdatedExtensionBundle)), - "Your current bundle version {currentVersion} has reached end of support on Aug 4, 2026. Upgrade to [{suggestedMinVersion}.*, {suggestedMaxVersion}.0.0). For more information, see https://aka.ms/FunctionsBundlesUpgrade"); + "Your app is using an older version - {currentVersion} of extension bundle. Upgrade to [{suggestedMinVersion}.*, {suggestedMaxVersion}.0.0). For more information, see https://aka.ms/FunctionsBundlesUpgrade"); public static void PublishingMetrics(this ILogger logger, string metrics) { @@ -420,17 +415,7 @@ public static void IncorrectAzureFunctionsFolderPath(this ILogger logger, string public static void OutdatedExtensionBundle(this ILogger logger, string currentVersion, int suggestedMinVersion, int suggestedMaxVersion) { - var currentTime = DateTime.UtcNow; - var deprecationDate = new DateTime(2026, 8, 5, 0, 0, 0, DateTimeKind.Utc); - - if (currentTime >= deprecationDate) - { - _outdatedExtensionBundlePast(logger, currentVersion, suggestedMinVersion, suggestedMaxVersion, null); - } - else - { - _outdatedExtensionBundleFuture(logger, currentVersion, suggestedMinVersion, suggestedMaxVersion, null); - } + _outdatedExtensionBundle(logger, currentVersion, suggestedMinVersion, suggestedMaxVersion, null); } } } \ No newline at end of file diff --git a/test/WebJobs.Script.Tests/Description/FunctionAppValidationServiceTests.cs b/test/WebJobs.Script.Tests/Description/FunctionAppValidationServiceTests.cs index 1258fdc12a..0f2f886515 100644 --- a/test/WebJobs.Script.Tests/Description/FunctionAppValidationServiceTests.cs +++ b/test/WebJobs.Script.Tests/Description/FunctionAppValidationServiceTests.cs @@ -198,14 +198,9 @@ public void GetOutdatedBundleWarningMessage_LogsWarning(string bundleId, string // Assert var logMessages = _testLoggerProvider.GetAllLogMessages(); - // Check for both possible resource strings (future and past deprecation) - bool hasFutureWarning = logMessages.Any(m => m.FormattedMessage.Contains(bundleVersion) - && m.FormattedMessage.Contains("will reach end of support on Aug 4, 2026.") + bool hasOutdatedBundleLog = logMessages.Any(m => m.FormattedMessage.Contains(bundleVersion) + && m.FormattedMessage.Contains("older version") && m.Level == LogLevel.Warning); - bool hasPastWarning = logMessages.Any(m => m.FormattedMessage.Contains(bundleVersion) - && m.FormattedMessage.Contains("has reached end of support on Aug 4, 2026.") - && m.Level == LogLevel.Warning); - bool hasOutdatedBundleLog = hasFutureWarning || hasPastWarning; Assert.Equal(shouldLogEvent, hasOutdatedBundleLog); }