diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-12-02 09:39:42 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-02 09:39:42 +0000 |
commit | b22078ce707d21ac17ea1727a4174c44ef57ae69 (patch) | |
tree | 2583c7cdde2dd37cf067a23ee70a6aa793163193 | |
parent | a2e7b9ffc39ae982d63a1a87dc358447d35d8bc9 (diff) | |
parent | 453133e7bb876a5f678ebd0847221495efbcd1ba (diff) |
Merge #424v1.9.0
424: Release 1.9.0 r=48d90782 a=48d90782
Co-authored-by: Valery Piashchynski <[email protected]>
-rw-r--r-- | .github/workflows/ci-build.yml | 12 | ||||
-rw-r--r-- | CHANGELOG.md | 7 | ||||
-rw-r--r-- | Dockerfile | 2 | ||||
-rw-r--r-- | bors.toml | 12 | ||||
-rwxr-xr-x | build.sh | 2 | ||||
-rw-r--r-- | service/http/handler_test.go | 2 | ||||
-rw-r--r-- | service/limit/service_test.go | 28 |
7 files changed, 35 insertions, 30 deletions
diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 930d1c17..ded84778 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -1,6 +1,6 @@ name: CI -on: [push, pull_request] +on: [ push, pull_request ] jobs: build: @@ -9,9 +9,9 @@ jobs: strategy: fail-fast: false matrix: - php: [7.3, 7.4, 8.0] - go: [1.14, 1.15] - os: [ubuntu-latest] + php: [ 7.3, 7.4, 8.0 ] + go: [ 1.14, 1.15 ] + os: [ ubuntu-20.04 ] env: GO111MODULE: on steps: @@ -100,7 +100,7 @@ jobs: golangci-check: name: runner / golangci-lint - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Check out code into the Go module directory uses: actions/checkout@v1 @@ -111,7 +111,7 @@ jobs: image: name: Build docker image - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Check out code uses: actions/checkout@v2 diff --git a/CHANGELOG.md b/CHANGELOG.md index f37c117c..db8ad552 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ CHANGELOG ========= +v1.9.0 (02.12.2020) +------------------- +- Update PHP minimal supported version to 7.3 +- Support PHP 8.0 +- Update Ubuntu version in GHA to 20.04 +- Update Golang version in the RR Dockerfile to 1.15.5 + v1.8.4 (21.10.2020) ------------------- - Update Goridge go dep to 2.4.6 @@ -1,4 +1,4 @@ -FROM golang:1.14.3 as builder +FROM golang:1.15.5 as builder COPY . /src @@ -1,10 +1,10 @@ status = [ -'Build (PHP 7.3, Go 1.15, OS ubuntu-latest)', -'Build (PHP 7.3, Go 1.14, OS ubuntu-latest)', -'Build (PHP 7.4, Go 1.15, OS ubuntu-latest)', -'Build (PHP 7.4, Go 1.14, OS ubuntu-latest)', -'Build (PHP 8, Go 1.15, OS ubuntu-latest)', -'Build (PHP 8, Go 1.14, OS ubuntu-latest)', +'Build (PHP 7.3, Go 1.15, OS ubuntu-20.04)', +'Build (PHP 7.3, Go 1.14, OS ubuntu-20.04)', +'Build (PHP 7.4, Go 1.15, OS ubuntu-20.04)', +'Build (PHP 7.4, Go 1.14, OS ubuntu-20.04)', +'Build (PHP 8, Go 1.15, OS ubuntu-20.04)', +'Build (PHP 8, Go 1.14, OS ubuntu-20.04)', 'runner / golangci-lint', 'Build docker image',] @@ -3,7 +3,7 @@ cd $(dirname "${BASH_SOURCE[0]}") OD="$(pwd)" # Pushes application version into the build information. -RR_VERSION=1.8.4 +RR_VERSION=1.9.0 # Hardcode some values to the core package LDFLAGS="$LDFLAGS -X github.com/spiral/roadrunner/cmd/rr/cmd.Version=${RR_VERSION}" diff --git a/service/http/handler_test.go b/service/http/handler_test.go index bc22183d..951bcbfd 100644 --- a/service/http/handler_test.go +++ b/service/http/handler_test.go @@ -852,7 +852,7 @@ func TestHandler_FormData_PUT(t *testing.T) { assert.NoError(t, h.rr.Start()) defer h.rr.Stop() - hs := &http.Server{Addr: ":8084", Handler: h} + hs := &http.Server{Addr: ":18084", Handler: h} defer func() { err := hs.Shutdown(context.Background()) if err != nil { diff --git a/service/limit/service_test.go b/service/limit/service_test.go index b358c1c1..fae73166 100644 --- a/service/limit/service_test.go +++ b/service/limit/service_test.go @@ -2,6 +2,11 @@ package limit import ( "fmt" + "io/ioutil" + "net/http" + "testing" + "time" + "github.com/cenkalti/backoff/v4" json "github.com/json-iterator/go" "github.com/sirupsen/logrus" @@ -9,10 +14,6 @@ import ( "github.com/spiral/roadrunner/service" rrhttp "github.com/spiral/roadrunner/service/http" "github.com/stretchr/testify/assert" - "io/ioutil" - "net/http" - "testing" - "time" ) type testCfg struct { @@ -63,7 +64,7 @@ func Test_Service_PidEcho(t *testing.T) { err := c.Init(&testCfg{ httpCfg: `{ - "address": ":17029", + "address": ":27029", "workers":{ "command": "php ../../tests/http/client.php pid pipes", "pool": {"numWorkers": 1} @@ -91,8 +92,8 @@ func Test_Service_PidEcho(t *testing.T) { } }() - time.Sleep(time.Millisecond * 100) - req, err := http.NewRequest("GET", "http://localhost:17029", nil) + time.Sleep(time.Millisecond * 800) + req, err := http.NewRequest("GET", "http://localhost:27029", nil) if err != nil { return err } @@ -102,7 +103,6 @@ func Test_Service_PidEcho(t *testing.T) { return err } - b, err := ioutil.ReadAll(r.Body) if err != nil { return err @@ -137,7 +137,7 @@ func Test_Service_ListenerPlusTTL(t *testing.T) { c.Register(rrhttp.ID, &rrhttp.Service{}) c.Register(ID, &Service{}) - err := c.Init(&testCfg{ + err := c.Init(&testCfg{ httpCfg: `{ "address": ":7030", "workers":{ @@ -175,7 +175,6 @@ func Test_Service_ListenerPlusTTL(t *testing.T) { } }() - time.Sleep(time.Millisecond * 100) lastPID := getPID(s) @@ -190,7 +189,6 @@ func Test_Service_ListenerPlusTTL(t *testing.T) { return err } - b, err := ioutil.ReadAll(r.Body) if err != nil { return err @@ -278,7 +276,6 @@ func Test_Service_ListenerPlusIdleTTL(t *testing.T) { } }() - time.Sleep(time.Millisecond * 100) lastPID := getPID(s) @@ -415,7 +412,7 @@ func Test_Service_Listener_MaxMemoryUsage(t *testing.T) { err := c.Init(&testCfg{ httpCfg: `{ - "address": ":7033", + "address": ":10033", "workers":{ "command": "php ../../tests/http/client.php memleak pipes", "pool": {"numWorkers": 1} @@ -433,6 +430,7 @@ func Test_Service_Listener_MaxMemoryUsage(t *testing.T) { return err } + time.Sleep(time.Second * 3) s, _ := c.Get(rrhttp.ID) assert.NotNil(t, s) @@ -453,11 +451,11 @@ func Test_Service_Listener_MaxMemoryUsage(t *testing.T) { } }() - time.Sleep(time.Millisecond * 100) + time.Sleep(time.Millisecond * 500) lastPID := getPID(s) - req, err := http.NewRequest("GET", "http://localhost:7033", nil) + req, err := http.NewRequest("GET", "http://localhost:10033", nil) if err != nil { return err } |