Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Vitess Dependency and add a cron for it #313

Merged
merged 4 commits into from
Sep 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ steps:
- name: "Upgrade Test"
command:
- apk add g++ make bash curl mysql mysql-client
- wget https://golang.org/dl/go1.18.4.linux-amd64.tar.gz
- tar -C /usr/local -xzf go1.18.4.linux-amd64.tar.gz
- wget https://golang.org/dl/go1.18.5.linux-amd64.tar.gz
- tar -C /usr/local -xzf go1.18.5.linux-amd64.tar.gz
- export PATH=$PATH:/usr/local/go/bin
- rm go1.18.4.linux-amd64.tar.gz
- rm go1.18.5.linux-amd64.tar.gz
- make upgrade-test
concurrency: 1
concurrency_group: 'vtop/upgrade-downgrade-test'
Expand All @@ -25,10 +25,10 @@ steps:
- name: "Backup Restore Test"
command:
- apk add g++ make bash curl mysql mysql-client
- wget https://golang.org/dl/go1.18.4.linux-amd64.tar.gz
- tar -C /usr/local -xzf go1.18.4.linux-amd64.tar.gz
- wget https://golang.org/dl/go1.18.5.linux-amd64.tar.gz
- tar -C /usr/local -xzf go1.18.5.linux-amd64.tar.gz
- export PATH=$PATH:/usr/local/go/bin
- rm go1.18.4.linux-amd64.tar.gz
- rm go1.18.5.linux-amd64.tar.gz
- make backup-restore-test
concurrency: 1
concurrency_group: 'vtop/backup-restore-test'
Expand All @@ -43,10 +43,10 @@ steps:
- name: "VTOrc and VTAdmin Test"
command:
- apk add g++ make bash curl mysql mysql-client chromium
- wget https://golang.org/dl/go1.18.4.linux-amd64.tar.gz
- tar -C /usr/local -xzf go1.18.4.linux-amd64.tar.gz
- wget https://golang.org/dl/go1.18.5.linux-amd64.tar.gz
- tar -C /usr/local -xzf go1.18.5.linux-amd64.tar.gz
- export PATH=$PATH:/usr/local/go/bin
- rm go1.18.4.linux-amd64.tar.gz
- rm go1.18.5.linux-amd64.tar.gz
- make vtorc-vtadmin-test
concurrency: 1
concurrency_group: 'vtop/vtorc-vtadmin-test'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18.4
go-version: 1.18.5
id: go

- name: Check out code into the Go module directory
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/make-generate-and-diff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18.4
go-version: 1.18.5
id: go

- name: Check out code into the Go module directory
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18.4
go-version: 1.18.5
id: go

- name: Check out code into the Go module directory
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/upgrade-vitess-dependency.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: upgrade-vitess-dependency

on:
# Triggers the workflow every week
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:

jobs:
upgrade-vitess-dep:
name: Upgrade Vitess Dependency
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18.5

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Go Get latest Vitess Dependency
run: go get -d vitess.io/vitess@main

- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
commit-message: "upgrade vitess dependency to latest"
signoff: true
delete-branch: true
title: "Upgrade Vitess Dependency to Latest"
body: "Weekly Vitess dependency upgrade running on a cron schedule"
reviewers: |
frouioui
GuptaManan100
2 changes: 1 addition & 1 deletion build/Dockerfile.release
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# without messing up file permissions, since the Docker container doesn't run as
# your actual user.

FROM golang:1.18.4 AS build
FROM golang:1.18.5 AS build

ENV GO111MODULE=on
WORKDIR /go/src/planetscale.dev/vitess-operator
Expand Down
30 changes: 14 additions & 16 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ require (
sigs.k8s.io/controller-runtime v0.9.7
sigs.k8s.io/controller-tools v0.6.2
sigs.k8s.io/kustomize v2.0.3+incompatible
vitess.io/vitess v0.14.1
vitess.io/vitess v0.10.3-0.20220912060457-89093912dab0
)

require (
Expand Down Expand Up @@ -66,8 +66,8 @@ require (
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang/snappy v0.0.1 // indirect
github.com/google/go-cmp v0.5.6 // indirect
github.com/golang/snappy v0.0.3 // indirect
github.com/google/go-cmp v0.5.8 // indirect
github.com/google/gofuzz v1.1.0 // indirect
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
github.com/google/uuid v1.3.0 // indirect
Expand All @@ -82,13 +82,13 @@ require (
github.com/hashicorp/go-immutable-radix v1.1.0 // indirect
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/hashicorp/serf v0.9.5 // indirect
github.com/hashicorp/serf v0.9.7 // indirect
github.com/imdario/mergo v0.3.12 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/json-iterator/go v1.1.11 // indirect
github.com/jstemmer/go-junit-report v0.9.1 // indirect
github.com/klauspost/compress v1.11.13 // indirect
github.com/klauspost/compress v1.13.0 // indirect
github.com/klauspost/pgzip v1.2.4 // indirect
github.com/mailru/easyjson v0.7.0 // indirect
github.com/mattn/go-colorable v0.1.8 // indirect
Expand All @@ -107,18 +107,17 @@ require (
github.com/opentracing/opentracing-go v1.1.0 // indirect
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
github.com/philhofer/fwd v1.0.0 // indirect
github.com/pierrec/lz4 v2.6.1+incompatible // indirect
github.com/pires/go-proxyproto v0.6.1 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/planetscale/pargzip v0.0.0-20201116224723-90c7fc03ea8a // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.29.0 // indirect
github.com/prometheus/procfs v0.6.0 // indirect
github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 // indirect
github.com/russross/blackfriday/v2 v2.0.1 // indirect
github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/smartystreets/assertions v1.0.1 // indirect
github.com/spf13/cobra v1.2.1 // indirect
github.com/spf13/cobra v1.4.0 // indirect
github.com/spyzhov/ajson v0.4.2 // indirect
github.com/tinylib/msgp v1.1.1 // indirect
github.com/uber/jaeger-client-go v2.20.1+incompatible // indirect
Expand All @@ -131,17 +130,16 @@ require (
go.uber.org/atomic v1.7.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.19.0 // indirect
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect
golang.org/x/crypto v0.0.0-20220507011949-2cf3adece122 // indirect
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect
golang.org/x/mod v0.5.1 // indirect
golang.org/x/net v0.0.0-20211209124913-491a49abca63 // indirect
golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 // indirect
golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 // indirect
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 // indirect
golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b // indirect
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
golang.org/x/tools v0.1.9 // indirect
golang.org/x/tools v0.1.10 // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
google.golang.org/api v0.45.0 // indirect
Expand Down
Loading