go-sigma / sigma

OCI-Native artifact manager
https://docs.sigma.tosone.cn
Apache License 2.0
114 stars 9 forks source link

:sparkles: Check the redis config #381

Closed tosone closed 1 week ago

tosone commented 1 week ago

If workqueue use redis, the global redis type should be external:

redis:
  # redis type available: none, external
  # none: means never use redis
  # external: means use the specific redis instance
  type: external
  url: redis://:Admin@123@redis:6379/0

workqueue:
  # the workqueue type available: redis, kafka, database
  type: redis
  redis:
    concurrency: 10
  kafka: {}
  database: {}
codecov[bot] commented 1 week ago

Codecov Report

Attention: Patch coverage is 0% with 9 lines in your changes missing coverage. Please review.

Project coverage is 25.01%. Comparing base (ed67cc1) to head (8349483).

Files Patch % Lines
pkg/modules/cacher/redis/redis.go 0.00% 2 Missing and 1 partial :warning:
pkg/modules/workq/redis/consumer.go 0.00% 3 Missing :warning:
pkg/modules/workq/redis/producer.go 0.00% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #381 +/- ## ========================================== - Coverage 25.53% 25.01% -0.52% ========================================== Files 271 269 -2 Lines 19161 18822 -339 ========================================== - Hits 4892 4709 -183 + Misses 13795 13671 -124 + Partials 474 442 -32 ``` | [Flag](https://app.codecov.io/gh/go-sigma/sigma/pull/381/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=go-sigma) | Coverage Δ | | |---|---|---| | [unit-test-mysql](https://app.codecov.io/gh/go-sigma/sigma/pull/381/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=go-sigma) | `25.01% <0.00%> (-0.52%)` | :arrow_down: | | [unit-test-postgresql](https://app.codecov.io/gh/go-sigma/sigma/pull/381/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=go-sigma) | `25.00% <0.00%> (-0.53%)` | :arrow_down: | | [unit-test-sqlite3](https://app.codecov.io/gh/go-sigma/sigma/pull/381/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=go-sigma) | `25.01% <0.00%> (-0.52%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=go-sigma#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.