Proto commits in Azure/azure-functions-python-worker

These 27 commits are when the Protocol Buffers files have changed:

Commit:29bb691
Author:hallvictoria

merge conflicts

Commit:cc3b5ce
Author:hallvictoria

merge fixes

Commit:c3899d8
Author:Gavin Aguiar
Committer:GitHub

feat: Adding support for python 3.13 (#1666) * Proxy Worker: Initial Commit * Updated worker config to include 3.13 * Updated test_setup * Updated worker.py * Updated dispatcher * Updated syspath in worker.py * Updated path in worker.py * Updated worker.py * Removed reload in dispatcher * Updating v1 library worker name * Added dispatcher logs * Added dispatcher try/catch logs * Updated sys path * Dispatcher and dependency manager updates * Updated dispatcher and pyproject * Testing updates and refactoring * Bug fixes and refactoring * Added more unit tests * Added tests and fixed test setup * Updated test_setup * Updated test setup to add grpc dir copy * build: proxy worker build & test setup (#1664) * build: recognize collection_model_binding_data for batch inputs (#1655) * add cmbd * Add * Add * Rm newline * Add tests * Fix cmbd * Fix test * Lint * Rm * Rm * Add back newline * rm ws * Rm list * Rm cmbd from cache * Avoid caching * Keep cmbd check * Add comment * Lint --------- Co-authored-by: Evan Roman <evanroman@microsoft.com> Co-authored-by: hallvictoria <59299039+hallvictoria@users.noreply.github.com> * build: update Python Worker Version to 4.36.1 (#1660) Co-authored-by: AzureFunctionsPython <funcdisc@microsoft.com> * initial changes * Update Python SDK Version to 1.23.0 (#1663) Co-authored-by: AzureFunctionsPython <azfunc@microsoft.com> * merges from ADO * merge fixes * merge fixes * merge fixes * merge fixes * don't run 313 unit tests yet * changes for builds --------- Co-authored-by: Evan <66287338+EvanR-Dev@users.noreply.github.com> Co-authored-by: Evan Roman <evanroman@microsoft.com> Co-authored-by: AzureFunctionsPython <funcdisc@microsoft.com> Co-authored-by: AzureFunctionsPython <azfunc@microsoft.com> * Merging changes * linting fixes * Addressed comments * Updated unit test and added missing protos files * fix e2e test reference * lint, mypy, add 3.13 to unittests * correct version check * syntax * syntax * fix unit tests, mypy * oops * format * lint * fix unittest dir for proxy * set env variable * update pyproject to use real deps * bump to a2 * bump v2 to a3 * Import v2 by default for LC * Refactoring and minor fixes --------- Co-authored-by: hallvictoria <59299039+hallvictoria@users.noreply.github.com> Co-authored-by: Evan <66287338+EvanR-Dev@users.noreply.github.com> Co-authored-by: Evan Roman <evanroman@microsoft.com> Co-authored-by: AzureFunctionsPython <funcdisc@microsoft.com> Co-authored-by: AzureFunctionsPython <azfunc@microsoft.com> Co-authored-by: hallvictoria <victoriahall@microsoft.com> Co-authored-by: Victoria Hall <victoria.hall@microsoft.com>

Commit:84b1c31
Author:hallvictoria

V1 libray worker

This commit does not contain any .proto files.

Commit:be60b01
Author:hallvictoria
Committer:GitHub

build: proxy worker build & test setup (#1664) * build: recognize collection_model_binding_data for batch inputs (#1655) * add cmbd * Add * Add * Rm newline * Add tests * Fix cmbd * Fix test * Lint * Rm * Rm * Add back newline * rm ws * Rm list * Rm cmbd from cache * Avoid caching * Keep cmbd check * Add comment * Lint --------- Co-authored-by: Evan Roman <evanroman@microsoft.com> Co-authored-by: hallvictoria <59299039+hallvictoria@users.noreply.github.com> * build: update Python Worker Version to 4.36.1 (#1660) Co-authored-by: AzureFunctionsPython <funcdisc@microsoft.com> * initial changes * Update Python SDK Version to 1.23.0 (#1663) Co-authored-by: AzureFunctionsPython <azfunc@microsoft.com> * merges from ADO * merge fixes * merge fixes * merge fixes * merge fixes * don't run 313 unit tests yet * changes for builds --------- Co-authored-by: Evan <66287338+EvanR-Dev@users.noreply.github.com> Co-authored-by: Evan Roman <evanroman@microsoft.com> Co-authored-by: AzureFunctionsPython <funcdisc@microsoft.com> Co-authored-by: AzureFunctionsPython <azfunc@microsoft.com>

Commit:9ff0466
Author:hallvictoria

initial commit

This commit does not contain any .proto files.

Commit:0f52efc
Author:gavin-aguiar
Committer:GitHub

Retry policy support for v2 programming model (#1268) * Retry policies * Additional changes for retry policy * Added retry policy support for v2 function * Minor updates and added e2e tests * Reverted change to worker config * Added e2e tests * Updated according to new libary * Added tests * Fixed existing tests * Added unit tests * Updated time format * Updated time format --------- Co-authored-by: Gavin Aguiar <gavin@GavinPC>

The documentation is generated from this commit.

Commit:62b11cf
Author:gavin-aguiar
Committer:GitHub

Added worker metadata to init and reload response (#1166) * Added worker metadata to init and reload response * Added more asserts to tests --------- Co-authored-by: Gavin Aguiar <gavin@GavinPC>

Commit:9a58193
Author:gavin-aguiar
Committer:GitHub

Handling multi worker scenerio for pystein (#1142) * Handling multi worker scenerio for pystein * flake8 fixes * Fixed unit tests * Flake8 fix Co-authored-by: Gavin Aguiar <gavin@GavinPC.localdomain>

Commit:7cbbad0
Author:Varad

Improved logging, and new proto

Commit:81b8410
Author:gavin-aguiar
Committer:GitHub

Supporting PyStein programming model in the Worker (#965)

Commit:291a852
Author:gavin-aguiar
Committer:GitHub

Added Retry Context for python worker (#909) * Retry context initial commit * Added unit tests * Fixed spacing * Removed additional log * Fixed Lint check errors * Fixed line spacing errors * Refactored get_context * Reverting setup.py * Updated setup.py * Added doc links Co-authored-by: Varad Meru <vrdmr@users.noreply.github.com>

Commit:9324efc
Author:Gohar Irfan Chaudhry
Committer:GitHub

Shared memory data transfer between Functions Host and Python worker (#816) * Basic structure laid out for reading parameters from shared memory before passing to the function * Writing output from worker to Shared Memory * Put output from worker into Shared Memory * Free shared memory resources after use * Removed control flag from mmap header * Proto change * Working for blob shared memory data transfer; needs clean up, comments and tests * Changing message for closing mmaps * Support for string datatype for shared memory data transfer * Change to oneof * Use oneof in .proto * Refactoring mmap_handler * Refactoring, cleaning up and adding docstrings * Updating CloseSharedMemoryResourcesResponse usage * Fixing accidental changes to tests/* * Addressing comments * Basic structure laid out for reading parameters from shared memory before passing to the function * Writing output from worker to Shared Memory * Put output from worker into Shared Memory * Free shared memory resources after use * Removed control flag from mmap header * Proto change * Working for blob shared memory data transfer; needs clean up, comments and tests * Changing message for closing mmaps * Support for string datatype for shared memory data transfer * Change to oneof * Refactoring mmap_handler * Refactoring, cleaning up and adding docstrings * Updating CloseSharedMemoryResourcesResponse usage * Fixing accidental changes to tests/* * Addressing comments * Cleaning up, addressing comments * Following same class structure as the shared memory changes made for the host * Moving shared memory data transfer related changes into separate directory * Input error checks for shared memory map ctor * Rebase fix * Trying to make lint happy * Making flake8 happy * Fixing more lint issues * Removing the use of __annotations__ to be compatible with Python 3.6, adding FileAccessor tests * Added tests for FileAccessor, SharedMemoryMap, FileAccessorFactory * Adding shared memory test setup for Unix * Adding tests for SharedMemoryManager * Adding tests to ensure the dispatcher can invoke the function and send/receive inputs over shared memory using a mock host * More tests for worker/dispatcher's use of shared memory * Using truncate instead of writing 0x00 byte manually upon creating mmap. More tests for multiple input/output blobs. * Addressing comments * Adding missing tests and doc strings for tests and their classes * assertEqual -> assertTrue in test_dispose_without_delete_file * Tried with blob trigger function - removed TODO * Addressing comments * Minor const fix * Addressing comments * Fixed test - removed unused test functions * Addressing comments; caching list of valid directories for later use instead of checking every time * Whitespace fix * Cleanup * Adding AppSetting to override shared memory directory for Unix - test setup for macOS * Logging subprocess result in Exception * Changed Exception -> IOError * Check shared memory directory AppSetting only for Darwin tests * Fix test cleanup for Darwin * Only split AppSetting list of directories if the AppSetting was found * Fix consts.UNIX_TEMP_DIRS * Typo fix * Adding throughput tests for blob input/output using shared memory * Changing branch hardcode to instead use current branch * Creating tests URL from current branch name * Whitespace fixes * Using tests from local dir * Removing the need to use a URL for tests; just use from local directory * Rename env variable to follow convention from host of using FUNCTIONS_ * Addressing comments * Fixes for running tests on macOS * Log which allowed directories for shared memory are being used * Change assert -> raise Co-authored-by: Hanzhang Zeng <48038149+Hazhzeng@users.noreply.github.com>

Commit:2b8f7d6
Author:Hanzhang Zeng
Committer:GitHub

[Revert] Improve logging in python worker (#702)

Commit:7c9bcc4
Author:Hanzhang Zeng (Roger)
Committer:GitHub

Improve logging in python worker (#637) * Improve logging * Update protobuf to v1.3.7 * Fix unit test scenarios * Future proof azure_functions_worker system logs

Commit:0b68e47
Author:Maheer Iqbal
Committer:GitHub

Update proto and add custom build steps (#601)

Commit:6e5d339
Author:Maheer Iqbal
Committer:GitHub

Flatten imports for protobuf imports (#534)

Commit:26de245
Author:Maheer Iqbal
Committer:GitHub

Update protobuf (#528)

Commit:015855d
Author:Maheer Iqbal
Committer:GitHub

Remove azure namespace (#506)

Commit:b6bed3d
Author:Maheer Iqbal
Committer:Maheer Iqbal

Update proto (#300) * Removing old proto files * Adding proto with dataType in binding info * Changing dataType to string * Use enum for data type * Naming convention for data type * Add undefined as default for data type

Commit:c1b82d1
Author:Maheer Iqbal
Committer:GitHub

Update proto (#300) * Removing old proto files * Adding proto with dataType in binding info * Changing dataType to string * Use enum for data type * Naming convention for data type * Add undefined as default for data type

Commit:57a4dda
Author:Elvis Pranskevichus
Committer:Pragna Gopa

Update protos (#150) Update protobuf definitions to a42a580e5211f89d5cc605a869a48425fccbd880. Bump grpc dependencies and host build. Closes: #146

Commit:c31b006
Author:Elvis Pranskevichus
Committer:Elvis Pranskevichus

Move azure.worker to azure.functions_worker Fixes: #140

Commit:6c13d82
Author:Elvis Pranskevichus
Committer:Elvis Pranskevichus

Update protobuf definitions Updated subtree from https://github.com/azure/azure-functions-language-worker-protobuf. Branch: dev. Commit: aac95f236681ee11d81d220a88b3cbbd5470380a Fixes: #123.

Commit:042f934
Author:Pragna Gopa
Committer:GitHub

Merging dev to master (#115) * Add support for grpcMaxMessageLength command line argument * Pin the dependencies and set the version to 2.0.0 alpha 2 dev * Downgrade version to 1.0

Commit:6478e39
Author:Elvis Pranskevichus
Committer:Elvis Pranskevichus

Import FunctionRpc.proto as a subtree its repo Added subtree from https://github.com/azure/azure-functions-language-worker-protobuf. Branch: dev. Commit: 894bebb70bf89f7f4017ec0a5c1d30c1b8f0f776 Closes: #99.

Commit:95021bd
Author:Yury Selivanov
Committer:Yury Selivanov

Implement basic httpTrigger support. Immediate ToDo, ordered by priority, for next PRs: 1. Implement a Functional unittests harness. Add a test for HttpTrigger2 example. 2. Add support for azurefuncs.HttpResponse and azurefuncs.Context. 3. Add support for azurefuncs.Out. 4. Rewrite Dispatcher in async/await, adapting GRPS Future objects into asyncio Future objects.