Skip to content

{App Service} Recover Function App scenarios with supported runtimes - #34401

Merged
Ethan Yang (necusjz) merged 2 commits into
Azure:devfrom
seligj95:seligj95-function-app-test-recovery
Nov 12, 2026
Merged

Ethan Yang (necusjz) merged 2 commits into
Azure:devfrom
seligj95:seligj95-function-app-test-recovery

Conversation

@seligj95

@seligj95 Jordan Selig (seligj95) commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

🤖 PR Validation — ⚠️ Review suggested

Breaking Changes Tests Suppressions
️✔️ None ️✔️ 130/130 ⚠️ 2 added

This PR adds warning or check suppressions. Fix the underlying warning where possible and justify each remaining suppression in a code comment or the PR description.

2 added suppressions
File Line Kind Code
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py 652 skipped test @unittest.skip('PowerShell 7.4 reached end-of-life; Linux Consumption does not support PowerShell 7.6.')
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py 675 skipped test @unittest.skip('Supported .NET versions reached end-of-life; Linux Consumption does not support .NET 10.')

Related command

az functionapp, az functionapp config access-restriction, and az functionapp cors

Description

Recover 45 of the 49 Function App scenarios temporarily skipped by #34391 after recorded .NET 8 and PowerShell 7.4 metadata reached end of life on November 10, 2026.

This is an independent, single-commit PR against dev. It does not include or modify the two Web App fixes in #34400.

  • Use .NET 10 isolated for Windows Consumption, dedicated/Premium, and Container Apps fixtures. Update dedicated PowerShell expectations to 7.6 and exercise the explicit runtime-version argument in its named scenario.
  • Give Container Apps fixtures an explicit .NET 10 Functions image rather than the in-process .NET 8 quickstart image.
  • Use supported StorageV2 storage fixtures, explicitly select Windows for generic App Service plans that require it, and reflect SCM's inherited default action when main-site restrictions are enabled.
  • Move quota/capacity-blocked fixtures to regions where their unchanged hosting-plan scenarios can run.
  • Refresh 45 recordings from successful live runs, sanitize embedded subscription/tenant IDs and generated host keys, and remove only the corresponding 45 EOL skips. No production code, clock mocking, EOL-check bypass, or unrelated test methods are changed.

Four scenarios retain method-level skips with specific reasons rather than changing the coverage they represent:

Scenario Remaining blocker
test_functionapp_consumption_linux_powershell Linux Consumption ends at PowerShell 7.4; 7.6 is not supported there.
test_functionapp_consumption_linux_dotnet_isolated Linux Consumption ends at .NET 9; its available .NET versions are now EOL and .NET 10 is not supported there.
test_functionapp_on_linux_dotnet_consumption In-process .NET reached EOL and has no supported in-process successor.
test_functionapp_windows_without_runtime Omitting --runtime still selects in-process .NET in production; adding an explicit runtime would defeat this test.

Hosting-plan limits: https://learn.microsoft.com/azure/azure-functions/supported-languages

Testing Guide

  • Live: All 45 re-enabled scenarios passed individually against Azure after quota/capacity retries and fixture corrections: 36 Function App scenarios, all 8 access-restriction scenarios, and Function App CORS. Dapr's existing live waits were retained.
  • Playback: The exact selection below passed: 45 passed, 4 skipped, 245 deselected. Collection was checked against the exact original 49 Function App test IDs before execution.
  • Combined regression run: All 49 original Function App IDs, the Function App mock-based test module, and the dedicated runtime EOL-validation scenario passed together: 126 passed, 4 skipped, 188 subtests passed.
  • Scope audit: AST comparison confirmed that only the original 49 Function App methods changed. Exactly 45 recording files were refreshed. The two Web App scenarios and unrelated skips remain unchanged.
  • azdev style --repo ./ --src seligj95-function-app-test-recovery --tgt HEAD^ — passed (Pylint and Flake8), using process-local CLI/extension paths and workspace source imports.
  • azdev linter --min-severity medium --repo ./ --src seligj95-function-app-test-recovery --tgt HEAD^ — blocked during global command-table initialization, before module linting, by the older local azure-mgmt-containerregistry package lacking ManagedServiceIdentityType imported by unchanged ACR code. No repository dependency changes were made to work around that unrelated toolchain mismatch.
  • Repository azdev scan with its standard high-confidence rules checked all 48 changed files — passed, no secrets detected. Generated host master/default keys are redacted; the sanitized unpublished commit replaced the initial local commit before any push.
  • git diff --check — passed.
  • Cleanup: All live runs were explicitly approved. Final resource-group reconciliation against the pre-test subscription baseline returned zero new groups remaining, including service-created managed groups and the automatically created default monitoring workspace group. Existing resource groups were not deleted.
Exact playback command

Run with workspace CLI/test SDK sources selected via PYTHONPATH and the worktree's isolated Python 3.13 environment. No live-test environment flag is set.

.venv/bin/python -m pytest -q --disable-warnings --tb=short src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_access_restriction_commands.py src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py -k 'test_functionapp_access_restriction_add or test_functionapp_access_restriction_add_ip_address_validation or test_functionapp_access_restriction_add_scm or test_functionapp_access_restriction_remove or test_functionapp_access_restriction_remove_scm or test_functionapp_access_restriction_set_complex or test_functionapp_access_restriction_set_simple or test_functionapp_access_restriction_show or test_functionapp_assign_user_identity or test_functionapp_config_set or test_functionapp_config_with_appcontainer_managed_environment_error or test_functionapp_consumption_e2e or test_functionapp_consumption_linux_dotnet_isolated or test_functionapp_consumption_linux_powershell or test_functionapp_consumption_ragrs_storage_e2e or test_functionapp_container_config_set_replicas or test_functionapp_cors or test_functionapp_create_with_appcontainer_managed_environment or test_functionapp_create_with_appcontainer_managed_environment_add_vnet_error or test_functionapp_create_with_appcontainer_managed_environment_existing_app_insights or test_functionapp_create_with_appcontainer_managed_environment_list_vnet_error or test_functionapp_create_with_appcontainer_managed_environment_remove_vnet_error or test_functionapp_create_with_replicas or test_functionapp_delete_functions or test_functionapp_e2e or test_functionapp_enable_dapr or test_functionapp_https_only or test_functionapp_keys_delete or test_functionapp_keys_list or test_functionapp_keys_set or test_functionapp_keys_set_slot or test_functionapp_local_context or test_functionapp_on_linux_app_service_dotnet_with_runtime_version or test_functionapp_on_linux_app_service_powershell or test_functionapp_on_linux_app_service_powershell_with_runtime_version or test_functionapp_on_linux_dotnet_consumption or test_functionapp_on_windows_app_service_dotnet_with_runtime_version or test_functionapp_remove_identity or test_functionapp_reserved_instance or test_functionapp_vnetE2E or test_functionapp_vnet_EP_sku_E2E or test_functionapp_vnet_basic_sku_E2E or test_functionapp_vnet_duplicate_name or test_functionapp_vnet_integration_consumption_plan or test_functionapp_windows_without_runtime or test_functionapp_with_app_insights_key or test_functionapp_with_default_app_insights or test_functionapp_with_no_default_app_insights or test_move_plan_to_elastic' --deselect azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py::FunctionAppManagedEnvironment::test_functionapp_create_with_appcontainer_managed_environment_consumption_plan_error --deselect azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py::FunctionAppManagedEnvironment::test_functionapp_create_with_appcontainer_managed_environment_plan_error --deselect azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py::FunctionAppManagedEnvironment::test_functionapp_create_with_appcontainer_managed_environment_vnet_config_error --deselect azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py::FunctionappCorsTest::test_functionapp_cors_credentials --deselect azure/cli/command_modules/appservice/tests/latest/test_functionapp_access_restriction_commands.py::FunctionAppAccessRestrictionScenarioTest::test_functionapp_access_restriction_add_service_endpoint

Additional exact targeted commands:

# Passed: 80 tests and 188 subtests
.venv/bin/python -m pytest -q --disable-warnings --tb=short src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands_thru_mock.py

# Passed: 1 test; confirms runtime EOL validation remains effective
.venv/bin/python -m pytest -q --disable-warnings src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py::FunctionAppLanguageEOLTest::test_functionapp_language_runtime_version_deprecated

History Notes

Test-only change; no customer-facing behavior change.


This checklist is used to make sure that common guidelines for a pull request are followed.

Re-record 45 scenarios with supported .NET and PowerShell runtimes. Preserve four skips whose original hosting/runtime coverage has no supported successor.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 11, 2026 18:13
@microsoft-github-policy-service microsoft-github-policy-service Bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Nov 11, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Thank you for your contribution Jordan Selig (@seligj95)! We will review the pull request and get back to you soon.

Copilot AI left a comment

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.

🟢 Approval recommended

No active review issues were identified for the Function App scenario coverage restoration.

No open issues 🎉

What changed in this PR

Restores Function App scenario coverage disabled in #34391 after runtime end of life, without changing production commands or the separate Web App fixes in #34400.

Changes:

  • Re-enables 45 scenarios using .NET 10 isolated and PowerShell 7.6, retaining four skips with specific compatibility reasons.
  • Updates storage, Windows plan selection, Container Apps images, and regions to supported fixtures.
  • Adjusts runtime assertions and SCM default-action expectations to match current service behavior.
File Description
src/​azure-cli/​azure/​cli/​command_modules/​appservice/​tests/​latest/​test_webapp_commands.py Restores Function App CORS coverage with supported runtime and Windows plan fixtures.
src/​azure-cli/​azure/​cli/​command_modules/​appservice/​tests/​latest/​test_functionapp_commands.py Restores 36 scenarios, updates runtime and hosting fixtures, and clarifies four remaining skips.
src/​azure-cli/​azure/​cli/​command_modules/​appservice/​tests/​latest/​test_functionapp_access_restriction_commands.py Restores eight access-restriction scenarios and updates the inherited SCM default-action assertion.

Review effort: Balanced

@seligj95

Copy link
Copy Markdown
Contributor Author

Azure Functions team input requested on the four scenarios still skipped in this PR. I am leaving them skipped rather than changing what they cover without guidance:

Scenario Blocker
test_functionapp_consumption_linux_powershell Linux Consumption supports PowerShell 7.4, which reached EOL on November 10; PowerShell 7.6 is not supported on that plan.
test_functionapp_consumption_linux_dotnet_isolated The available Linux Consumption .NET versions are EOL; .NET 10 is not supported on that plan.
test_functionapp_on_linux_dotnet_consumption In-process .NET reached EOL and has no supported in-process successor.
test_functionapp_windows_without_runtime Omitting --runtime currently selects in-process .NET and fails the EOL check. Adding an explicit runtime would no longer test the default-selection behavior.

Could you confirm the intended coverage for these cases: retain the original inputs and assert rejection, replace the retired combinations with supported hosting/runtime equivalents, or address the underlying default-runtime behavior? In particular, should the omitted-runtime path select a supported runtime, or is rejection now expected?

The other 45 scenarios have been recovered and passed live and playback. No additional changes to these four will be made in this PR until we have the Functions team’s guidance.

Re-record the 45 restored scenarios with repository-pinned dependencies, including azure-mgmt-storage 25.3.0 and Storage API 2026-09-01. Preserve strict cassette matching and the four deferred runtime skips.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

@necusjz
Ethan Yang (necusjz) merged commit 2895723 into Azure:dev Nov 12, 2026
52 checks passed
@seligj95
Jordan Selig (seligj95) deleted the seligj95-function-app-test-recovery branch November 13, 2026 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

act-observability-squad ContainerApp customer-reported Issues that are reported by GitHub users external to the Azure organization. Functions az functionapp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants