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

421 Коммитов

Автор SHA1 Сообщение Дата
AzureFunctionsJava 9bd7f130cd Update Java Worker Version to 2.7.0 2022-10-05 20:15:16 +00:00
kaibocai c1895b561e
refactor java worker - add middleware support (#652)
* decouple function definition and function executor

* add function exceptions

* remove unnecessary synchronized block

* review updates

* fix invocatioid error

* rename factory get method

* middleware support logics (#659)

* middleware support logics

* refactor code

* rename middleware chain

* refactor code

* fix error

* refactor code

* minor updates

* remove used local varaible

* APIs change accordingly

* update method name

* update method name

* update core lib version to 1.1.0
2022-10-05 14:55:54 -05:00
AzureFunctionsJava d9bf967547 Update Java Worker Version to 2.6.0 2022-09-23 15:02:58 +00:00
Shreyas Gopalakrishna 5c9d4543db
Enable placeholders to start with app insights agent using profiles (#656)
* Add app insights agent as part of worker

* Update worker.config.json with profile conditions

* Update worker.config.json

* Update worker.config.json

* Update AI agent version

* Updated regex

* Updated regex
2022-09-22 20:12:01 -05:00
kaibocai f61a0380e8
Change the pool for testing to reduce pipeline running time (#655)
* fix pool for testing

* add branch for testing

* change to vmImage

* remove pool demands

* change to testing pool
2022-09-22 13:34:06 -07:00
AzureFunctionsJava ff5a2a2eab Update Java Worker Version to 2.5.0 2022-09-21 19:28:23 +00:00
kaibocai 5f53c618c4
Revert "migrate java8 to java11 (#636)" (#649)
This reverts commit f0440c3627.
2022-09-16 09:50:42 -07:00
Shreyas Gopalakrishna 59d7dd1c56
Gracefully shutdown worker on WorkerTerminate request (#631)
* Gracefully shutdown worker on WorkerTerminate request

* Removing empty logger
2022-09-09 10:57:53 -05:00
kaibocai f0440c3627
migrate java8 to java11 (#636)
* migrate java8 to java11

* formulate unit test cases by convention

* remove test code

* update file path to test jar

* test jar file exits

* add log for testing jar file exits

* update test cases follow old pattern

* create FunctionClassLoaderProvider at each test

* add back beforeclass

* remove steps for testing

* test java17 linux

* add test cases to narrow issue

* add logs to locate the issue

* add more logs

* add logs

* fix integration test

* clean up code

* add log

* add logs

* add logs

* add logs

* reset singleton classLoaderInstance

* add back pipeline jobs

* clean up code

* rename unit test ExecutionTraceContextTest

* remove unused logics
2022-09-08 08:00:28 -07:00
kaibocai ac6cb815d9
remove hard code version as it's not necessary (#627)
* remove hard code version as it's not necessary

* update build version
2022-08-19 14:40:20 -05:00
kaibocai 8845d98d17
release worker 2.4.0 (#625) 2022-08-17 14:52:43 -05:00
kaibocai 7c38b5a71e
release worker 2.3.3 (#624) 2022-08-17 14:39:01 -05:00
Shreyas Gopalakrishna 80373ab095
Revert "Downloading application insights agent as part of the java worker (#539)" (#618)
This reverts commit 7722fe52e4.

Co-authored-by: kaibocai <89094811+kaibocai@users.noreply.github.com>
2022-08-17 10:48:15 -05:00
kaibocai 860fe96b3d
update linux pipeline using correct jdk (#617)
* update linux pipeline using correct jdk

* update java versionSpec
2022-08-16 15:54:13 -05:00
Shreyas Gopalakrishna 4672549ef7
Adding logs for easier debugging (#615) 2022-08-15 12:37:10 -05:00
kaibocai 8b2a459a52
remove unnecessary ServiceLoader load logic (#614)
* remove unecessary ServiceLoader load logic

* remove unused import
2022-08-15 10:51:14 -05:00
kaibocai 1ca5098410
Revert "migrate java8 to same logic as java11 (#611)" (#613)
This reverts commit bc17726711.
2022-08-12 12:35:57 -05:00
kaibocai bc17726711
migrate java8 to same logic as java11 (#611) 2022-08-12 10:14:59 -05:00
kaibocai 1507c467d6 update test config 2022-08-10 12:47:36 -05:00
kaibocai 19748deedd add spring cloud functions to end2end tests 2022-08-10 12:47:36 -05:00
Shreyas Gopalakrishna 210d5d5476
Read worker directory from WorkerInitRequest (#608) 2022-08-10 09:59:30 -07:00
kaibocai a7fd08bca1
update extension bundle to 3 for e2e tests (#607) 2022-08-10 09:58:22 -07:00
Shreyas Gopalakrishna 2209f02ed8
Update pipeline to run tests on Linux (#606)
* Update pipeline to run tests on Linux

* Added comment for pipeline

* Removed test for FUNCTIONS_WORKER_JAVA_LOAD_APP_LIBS in V4

* Updated pipeline
2022-08-08 12:09:14 -07:00
msftbot[bot] 25d01978f5
Add `.github/fabricbot.json` (#597)
Co-authored-by: msftbot[bot] <48340428+msftbot[bot]@users.noreply.github.com>
2022-08-04 11:25:35 -07:00
microsoft-github-policy-service[bot] 6b826b0d21
Microsoft mandatory file (#602)
Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
2022-08-04 11:24:18 -07:00
Shreyas Gopalakrishna 36c24500a6
Updated java worker to build and run tests on Linux (#604)
* Updated end to end tests to run on Linux

* Adding import
2022-08-04 08:46:05 -05:00
kaibocai fd3cc23093
fix issue for classloader not correct for java11 static fields (#594) 2022-08-01 11:30:11 -05:00
kaibocai c4d4c338a6
fix bug missing system logs in ksuto (#593) 2022-07-28 16:15:24 -05:00
kaibocai 8e8b53fb1a
adding worker metadata for WorkerInitResponse (#600)
* Updated subtree from https://github.com/azure/azure-functions-language-worker-protobuf. Tag: v1.5.8-protofile. Commit: 14b2ba5ccb188c160c0f6c519ec1d4521ee36440

* change to int_x, double_x avoding keyword conflict in java

* add worker meta data info

* change format to align with other workers

* add new method to compose worker metadata

* fix type in method name
2022-07-25 13:55:05 -05:00
kaibocai 1052102682
Revert "Update worker.config.json to include profiles that enable and disable app insights (#586)" (#598)
This reverts commit 1e63421d61.
2022-07-22 15:56:15 -05:00
Shreyas Gopalakrishna 1e63421d61
Update worker.config.json to include profiles that enable and disable app insights (#586)
* Update worker.config.json to include profiles that enable and disable app insights

* Update worker.config.json

* Update worker.config.json

* Update worker.config.json
2022-07-12 13:20:33 -05:00
Shreyas Gopalakrishna 7722fe52e4
Downloading application insights agent as part of the java worker (#539)
* Downloading application insights agent as part of the java worker

* Updated setup-tests-pipeline.ps1 to unsign app insights jar

* Update setup-tests-pipeline.ps1

* Update package-pipeline.ps1

* Update setup-tests-pipeline.ps1

* Updated downloading AI agent jar

* Update package-pipeline.ps1

* Update setup-tests-pipeline.ps1
2022-07-12 13:20:00 -05:00
dependabot[bot] be760addee
Bump Newtonsoft.Json (#592)
Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 11.0.2 to 13.0.1.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Commits](https://github.com/JamesNK/Newtonsoft.Json/compare/11.0.2...13.0.1)

---
updated-dependencies:
- dependency-name: Newtonsoft.Json
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-22 16:36:07 -05:00
Shreyas Gopalakrishna 23750f009f
Release Java worker 2.3.1 (#591)
* Update pom.xml

* Update azure-pipelines.yml
2022-06-21 15:05:37 -05:00
Shreyas Gopalakrishna 6fd074a949
Release Java worker 2.3.0 (#590)
* Update Java worker and library version

* Updated end to end tests java library version

* Update azure-pipelines.yml
2022-06-21 13:43:34 -05:00
kaibocai 30a29006cf
Updated subtree from https://github.com/azure/azure-functions-languag… (#584)
* Updated subtree from https://github.com/azure/azure-functions-language-worker-protobuf. Tag:v1.5.7-protofile. Commit:6cccbbfbf84d3c21b21236ae34ec0590c032daad

* Updated subtree from https://github.com/azure/azure-functions-language-worker-protobuf. Tag: v1.5.8-protofile. Commit: 14b2ba5ccb188c160c0f6c519ec1d4521ee36440

* Update FunctionRpc.proto

Updated name to int_x and double_x since int and double are keywords in java and generated grpc code throws error if key words are used as variable names. 
Since GRPC relies on the number for comparing, it is better to rename the variable to anything but int and double here.

Co-authored-by: Shreyas Gopalakrishna <11889130+shreyas-gopalakrishna@users.noreply.github.com>
2022-06-20 12:52:19 -05:00
kaibocai dafba195c0
Clean unused maven plugin (#583)
* Clean unused maven plugin 

build-helper-maven-plugin is doing the repeated work which has already be done by protobuf-maven-plugin -- add generate grpc java file to source directory.

* update out-of-date maven plugins

* remove unused maven plugin build-helper-maven-plugin
2022-06-20 12:52:03 -05:00
kaibocai 2b31b8d3c6
build executable jar that support java17 (#581)
* build executable jar that support java17

* add task to check default java version on vm

* remove --add-open option in pom file

* open package java.util for linux consumption support
2022-06-20 12:47:01 -05:00
kaibocai 72ae44af79
minor refactor (#573)
* update-developer - add comments when updating env variables for running jvm

* remove uncessary warning

* add comments on pom plugins - update plugins
2022-05-25 11:08:33 -05:00
kaibocai 00bf0b5f9b
use correct paramtertype to avoid use class from sun packages (#571) 2022-05-13 16:54:36 -05:00
kaibocai 02d3fc4369
update retry tests (#564)
* remove retry test case for http trigger - and retry test case for eventhub trigger

* eventhub 1 reach max capactiy, switch to eventhub 2 for max retry count test

* same as last commit

* remove test cases already has replacements

* clean up comments
2022-05-05 11:37:08 -05:00
kaibocai 83aa519960
add job in pipeline testing jdk17 (#568) 2022-05-04 10:20:13 -05:00
kaibocai 557ac160d0
update unit tests/e2e tests (#562)
* add test cases for eventhub - update pom file

update test cases for eventhub

revoke change on Constants.cs - and cosmosdb

remove unused Constants

add missing Constants

update out of date plugins in end2end pom file

test without new eventhub test cases

use jdk 1.8 to compile

fix function url

add test cases for eventhub

remove not working test cases

remove unused dependencies

* add back utils

* update Util class comparing string
2022-05-02 10:13:29 -05:00
kaibocai 3a6852f3dd
Revert "add test cases for eventhub - update pom file (#560)" (#561)
This reverts commit 14fc6070de.
2022-04-26 11:32:51 -05:00
kaibocai 14fc6070de
add test cases for eventhub - update pom file (#560)
update test cases for eventhub

revoke change on Constants.cs - and cosmosdb

remove unused Constants

add missing Constants

update out of date plugins in end2end pom file

test without new eventhub test cases

use jdk 1.8 to compile

fix function url

add test cases for eventhub

remove not working test cases

remove unused dependencies
2022-04-26 10:41:54 -05:00
Ahmed El Sayed fcfdd3c889
Update README.md 2022-04-08 12:32:28 -05:00
kaibocai 7b38be745c release worker version to 2.2.3 2022-04-07 17:28:33 -05:00
Shreyas Gopalakrishna 40e64a0c10 Upgrade grpc to 1.45.0, gson to 2.9.0 and protobuf-java to 3.19.4 2022-04-07 16:28:48 -05:00
kaibocai 32d0a3bb22 Update CODEOWNERS
update code owners
2022-04-07 12:21:16 -05:00
Shreyas Gopalakrishna ac81bab0ca Updated end to end tests java library and maven plugin 2022-04-06 23:20:17 -05:00