Skip to content

Warn legacy programming model users before v2 - #613

Open
andystaples wants to merge 5 commits into
devfrom
andystaples-warn-legacy-v1-users
Open

Warn legacy programming model users before v2#613
andystaples wants to merge 5 commits into
devfrom
andystaples-warn-legacy-v1-users

Conversation

@andystaples

@andystaples andystaples commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • detect legacy Python v1 apps by their direct-child function.json layout at a confirmed function-app root
  • warn customers whose requirements still permit azure-functions-durable 2.x, while suppressing the warning for demonstrable 1.x constraints
  • use a dedicated DurableFunctionsCompatibilityWarning that remains visible during pytest runs
  • use a bounded one-level scandir check and skip it entirely for pinned apps
  • reconstruct the changelog from this repository's complete PyPI release inventory, including yanked releases and excluding unpublished tags and packages built elsewhere

Testing

  • python -m pytest -q tests — 327 passed
  • python -m flake8 azure\durable_functions\__init__.py tests\test_init.py
  • validated warning behavior against repository v1 and v2 sample layouts
  • repository nox type-check remains red on 143 pre-existing errors in 21 files; no errors reference the changed module

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

Copilot-Session: 9b12bc64-f7ed-484b-9004-7a595a538eb9
andystaples and others added 4 commits July 28, 2026 15:14
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9b12bc64-f7ed-484b-9004-7a595a538eb9
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9b12bc64-f7ed-484b-9004-7a595a538eb9
validate_extension_bundles()

# Warn users whose applications will not be compatible with version 2.x
validate_v1_programming_model()

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.

Should we add a try/except around this?

return False


def validate_v1_programming_model():

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.

Should this run during pytest, or should we guard it like validate_extension_bundles does?

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.

2 participants