Skip to content

Add EOL warnings for all runtimes during function app publish#4760

Merged
liliankasem merged 2 commits intomainfrom
liliankasem/update-eol
Jan 7, 2026
Merged

Add EOL warnings for all runtimes during function app publish#4760
liliankasem merged 2 commits intomainfrom
liliankasem/update-eol

Conversation

@liliankasem
Copy link
Copy Markdown
Member

Issue describing the changes in this PR

resolves #4241

Pull request checklist

  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • My changes should not be added to the release notes for the next release
    • Otherwise: I've added my notes to release_notes.md
  • I have added all required tests (Unit tests, E2E tests)

Additional information

Implements end-of-life (EOL) warnings for all runtime versions during func azure functionapp publish.

Screenshot 2026-01-06 at 2 15 01 PM

Temporarily modified EOL threshold to 12m to validate with other languages:

Screenshot 2026-01-06 at 2 25 31 PM Screenshot 2026-01-06 at 2 40 21 PM

@liliankasem liliankasem requested a review from a team as a code owner January 6, 2026 23:22
@liliankasem liliankasem mentioned this pull request Jan 6, 2026
5 tasks
if (isAlreadyEol || currentRuntimeSettings.IsDeprecated == true || currentRuntimeSettings.IsDeprecatedForRuntime == true)
{
var warningMessage = EolMessages.GetAfterEolCreateMessageDotNet(majorDotnetVersion.ToString(), currentRuntimeSettings.EndOfLifeDate.Value);
var warningMessage = EolMessages.GetAfterEolCreateMessage(".NET", majorDotnetVersion.ToString(), currentRuntimeSettings.EndOfLifeDate.Value);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: ".NET" can be a const


// Get version from Function App configuration (not local project)
if (runtime == WorkerRuntime.DotnetIsolated || runtime == WorkerRuntime.Dotnet)
{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have this be a helper method for .NET? It's a bit heavy with the nested if statements

int? dotnetMajorVersion = null;

// Get version from Function App configuration (not local project)
if (runtime == WorkerRuntime.DotnetIsolated || runtime == WorkerRuntime.Dotnet)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have this check as a variable that we establish above so we don't repeat the same check?

ColoredConsole.WriteLine(WarningColor(message));
}

private class EolInformation
Copy link
Copy Markdown
Contributor

@aishwaryabh aishwaryabh Jan 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have this be in its own file? this file has a bunch of content already so would be good to seperate it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show warning message for runtimes reaching end-of-life during publish

3 participants