Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 30, 2026

Motivation and Context

Reorganizes Python durable agent samples to match the .NET structure introduced in #3471. Consolidates Azure Functions and console app samples under a unified durable/ directory for better discoverability and maintainability.

Description

Directory Structure Changes:

  • Moved python/samples/getting_started/durabletask/python/samples/durable/console_apps/
  • Moved python/samples/getting_started/azure_functions/python/samples/durable/azure_functions/

Documentation Updates:

  • Created python/samples/durable/README.md with overview of durable hosting patterns
  • Updated python/samples/README.md to consolidate Azure Functions and Console Apps sections under unified Durable section
  • Updated all sample-level README files to reflect new paths

Integration Test Updates:

  • Updated python/packages/durabletask/tests/integration_tests/conftest.py to reference new sample paths
  • Updated python/packages/durabletask/tests/integration_tests/test_03_dt_single_agent_streaming.py to reference new sample paths
  • Updated python/packages/azurefunctions/tests/integration_tests/testutils.py to reference new sample paths

Result:

python/samples/durable/
├── console_apps/          # Durable Task Scheduler samples (worker-client pattern)
│   ├── 01_single_agent/
│   ├── 02_multi_agent/
│   └── ...
└── azure_functions/       # Azure Functions with Durable Extension samples
    ├── 01_single_agent/
    ├── 02_multi_agent/
    └── ...

All imports, file paths, code references, and integration test paths verified functional. No breaking changes to sample functionality or test infrastructure.

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.
Original prompt

This section details on the original issue you should resolve

<issue_title>Python: Move samples to durable directory</issue_title>
<issue_description>Similar as #3471 for Python</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

- Moved getting_started/durabletask to durable/console_apps
- Moved getting_started/azure_functions to durable/azure_functions
- Updated all paths in README files
- Created durable/README.md with overview
- Updated main samples README.md with new structure

Co-authored-by: larohra <[email protected]>
Copilot AI changed the title [WIP] Move Python samples to durable directory Python: Move samples to durable directory Jan 30, 2026
Copilot AI requested a review from larohra January 30, 2026 22:32
@larohra
Copy link
Contributor

larohra commented Jan 30, 2026

@copilot the integration tests for both azurefunctions and durabletask package rely on the samples path to run. Can you update those too to match the new directory structure?

- Updated durabletask integration tests to use samples/durable/console_apps
- Updated azurefunctions integration tests to use samples/durable/azure_functions
- Fixed paths in conftest.py, test_03_dt_single_agent_streaming.py, and testutils.py

Co-authored-by: larohra <[email protected]>
Copy link
Contributor Author

Copilot AI commented Jan 30, 2026

@copilot the integration tests for both azurefunctions and durabletask package rely on the samples path to run. Can you update those too to match the new directory structure?

Updated the integration test paths in commit 2a5186c. The following files have been fixed:

  • python/packages/durabletask/tests/integration_tests/conftest.py - now uses samples/durable/console_apps
  • python/packages/durabletask/tests/integration_tests/test_03_dt_single_agent_streaming.py - now uses samples/durable/console_apps
  • python/packages/azurefunctions/tests/integration_tests/testutils.py - now uses samples/durable/azure_functions

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.

Python: Move samples to durable directory

2 participants