From 73adf1d489cac785f6d004ce4aee86ec336c7412 Mon Sep 17 00:00:00 2001 From: Alexey Potapenko Date: Fri, 11 Sep 2026 09:56:22 +0300 Subject: [PATCH 1/2] tests: fix flaky test_get_instances, test_get_replicaset_instances Cluster tests now wait until all instances achieve `healthy` status. Closes #56 --- CHANGELOG.md | 10 +++++++++- test/integration/cluster_test.lua | 9 +++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e849a39..cb42c6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,15 @@ ## Unreleased -- `Detect Tarantool Enterprise by tarantool.package in utils.get_tnt_version()` +### Added + +### Changed + +### Fixed + +- Flaky `cluster.test_get_instances` and `cluster.test_get_replicaset_instances` + tests by waiting until all instances report `healthy` status before running + assertions. ## 0.0.13 diff --git a/test/integration/cluster_test.lua b/test/integration/cluster_test.lua index 32f88c9..08d0118 100644 --- a/test/integration/cluster_test.lua +++ b/test/integration/cluster_test.lua @@ -9,9 +9,18 @@ g.before_each(function() local cluster_config = table.deepcopy(helper.cluster_config) g.cluster = helper.Cluster:new(cluster_config) g.cluster:start() + helper.retrying({}, function() t.assert_equals(helper.list_cluster_issues(g.cluster.main_server), {}) end) + + helper.retrying({}, function() + local instances = g.cluster.main_server.net_box:eval( + "return require('graphqlapi.cluster').get_instances()") + for _, instance in ipairs(instances) do + t.assert_equals(instance.status, 'healthy') + end + end) end) g.after_each(function() From c2812338e411a1d0f5daa41a1d469b45a40458ef Mon Sep 17 00:00:00 2001 From: Alexey Potapenko Date: Fri, 11 Sep 2026 09:57:27 +0300 Subject: [PATCH 2/2] Release 0.0.14 --- CHANGELOG.md | 8 ++++++++ graphqlapi/VERSION.lua | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb42c6b..5cb7afd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,14 @@ ### Fixed +## [0.0.14] - 2026-09-11 + +This release fixes Tarantool Enterprise detection and flaky tests. + +### Fixed + +- Detect Tarantool Enterprise by tarantool.package in utils.get_tnt_version() + (#58). - Flaky `cluster.test_get_instances` and `cluster.test_get_replicaset_instances` tests by waiting until all instances report `healthy` status before running assertions. diff --git a/graphqlapi/VERSION.lua b/graphqlapi/VERSION.lua index d57db43..10e6a5f 100644 --- a/graphqlapi/VERSION.lua +++ b/graphqlapi/VERSION.lua @@ -1,4 +1,4 @@ -- Сontains the module version. -- Requires manual update in case of release commit. -return '0.0.13' +return '0.0.14'