Skip to content

Commit

Permalink
Added 5.3.4 release notes (#408)
Browse files Browse the repository at this point in the history
* Added release notes for 5.3.4
* Fixed Viridian tests
  • Loading branch information
yuce authored Sep 26, 2023
1 parent d15e441 commit 63940d8
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 11 deletions.
21 changes: 10 additions & 11 deletions base/commands/viridian/viridian_it_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
})
Expand Down Expand Up @@ -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))

Expand All @@ -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"))
})
}
Expand All @@ -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"))
})
})
Expand All @@ -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"))
})
})
Expand All @@ -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)
})
Expand Down Expand Up @@ -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
Expand All @@ -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"))
})
})
Expand All @@ -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"))
})
})
Expand Down
1 change: 1 addition & 0 deletions docs/modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
26 changes: 26 additions & 0 deletions docs/modules/ROOT/pages/release-notes-5.3.4.adoc
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 63940d8

Please sign in to comment.