Skip to content

Commit bc082e2

Browse files
authored
Merge pull request #4207 from weaveworks/Bring-weave-gitops-uptodate
Make pipeline green again
2 parents 1616603 + 471ff1a commit bc082e2

24 files changed

+1876
-1229
lines changed

.github/workflows/pr.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
runs-on: ubuntu-latest
5959
strategy:
6060
matrix:
61-
go-version: [1.20.X]
61+
go-version: [1.23.X]
6262
steps:
6363
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
6464
- name: Setup Go
@@ -70,14 +70,16 @@ jobs:
7070
with:
7171
token: ${{ secrets.GITHUB_TOKEN }}
7272
- run: make unit-tests
73+
# server core fails if ui-tests have not just been run.
74+
# was this all the case
7375
# - run: make lib-test
7476

7577
ci-static:
7678
name: CI Check Static Checks
7779
runs-on: ubuntu-latest
7880
strategy:
7981
matrix:
80-
go-version: [1.20.X]
82+
go-version: [1.23.X]
8183
node-version: [16.X]
8284
steps:
8385
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
@@ -187,7 +189,7 @@ jobs:
187189
- name: Install Go
188190
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
189191
with:
190-
go-version: 1.20.X
192+
go-version: 1.23.X
191193
- name: Checkout code
192194
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
193195
- name: Clean

.github/workflows/prepare-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Setup Go
2727
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
2828
with:
29-
go-version: 1.20.X
29+
go-version: 1.23.X
3030
- name: Setup Node.js
3131
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
3232
with:

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
- name: Setup Go
129129
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
130130
with:
131-
go-version: 1.20.X
131+
go-version: 1.23.X
132132
- name: Use Node.js
133133
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
134134
with:

.github/workflows/scan.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Install Go
2525
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
2626
with:
27-
go-version: 1.20.X
27+
go-version: 1.23.X
2828
- name: Run FOSSA scan and upload build data
2929
uses: fossa-contrib/fossa-action@6728dc6fe9a068c648d080c33829ffbe56565023 # v2.0.0
3030
with:
@@ -46,4 +46,4 @@ jobs:
4646
- name: Autobuild
4747
uses: github/codeql-action/autobuild@04daf014b50eaf774287bf3f0f1869d4b4c4b913 # v2.21.7
4848
- name: Perform CodeQL Analysis
49-
uses: github/codeql-action/analyze@04daf014b50eaf774287bf3f0f1869d4b4c4b913 # v2.21.7
49+
uses: github/codeql-action/analyze@04daf014b50eaf774287bf3f0f1869d4b4c4b913 # v2.21.7

.github/workflows/upgrade-flux.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Setup Go
3737
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
3838
with:
39-
go-version: 1.20.X
39+
go-version: 1.23.X
4040
- name: Upgrade flux
4141
run: |
4242
sed -i 's/^FLUX_VERSION=.*/FLUX_VERSION=${{ needs.has-new-flux.outputs.version }}/' Makefile

.golangci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
run:
22
timeout: 5m
3-
go: '1.20'
3+
go: '1.23'
44

55
linters:
66
disable-all: true
@@ -83,7 +83,7 @@ linters-settings:
8383
- performance
8484
- style
8585
gofumpt:
86-
lang-version: "1.20"
86+
lang-version: "1.23"
8787
extra-rules: true
8888
lll:
8989
line-length: 150

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ BUILD_TIME?=$(shell date +'%Y-%m-%d_%T')
77
BRANCH?=$(shell which git > /dev/null && git rev-parse --abbrev-ref HEAD)
88
GIT_COMMIT?=$(shell which git > /dev/null && git log -n1 --pretty='%h')
99
VERSION?=$(shell which git > /dev/null && git describe --always --match "v*")
10-
FLUX_VERSION=2.0.1
10+
FLUX_VERSION=2.3.0
1111
CHART_VERSION=$(shell which yq > /dev/null && yq e '.version' charts/gitops-server/Chart.yaml)
1212
TIER=oss
1313

@@ -110,7 +110,7 @@ vet: ## Run go vet against code
110110
go vet ./...
111111

112112
lint: ## Run linters against code
113-
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.52.0
113+
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62.0
114114
golangci-lint run --out-format=github-actions --timeout 600s --skip-files "tilt_modules"
115115
@go install github.com/yoheimuta/protolint/cmd/protolint@latest
116116
protolint lint -config_path=.protolint.yaml ./api

buf.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ deps:
44
- remote: buf.build
55
owner: googleapis
66
repository: googleapis
7-
commit: 28151c0d0a1641bf938a7672c500e01d
7+
commit: f52d4f76a8434cc5966798b1d3b4f110
88
- remote: buf.build
99
owner: grpc-ecosystem
1010
repository: grpc-gateway
11-
commit: 3f42134f4c564983838425bc43c7a65f
11+
commit: a48fcebcf8f140dd9d09359b9bb185a4

core/server/events.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ func list(ctx context.Context, k8s clustersmngr.Client, appName, namespace strin
9696

9797
func wrapK8sAPIError(msg string, err error) error {
9898
if k8serrors.IsUnauthorized(err) {
99-
return status.Errorf(codes.PermissionDenied, err.Error())
99+
return status.Errorf(codes.PermissionDenied, "%s", err.Error())
100100
} else if k8serrors.IsNotFound(err) {
101-
return status.Errorf(codes.NotFound, err.Error())
101+
return status.Errorf(codes.NotFound, "%s", err.Error())
102102
} else if err != nil {
103103
return fmt.Errorf("%s: %w", msg, err)
104104
}

core/server/sync_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func TestSync(t *testing.T) {
218218

219219
case err := <-done:
220220
if err != nil {
221-
t.Errorf(err.Error())
221+
t.Error(err)
222222
}
223223
return
224224
}

gitops-bucket-server.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Go build
2-
FROM golang:1.20 AS go-build
2+
FROM golang:1.23 AS go-build
33

44
# Add known_hosts entries for GitHub and GitLab
55
RUN mkdir ~/.ssh

gitops-server.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ COPY --chown=node:node ui /home/app/ui
1515
RUN --mount=type=cache,target=/home/app/ui/.parcel-cache make ui
1616

1717
# Go build
18-
FROM golang:1.20 AS go-build
18+
FROM golang:1.23 AS go-build
1919

2020
# Add known_hosts entries for GitHub and GitLab
2121
RUN mkdir ~/.ssh

gitops.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ARG FLUX_CLI=ghcr.io/fluxcd/flux-cli:v$FLUX_VERSION
55
FROM $FLUX_CLI as flux
66

77
# Go build
8-
FROM golang:1.20 AS go-build
8+
FROM golang:1.23 AS go-build
99

1010
# Add known_hosts entries for GitHub and GitLab
1111
RUN mkdir ~/.ssh

go.mod

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/weaveworks/weave-gitops
22

3-
go 1.20
3+
go 1.23
44

55
require (
66
github.com/Masterminds/semver/v3 v3.2.1
@@ -46,7 +46,7 @@ require (
4646
github.com/weaveworks/tf-controller/tfctl v0.0.0-20231228180612-918cb6250720
4747
github.com/yannh/kubeconform v0.5.0
4848
go.uber.org/zap v1.26.0
49-
golang.org/x/crypto v0.16.0
49+
golang.org/x/crypto v0.23.0
5050
golang.org/x/oauth2 v0.15.0
5151
google.golang.org/genproto/googleapis/api v0.0.0-20231002182017-d307bd883b97
5252
google.golang.org/grpc v1.58.2
@@ -109,7 +109,7 @@ require (
109109
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
110110
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
111111
golang.org/x/exp v0.0.0-20231206192017-f3f8817b8deb // indirect
112-
golang.org/x/sync v0.5.0 // indirect
112+
golang.org/x/sync v0.7.0 // indirect
113113
google.golang.org/genproto v0.0.0-20231012201019-e917dd12ba7a // indirect
114114
google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b // indirect
115115
gopkg.in/evanphx/json-patch.v5 v5.7.0 // indirect
@@ -195,13 +195,13 @@ require (
195195
github.com/xlab/treeprint v1.2.0 // indirect
196196
go.starlark.net v0.0.0-20231121155337-90ade8b19d09 // indirect
197197
go.uber.org/multierr v1.11.0 // indirect
198-
golang.org/x/mod v0.14.0 // indirect
199-
golang.org/x/net v0.19.0
200-
golang.org/x/sys v0.15.0 // indirect
201-
golang.org/x/term v0.15.0
202-
golang.org/x/text v0.14.0 // indirect
198+
golang.org/x/mod v0.17.0 // indirect
199+
golang.org/x/net v0.25.0
200+
golang.org/x/sys v0.20.0 // indirect
201+
golang.org/x/term v0.20.0
202+
golang.org/x/text v0.15.0 // indirect
203203
golang.org/x/time v0.5.0 // indirect
204-
golang.org/x/tools v0.16.0 // indirect
204+
golang.org/x/tools v0.21.1-0.20240531212143-b6235391adb3 // indirect
205205
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
206206
google.golang.org/appengine v1.6.8 // indirect
207207
gopkg.in/inf.v0 v0.9.1 // indirect

0 commit comments

Comments
 (0)