Commit Graph

508 Commits

Author SHA1 Message Date
Artur Souza 38de30533e
Supports bot assignment via /assign. (#1058) 2021-08-06 16:17:52 -07:00
Simon Leet 0bb8afd8da
Upload conformance test logs as GitHub workflow artifacts (#1044)
Align test log reporting with dapr/dapr E2E tests so that maintainers
can start applying the same analytics tools to the test results across
Dapr projects.

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-08-03 19:09:19 -07:00
Simon Leet dc7ee55e2a
Add Event Hubs pubsub and bindings conformance tests (#1040)
* Add conformance test for EventHubs bindings

* Update EventHubs pubsub to pass conformance tests

- Add conformance tests for Azure EventHubs PubSub component
- Add retry & backoff handling on subscriber handling error to EventHubs
  PubSub component for conformance tests.
- Add cancellation context to Azure EventHubs and update Close() to
  invoke cancel prior to closing the hub, which cleans up both senders
  and receivers.
2021-08-02 18:03:24 -07:00
Long Dai 4d916c712e
ci: add stale bot (#986)
* ci: add stale bot

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

* feedback

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

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-07-28 11:19:34 -07:00
Simon Leet 9c84bd202c
Add automation for deploying Azure conformance test resources (#1001)
* Add automation for deploying Azure conformance test resources

- Add .bicep definitions for Azure deployment of conformance test resources.
- Add setup-azure-conf-test.sh script for deploying .bicep definition and
  configuring other assets needed for the Azure conformance tests:
   - Creates the appropriate service principals and their credentials
     for the test.
   - Populates the key vault with the test parameters and secrets used by
     the GitHub conformance.yml test workflow.
   - Generates a .rc file that can be invoked with `source` to configure
     the local environment variables and secrets for running conformance
     tests described in tests/conformance/README.md.
   - Generates a teardown script that can be used to dispose of the
     deployed Azure resources when done.

* Move setup-azure-conf-test under azure/ subfolder

* Add documentation for Azure conformance test automation

- Add README.md to .github/infrastructure/conformance/azure describing
  use of automation script.
- Update tests/conformance/README.md with reference to Azure
  conformance test infrastructure automation.
- Fix spelling and issues in tests/conformance/README.md reported by
  markdownlint.
2021-07-28 10:06:14 -07:00
Long Dai 264005d531
ci: add test skip case (#922)
Signed-off-by: Long Dai <long0dai@foxmail.com>

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-07-08 21:58:06 -07:00
Simon Leet b9ede271ba
Convert AZURE_KEYVAULT in conformance.yml a GitHub secret (#1002) 2021-07-08 10:25:59 -07:00
Simon Leet 830f6ee3ed
Use AzureKeyVaultName param for Azure Keyvault conformance test (#975)
Unlike the other conformance tests, the azure-keyvault.yaml config hardcodes the name of the
target resource which creates an issue for contributors wanting to set up their own test
environments. For example, different users sharing an Azure subscription may not be able
to manage the permissions on the target key vault individually, and will need to edit the
yaml to retarget against their own keyvault instance.

- Add `AzureKeyVaultName` environment variable as the value for `vaultName` in azure-keyvault.yaml
- Update conformance.yml github workflow to require AzureKeyVaultName secret.
2021-07-07 12:04:50 -07:00
Simon Leet bcbb31ab60
Update issue templates with security reporting info (#917)
- Add security reporting link as comment to all issue templates
- Add config.yml with security reporting and other contact info
- Fix name collision in feature_request and discussion templates

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-06-14 10:43:14 -07:00
Artur Souza b180a43044
Automerge in contrib. (#849) 2021-04-28 16:12:21 -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 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
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
Phil Kedy bad759f6d8 Adding the mqtt binding to the conformance tests 2021-03-26 11:05:19 -04:00
Phil Kedy a1a0ad2c25
Adding RabbitMQ to the conformance tests (#739)
* Initial pass at adding RabbitMQ to the conformance tests

* Fixing unit tests
2021-03-04 11:56:35 -08:00
Artur Souza a8d5dea748
Run conf tests in release branch. (#737) 2021-03-03 21:58:02 -08:00
Phil Kedy 44d64598b8
Added Hazelcast to conformance tests and retry to prevent message loss (#724) 2021-03-03 13:08:58 -08:00
Phil Kedy e8efbca072
Add MQTT pubsub to the conformance tests (#721)
* Add MQTT pubsub to the conformance tests

* Making the MQTT pubsub component conformance test against multiple brokers
2021-02-25 18:16:23 -08:00
Phil Kedy 4f79098df2
Make failing conformance tests also fail the build (#715)
* Setting pipefail option in github workflow and purposefully making the Redis test fail to verify that the build fails (as expected)

* Disabling in order processing for Redis (re-disabling) and Azure Service Bus
2021-02-24 19:48:48 -08:00
Phil Kedy 4a0011bcbd
Improve conformance tests and add pulsar (#702)
* Improve conformance tests and add pulsar

* Fix linter error

* Fix linter errors

* Tweaks to pulsar pubsub per PR

* Switching uuid import

* Using Stringer interface to print message keys as base64 in logger

* Disabling some checks w/ Redis pubsub until the component can be enhanced

* Adding comment to eventually remove the simulateErrors option

* Add comment asBase64String to explain what it does

* Adding redelivery (reclaims) to the Redis pubsub component
Removed the temporary simulateErrors flag now that Redis is passing

* Fixing linter issues

* using a wait group instead of a sleep to wait for processing to complete

* More comments and refactoring

* comment tweaks

* Tweaks per PR

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-02-23 13:31:52 -08:00
Artur Souza c4a7f0bae1 Merge remote-tracking branch 'upstream/release-1.0' into merge_release_master 2021-02-17 15:23:42 -08:00
Artur Souza 13051e2197
Adds conf test for natsstreaming. (#690) 2021-02-12 08:09:50 -08:00
Artur Souza dd3e463b52
Fix pubsub retry for Kafka (#688)
* Add conformance test for kafka pubsub + quickfix for Kafka error handling.

* Adding backoff/retry logic to the Kafka pub/sub component

* Add logic to return if error from backoff in kafka.

* Addressing PR comments and lint.

Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
2021-02-12 00:08:46 -08:00
Nghia Tran 724473462b
Run conformance tests for Kuberentes secret store (#673)
* Run K8s secret store tests

* Add workaround for https://github.com/golang/go/issues/40795

* Add clarity to the hack
2021-02-11 14:40:32 -08:00
Nghia Tran cf1f27e59f
Change workflow name (#676) 2021-02-11 13:22:59 -08:00
Artur Souza 2562908dee
Conf state trx + Change mongodb get result for key not found + Fix byte[] in cosmosdb (#680)
* Add state transaction conf test.

* Does not return error for key not found in mongodb.

* Rewrite state conf test.

* Handle []byte in cosmosdb state txn (#664)

Fixes: dapr/dotnet-sdk#579

The issue here is that we had missed the case of pre-marshaled bytes in
the state transaction code path, which would result in the encoding/json
package doing it's normal thing and base64 encoding the data as a JSON
string.

The fix is to use json.RawMessage to avoid that. Turns out this code can
be simplified a bit.

* Fix cosmosdb handling of byte[].

* Fix lint.

* Fix UT for cosmosdb.

* Remove config from state store conf test.

Co-authored-by: Ryan Nowak <nowakra@gmail.com>
2021-02-10 18:15:59 -08:00
Artur Souza 1ae721a23a
Stop ngrok when done running conf tests. (#678)
Increase eventgrid test timeout.
2021-02-10 16:03:08 -08:00
Yaron Schneider 3ef025c604
change headers (#679) 2021-02-09 18:57:55 -08:00
Artur Souza 52b119ae8a
Display ngrok log for conf tests. (#677) 2021-02-09 17:31:50 -08:00
Nghia Tran 3521e78ea3
Run conformance tests for PRs, whenever that is possible (#670)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-02-08 14:42:41 -08:00
Nghia Tran 33af2809e2
Add Azure Keyvault secret store (#654)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-02-07 18:23:50 -08:00
Artur Souza 7dd8ffcfd7
Run ngrok only for azure eventgrid. (#660)
Fix ngrok cmd.
2021-02-05 16:57:14 -08:00
Artur Souza a020fd0f27
Adds conf test for Azure Event Grid. (#659) 2021-02-05 15:05:48 -08:00
halspang 13092f20df
Add Azure Service Bus Queues binding to tests (#651)
https://github.com/dapr/components-contrib/issues/619

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-02-04 15:21:38 -08:00
Mukundan Sundararajan 536e5e9477
Fix conformance test workflow (#642)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-01-29 17:02:32 -08:00
halspang 6f31e9f14f
Add http input/output bindings test (#637)
* Refactor bindings and introduce input bindings

This commit adds Kafka output bindings tests and refactors the
general bindings tests to include input and output bindings in
the same set of tests. Azure Storage Queues are used as the
first input binding.

* Add http input/output bindings test

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-01-29 13:00:09 -08:00
Mukundan Sundararajan 73a87dd1a6
Fix conformance workflow file (#627) 2021-01-21 20:10:29 -08:00
Mukundan Sundararajan d079beacd3
Refactor conformance tests (#626)
* Fix running output bindings with errors
Refactor tests to make it simpler for go test filtering.
Add get operation for blobstorage binding.

* remove unused code
2021-01-21 19:19:34 -08:00
Mukundan Sundararajan a9aeffbb30
Azure service bus conf tests (#614)
* Add azure service bus conformance tests
Bubble up error on required env var not set

* Update common.go

* Fix running output bindings with errors

* update readme

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-01-21 17:06:33 -08:00
Nghia Tran 3fb921c467
Run conformance tests every 30 min & fail workflow if no tests found (#625)
* Run conformance test workflow on a schedule

* Fail the workflow if no tests were found for a component
2021-01-21 15:28:12 -08:00
Nghia Tran a9d20c95b6
Conformance tests for MongoDB State Store (#623)
* Tests MongoDB statestore

* Increase test timeout a bit

* Increase durations even more.

* Clarify the mongodb and redis version

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-01-21 11:20:45 -08:00
Nghia Tran cb63cda501
Conformance tests for Azure Blob Storage & Storage Queue output bindings (#624)
* Conformance tests for Azure Blob Storage & Storage Queue bindings

* Fix lint comments

* Unit tests for path util
2021-01-21 10:35:30 -08:00
Nghia Tran 3086450ced
Add CosmosDB state store conformance tests (#622)
* Add CosmosDB conformance tests

* Fix workflow & lint

* Add more disclaimers to README.md
2021-01-20 14:38:09 -08:00
Nghia Tran a887d70c31
Workflow to run conformance tests (#620)
* Workflow to run conformance tests

* Update conformance.yml

Fix typo
2021-01-20 12:45:58 -08:00
Artur Souza 5aafec3d5f
Adds instructions for release notes in issue templates. (#497) 2020-10-14 20:22:19 -07:00
halspang f647d9eedb
Upgrade golang lint to 1.31 (#490)
Upgrade golang lint to 1.31.0

https://github.com/dapr/components-contrib/issues/439
2020-10-12 12:54:15 -07:00
Nghia Tran 677645e191
Add CodeCov GitHub Action (#467)
* Add CodeCov GitHub Action

* Address Sundar's comment about blocking on coverage.

Since currently testing of components-contrib usually require building
with dapr/dapr, we don't yet have a lot of coverage. So we shouldn't
block PRs based on that.
2020-09-22 12:57:00 -07:00
Young Bu Park 3efcb40430
Upgrade Go to 1.15 (#432)
* Upgrade Go to 1.15

* fix string conversion warn
2020-08-12 10:22:48 -07:00
Mukundan Sundararajan 5c62707aba
Upgrade go version to 1.14.3 and linter version to 1.26.0 (#352)
* Upgrade to go 1.14.3 and linter version to 1.26.0
2020-05-29 15:26:33 -07:00
Ricardo Niepel 7dd4d8ff2e
Update PR template to include doc issue ref (#287)
Initiative to ensure docs are in line to current feature set

Co-authored-by: Aman Bhardwaj <amanbha@users.noreply.github.com>
2020-04-09 13:12:51 -07:00
Young Bu Park b3e025deb9
Fix linter check (#295)
Fix linter check
2020-04-01 17:47:22 -07:00
Young Bu Park f87cd99ee7
Turn off linter for windows (#294)
Turn off linter for windows
2020-04-01 17:45:14 -07:00
Yaron Schneider 0d23c2d428
Update components-contrib.yml (#291)
Update to v2 for actions checkout.
2020-04-01 16:28:41 -07:00
Young Bu Park 5a24823c89
Upgrade go to 1.13.7 and linter to 1.23.2 (#205)
* upgrade go

* Fix all linter errors
2020-02-03 14:29:29 -08:00
sayboras 08362d9e6b Added check for go.mod (#141)
* Added check for go.mod

* Rename the make target

* Grrrrr

* Update go.mod and go.sum

* Run gofmt and goimports

* Correct typo
2019-11-25 00:45:51 -08:00
sayboras 8adf323961 Add github action for CI (#59)
* Initial commit

* Fixed all linting error

* Used prepared query instead of string format

* Enabled linter for test
Enabled below linters
    - gochecknoglobals
    - gochecknoinits

* Enabled below linters
    - godox
    - interfacer
    - maligned

* Revert name change for StateStore in pkg state

* Incorporate review comments

* Cleanup the github ci

* Correct typo

* Add golangci-lint version in github ci step

* Update Readme.md
2019-10-28 15:39:48 -07:00
Yaron Schneider 3e1f474c17
Add PR and issue templates (#30)
* templates

* Update bug_report.md

* Update discussion.md

* Update feature_request.md

* Update proposal.md

* Update question.md
2019-10-11 10:36:13 -07:00