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

657 Коммитов

Автор SHA1 Сообщение Дата
hallvictoria cdc01ec56b
fix: changed target path for builds (#1544)
* changed target path for builds

* removing specified dirs / files from build

* added .artifactignore

* correct ignore cond

* slash direction

---------

Co-authored-by: Victoria Hall <victoria.hall@microsoft.com>
2024-07-24 14:38:08 -05:00
hallvictoria ee72ae417e
fix: publish worker nuget package (#1543)
* build artifacts nuget package

* remove prerelease package step

* changed target path

---------

Co-authored-by: Victoria Hall <victoria.hall@microsoft.com>
2024-07-23 13:28:20 -05:00
gavin-aguiar bc0f40f45d
Removed 312 from docker tests (#1542) 2024-07-23 11:21:11 -05:00
gavin-aguiar 9376d0a634
Added build artifacts for python3.12 (#1541)
Co-authored-by: Gavin Aguiar <gaaguiar@GavinMac.local>
2024-07-22 19:39:29 -05:00
hallvictoria 1c7c102845
Update Python Worker Version to 4.30.0 (#1540)
Co-authored-by: AzureFunctionsPython <funcdisc@microsoft.com>
2024-07-22 17:56:35 -05:00
gavin-aguiar bd14bc39a8
feat: Update to support py312 (#1533)
* Update to support py312

* Fixed new relic unit tests

* Adding 312 to unit tests

* 312 typo

* py312 flake8 fix

* Removed 312 for consumption tests

* Downgraded protobuf

* Updated protobuf and grpc versions

* Downgrading protobuf to < 5

* Reverted new relic unit test

* Updated nuspec file

* Fixed pipeline for sql e2e tests

---------

Co-authored-by: hallvictoria <victoriahall@microsoft.com>
Co-authored-by: hallvictoria <59299039+hallvictoria@users.noreply.github.com>
2024-07-22 17:03:55 -05:00
hallvictoria ef81a32a6f
refactor: updating pipeline variable references (#1534)
* test pipeline with variable group

* added variable group as part of pipelines

* dev testing based on branch name

* typo

* factor out strategy

* test e2e

* extends in ci

* syntax attempt

* lc testgs

* revert

* strategy

* revert

* missed refs

* test variable

* revert test dev packages for unit, lc tests

* missed ref
2024-07-16 10:42:54 -05:00
hallvictoria 87f4dddbd4
remove unit tests, sequentially run test (#1532) 2024-07-12 15:45:59 -05:00
gavin-aguiar 81a314b407
refactor: Added command line util for setting up tests (#1530)
* style: Isortifying the repo and adding pyproject.toml

* Updating PyProject.toml

* Added invoke cmdutil

* Fixed typo

* Fixed flake8 tests

* Fixed typo in comment

* Minor fixes

* Unpinned pip version

---------

Co-authored-by: Varad <varad.meru@gmail.com>
2024-07-12 14:49:31 -05:00
Varad Meru f01ea130e6
style: Isortifying the repo and adding pyproject.toml (#1526)
* style: Isortifying the repo and adding pyproject.toml

* Sorting tests imports

* Fixing the line length to 88

* Updating PyProject.toml

* Updating PyProject.toml

* Addressed comments on pyproject

* Updated dependencies to the 3.7 supported versions

---------

Co-authored-by: gavin-aguiar <gaaguiar@microsoft.com>
Co-authored-by: gavin-aguiar <80794152+gavin-aguiar@users.noreply.github.com>
2024-07-11 16:29:32 -05:00
hallvictoria 97cb71f557
fixed pools for official build (#1527)
Co-authored-by: Victoria Hall <victoria.hall@microsoft.com>
2024-07-11 12:58:37 -05:00
hallvictoria e87a31aed4
test: update pipeline to allow testing with dev libraries (#1520)
* sync with ADO changes

* removed specific build id

* test commit

* test commit

* latest dev run

* latest from branch

* latest

* skip build tagging for public build

* print debugging info

* added ext and sdk pipeline resources

* maxDiff = None

* variable passing for sdk

* revert variable group

* latest for sdk

* skip dep isolation test

* specified project name

* missed ref

* missed ref

---------

Co-authored-by: Victoria Hall <victoria.hall@microsoft.com>
2024-07-01 17:07:30 -05:00
hallvictoria fd390606b9
typo in public build (#1519) 2024-06-25 16:11:50 -05:00
hallvictoria 3f76aa58b6
fix: referencing absolute paths for ADO pipelines (#1518)
* absolute paths

* formatting

* official build
2024-06-25 15:29:59 -05:00
hallvictoria 89a54f0713
fix: 1ES pipeline fixes (#1512)
* security fixes

* security fixes

* formatting\

* formatting

* added variable to pipeline

* lint

* directory typo

* pin numpy

* pin for 3.7

* pin for lc

* remove numpy pinning

* numpy test fixes

* ADO changes

* public build formatting

* removed internal pool from unit tests

* unit tests use linux pool

* syncing with ADO changes

* logging test and async httpv2 changes

* core tools, unit test fixes

* docker test fixes

* skipping unit tests

* installing base extension to container

* install pytest

* typo

* additional pytest packages

* added requests

* initialized variable

* install .[dev]

* PEII docker variable

* sync with ADO changes

* docker test fixes

* install docker dependencies

* install docker dependencies

* teardownclass

* typo in wpc tests

* separate folder for httpv2 tests

* cache fix

* name typo

* adding PIWD for httpv2

* sync with ADO branch

* sync with ADO branch

* scheduled integration tests

* lc env var fix

* feedback

* missed change

---------

Co-authored-by: Victoria Hall <victoria.hall@microsoft.com>
2024-06-25 14:03:57 -05:00
hallvictoria c244569730
build: update to 1ES PT (#1503)
* code mirror template for worker

* converting to 1ES pipeline

* basic 1ES pipeline

* basic format changed 1ES pipeline

* same template as openai pipeline

* official build template

* official, public, e2e builds

* yml formatting

* tests typo

* formatting & feedback

* removed nuget internal reference

* removed official folder

* feedback, updating public build

* updating build cmd and dotnet version

---------

Co-authored-by: Victoria Hall <victoria.hall@microsoft.com>
Co-authored-by: Manvir Kaur <67894494+manvkaur@users.noreply.github.com>
2024-06-14 12:27:17 -05:00
hallvictoria 255fc248ad
Update Python Worker Version to 4.29.0 (#1511)
Co-authored-by: AzureFunctionsPython <funcdisc@microsoft.com>
2024-06-13 16:25:42 -05:00
hallvictoria 3e3695f629
build: update Python SDK Version to 1.20.0 (#1510)
* Update Python SDK Version to 1.20.0

* Update setup.py

* Update setup.py

---------

Co-authored-by: AzureFunctionsPython <funcdisc@microsoft.com>
2024-06-13 14:17:29 -05:00
hallvictoria 31f0e832a6
build: update Python SDK Version to 1.20.0b4 (#1506)
* Update Python SDK Version to 1.20.0b4

* Update setup.py

---------

Co-authored-by: AzureFunctionsPython <funcdisc@microsoft.com>
2024-06-07 16:50:39 -05:00
hallvictoria 2f65a2f50e
fix: latest pytest version breaking tests (#1507)
* install specific pytest version

* ~=7.4.4

---------

Co-authored-by: Victoria Hall <victoria.hall@microsoft.com>
2024-06-07 13:59:15 -05:00
hallvictoria 8214d0cec9
fix: enable missed return types for generic (#1485)
* tests, support for dict & httpresp

* support for returning list

* added support for int, double

* bool support, unit tests

---------

Co-authored-by: Victoria Hall <victoria.hall@microsoft.com>
2024-05-29 10:50:12 -05:00
hallvictoria b0bacf0ad1
Moving and adding default value to var (#1494)
Co-authored-by: wangbill <12449837+YunchuWang@users.noreply.github.com>
2024-05-28 11:13:59 -05:00
hallvictoria cd13c6aa1d
fix: remove masking E2E test failures (#1483)
* removed script, fail fwpc tests

* removed failure

* just fwpc and tptc tests

* fwpc tests from script

* two scripts

* worker config

* debug logging test

* pop env vars for fwpc and tptc

* blueprint tests

* newrelic piwd test

* increased retries

* increased retries

* registry flaky test

* issue / feature request templates

* typo

* formatting

* except JSONDecodeError for retries

* removed instafail

* separate job for each test script

* removed apostrophes

* fixed matrix

* 3.7 & 3.8 db tests

* if cond validation

* Matrix test types

* fixed permissions

* feedback

* checked in permissions

* permissions + single file

---------

Co-authored-by: Victoria Hall <victoria.hall@microsoft.com>
2024-05-15 16:45:06 -05:00
hallvictoria 5bc5d39eff
build: update Python SDK Version to 1.20.0b2 (#1493)
* Update Python SDK Version to 1.20.0b2

* Update setup.py

---------

Co-authored-by: AzureFunctionsPython <funcdisc@microsoft.com>
2024-05-13 11:36:54 -05:00
hallvictoria 52993085ff
build: update Python SDK Version to 1.20.0b1 (#1488)
* Update Python SDK Version to 1.20.0b1

* Update setup.py

* dateutil

---------

Co-authored-by: AzureFunctionsPython <funcdisc@microsoft.com>
2024-04-30 18:02:15 -05:00
Lucy Zhang 118e711d0a
test: Add SQL v2 end to end tests (#1484)
* add e2e tests for sql v2

* fix errors

* fix test

* fix generic test

* pylint
2024-04-23 09:30:25 -05:00
gavin-aguiar 6587898423
fix: Update function directory in load request to use /home/site/wwwroot (#1480)
* Updating function dir in metadata resp

* Updating test imports

* Removed path hardcoding

* Added UT

* Revert FileNotFound error

* Added Otel flag

* Linting fix

* Fixed index func
2024-04-18 14:25:49 -05:00
hallvictoria a754e58e9e
fix: allow returning none for generic bindings (#1379)
* allow nill data for generic bindings

* tests

* lint

* added comment

* compatible with generic implicit output

* removed if cond

* revert return none supp

* added back support for returning None

* e2e test with generic bind and return none

---------

Co-authored-by: Varad Meru <vrdmr@users.noreply.github.com>
Co-authored-by: gavin-aguiar <80794152+gavin-aguiar@users.noreply.github.com>
Co-authored-by: Victoria Hall <victoria.hall@microsoft.com>
2024-04-18 11:33:56 -05:00
gavin-aguiar 51758a2cc2
feat: OpenTelemetry support (#1469)
* OpenTel Support

* OpenTelemetry support

* Refactored otel config

* Linting fix

* Added Unit Tests

* Moved logging to init

* Updated reload request

* Linting fix

* Made var private

* Updating constant

---------

Co-authored-by: wangbill <12449837+YunchuWang@users.noreply.github.com>
2024-04-12 17:26:40 -05:00
hallvictoria 389539a721
build: update Python SDK Version to 1.19.0 (#1478)
* Update Python SDK Version to 1.19.0

* Update setup.py

---------

Co-authored-by: AzureFunctionsPython <funcdisc@microsoft.com>
2024-04-12 16:31:37 -05:00
wangbill 2c77ac5d3c
feat: Http V2 Support (#1455)
* Http Proxy Support

Http Proxy Support

integration

refactor

update ext name

add to env reload

add dep

revert

* final changes and tests

* fix ppl

* revert

* fix

* fix

* fix

* fix

* flake8

* flake8

* flake8

* only run for 3.8+

* FIX

* skip tests for 3.7-

* fix

* fix

* fix

* fix

* fix styles

* fix

* s

* fix

* fix

* revert

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* tests

* fix

* test

* tests

* fix

* fix

* fix

* move init server

* fix

* test

* update ppls

* fix test

* fix tests

* fix

* fix

* fix

* Revert "fix"

This reverts commit bc9ca7f024.

* skip

* fix tests

* style

* test

* test

* ff

* test

* style

* skip

* test

* fix

* fix

* fix

* replay

* f

* fix

* codecov fix

* Mount base extension to fix consumption test failures

* style

* revert

* revert

* revert ppls

* test

* Revert "test"

This reverts commit 4142767813.

* address feedback

* revert ut ppl

* skip checking has http func

* fix test

* style

* revert cache ppl

* revert ppl

* pip fix

* try fix 3.7 ppl

* try

* oh meta

* fix

* fix

* fix

* dont pin fastapi to fix cmake err

* fix

* fix

* update azfunc base

* update

* feedback

* feedback

* feedback

* add docs

* merge fix

* feedback

* feedback

* feedback

* feedback

---------

Co-authored-by: hallvictoria <victoriahall@microsoft.com>
2024-04-12 14:10:04 -07:00
wangbill 9709e08036
ci: fix compiling webhost failure in all pipelines (#1477)
* Fix compiling webhost failure in all pipelines

* Update setup.py

* Update setup.py
2024-04-12 09:34:57 -07:00
wangbill 685fc11aff
ci: linting pipeline permission fix (#1475)
* Linting pipeline permission fix

* Update linter.yml
2024-04-12 08:08:21 -07:00
hallvictoria 330783f867
feat: SDK bindings changes (#1423)
* sdk working prototype

* misc

* new registry pseudo

* prototype changes

* weird dispatcher changes

* almost works

* working prototype!!

* reset flag

* support for mix & match in same func

* added pytype to decode()

* caching

* added tests

* revert later

* lint, clean up, templates

* reorder

* reorder again

* test pypi problems

* correct dir

* checking tests

* 404s

* investigating 500s

* no cache

* debugging

* more helpful debugging

* check raw bindings

* runtime error

* runtime error logging attempt

* local logger

* sys modules

* typo

* extensions version

* testing changes -- revert later

* added host logs

* spacing?

* debugging changes

* Moved dateutil to install_requires (#1443)

* Moved dateutil to install_requires

* Flake8 fixes

* Update Python Worker Version to 4.26.0

* net8 target framework

* stdout is not none

* tests pass locally

* updating extension versions

* temp table test fix

* table and eventhub test fix

* all blob tests

* merge with dev

* no importlib

* specific tests only for deferred bindings

* removed -e

* syntax

* ignore test, add back in cache

* revert eh and table tests

* blob extension resources

* >=3.9 support + test fixes

* lint

* removed testing changes

* lint again

* unit tests fix

* append to list

* fixes + tests

* reset flag, extra test

* revert meta changes, tests passing locally

* fixed tests

* fix unit test, import by default

* revert default import, meta refactoring

* fixed meta refactor

* added tests for helpers

* type syntax

* fixed tests

* actually fixed tests

* update base ext supported python version

* fixing unit test timeouts?

* setup.py too

* installing from .[deferred-bindings]

* update base ext supported python version again

* update var name in setup.py

* update var name in meta

* refactor tests into sep folder

* lint + install only .NET6

* remove script

* edit workflow

* import by default, misc fixes

* revert, only changed var name

* get_binding check

* revert get_binding check, import by default

* lint

* rename, replace None checks, comments

* fixed flag placement

* attribute error + lint

* fixed unit tests

* yml bug/feature reports

* moving flag set out of get_binding

* lint + 100

* add registry none check

* lint

* move check

* revert error raise

* changed order

* revert flag set

* loader registry none check

* adding back in checks

* reports & workflow feedback

* permissions + consumption

* feedback

* setup.py

* db test csproj

* remove 3.12

* combined db & e2e test workflow

* fixed consumption workflow

* fixed 3.7 tests

* skip all tests

* renamed registries as constants

* add flag as part of FunctionInfo + tests

* lint

* added logs (fails until new base)

* lint + base update

* changing bind_name (fails until exts)

* Revert "changing bind_name (fails until exts)"

This reverts commit 7971498bea.

* is_db property added to PTI

* fixed test

* quick log

* better log

* lint

* refactor FI + pin pip

* return cache val immediately

* install .[test-db] only for >=3.9

* fixing installation

* fixing installation pt2

* fixing installation pt3

* sep step for installations

* sep step for installations pt2

* closed if + semicolon

* updated refs to base

* updated refs to blob (rerun later)

* update setup.py

* remove import try/catch

* log bug fix

* unit tests

* pin pip

* log if base not found

* log delimiters

* removed f strings

* lint + feedback

* pydocs + default val

* get_raw_bindings method

* var names + docs

---------

Co-authored-by: gavin-aguiar <80794152+gavin-aguiar@users.noreply.github.com>
Co-authored-by: AzureFunctionsPython <funcdisc@microsoft.com>
Co-authored-by: Victoria Hall <victoria.hall@microsoft.com>
Co-authored-by: wangbill <12449837+YunchuWang@users.noreply.github.com>
2024-04-11 18:53:19 -05:00
wangbill 0f8c67daae
test: Mount base extension to fix consumption test failures (#1470)
* Mount base extension to fix consumption test failures

* style

* feedback
2024-04-10 16:18:38 -07:00
wangbill cb9de5866c
fix: Unpin azure-eventhub to not use latest cmake which breaks 3.7 (#1474) 2024-04-10 15:42:29 -07:00
wangbill 0913d9c3d4
(ci): Create pr_title_enforcer.yml (#1464) 2024-04-05 12:34:31 -07:00
gavin-aguiar 30789ed5ca
Docker tests updates (#1457)
* Docker tests updates

* Fixed consumption custom image if empty

* Updated extension csproj to use .net8

* Update extensions to include System.Drawing.Common

* Update extensions to include System.Text.Json

* Added table extension

* table & eh, unit, lint

* eh test

* lint

---------

Co-authored-by: hallvictoria <victoriahall@microsoft.com>
2024-04-02 15:26:16 -05:00
Lucy Zhang 4c8fb7bab9
Add sql trigger e2e test (#1375)
* add sql trigger e2e test

* fix pylint

* update sql extension version

* add return

---------

Co-authored-by: peterstone2017 <12449837+YunchuWang@users.noreply.github.com>
Co-authored-by: gavin-aguiar <80794152+gavin-aguiar@users.noreply.github.com>
2024-03-28 10:27:18 -05:00
gavin-aguiar 8ebd94ea87
Moving function indexing to init request (#1446)
* Moved indexing to init

* Updated handle init request

* Added e2e tests

* Added unit tests

* Added more unit tests

* Linter fixes

* Added consumption tests

* Minor Refactoring

* Fixed comments

* Throwing ex in load response

* Updated app setting name

* Addressed comments

* Addressed comments

* Addressed comments
2024-03-25 11:45:21 -05:00
peterstone2017 c68f88bc42
Restore latest dev (#1445)
* Moved dateutil to install_requires (#1443)

* Moved dateutil to install_requires

* Flake8 fixes

* Update Python Worker Version to 4.26.0

---------

Co-authored-by: gavin-aguiar <80794152+gavin-aguiar@users.noreply.github.com>
Co-authored-by: AzureFunctionsPython <funcdisc@microsoft.com>
2024-03-11 12:25:42 -07:00
hallvictoria b7fbdcab3b
Update Python SDK Version to 1.19.0b3 (#1441)
* Update Python SDK Version to 1.19.0b3

* Update setup.py

---------

Co-authored-by: AzureFunctionsPython <funcdisc@microsoft.com>
2024-03-06 16:39:29 -06:00
hallvictoria c7ab3e94ed
Enabled implicit output for generic bindings (#1391)
* enabled implicit output for generic bindings

* should only fail durable tests?

* special case for table

* extra test for table

* special case for logic apps

* special case for durable

* fixing failing eventhub batch test

* added output binding

* flake

* eventhub output binding

* flake

* changed param name

* add_function prio explicit return type

* added tests

* added V2 test

* remove if cond for durable client

* lint

* Revert "remove if cond for durable client"

---------

Co-authored-by: peterstone2017 <12449837+YunchuWang@users.noreply.github.com>
2024-03-06 16:01:24 -06:00
hallvictoria 2e91fa19f7
Fixed unit and docker tests (#1438)
* fixed invalid stein tests

* removed retries

* @pytest.mark.asyncio

* pytest-asyncio in setup.py

* class scope

* event loop policy

* def event_loop

* check status

* fixing filename docker tests

* fixing dispatcher tests
2024-03-05 13:52:26 -06:00
hallvictoria 7de7724abc
Refactoring typing_inspect.py (#1435)
* refactor typing_inspect

* deleted import

* updated test

* lint

---------

Co-authored-by: gavin-aguiar <80794152+gavin-aguiar@users.noreply.github.com>
2024-03-01 16:49:46 -06:00
hallvictoria 8f1c7b196c
Testing new SB properties (#1425)
* added extra sb properties to test

* json format datetime

* json decode all datetime props

* testing for missed properties

* fixing eg and eh tests

* fixing eg tests

* parsing datetime

* missing comma

* lint

* isoformat

* moved isoformat

* revert eg changes

* comma

* just sb

* flake

* checking properties

---------

Co-authored-by: gavin-aguiar <80794152+gavin-aguiar@users.noreply.github.com>
2024-02-29 21:45:12 -06:00
gavin-aguiar b97a4ad394
Test Fixes for 503 error (#1433)
* 503 tests fixes

* Flake8 fixes

* Disabling extensions for http

* Fixed docker tests

* Updated e2e test for file_name

* Changing scope for running unit tests

* Updated invalid stein testscases

* Reverting to pytest loadfile

* Updating extensions

* Closing host before cleanup

* Calling teardownclass directly from except block

* Fixed flake8 validation

* Reverting disabling extensions

* Changing the order of install extensions

* Removing the EnableWorkerIndexing flag

* Changed target framework

* Raising error if webhost fails to start

* Added Azure messaging eh and eg to extension.csproj

* Removing dockerfile

* Moving extensions template to constants.py

* Minor fixes

* Skipping installing extensions for unit tests

* Updating target framework

* Addressed comments
2024-02-29 17:21:09 -06:00
hallvictoria 3dd54afa14
Python 3.6 baggage code removal (#1419)
* removing refs to 3.6

* flake

* feedback

* removed aio_compat

* setup cfg

* venv311
2024-02-13 13:08:40 -06:00
gavin-aguiar 5f352af77f
Update Python SDK Version to 1.19.0b2 (#1430)
* Update Python SDK Version to 1.19.0b2

* Update setup.py

* Update setup.py

---------

Co-authored-by: AzureFunctionsPython <funcdisc@microsoft.com>
2024-02-13 12:17:55 -06:00
Varad Meru c0a2c3c1cd
Configure Precommit hooks with black and isort (#1416)
* Precommit configured
* Updating flake8 limits and add isort to precommit
* Adding flake8 and configuration for isort
2024-01-31 16:16:14 -06:00