Граф коммитов

3 Коммитов

Автор SHA1 Сообщение Дата
Varad Meru 8800edd632
Fixing the Perf Testing workflow (#994)
* Fixing the Perf Testing workflow
* Adding correct dotnet versions
* Bringing in new image
2022-04-08 10:38:27 -07:00
Gohar Irfan Chaudhry 9324efc5d4
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>
2021-03-24 10:53:56 -07:00
Varad Meru 548d807377
Adding K6 throughput scripts (#760) 2020-10-12 11:43:38 -07:00