Commit Graph

46 Commits

Author SHA1 Message Date
mikeee 3fe2ed0e46
add support for parallel workflows (#509)
Signed-off-by: mikeee <hey@mike.ee>
2024-02-15 07:12:04 -08:00
mikeee ac26e622c4
feat: workflow authoring and management support (#487)
* feat: initial workflow

Signed-off-by: mikeee <hey@mike.ee>

* test: add activity context test for input

Signed-off-by: mikeee <hey@mike.ee>

* test: add context texts

Signed-off-by: mikeee <hey@mike.ee>

* fix/test: identify anonymous functions and add tests to runtime

Signed-off-by: mikeee <hey@mike.ee>

* chore: lint and minor fixes

Signed-off-by: mikeee <hey@mike.ee>

* chore: improve readability+tests and implement context method

Signed-off-by: mikeee <hey@mike.ee>

* test: add nil coverage

Signed-off-by: mikeee <hey@mike.ee>

* feat: workflow implementation wip

Signed-off-by: mikeee <hey@mike.ee>

* chore: add missing actor, configuration and workflow runners for validation

Signed-off-by: mikeee <hey@mike.ee>

* chore: lint

Signed-off-by: mikeee <hey@mike.ee>

* fix: missing formatting directives

Signed-off-by: mikeee <hey@mike.ee>

* feat: implement wf state

Signed-off-by: mikeee <hey@mike.ee>

* feat: add workflow management

Signed-off-by: mikeee <hey@mike.ee>

* chore: fix direct proto field references and general lint

Signed-off-by: mikeee <hey@mike.ee>

* fix: correct states

Signed-off-by: mikeee <hey@mike.ee>

* fix: refactor workflow contexts

Signed-off-by: mikeee <hey@mike.ee>

* fix: increase verbosity and move channel

Signed-off-by: mikeee <hey@mike.ee>

* fix: implement full workflow validation

Signed-off-by: mikeee <hey@mike.ee>

* fix: add dapr-app-id to example

Signed-off-by: mikeee <hey@mike.ee>

* fix: set endpoint

Signed-off-by: mikeee <hey@mike.ee>

* chore: revert actor mod change

Signed-off-by: mikeee <hey@mike.ee>

* chore: revert sum addition

Signed-off-by: mikeee <hey@mike.ee>

* fix: wrap wf management set authtoken in context

Signed-off-by: mikeee <hey@mike.ee>

* fix: migrate to dapr builtin sdk client

Signed-off-by: mikeee <hey@mike.ee>

* fix: correct runtime testing logic and lint
The runtime creation should never be successful in test

Signed-off-by: mikeee <hey@mike.ee>

* fix: implement delayed cancellation

Signed-off-by: mikeee <hey@mike.ee>

* fix(minor): rename getDecorator to getFunctionName

Signed-off-by: mikeee <hey@mike.ee>

* fix: remove alpha workflow

Signed-off-by: mikeee <hey@mike.ee>

* fix(validation): remove redundant result line

Signed-off-by: mikeee <hey@mike.ee>

* feat: initial wfclient implementation

Signed-off-by: mikeee <hey@mike.ee>

* fix: remove redundant closer and fix comparison

Signed-off-by: mikeee <hey@mike.ee>

* tests: improve unit test coverage

Signed-off-by: mikeee <hey@mike.ee>

* fix: cleanup

Signed-off-by: mikeee <hey@mike.ee>

* fix: wording change

Co-authored-by: Chris Gillum <cgillum@gmail.com>
Signed-off-by: mikeee <hey@mike.ee>

* fix: wording change

Co-authored-by: Chris Gillum <cgillum@gmail.com>
Signed-off-by: mikeee <hey@mike.ee>

* chore: bump durabletask-go and deps

Signed-off-by: mikeee <hey@mike.ee>

* chore: add copyright

Signed-off-by: mikeee <hey@mike.ee>

* fix: refactor from runtime to worker and other minor changes

Signed-off-by: mikeee <hey@mike.ee>

* fix: update worker tests

Signed-off-by: mikeee <hey@mike.ee>

* fix: remove workflow component requirement and return worker error

Signed-off-by: mikeee <hey@mike.ee>

* fix: reason field validation removed

Signed-off-by: mikeee <hey@mike.ee>

* fix: remove reason tests

Signed-off-by: mikeee <hey@mike.ee>

* refactoring

Signed-off-by: mikeee <hey@mike.ee>

* fix: inputs

Signed-off-by: mikeee <hey@mike.ee>

* tests: add coverage to activity options

Signed-off-by: mikeee <hey@mike.ee>

* feat: add worker options

Signed-off-by: mikeee <hey@mike.ee>

* fix: remove unused logger

Signed-off-by: mikeee <hey@mike.ee>

* feat: add client options and testing

Signed-off-by: mikeee <hey@mike.ee>

* feat: decouple metadata

Signed-off-by: mikeee <hey@mike.ee>

* chore: remove unused client interface

Signed-off-by: mikeee <hey@mike.ee>

* chore: update tests

Signed-off-by: mikeee <hey@mike.ee>

* chore: lint

Signed-off-by: mikeee <hey@mike.ee>

* test: improve coverage

Signed-off-by: mikeee <hey@mike.ee>

* tests: improve unit coverage

Signed-off-by: mikeee <hey@mike.ee>

* feat: initial workflow

Signed-off-by: mikeee <hey@mike.ee>

* test: add activity context test for input

Signed-off-by: mikeee <hey@mike.ee>

* test: add context texts

Signed-off-by: mikeee <hey@mike.ee>

* fix/test: identify anonymous functions and add tests to runtime

Signed-off-by: mikeee <hey@mike.ee>

* chore: lint and minor fixes

Signed-off-by: mikeee <hey@mike.ee>

* chore: improve readability+tests and implement context method

Signed-off-by: mikeee <hey@mike.ee>

* test: add nil coverage

Signed-off-by: mikeee <hey@mike.ee>

* feat: workflow implementation wip

Signed-off-by: mikeee <hey@mike.ee>

* chore: add missing actor, configuration and workflow runners for validation

Signed-off-by: mikeee <hey@mike.ee>

* chore: lint

Signed-off-by: mikeee <hey@mike.ee>

* fix: missing formatting directives

Signed-off-by: mikeee <hey@mike.ee>

* feat: implement wf state

Signed-off-by: mikeee <hey@mike.ee>

* feat: add workflow management

Signed-off-by: mikeee <hey@mike.ee>

* chore: fix direct proto field references and general lint

Signed-off-by: mikeee <hey@mike.ee>

* fix: correct states

Signed-off-by: mikeee <hey@mike.ee>

* fix: refactor workflow contexts

Signed-off-by: mikeee <hey@mike.ee>

* fix: increase verbosity and move channel

Signed-off-by: mikeee <hey@mike.ee>

* fix: implement full workflow validation

Signed-off-by: mikeee <hey@mike.ee>

* fix: add dapr-app-id to example

Signed-off-by: mikeee <hey@mike.ee>

* fix: set endpoint

Signed-off-by: mikeee <hey@mike.ee>

* chore: revert actor mod change

Signed-off-by: mikeee <hey@mike.ee>

* chore: revert sum addition

Signed-off-by: mikeee <hey@mike.ee>

* fix: wrap wf management set authtoken in context

Signed-off-by: mikeee <hey@mike.ee>

* fix: migrate to dapr builtin sdk client

Signed-off-by: mikeee <hey@mike.ee>

* fix: correct runtime testing logic and lint
The runtime creation should never be successful in test

Signed-off-by: mikeee <hey@mike.ee>

* fix: implement delayed cancellation

Signed-off-by: mikeee <hey@mike.ee>

* fix(minor): rename getDecorator to getFunctionName

Signed-off-by: mikeee <hey@mike.ee>

* fix: remove alpha workflow

Signed-off-by: mikeee <hey@mike.ee>

* fix(validation): remove redundant result line

Signed-off-by: mikeee <hey@mike.ee>

* feat: initial wfclient implementation

Signed-off-by: mikeee <hey@mike.ee>

* fix: remove redundant closer and fix comparison

Signed-off-by: mikeee <hey@mike.ee>

* tests: improve unit test coverage

Signed-off-by: mikeee <hey@mike.ee>

* fix: cleanup

Signed-off-by: mikeee <hey@mike.ee>

* fix: wording change

Co-authored-by: Chris Gillum <cgillum@gmail.com>
Signed-off-by: mikeee <hey@mike.ee>

* fix: wording change

Co-authored-by: Chris Gillum <cgillum@gmail.com>
Signed-off-by: mikeee <hey@mike.ee>

* chore: bump durabletask-go and deps

Signed-off-by: mikeee <hey@mike.ee>

* chore: add copyright

Signed-off-by: mikeee <hey@mike.ee>

* fix: refactor from runtime to worker and other minor changes

Signed-off-by: mikeee <hey@mike.ee>

* fix: update worker tests

Signed-off-by: mikeee <hey@mike.ee>

* fix: remove workflow component requirement and return worker error

Signed-off-by: mikeee <hey@mike.ee>

* fix: reason field validation removed

Signed-off-by: mikeee <hey@mike.ee>

* fix: remove reason tests

Signed-off-by: mikeee <hey@mike.ee>

* refactoring

Signed-off-by: mikeee <hey@mike.ee>

* fix: inputs

Signed-off-by: mikeee <hey@mike.ee>

* tests: add coverage to activity options

Signed-off-by: mikeee <hey@mike.ee>

* feat: add worker options

Signed-off-by: mikeee <hey@mike.ee>

* fix: remove unused logger

Signed-off-by: mikeee <hey@mike.ee>

* feat: add client options and testing

Signed-off-by: mikeee <hey@mike.ee>

* feat: decouple metadata

Signed-off-by: mikeee <hey@mike.ee>

* chore: remove unused client interface

Signed-off-by: mikeee <hey@mike.ee>

* chore: update tests

Signed-off-by: mikeee <hey@mike.ee>

* chore: lint

Signed-off-by: mikeee <hey@mike.ee>

* test: improve coverage

Signed-off-by: mikeee <hey@mike.ee>

* tests: improve unit coverage

Signed-off-by: mikeee <hey@mike.ee>

* fix: implement code review suggestions/refactor and gracefully handle errors

Signed-off-by: mikeee <hey@mike.ee>

* fix: innerfailure handling

Signed-off-by: mikeee <hey@mike.ee>

* docs: add docs to public methods and functions

Signed-off-by: mikeee <hey@mike.ee>

* implements correction

Co-authored-by: Chris Gillum <cgillum@gmail.com>
Signed-off-by: mikeee <hey@mike.ee>

* change typecast assertion

Signed-off-by: mikeee <hey@mike.ee>

* improve clarity of notes

Signed-off-by: mikeee <hey@mike.ee>

* fix mod issues from rebasing interactively on github

Signed-off-by: mikeee <hey@mike.ee>

* implement suggestions from review

- task invoke documentation
- refactor type assertion for startworkflowbeta1

Signed-off-by: mikeee <hey@mike.ee>

* remoove unused definition

Signed-off-by: mikeee <hey@mike.ee>

* fix mod

Signed-off-by: mikeee <hey@mike.ee>

---------

Signed-off-by: mikeee <hey@mike.ee>
Co-authored-by: Chris Gillum <cgillum@gmail.com>
2024-02-09 07:32:36 -08:00
mikeee e45054d1f6
introduces go1.22 to tests (and misc cleanup) (#504)
* introduces go1.22

- dapr-bot updated to use go1.22
- adds go1.22 to the test jobs
- adds go1.22 to tooling tests

Signed-off-by: mikeee <hey@mike.ee>

* remove 1.20 tests

Signed-off-by: mikeee <hey@mike.ee>

* dapr-bot workflow changes

- retrieve go version from go.mod
- run go mod tidy rather than go get

Signed-off-by: mikeee <hey@mike.ee>

* bump action versions and release go version is now from go.mod

Signed-off-by: mikeee <hey@mike.ee>

* bump main and tool mod files to 1.21

Signed-off-by: mikeee <hey@mike.ee>

* fix dapr-bot test

Signed-off-by: mikeee <hey@mike.ee>

* test dapr-bot using go version from go.mod

Signed-off-by: mikeee <hey@mike.ee>

* bump action versions and remove explicit caching

Signed-off-by: mikeee <hey@mike.ee>

* bump examples to go1.21 and bump deps

Signed-off-by: mikeee <hey@mike.ee>

* bump compatibility check to 1.21 in the make flow

Signed-off-by: mikeee <hey@mike.ee>

* bump to dapr1.13rc2

Signed-off-by: mikeee <hey@mike.ee>

* tidy sums

Signed-off-by: mikeee <hey@mike.ee>

* empty commit to trigger tests (flaky example service validation)

Signed-off-by: mikeee <hey@mike.ee>

* remove conditionals for modtidy/checkdiff runs

Signed-off-by: mikeee <hey@mike.ee>

---------

Signed-off-by: mikeee <hey@mike.ee>
2024-02-08 10:08:28 -08:00
Josh van Leeuwen cefbadb3d1
Update github.com/dapr/dapr to v1.13.0-rc.1 (#503)
* Update github.com/dapr/dapr to v1.13.0-rc.1

Signed-off-by: joshvanl <me@joshvanl.dev>

* Revert go.mod to use Go 1.20 as minimum version

Signed-off-by: joshvanl <me@joshvanl.dev>

* github actions: only perform go mod diff on same go version

Signed-off-by: joshvanl <me@joshvanl.dev>

---------

Signed-off-by: joshvanl <me@joshvanl.dev>
2024-02-07 07:54:01 -08:00
mikeee a65eddaa4e
fix: Overhaul the validation action (#495)
* fix: remove the referenced daprd tag

Signed-off-by: mikeee <hey@mike.ee>

* update example validation flow

Signed-off-by: mikeee <hey@mike.ee>

* split into two+ jobs

Signed-off-by: mikeee <hey@mike.ee>

* chore: tidy

Signed-off-by: mikeee <hey@mike.ee>

* implement artifacts transfer and setup validate-example jobs

Signed-off-by: mikeee <hey@mike.ee>

* fix: only run the artifact steps when generated

Signed-off-by: mikeee <hey@mike.ee>

* fix: tag outputs with a step id

Signed-off-by: mikeee <hey@mike.ee>

* fix: typo in matrix

Signed-off-by: mikeee <hey@mike.ee>

* chore: cleanup

Signed-off-by: mikeee <hey@mike.ee>

* disable fail-fast

Signed-off-by: mikeee <hey@mike.ee>

* fix: grpc-service example sleeps

Signed-off-by: mikeee <hey@mike.ee>

---------

Signed-off-by: mikeee <hey@mike.ee>
2024-01-19 09:07:59 -08:00
syedsadath-17 d655a2c770
Examples: Added Crypto (#492)
* Examples: Added Crypto

Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>

* docs: update

Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>

---------

Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
2024-01-19 08:54:36 -08:00
syedsadath-17 d5ffe7750a
perf: enhanced configuration example (#483)
* perf: enhanced configuration example

Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>

* remove "with"

Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>

* update markdown

Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>

* minor fix

Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>

---------

Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
2023-12-28 10:19:04 +08:00
Mike 30a51be967
fix: fix broken dapr setup links (#468)
Replace the dapr getting-started link with two steps to install the cli
and initialise dapr locally.

Signed-off-by: mikeee <hey@mike.ee>
2023-10-19 06:36:22 -07:00
Cassie Coyle 8c41838702
go mod tidy (#463)
Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
2023-10-13 16:29:23 +08:00
Sam c73a542ad0
fix: go mod tidy (#462)
Signed-off-by: Samantha Coyle <sam@diagrid.io>
2023-10-10 08:08:20 -07:00
Sam 5a105f09ac
fix(config): go mod tidy (#448)
Signed-off-by: Samantha Coyle <sam@diagrid.io>
2023-09-14 12:26:07 -07:00
hunter007 effc2f0d3c
Add example for dapr grpc proxy mode (#414)
* Add example for dapr grpc proxy mode

Signed-off-by: hunter007 <wentao79@gmail.com>

* Modify README.md

Signed-off-by: hunter007 <wentao79@gmail.com>

---------

Signed-off-by: hunter007 <wentao79@gmail.com>
2023-06-06 12:00:37 +08:00
Josh van Leeuwen df5bd08997
Add note about Actor State `WithTTL` being feature preview. (#408)
Signed-off-by: joshvanl <me@joshvanl.dev>
2023-05-29 09:59:51 +08:00
hunter007 3929306e36
Update go version to 1.19 (#403)
* update go version to 1.19

Signed-off-by: hunter007 <wentao79@gmail.com>

* add timeout for golangci-lint

Signed-off-by: hunter007 <wentao79@gmail.com>

* fix golangci-lint

Signed-off-by: hunter007 <wentao79@gmail.com>

* use revive instead of goliint in .golangci.yml

Signed-off-by: hunter007 <wentao79@gmail.com>

* if-return: redundant if ...; err != nil check, just return error instead.

Signed-off-by: hunter007 <wentao79@gmail.com>

* fix

Signed-off-by: hunter007 <wentao79@gmail.com>

* update golangci-lint from v1.50.1 to v1.52.2

Signed-off-by: hunter007 <wentao79@gmail.com>

---------

Signed-off-by: hunter007 <wentao79@gmail.com>
2023-05-20 07:36:37 -07:00
hunter007 f6dccfd559
Fix env variable GOVER to "1.20" in validate_examples.yaml (#399)
Signed-off-by: hunter007 <wentao79@gmail.com>
2023-05-18 06:03:03 -07:00
hunter007 678b222072
Update protos and client's configuration methods with stable config api (#391)
* Update protos

Signed-off-by: zhaowentao <wentao79@gmail.com>
Signed-off-by: hunter007 <wentao79@gmail.com>

* update client's configuration methods with stable config api

Signed-off-by: hunter007 <wentao79@gmail.com>

* rename alpha1 to rsp

Signed-off-by: hunter007 <wentao79@gmail.com>

* update go.mod

Signed-off-by: hunter007 <wentao79@gmail.com>

* Update proto

Signed-off-by: hunter007 <wentao79@gmail.com>

* Fix document for examples

Signed-off-by: hunter007 <wentao79@gmail.com>

* base64ed data

Signed-off-by: hunter007 <wentao79@gmail.com>

* Revert "base64ed data"

This reverts commit 0f3b82fe45.

Signed-off-by: hunter007 <wentao79@gmail.com>

* validate configuration

Signed-off-by: hunter007 <wentao79@gmail.com>

* update DAPR_REF in workflows to fix examples

Signed-off-by: hunter007 <wentao79@gmail.com>

* update GOVER from 1.18 to 1.20 in validate_examples.yaml because of dapr/dapr/master branch

Signed-off-by: hunter007 <wentao79@gmail.com>

---------

Signed-off-by: zhaowentao <wentao79@gmail.com>
Signed-off-by: hunter007 <wentao79@gmail.com>
2023-05-17 22:40:52 -07:00
dependabot[bot] 6e75626d37
Bump golang.org/x/net from 0.5.0 to 0.7.0 in /examples/configuration (#362)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.5.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.5.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-08 12:27:35 +08:00
dependabot[bot] f3b444df6e
Bump golang.org/x/net from 0.5.0 to 0.7.0 in /examples/hello-world (#361)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.5.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.5.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-08 12:26:45 +08:00
Josh van Leeuwen d58007df4d
Actor state client `SetWithTTL` (#383)
* Adds context to rest of funcs, so context can always be propagated.

Signed-off-by: joshvanl <me@joshvanl.dev>

* Use separate interface for structs with context funcs

Signed-off-by: joshvanl <me@joshvanl.dev>

* Update proto to include actor state transaction metadata

Signed-off-by: joshvanl <me@joshvanl.dev>

* Adds `SetWithTTL` to actor state store manager

Signed-off-by: joshvanl <me@joshvanl.dev>

* Update actor client to support sending metadata. Supports `ttlInSeconds`

Signed-off-by: joshvanl <me@joshvanl.dev>

* Update actor example to use SetWithTTL with note that it should always
be used

Signed-off-by: joshvanl <me@joshvanl.dev>

* Update go modules

Signed-off-by: joshvanl <me@joshvanl.dev>

* Ignore deprecated use of `actor.Server` in `ActorContainer` interface

Signed-off-by: joshvanl <me@joshvanl.dev>

---------

Signed-off-by: joshvanl <me@joshvanl.dev>
2023-04-27 15:31:36 -07:00
Shivam Kumar 99dc3e31d5
update config subscribe method (#389)
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
2023-04-27 15:07:16 -07:00
dependabot[bot] 78a1fe63ea
Bump golang.org/x/net from 0.5.0 to 0.7.0 in /examples/pubsub (#372)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.5.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.5.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-31 15:24:46 +08:00
Shubham Sharma b48e8ade5b
Add support for bulk publish (#384)
* Initial implementation

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Add a response type and more tests

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Change logic and add more tests

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Add example

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Add docs

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Fix lint

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* gofumpt

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

---------

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
2023-03-31 14:57:57 +08:00
Josh van Leeuwen 0cc2c4ce7a
Create `xxxContext` functions for ones which are missing a caller context. (#358)
* Adds context to rest of funcs, so context can always be propagated.

Signed-off-by: joshvanl <me@joshvanl.dev>

* Adds `//nolint:interfacebloat` to StateManager interface due to new
`xxxContext` methods.

Signed-off-by: joshvanl <me@joshvanl.dev>

* Use separate interface for structs with context funcs

Signed-off-by: joshvanl <me@joshvanl.dev>

* Adds more locks to actor functions

Signed-off-by: joshvanl <me@joshvanl.dev>

---------

Signed-off-by: joshvanl <me@joshvanl.dev>
2023-03-29 07:40:51 -07:00
Roberto Rojas d02f9524d9
V1.10 Update Protos & Go Modules (#356)
* updates grpc proto for v1.10

Signed-off-by: Roberto J Rojas <robertojrojas@gmail.com>

* updates go mod tidy for v1.10

Signed-off-by: Roberto J Rojas <robertojrojas@gmail.com>

---------

Signed-off-by: Roberto J Rojas <robertojrojas@gmail.com>
2023-02-01 08:35:20 -08:00
Alessandro (Ale) Segala c5377994aa
Various fixes and cleanups (#346)
* Various fixed and cleanups

1. Fixed SDK not compiling and tests failing
2. Increased minimum Go version to 1.18
3. Removed `github.com/pkg/errors` and `go.uber.org/atomic` - replaced with the standard library instead (the old packages have been added to the "depguard" linter)
4. Upgraded all dependencies
5. Upgraded golangci-lint to support Go 1.18+

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Do not wrap error if nil

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Run CI on Go 1.18 and 1.19

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Restore compatibility with Go 1.18

Looks like the newer methods were added in Go 1.19 only

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Should fix validate_examples CI

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Updated (most) deprecated Actions

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Fix helm repo

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Determine latest Dapr version in a better way

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Fix validate.sh

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-01-09 10:38:37 -08:00
Yaron Schneider b465b1fa07
update protos (#327)
Signed-off-by: yaron2 <schneider.yaron@live.com>

Signed-off-by: yaron2 <schneider.yaron@live.com>
2022-10-04 10:58:45 -07:00
HaoTian 7bcbf27f51
chore: remove the binary and add gitignore (#315)
Signed-off-by: 117503445 <t117503445@gmail.com>

Signed-off-by: 117503445 <t117503445@gmail.com>
2022-09-30 20:28:16 -07:00
yellow chicks c4217cfaf9
optimize: using `go mod init` to upgrade examples (#305)
* fix/typo: modify state  annotation

Signed-off-by: 1046102779 <seachen@tencent.com>

* optimize: upgrade go1.17->go1.18

Signed-off-by: 1046102779 <seachen@tencent.com>

* optimize: upgrade examples

Signed-off-by: 1046102779 <seachen@tencent.com>

* optimize: upgrade examples

Signed-off-by: 1046102779 <seachen@tencent.com>

* optimize: using go mod init to upgrade examples

Signed-off-by: 1046102779 <seachen@tencent.com>
2022-07-22 09:19:50 -07:00
Yaron Schneider 40c5fd5a19
Update dependencies (#302)
* update dependencies

Signed-off-by: yaron2 <schneider.yaron@live.com>

* update dependencies

Signed-off-by: yaron2 <schneider.yaron@live.com>
2022-07-08 06:33:24 -07:00
Yaron Schneider 0b65cca826
Add distributed lock api support (#297)
* add distributed lock api support

Signed-off-by: yaron2 <schneider.yaron@live.com>

* go mod tidy for pub/sub

Signed-off-by: yaron2 <schneider.yaron@live.com>

* go mod tidy for state

Signed-off-by: yaron2 <schneider.yaron@live.com>

* go mod tidy for service invocation

Signed-off-by: yaron2 <schneider.yaron@live.com>

* linter

Signed-off-by: yaron2 <schneider.yaron@live.com>

* added unlock tests

Signed-off-by: yaron2 <schneider.yaron@live.com>
2022-06-22 10:37:17 +08:00
Laurence 6f2ae7df71
fix: config api (#200)
* Fix: Finished Configuration API

Signed-off-by: LaurenceLiZhixin <382673304@qq.com>

* Fix: add configuration validation

Signed-off-by: LaurenceLiZhixin <382673304@qq.com>

* Fix: fix validation test

Signed-off-by: LaurenceLiZhixin <382673304@qq.com>

* Fix: remove validation

Signed-off-by: LaurenceLiZhixin <382673304@qq.com>

* add ut

Signed-off-by: LaurenceLiZhixin <382673304@qq.com>

* Fix: comment

Signed-off-by: LaurenceLiZhixin <382673304@qq.com>
2022-04-05 17:43:32 -07:00
greenie-msft f1f5c7a84c
Update docs link for hello world tutorial (#270)
Signed-off-by: Nick Greenfield <nigreenf@microsoft.com>
2022-03-31 12:27:10 -07:00
Dmitry Shmulevich a0a4a9e70a
allow passage of metadata to state store API (#262)
Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@gmail.com>
2022-02-24 09:39:05 +08:00
Dmitry Shmulevich d9be62fa69
chore - update dependencies (#240)
Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@gmail.com>
2022-01-20 09:25:39 -08:00
Looong Dai f912500536
add Unix domain socket support (#206)
* add Unix domain socket support

Signed-off-by: Long <long0dai@foxmail.com>

* update examples

Signed-off-by: Long <long.dai@intel.com>
2022-01-13 09:40:24 -08:00
Phil Kedy 40d8a4eabe
Pub/Sub routing support (#227)
Signed-off-by: Phil Kedy <phil.kedy@gmail.com>
2022-01-06 10:19:24 -08:00
Dmitry Shmulevich 67e5c4ee3b
update go.mod in examples (#234)
Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@gmail.com>
2021-12-14 15:08:18 -08:00
Dmitry Shmulevich a38be4e38b
replace license headers (#232)
Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@gmail.com>
2021-12-14 12:06:12 -08:00
Laurence d9ad49d2a6
Feat: Add Go-sdk Actor Support (#196)
* ftr: init go-sdk action

* fix: finished design of actor-api's invoke feature

* fix: add readme

* fix: lint

* fix: add manager unit test

* fix: add actor state suport

* fix: add comments

* fix: add comment

* fix the change reqeust of pr

* fix: validate example test

* fix: linter

* add actor validation

* add actor validation

* fix: update actor validation init sleep time

* fix: add init time for validate example server

* fix: change actor to the end of test in order not to let reminder bother other test

* fix: validate test

* fix: typo of factory

* fix: add init time

* fix: ut

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
Co-authored-by: Long Dai <long.dai@intel.com>
2021-11-02 14:45:27 -07:00
penghuima b5d09e8e57
minor fix (#214)
Signed-off-by: penghuima <2992426202@qq.com>
2021-10-31 14:55:04 -07:00
Alvin Henrick 994f9b69f2
Add documentation and example to deal with gRPC 4mb limit (#197)
* Add documentation and example to deal with gRPC 4mb limit

* update doc

* update doc again

* try fixing validation

Co-authored-by: Alvin Henrick <alvin@equilibriumenergy.com>
2021-08-31 07:19:27 -07:00
Gaojin CAO 8615ff9477
minor fix (#191)
1. remove unneeded sentence;
2. typos and indention;

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-07-26 09:08:35 -07:00
Yaron Schneider 7de7a96cfe
Delete order (#194) 2021-07-26 08:51:50 -07:00
Bernd Verst 3f73517a87
Automates validating Go examples (#190)
* Automatically validate examples

This uses dapr's mechnical markdown

* Fix workflow default branch name
2021-07-23 11:09:20 -07:00
Dmitry Shmulevich aebdb62d4b
minor reorg of 'examples' folder (#178)
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-06-24 09:51:01 -07:00
Dmitry Shmulevich 04ac0f1aba
Added 'hello-world' example (#171) 2021-06-18 15:21:05 -07:00