Skip to content
This repository was archived by the owner on Feb 3, 2022. It is now read-only.

Commit

Permalink
Add missing plugins
Browse files Browse the repository at this point in the history
Update Go version to v1.17.4

Signed-off-by: Valery Piashchynski <[email protected]>
  • Loading branch information
rustatian committed Dec 3, 2021
1 parent 064231d commit aeb4b71
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17.3
go-version: 1.17.4

- name: Check out code
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_grpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17.3
go-version: 1.17.4

- name: Check out code
uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17.3
go-version: 1.17.4

- name: Check out code
uses: actions/checkout@v2
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2 # action page: <https://github.com/actions/setup-go>
with:
go-version: 1.17.3
go-version: 1.17.4

- name: Check out code
uses: actions/checkout@v2
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# CHANGELOG

## v2.6.3 (3.12.2021)

## 👀 New:
- ✏️ `informer.List` RPC call return all available plugins with workers instead of all available plugins. This behavior was changed because `Informer` has the dependency of every RR plugin, which led to the cycles. This is not an external API and used only internally.
- ✏️ Beanstalk queue returned to the **[ALPHA]** stage. It's very unstable when destroying pipelines and can lead to infinite read loops when something wrong with the connection. Use with careful.
- ✏️ Go version updated to `v1.17.4`.

## 🩹 Fixes:

- 🐛 Fix: add missing plugins to the container: `fileserver`, `http_metrics`.
---

## v2.6.2 (3.12.2021)

## 🩹 Fixes:
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ require (
github.com/spiral/endure v1.0.10
github.com/spiral/errors v1.0.12
github.com/spiral/goridge/v3 v3.2.4
github.com/spiral/roadrunner-plugins/v2 v2.6.2
github.com/spiral/roadrunner-plugins/v2 v2.6.3
github.com/spiral/roadrunner/v2 v2.6.0
// ---------------------
github.com/stretchr/testify v1.7.0
// SPIRAL --------------
github.com/temporalio/roadrunner-temporal v1.0.13
github.com/temporalio/roadrunner-temporal v1.0.14
// ---------------------
github.com/vbauerster/mpb/v5 v5.4.0
)
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,8 @@ github.com/spiral/errors v1.0.12 h1:38Waf8ZL/Xvxg4HTYGmrUbvi7TCHivmuatNQZlBhQ8s=
github.com/spiral/errors v1.0.12/go.mod h1:j5UReqxZxfkwXkI9mFY87VhEXcXmSg7kAk5Sswy1eEA=
github.com/spiral/goridge/v3 v3.2.4 h1:Octzn0kgpQY10vQhrf0a5RlzCVW1lIEuR6/IGYp0BW4=
github.com/spiral/goridge/v3 v3.2.4/go.mod h1:a6qAtZy+FBaPj/76GweHj6SkgIr+oRVgW5p4e5vLZF4=
github.com/spiral/roadrunner-plugins/v2 v2.6.2 h1:CPSWBhvZjfG7OBQV3UeEUCKwohOhebSTyBi+1RT+WiA=
github.com/spiral/roadrunner-plugins/v2 v2.6.2/go.mod h1:2NuhyNtM7y9KTDlBc2Xy/DJUqTl1lNLar4ubvYEwG10=
github.com/spiral/roadrunner-plugins/v2 v2.6.3 h1:/Yc01sfF1LWyv3qVo2cTUfVn6SV4QCF16fxeqL7k+DE=
github.com/spiral/roadrunner-plugins/v2 v2.6.3/go.mod h1:2NuhyNtM7y9KTDlBc2Xy/DJUqTl1lNLar4ubvYEwG10=
github.com/spiral/roadrunner/v2 v2.6.0 h1:LmQ633Aj/+Faseh7vo1YUxmBXat6Dc9ngnl27noVXeA=
github.com/spiral/roadrunner/v2 v2.6.0/go.mod h1:qaqdPLsUdN3K6JWE5PobGm+Kzq9olFrSoy6iX5xA6SQ=
github.com/spiral/sdk-go v1.11.2 h1:oJr9nnY36ZIyz0ITNzjO4Pu1d8XatQSLtLabMz/gtI4=
Expand All @@ -531,8 +531,8 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s=
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
github.com/temporalio/roadrunner-temporal v1.0.13 h1:QO/etkluri6SnUUGz1qaPYKxKuxSc1iowT3GY18fh/I=
github.com/temporalio/roadrunner-temporal v1.0.13/go.mod h1:6WqykitsQ2JEu0Yo56sM7wxQ/EVtuwgwd5aVSpPv0zE=
github.com/temporalio/roadrunner-temporal v1.0.14 h1:CEO3zqCnkJARa0kDNTj4l91fjsBsL7KAUdsdsGpcH7k=
github.com/temporalio/roadrunner-temporal v1.0.14/go.mod h1:JQE7SddJiNK/hjr5WRlV18dGonl9fAahMLYngbnAOHA=
github.com/tklauser/go-sysconf v0.3.9 h1:JeUVdAOWhhxVcU6Eqr/ATFHgXk/mmiItdKeJPev3vTo=
github.com/tklauser/go-sysconf v0.3.9/go.mod h1:11DU/5sG7UexIrp/O6g35hrWzu0JxlwQ3LSFUzyeuhs=
github.com/tklauser/numcpus v0.3.0 h1:ILuRUQBtssgnxw0XXIjKUC56fgnOrFoQQ/4+DeU2biQ=
Expand Down
37 changes: 19 additions & 18 deletions internal/container/plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ import (
"github.com/spiral/roadrunner-plugins/v2/beanstalk"
"github.com/spiral/roadrunner-plugins/v2/boltdb"
"github.com/spiral/roadrunner-plugins/v2/broadcast"
"github.com/spiral/roadrunner-plugins/v2/fileserver"
grpcPlugin "github.com/spiral/roadrunner-plugins/v2/grpc"
httpPlugin "github.com/spiral/roadrunner-plugins/v2/http"
"github.com/spiral/roadrunner-plugins/v2/http/middleware/gzip"
"github.com/spiral/roadrunner-plugins/v2/http/middleware/headers"
newrelic "github.com/spiral/roadrunner-plugins/v2/http/middleware/new_relic"
"github.com/spiral/roadrunner-plugins/v2/http/middleware/prometheus"
"github.com/spiral/roadrunner-plugins/v2/http/middleware/static"
"github.com/spiral/roadrunner-plugins/v2/informer"
"github.com/spiral/roadrunner-plugins/v2/jobs"
Expand Down Expand Up @@ -37,18 +39,18 @@ import (
// Plugins returns active plugins for the endure container. Feel free to add or remove any plugins.
func Plugins() []interface{} { //nolint:funlen
return []interface{}{
// bundled
// informer plugin (./rr workers, ./rr workers -i)
&informer.Plugin{},
// resetter plugin (./rr reset)
&resetter.Plugin{},

// logger plugin
&logger.ZapLogger{},
// metrics plugin
&metrics.Plugin{},
// http server plugin
&httpPlugin.Plugin{},
// reload plugin
&reload.Plugin{},
// informer plugin (./rr workers, ./rr workers -i)
&informer.Plugin{},
// resetter plugin (./rr reset)
&resetter.Plugin{},
// rpc plugin (workers, reset)
&rpcPlugin.Plugin{},
// server plugin (NewWorker, NewWorkerPool)
Expand All @@ -64,19 +66,27 @@ func Plugins() []interface{} { //nolint:funlen
&beanstalk.Plugin{},
// =========

// http server plugin with middleware
&httpPlugin.Plugin{},
&newrelic.Plugin{},
&grpcPlugin.Plugin{},
&static.Plugin{},
&headers.Plugin{},
&status.Plugin{},
&gzip.Plugin{},
&prometheus.Plugin{},

&fileserver.Plugin{},
// ===================

&grpcPlugin.Plugin{},
// kv + ws + jobs plugin
&memory.Plugin{},

// KV + Jobs
&boltdb.Plugin{},

// broadcast via memory or redis
// used in conjunction with Websockets, memory and redis plugins
&broadcast.Plugin{},

// ======== websockets broadcast bundle
&websockets.Plugin{},
&redis.Plugin{},
Expand All @@ -87,15 +97,6 @@ func Plugins() []interface{} { //nolint:funlen
&memcached.Plugin{},
// ==============

// plugin to serve static files
&static.Plugin{},
// headers
&headers.Plugin{},
// checker
&status.Plugin{},
// gzip
&gzip.Plugin{},

// raw TCP connections handling
&tcp.Plugin{},

Expand Down

0 comments on commit aeb4b71

Please sign in to comment.