Skip to content

Warn legacy programming model users before v2 - #613

Merged
andystaples merged 9 commits into
devfrom
andystaples-warn-legacy-v1-users
Jul 30, 2026
Merged

Warn legacy programming model users before v2#613
andystaples merged 9 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
Comment thread azure/durable_functions/__init__.py
Comment thread azure/durable_functions/__init__.py
andystaples and others added 4 commits July 30, 2026 10:01
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
@andystaples
andystaples merged commit 53a1f31 into dev Jul 30, 2026
9 checks passed
@andystaples
andystaples deleted the andystaples-warn-legacy-v1-users branch July 30, 2026 21:49
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