Commit Graph

485 Commits

Author SHA1 Message Date
Christian Kaps 83803f575d
Implement bindings for the Zeebe workflow engine (#806)
* Implement bindings for the Zeebe workflow engine

* Fix PR suggestion regarding error handling

* Refactor cancel_instance test to not use a mocking library

* Refactor all tests to not use a mocking library

* Use error vars

* Fix linting error regarding ineffective error assignment

* Check for mandatory jobType

* Remove double method call

* Fix suggestion regarding mock client instantiation

* Check if either bpmnProcessId or workflowKey is given for workflow instantiation

* Changed logger module to dapr/kit. Misc tweaks.

* Fix go.mod

* Fixing some lint errors

* Ignoring linter false positive

Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
2021-04-28 17:23:11 -07:00
Artur Souza b180a43044
Automerge in contrib. (#849) 2021-04-28 16:12:21 -07:00
Donovan Brown 4a1cfea325
Fixed bug where default vaultaddr is never used. (#791)
* Fixed bug where default vaultaddr is never used.

* Fixing vault tests on Windows.

Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
2021-04-28 12:23:17 -07:00
Christian Kaps b404517388
Use `go mod tidy` before make (#799)
* Use `go mod tidy` before make 

I have the issue with go 1.16 that I cannot build dapr because of a lot of errors with the message:

```
missing go.sum entry for module providing package ...
```

Maybe it's because of this issue: https://github.com/golang/go/issues/44129

Executing `go mod tidy` fixed it for me.

* Update mod tidy check equal to the one used in dapr/dapr

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-04-26 23:08:52 -07:00
Phil Kedy 509b54258e
Fixing backup current daprd command (#843) 2021-04-26 15:29:28 -07:00
Charlie Stanley a50362aabe
Merge pull request #836 from pkedy/remove_download_go_dependencies_from_build
Removing the Download Go Dependencies step from the build workflow
2021-04-22 11:01:56 -07:00
Phil Kedy 6d00917246 pubsub conformance tests: Use a single timer for the duration of the subscribe wait loop 2021-04-22 13:35:45 -04:00
Phil Kedy 8fd8f095ba Removing the Download Go Dependencies step from the build workflow 2021-04-22 13:25:29 -04:00
Phil Kedy 7ec47083dd
Increasing overall test timeout to allow for conformance tests to run (#834)
* Increasing overall test timeout to allow for conformance tests to run

* Download Go dependencies before running go test so that the time spent downloading does not count against the testing timeout

* Tweak

* Testing if `go mod download` improves overall github actions time

* Tweak
2021-04-21 15:05:07 -07:00
Edwin van Wijk c1541031fd
Improve SMTP binding performance (#782)
* Fix issues from review by @skyao

* Fix lint errors

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-04-21 11:57:26 -07:00
Taction 466426894b
add redis cluter mode for pubsub (#823)
Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-04-21 11:33:30 -07:00
Joni Collinge 744e5be6fa
downgrade the verbosity of lock renewal errors from warn to debug. This error is expected when messages are processed before beingrenewed (#803)
Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-04-21 11:01:19 -07:00
Xueqian Wang f761b51c77
Improve pulsar publisher performance. (#827)
* Improve pulsar publisher performance.

* Addressed comments and added some debug logs

* Use peek instead of get for closing producers

* Fixed lint issue

* Added debug log in close

* Change back o 100

* Close producer before client

* Fixed cached number of producer and added todo for making it configurable

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-04-21 10:53:07 -07:00
yellow chicks 2320824409
optimze(state/redis): output detail redis error (#825)
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-04-21 10:43:05 -07:00
Abdulaziz Elsheikh 1d5ab57db6
Consul nameresolution component (#750)
* nr_consul component initial commit

* nr_consul added missing config prop in metadata

* nr_consul additional tests, improvement around queryOptions defaults

* nr_consul added documentation

* nr_consul fixes to satisfy linting rules

* nr_consul removed default behaviour around tags, readme cleanup

* nr_consul fix on abstraction

* nr_consul fix service resolution

* nr_consul changed rand to fix lint issue

* nr_consul  fix typo

* nr_consul refactor error logs, fix panic risk, validate port int

* nr_consul removed need for testify/mock dependency - credit to @pkedy

* nr_consul refactored di approach and fix lint issues

* nr_consul updated readme

* nr_consul added mapping layer between custom and api types for configuration, renamed clientConfig to client

* nr_consul remove trailing white space

* nr_consul updated readme and cleanup

* nr_consul changed logger import inline with #807

* nr_consul changed logger import inline with #807

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
2021-04-21 13:26:29 -04:00
abogdanov37 05ee14be5e
Add DNS name resolver. Add unit tests. (#743)
* Add DNS name resolver. Add unit tests.

* Fix code format

* Add namespace support for DNS name resolver. Fix comments

* Update dns.go

* Update dns_test.go

* Update dns.go

* Update dns_test.go

Co-authored-by: Andrey Bogdanov <andrey.bogdanov@zyfra.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>
2021-04-20 08:38:11 -07:00
Phil Kedy edfa3e5473
Azure Service Bus: Changed log level of error on close to info (#830) 2021-04-19 17:08:27 -07:00
Phil Kedy 688df9bda4
Removed dependency on dapr/dapr in favor of dapr/kit. Fixed go mod dependencies afterwards. Go 1.16 in go.mod. Removed accidental log dependency. (#807) 2021-04-19 12:06:10 -07:00
Daniel Beall a35a715f9c
Update state/blobstorage.go to add metadata. (#786)
Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
2021-04-15 21:40:09 -07:00
Phil Kedy 58b43fbfdb
Azure Service Bus publishing retries when server is "too busy" (#821)
* Adding retry/backoff to publishing to Azure Service Bus when the server is too busy and throttles the connection

* Fixing linter issues
2021-04-14 11:56:55 -07:00
Phil Kedy 63f4764757
Merge pull request #780 from Syuparn/fix_redis_sentinel_state_password
fix password config for redis sentinel state
2021-04-12 19:45:02 -04:00
Phil Kedy d5f55445d7
Merge branch 'master' into fix_redis_sentinel_state_password 2021-04-12 19:33:13 -04:00
Phil Kedy 9810b00c2d
Merge pull request #789 from 0to1/patch-1
Update Readme.md
2021-04-12 19:32:20 -04:00
Phil Kedy 20164f43c1
Merge branch 'master' into patch-1 2021-04-12 19:24:47 -04:00
Phil Kedy b71a8b560e
Merge pull request #382 from jjcollinge/jjcollinge/pubsub-context
Add context to PubSub handler
2021-04-08 17:21:07 -04:00
Artur Souza 3993d9a559
Merge branch 'master' into jjcollinge/pubsub-context 2021-04-08 14:11:01 -07:00
Phil Kedy ec45e137de
Merge pull request #771 from Hugome/feat/mqtt-binding-improve
feat: change binding mqtt options to the same as pubsub
2021-04-08 13:53:49 -04:00
Phil Kedy 6803b49e56 tls -> ssl for good measure 2021-04-06 17:50:42 -04:00
Phil Kedy bc0c4fd72e Adding small coalesce on scheme to ensure backward compatibility in both the pubsub and binding mqtt components 2021-04-06 17:32:47 -04:00
Phil Kedy 810ec429a7 Adding small coalesce on scheme to ensure backward compatibility in both the pubsub and binding mqtt components 2021-04-06 17:30:33 -04:00
0to1 f01b3e0cef
Update Readme.md
Add missing closing bracket ")"
2021-03-30 18:03:19 +08:00
Joni Collinge 617392fcca
Merge branch 'master' into jjcollinge/pubsub-context 2021-03-28 18:50:28 +01:00
Syuparn 760a4caccc fix password config for redis sentinel state 2021-03-27 19:21:45 +09:00
Phil Kedy 55b6657d1c
Merge branch 'master' into feat/mqtt-binding-improve 2021-03-26 16:33:53 -04:00
Phil Kedy a43a0d908b
Merge pull request #763 from Taction/add_more_config_for_redis
add some redis client config that may be commonly used
2021-03-26 16:24:38 -04:00
Phil Kedy 08d9ce05cf Fixed linter issue 2021-03-26 11:10:41 -04:00
Phil Kedy bad759f6d8 Adding the mqtt binding to the conformance tests 2021-03-26 11:05:19 -04:00
Hugo Meyronneinc f172b9a4d6
feat: change binding mqtt options to the same as pubsub 2021-03-25 21:11:25 +01:00
Joni Collinge 6c8b0ef77d
Merge branch 'master' into jjcollinge/pubsub-context 2021-03-25 19:57:22 +00:00
Phil Kedy 22b475e636
Merge branch 'master' into add_more_config_for_redis 2021-03-25 12:58:39 -04:00
Lynn Orrell c1905ba63b
Local Storage Binding Updates (#776)
* Introduced localstorage binding

* Code cleanup

* Linter cleanup

* Linter cleanup

* Now using ioutil.ReadAll() as io.ReadAll() fails to build on Windows

* Renamed metadata field

* Now returning the filename on create

* Now only generating a UUID filename for creates

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-03-24 20:56:20 -07:00
Phil Kedy 4124734e57
Merge branch 'master' into add_more_config_for_redis 2021-03-24 12:14:03 -04:00
zhangchao 9304037b70 rename backoff* to redis* 2021-03-24 20:58:56 +08:00
Joni Collinge ac1ae01e9b
Merge branch 'master' into jjcollinge/pubsub-context 2021-03-24 08:40:17 +00:00
Lynn Orrell 08305017c1
Localstorage (#753)
* Introduced localstorage binding

* Code cleanup

* Linter cleanup

* Linter cleanup

* Now using ioutil.ReadAll() as io.ReadAll() fails to build on Windows

* Renamed metadata field

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-03-23 18:00:56 -07:00
Joni Collinge 36ed5ec84f use existing context for pubsub comps 2021-03-23 20:12:46 +00:00
Joni Collinge 2d0864d25c use existing context for gcp 2021-03-23 19:45:35 +00:00
Joni Collinge 9fd461b255 Merge branch 'master' into jjcollinge/pubsub-context 2021-03-23 17:45:05 +00:00
Phil Kedy 7eb4896cfa
Merge branch 'master' into add_more_config_for_redis 2021-03-22 18:55:34 -04:00
Phil Kedy fd76fec2f7
Merge pull request #762 from artursouza/fix_cosmosdb_contenttype
Fix cosmosdb state store to handle content-type, with JSON as default.
2021-03-22 18:52:27 -04:00