Skip to content

Commit c3cf469

Browse files
authored
Merge pull request #30 from cybozu-go/update-1.31
Update dependencies
2 parents eb20181 + 402e1e2 commit c3cf469

File tree

9 files changed

+205
-226
lines changed

9 files changed

+205
-226
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
test:
99
name: Small tests
10-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-24.04
1111
steps:
1212
- uses: actions/checkout@v4
1313
- uses: actions/setup-go@v5
@@ -16,7 +16,7 @@ jobs:
1616
- run: make test
1717
e2e:
1818
name: End-to-end tests
19-
runs-on: ubuntu-22.04
19+
runs-on: ubuntu-24.04
2020
steps:
2121
- uses: actions/checkout@v4
2222
- uses: actions/setup-go@v5

.github/workflows/mdbook.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
build:
99
name: Build book
10-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-24.04
1111
steps:
1212
- uses: actions/checkout@v4
1313
- run: make book
@@ -18,7 +18,7 @@ jobs:
1818
retention-days: 1
1919
publish:
2020
name: Publish book on GitHub Pages
21-
runs-on: ubuntu-22.04
21+
runs-on: ubuntu-24.04
2222
needs: build
2323
steps:
2424
- uses: actions/checkout@v4

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
image:
88
name: Push Container Image
9-
runs-on: ubuntu-22.04
9+
runs-on: ubuntu-24.04
1010
steps:
1111
- uses: actions/checkout@v4
1212
- uses: actions/setup-go@v5
@@ -34,7 +34,7 @@ jobs:
3434
release:
3535
name: Release on GitHub
3636
needs: image
37-
runs-on: ubuntu-22.04
37+
runs-on: ubuntu-24.04
3838
permissions:
3939
contents: write
4040
steps:

Dockerfile.cli

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/cybozu/golang:1.23-jammy as builder
1+
FROM ghcr.io/cybozu/golang:1.23-noble AS builder
22
WORKDIR /work
33
COPY go.mod go.mod
44
COPY go.sum go.sum
@@ -7,11 +7,8 @@ COPY cmd/necoperf-cli cmd/necoperf-cli
77
COPY internal internal
88
RUN CGO_ENABLED=0 go build -ldflags="-w -s" -o necoperf-cli ./cmd/necoperf-cli
99

10-
FROM ghcr.io/cybozu/pause:3.9 as pause
11-
FROM ghcr.io/cybozu/ubuntu:22.04
10+
FROM ghcr.io/cybozu/ubuntu:24.04
1211
LABEL org.opencontainers.image.source https://github.com/cybozu-go/necoperf
13-
14-
COPY --from=pause /pause /usr/local/bin/pause
1512
COPY --from=builder /work/necoperf-cli /usr/local/bin/necoperf-cli
1613

1714
USER 1000:1000

Dockerfile.daemon

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG FLATCAR_VERSION
2-
FROM ghcr.io/cybozu/golang:1.23-jammy as builder
2+
FROM ghcr.io/cybozu/golang:1.23-noble AS builder
33

44
WORKDIR /work
55
COPY go.mod go.mod
@@ -9,8 +9,7 @@ COPY cmd/necoperf-daemon cmd/necoperf-daemon
99
COPY internal internal
1010
RUN CGO_ENABLED=0 go build -ldflags="-w -s" -o necoperf-daemon ./cmd/necoperf-daemon
1111

12-
FROM ghcr.io/flatcar/flatcar-sdk-amd64:${FLATCAR_VERSION} as flatcar
13-
RUN ldd /usr/bin/perf | cut -d" " -f3 | xargs tar --dereference -cf libs.tar
12+
FROM ghcr.io/flatcar/flatcar-sdk-amd64:${FLATCAR_VERSION} AS flatcar
1413

1514
FROM scratch
1615
LABEL org.opencontainers.image.source https://github.com/cybozu-go/necoperf
@@ -20,13 +19,6 @@ COPY --from=flatcar /sbin/setcap /sbin/setcap
2019
COPY --from=flatcar /lib64 /lib64
2120
COPY --from=flatcar /usr/lib64 /usr/lib64
2221
COPY --from=flatcar /usr/bin/perf /usr/bin/sleep /usr/bin/
23-
24-
# install perf dependency
25-
COPY --from=flatcar /libs.tar /libs.tar
26-
RUN mkdir -p /usr/lib64 \
27-
&& tar -xf libs.tar \
28-
&& rm libs.tar
29-
3022
COPY --from=builder /work/necoperf-daemon /usr/local/bin/necoperf-daemon
3123

3224
RUN setcap "cap_perfmon,cap_sys_ptrace,cap_syslog,cap_sys_admin,cap_sys_chroot=ep" /usr/bin/perf \

Makefile.versions

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
E2ETEST_K8S_VERSION := 1.30.0
1+
E2ETEST_K8S_VERSION := 1.31.0
2+
ENVTEST_K8S_VERSION := 1.31.0
23
# ref to https://github.com/orgs/flatcar/packages/container/package/flatcar-sdk-amd64
34
# In the container image of flatcar 4081.0.0,
45
# the method for determining capabilities in perf (version 6.7) has changed.

go.mod

Lines changed: 61 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -4,93 +4,94 @@ go 1.23.3
44

55
require (
66
github.com/google/uuid v1.6.0
7-
github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.0
8-
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0
7+
github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.1
8+
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.2.0
99
github.com/oklog/run v1.1.0
10-
github.com/onsi/ginkgo/v2 v2.19.1
11-
github.com/onsi/gomega v1.34.1
12-
github.com/prometheus/client_golang v1.19.1
10+
github.com/onsi/ginkgo/v2 v2.22.0
11+
github.com/onsi/gomega v1.36.1
12+
github.com/prometheus/client_golang v1.20.5
1313
github.com/spf13/cobra v1.8.1
14-
github.com/stretchr/testify v1.9.0
15-
golang.org/x/sync v0.8.0
16-
google.golang.org/grpc v1.65.0
17-
google.golang.org/protobuf v1.34.2
18-
k8s.io/api v0.30.1
19-
k8s.io/apimachinery v0.30.1
20-
k8s.io/client-go v0.30.1
21-
k8s.io/cri-api v0.30.1
22-
k8s.io/kubernetes v1.30.1
23-
sigs.k8s.io/controller-runtime v0.18.4
14+
github.com/stretchr/testify v1.10.0
15+
golang.org/x/sync v0.10.0
16+
google.golang.org/grpc v1.69.0
17+
google.golang.org/protobuf v1.36.0
18+
k8s.io/api v0.31.0
19+
k8s.io/apimachinery v0.31.0
20+
k8s.io/client-go v0.31.0
21+
k8s.io/cri-api v0.31.0
22+
k8s.io/cri-client v0.31.0
23+
sigs.k8s.io/controller-runtime v0.19.3
2424
)
2525

2626
require (
27-
github.com/Microsoft/go-winio v0.6.0 // indirect
27+
github.com/Microsoft/go-winio v0.6.2 // indirect
2828
github.com/beorn7/perks v1.0.1 // indirect
2929
github.com/blang/semver/v4 v4.0.0 // indirect
30-
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
30+
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
3131
github.com/cespare/xxhash/v2 v2.3.0 // indirect
32-
github.com/davecgh/go-spew v1.1.1 // indirect
33-
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
32+
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
33+
github.com/emicklei/go-restful/v3 v3.12.1 // indirect
3434
github.com/evanphx/json-patch/v5 v5.9.0 // indirect
35-
github.com/felixge/httpsnoop v1.0.3 // indirect
36-
github.com/fsnotify/fsnotify v1.7.0 // indirect
35+
github.com/felixge/httpsnoop v1.0.4 // indirect
36+
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
3737
github.com/go-logr/logr v1.4.2 // indirect
3838
github.com/go-logr/stdr v1.2.2 // indirect
39-
github.com/go-openapi/jsonpointer v0.19.6 // indirect
40-
github.com/go-openapi/jsonreference v0.20.2 // indirect
41-
github.com/go-openapi/swag v0.22.3 // indirect
39+
github.com/go-openapi/jsonpointer v0.21.0 // indirect
40+
github.com/go-openapi/jsonreference v0.21.0 // indirect
41+
github.com/go-openapi/swag v0.23.0 // indirect
4242
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
4343
github.com/gogo/protobuf v1.3.2 // indirect
4444
github.com/golang/protobuf v1.5.4 // indirect
45-
github.com/google/gnostic-models v0.6.8 // indirect
45+
github.com/google/gnostic-models v0.6.9 // indirect
4646
github.com/google/go-cmp v0.6.0 // indirect
4747
github.com/google/gofuzz v1.2.0 // indirect
48-
github.com/google/pprof v0.0.0-20240424215950-a892ee059fd6 // indirect
49-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect
48+
github.com/google/pprof v0.0.0-20241210010833-40e02aabc2ad // indirect
49+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.24.0 // indirect
5050
github.com/imdario/mergo v0.3.6 // indirect
5151
github.com/inconshreveable/mousetrap v1.1.0 // indirect
5252
github.com/josharian/intern v1.0.0 // indirect
5353
github.com/json-iterator/go v1.1.12 // indirect
54-
github.com/mailru/easyjson v0.7.7 // indirect
54+
github.com/klauspost/compress v1.17.9 // indirect
55+
github.com/mailru/easyjson v0.9.0 // indirect
5556
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
5657
github.com/modern-go/reflect2 v1.0.2 // indirect
5758
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
5859
github.com/pkg/errors v0.9.1 // indirect
59-
github.com/pmezard/go-difflib v1.0.0 // indirect
60-
github.com/prometheus/client_model v0.5.0 // indirect
61-
github.com/prometheus/common v0.48.0 // indirect
62-
github.com/prometheus/procfs v0.12.0 // indirect
60+
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
61+
github.com/prometheus/client_model v0.6.1 // indirect
62+
github.com/prometheus/common v0.61.0 // indirect
63+
github.com/prometheus/procfs v0.15.1 // indirect
6364
github.com/spf13/pflag v1.0.5 // indirect
64-
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.42.0 // indirect
65-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.44.0 // indirect
66-
go.opentelemetry.io/otel v1.19.0 // indirect
67-
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.19.0 // indirect
68-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.19.0 // indirect
69-
go.opentelemetry.io/otel/metric v1.19.0 // indirect
70-
go.opentelemetry.io/otel/sdk v1.19.0 // indirect
71-
go.opentelemetry.io/otel/trace v1.19.0 // indirect
72-
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
73-
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
74-
golang.org/x/mod v0.19.0 // indirect
75-
golang.org/x/net v0.27.0 // indirect
76-
golang.org/x/oauth2 v0.20.0 // indirect
77-
golang.org/x/sys v0.22.0 // indirect
78-
golang.org/x/term v0.22.0 // indirect
79-
golang.org/x/text v0.16.0 // indirect
80-
golang.org/x/time v0.3.0 // indirect
81-
golang.org/x/tools v0.23.0 // indirect
82-
google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157 // indirect
83-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157 // indirect
65+
github.com/x448/float16 v0.8.4 // indirect
66+
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
67+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.58.0 // indirect
68+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0 // indirect
69+
go.opentelemetry.io/otel v1.33.0 // indirect
70+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.33.0 // indirect
71+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.33.0 // indirect
72+
go.opentelemetry.io/otel/metric v1.33.0 // indirect
73+
go.opentelemetry.io/otel/sdk v1.33.0 // indirect
74+
go.opentelemetry.io/otel/trace v1.33.0 // indirect
75+
go.opentelemetry.io/proto/otlp v1.4.0 // indirect
76+
golang.org/x/exp v0.0.0-20241217172543-b2144cdd0a67 // indirect
77+
golang.org/x/net v0.32.0 // indirect
78+
golang.org/x/oauth2 v0.24.0 // indirect
79+
golang.org/x/sys v0.28.0 // indirect
80+
golang.org/x/term v0.27.0 // indirect
81+
golang.org/x/text v0.21.0 // indirect
82+
golang.org/x/time v0.8.0 // indirect
83+
golang.org/x/tools v0.28.0 // indirect
84+
google.golang.org/genproto/googleapis/api v0.0.0-20241216192217-9240e9c98484 // indirect
85+
google.golang.org/genproto/googleapis/rpc v0.0.0-20241216192217-9240e9c98484 // indirect
8486
gopkg.in/inf.v0 v0.9.1 // indirect
8587
gopkg.in/yaml.v2 v2.4.0 // indirect
8688
gopkg.in/yaml.v3 v3.0.1 // indirect
87-
k8s.io/apiextensions-apiserver v0.30.1 // indirect
88-
k8s.io/apiserver v0.30.1 // indirect
89-
k8s.io/component-base v0.30.1 // indirect
90-
k8s.io/klog/v2 v2.120.1 // indirect
91-
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect
92-
k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect
93-
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
94-
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
89+
k8s.io/apiextensions-apiserver v0.31.0 // indirect
90+
k8s.io/component-base v0.31.0 // indirect
91+
k8s.io/klog/v2 v2.130.1 // indirect
92+
k8s.io/kube-openapi v0.0.0-20241212222426-2c72e554b1e7 // indirect
93+
k8s.io/utils v0.0.0-20241210054802-24370beab758 // indirect
94+
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
95+
sigs.k8s.io/structured-merge-diff/v4 v4.5.0 // indirect
9596
sigs.k8s.io/yaml v1.4.0 // indirect
9697
)

0 commit comments

Comments
 (0)