From 63940d8e7a226e372857e88362cbc4f2e2637539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Y=C3=BCce=20Tekol?= Date: Tue, 26 Sep 2023 18:28:22 +0300 Subject: [PATCH] Added 5.3.4 release notes (#408) * Added release notes for 5.3.4 * Fixed Viridian tests --- base/commands/viridian/viridian_it_test.go | 21 +++++++-------- docs/modules/ROOT/nav.adoc | 1 + .../ROOT/pages/release-notes-5.3.4.adoc | 26 +++++++++++++++++++ 3 files changed, 37 insertions(+), 11 deletions(-) create mode 100644 docs/modules/ROOT/pages/release-notes-5.3.4.adoc diff --git a/base/commands/viridian/viridian_it_test.go b/base/commands/viridian/viridian_it_test.go index 526b36f0..d3352801 100644 --- a/base/commands/viridian/viridian_it_test.go +++ b/base/commands/viridian/viridian_it_test.go @@ -132,12 +132,12 @@ func listClusters_InteractiveTest(t *testing.T) { tcx.WithShell(ctx, func(tcx it.TestContext) { tcx.WithReset(func() { tcx.WriteStdin([]byte("\\viridian list-clusters\n")) - tcx.AssertStderrContains("OK") + tcx.AssertStdoutContains("OK") }) c := createOrGetClusterWithState(ctx, tcx, "RUNNING") tcx.WithReset(func() { tcx.WriteStdin([]byte("\\viridian list-clusters\n")) - tcx.AssertStderrContains("OK") + tcx.AssertStdoutContains("OK") tcx.AssertStdoutContains(c.ID) }) }) @@ -166,8 +166,7 @@ func createCluster_InteractiveTest(t *testing.T) { tcx.WriteStdinf("\\viridian create-cluster --development --verbose --name %s \n", clusterName) time.Sleep(10 * time.Second) check.Must(waitState(ctx, tcx, "", "RUNNING")) - tcx.AssertStdoutContains(fmt.Sprintf("Imported configuration: %s", clusterName)) - tcx.AssertStderrContains("OK") + tcx.AssertStdoutContains("OK") require.True(t, paths.Exists(paths.ResolveConfigDir(clusterName))) _ = check.MustValue(tcx.Viridian.GetClusterWithName(ctx, clusterName)) @@ -180,7 +179,7 @@ func stopCluster_NonInteractiveTest(t *testing.T) { viridianTester(t, func(ctx context.Context, tcx it.TestContext) { c := createOrGetClusterWithState(ctx, tcx, "RUNNING") tcx.CLCExecute(ctx, "viridian", "stop-cluster", c.ID) - tcx.AssertStderrContains("OK") + tcx.AssertStdoutContains("OK") check.Must(waitState(ctx, tcx, c.ID, "STOPPED")) }) } @@ -192,7 +191,7 @@ func stopCluster_InteractiveTest(t *testing.T) { tcx.WithReset(func() { c := createOrGetClusterWithState(ctx, tcx, "RUNNING") tcx.WriteStdinf("\\viridian stop-cluster %s\n", c.Name) - tcx.AssertStderrContains("OK") + tcx.AssertStdoutContains("OK") check.Must(waitState(ctx, tcx, c.ID, "STOPPED")) }) }) @@ -215,7 +214,7 @@ func resumeCluster_InteractiveTest(t *testing.T) { tcx.WithReset(func() { c := createOrGetClusterWithState(ctx, tcx, "STOPPED") tcx.WriteStdinf("\\viridian resume-cluster %s\n", c.Name) - tcx.AssertStderrContains("OK") + tcx.AssertStdoutContains("OK") check.Must(waitState(ctx, tcx, c.ID, "RUNNING")) }) }) @@ -240,7 +239,7 @@ func getCluster_InteractiveTest(t *testing.T) { tcx.WithReset(func() { c := createOrGetClusterWithState(ctx, tcx, "") tcx.WriteStdinf("\\viridian get-cluster %s\n", c.Name) - tcx.AssertStderrContains("OK") + tcx.AssertStdoutContains("OK") tcx.AssertStdoutContains(c.Name) tcx.AssertStdoutContains(c.ID) }) @@ -269,7 +268,7 @@ func deleteCluster_InteractiveTest(t *testing.T) { tcx.WriteStdinf("\\viridian delete-cluster %s\n", c.Name) tcx.AssertStdoutContains("(y/n)") tcx.WriteStdin([]byte("y")) - tcx.AssertStderrContains("OK") + tcx.AssertStdoutContains("OK") require.Eventually(t, func() bool { _, err := tcx.Viridian.GetCluster(ctx, c.ID) return err == nil @@ -287,7 +286,7 @@ func downloadLogs_NonInteractiveTest(t *testing.T) { c := createOrGetClusterWithState(ctx, tcx, "RUNNING") tcx.WithReset(func() { tcx.CLCExecute(ctx, "viridian", "download-logs", c.ID, "--output-dir", dir) - tcx.AssertStderrContains("OK") + tcx.AssertStdoutContains("OK") require.FileExists(t, paths.Join(dir, "node-1.log")) }) }) @@ -303,7 +302,7 @@ func downloadLogs_InteractiveTest(t *testing.T) { tcx.WithReset(func() { c := createOrGetClusterWithState(ctx, tcx, "RUNNING") tcx.WriteStdinf("\\viridian download-logs %s -o %s\n", c.Name, dir) - tcx.AssertStderrContains("OK") + tcx.AssertStdoutContains("OK") require.FileExists(t, paths.Join(dir, "node-1.log")) }) }) diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc index 4b435f11..e1f65fe2 100644 --- a/docs/modules/ROOT/nav.adoc +++ b/docs/modules/ROOT/nav.adoc @@ -40,6 +40,7 @@ * xref:phone-homes.adoc[] .Release Notes +* xref:release-notes-5.3.4.adoc[5.3.4] * xref:release-notes-5.3.3.adoc[5.3.3] * xref:release-notes-5.3.2.adoc[5.3.2] * xref:release-notes-5.3.1.adoc[5.3.1] diff --git a/docs/modules/ROOT/pages/release-notes-5.3.4.adoc b/docs/modules/ROOT/pages/release-notes-5.3.4.adoc new file mode 100644 index 00000000..d2434394 --- /dev/null +++ b/docs/modules/ROOT/pages/release-notes-5.3.4.adoc @@ -0,0 +1,26 @@ += 5.3.4 Release Notes + +== New Features + +* Added the `serializer generate` command that creates Java Compact Serialization classess from the given schema. +* Added an update checker which displays a notification in the interactive mode. You can disable it by setting the `CLC_SKIP_SERVER_VERSION_CHECK` to `1`. +* In order to make an informed decision about CLC improvements and features, we started to collect non-identifiable telemetry. You can disable this by setting `HZ_PHONE_HOME_ENABLED` environment variable to `false`. You can find more information in the xref:phone-homes.adoc[documentation]. +* CLC can now be installed using an install script on Linux and macOS systems. Just run `curl https://hazelcast.com/clc/install.sh | bash`. + +== Improvements + +* Improved configuration selector. +* If there's a single configuration, do not display the configuration selector and use that configuration automatically. +* Updated `job submit` command to deduce the job ID. + +== Changes + +* Confirmation is required from the user when `demo generate-data` command runs. + +== Fixes + +* CLC interactive prompt doesn't change after config wizard. +* Readline panic in the interactive mode if terminal width cannot be determined and left arrow is pressed. +* Map proxy is created when a `map` command is used. +* "connecting to cluster" prompt is not shown when `object list` command runs. +* Fixed `list add` command.