From 060d97fdc8dd88dbb36ac13c1c054f1e0192f228 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Wed, 3 Aug 2022 19:07:00 +0200 Subject: [PATCH] prepare v5.0.0 release The switching to Gingko v2 is potentially breaking users, so it gets treated as an API change. --- CHANGELOG/CHANGELOG-5.0.md | 40 +++++++++++++++++++++++++++++++++ cmd/csi-sanity/main.go | 2 +- driver/mock.go | 2 +- go.mod | 2 +- hack/_apitest/api_test.go | 2 +- hack/_apitest2/api_test.go | 2 +- hack/_embedded/embedded_test.go | 2 +- internal/proxy/proxy.go | 2 +- pkg/sanity/sanity.go | 2 +- test/co_test.go | 4 ++-- test/driver_test.go | 2 +- 11 files changed, 51 insertions(+), 11 deletions(-) create mode 100644 CHANGELOG/CHANGELOG-5.0.md diff --git a/CHANGELOG/CHANGELOG-5.0.md b/CHANGELOG/CHANGELOG-5.0.md new file mode 100644 index 00000000..219b48cf --- /dev/null +++ b/CHANGELOG/CHANGELOG-5.0.md @@ -0,0 +1,40 @@ +# Release notes for v5.0.0 + +# Changelog since v4.4.0 + +## Changes by Kind + +### API Changes + - csi-sanity is now built with Ginkgo v2. All camel case flags + (e.g. -ginkgo.randomizeAllSpecs) are replaced with kebab case flags + (e.g. -ginkgo.randomize-all-specs). The camel case versions continue to work but + emit a deprecation warning. The "junitfile" configuration file option was + removed because ginkgo now handles JUnit report creation + itself. "-csi.junitfile" continues to work, but is only an alias for + "-ginkgo.junit-report" and should be replaced by that. + ([#366](https://github.com/kubernetes-csi/csi-test/pull/366), + [@pohly](https://github.com/pohly)) + +## Dependencies + +### Added +_Nothing has changed._ + +### Changed +- github.com/google/go-cmp: [v0.5.6 → v0.5.8](https://github.com/google/go-cmp/compare/v0.5.6...v0.5.8) +- github.com/onsi/ginkgo/v2: [v2.1.3 → v2.1.4](https://github.com/onsi/ginkgo/v2/compare/v2.1.3...v2.1.4) +- github.com/onsi/ginkgo: [v1.16.5 → v1.16.4](https://github.com/onsi/ginkgo/compare/v1.16.5...v1.16.4) +- github.com/onsi/gomega: [v1.19.0 → v1.20.0](https://github.com/onsi/gomega/compare/v1.19.0...v1.20.0) +- github.com/yuin/goldmark: [v1.3.5 → v1.4.1](https://github.com/yuin/goldmark/compare/v1.3.5...v1.4.1) +- golang.org/x/crypto: 75b2880 → 089bfa5 +- golang.org/x/mod: v0.4.2 → 9b9b3d8 +- golang.org/x/net: 27dd868 → 0bcc04d +- golang.org/x/sys: 1d35b9e → a90be44 +- golang.org/x/tools: v0.1.1 → v0.1.10 +- google.golang.org/grpc: v1.47.0 → v1.48.0 +- google.golang.org/protobuf: v1.27.1 → v1.28.0 +- gopkg.in/yaml.v3: 9f266ea → v3.0.1 +- k8s.io/klog/v2: v2.60.1 → v2.70.1 + +### Removed +_Nothing has changed._ diff --git a/cmd/csi-sanity/main.go b/cmd/csi-sanity/main.go index f5f7d183..d93c3b63 100644 --- a/cmd/csi-sanity/main.go +++ b/cmd/csi-sanity/main.go @@ -25,7 +25,7 @@ import ( "github.com/onsi/ginkgo/v2" "k8s.io/klog/v2" - "github.com/kubernetes-csi/csi-test/v4/pkg/sanity" + "github.com/kubernetes-csi/csi-test/v5/pkg/sanity" ) const ( diff --git a/driver/mock.go b/driver/mock.go index 6b8a08c2..3863dc37 100644 --- a/driver/mock.go +++ b/driver/mock.go @@ -19,7 +19,7 @@ package driver import ( "net" - "github.com/kubernetes-csi/csi-test/v4/utils" + "github.com/kubernetes-csi/csi-test/v5/utils" "google.golang.org/grpc" ) diff --git a/go.mod b/go.mod index 79bd6529..ebcb98a1 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/kubernetes-csi/csi-test/v4 +module github.com/kubernetes-csi/csi-test/v5 go 1.16 diff --git a/hack/_apitest/api_test.go b/hack/_apitest/api_test.go index 89143524..80187c8d 100644 --- a/hack/_apitest/api_test.go +++ b/hack/_apitest/api_test.go @@ -18,7 +18,7 @@ package apitest import ( "testing" - "github.com/kubernetes-csi/csi-test/v4/pkg/sanity" + "github.com/kubernetes-csi/csi-test/v5/pkg/sanity" ) func TestMyDriver(t *testing.T) { diff --git a/hack/_apitest2/api_test.go b/hack/_apitest2/api_test.go index f289661c..b4b07638 100644 --- a/hack/_apitest2/api_test.go +++ b/hack/_apitest2/api_test.go @@ -22,7 +22,7 @@ import ( "path" "testing" - "github.com/kubernetes-csi/csi-test/v4/pkg/sanity" + "github.com/kubernetes-csi/csi-test/v5/pkg/sanity" ) // TestMyDriverWithCustomTargetPaths verifies that CreateTargetDir and diff --git a/hack/_embedded/embedded_test.go b/hack/_embedded/embedded_test.go index eac86df4..27faf4e7 100644 --- a/hack/_embedded/embedded_test.go +++ b/hack/_embedded/embedded_test.go @@ -19,7 +19,7 @@ package embedded import ( "testing" - "github.com/kubernetes-csi/csi-test/v4/pkg/sanity" + "github.com/kubernetes-csi/csi-test/v5/pkg/sanity" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) diff --git a/internal/proxy/proxy.go b/internal/proxy/proxy.go index 8d0d1408..a62c76c5 100644 --- a/internal/proxy/proxy.go +++ b/internal/proxy/proxy.go @@ -37,7 +37,7 @@ import ( "k8s.io/klog/v2" - "github.com/kubernetes-csi/csi-test/v4/internal/endpoint" + "github.com/kubernetes-csi/csi-test/v5/internal/endpoint" ) // New listens on both endpoints and starts accepting connections diff --git a/pkg/sanity/sanity.go b/pkg/sanity/sanity.go index 5544679f..0faedbaa 100644 --- a/pkg/sanity/sanity.go +++ b/pkg/sanity/sanity.go @@ -26,7 +26,7 @@ import ( "strings" "time" - "github.com/kubernetes-csi/csi-test/v4/utils" + "github.com/kubernetes-csi/csi-test/v5/utils" yaml "gopkg.in/yaml.v2" "google.golang.org/grpc" diff --git a/test/co_test.go b/test/co_test.go index c4f67318..541c900d 100644 --- a/test/co_test.go +++ b/test/co_test.go @@ -24,8 +24,8 @@ import ( "github.com/container-storage-interface/spec/lib/go/csi" "github.com/golang/mock/gomock" "github.com/golang/protobuf/proto" - mock_driver "github.com/kubernetes-csi/csi-test/v4/driver" - mock_utils "github.com/kubernetes-csi/csi-test/v4/utils" + mock_driver "github.com/kubernetes-csi/csi-test/v5/driver" + mock_utils "github.com/kubernetes-csi/csi-test/v5/utils" ) func TestPluginInfoResponse(t *testing.T) { diff --git a/test/driver_test.go b/test/driver_test.go index 8c6d0442..d5157523 100644 --- a/test/driver_test.go +++ b/test/driver_test.go @@ -22,7 +22,7 @@ import ( "testing" "github.com/container-storage-interface/spec/lib/go/csi" - "github.com/kubernetes-csi/csi-test/v4/utils" + "github.com/kubernetes-csi/csi-test/v5/utils" "google.golang.org/grpc" "google.golang.org/grpc/reflection" )