You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ha...@apache.org on 2026/08/24 05:28:01 UTC
(skywalking-banyandb) branch main updated: Fix lifecycle migration test source readiness (#1301)
This is an automated email from the ASF dual-hosted git repository.
hanahmily pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb.git
The following commit(s) were added to refs/heads/main by this push:
new 8f1c6f5fd Fix lifecycle migration test source readiness (#1301)
8f1c6f5fd is described below
commit 8f1c6f5fd7acb8356f5bd5cdcd6feee7a478c5d4
Author: Owen Willison <41...@users.noreply.github.com>
AuthorDate: Mon Aug 24 13:27:56 2026 +0800
Fix lifecycle migration test source readiness (#1301)
---
test/integration/distributed/lifecycle/common.go | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/test/integration/distributed/lifecycle/common.go b/test/integration/distributed/lifecycle/common.go
index 0e79fd22e..f336b2a16 100644
--- a/test/integration/distributed/lifecycle/common.go
+++ b/test/integration/distributed/lifecycle/common.go
@@ -45,6 +45,7 @@ import (
"github.com/apache/skywalking-banyandb/pkg/timestamp"
test_cases "github.com/apache/skywalking-banyandb/test/cases"
caseslifecycle "github.com/apache/skywalking-banyandb/test/cases/lifecycle"
+ measureTestData "github.com/apache/skywalking-banyandb/test/cases/measure/data"
)
type setupResult struct {
@@ -141,8 +142,28 @@ var _ = ginkgo.SynchronizedBeforeSuite(func() []byte {
BaseTime: result.tenDaysBeforeNow,
MetadataFlags: result.metadataFlags,
}
+ awaitLifecycleSourceMeasureData()
})
+func awaitLifecycleSourceMeasureData() {
+ liaisonConnection, connectionErr := grpchelper.Conn(result.liaisonAddr, 10*time.Second,
+ grpclib.WithTransportCredentials(insecure.NewCredentials()))
+ gomega.Expect(connectionErr).NotTo(gomega.HaveOccurred())
+ defer func() { _ = liaisonConnection.Close() }()
+ sharedContext := helpers.SharedContext{
+ Connection: liaisonConnection,
+ BaseTime: result.tenDaysBeforeNow,
+ }
+ test.EventuallyConsistently(func(innerGm gomega.Gomega) {
+ measureTestData.VerifyFn(innerGm, sharedContext, helpers.Args{
+ Input: "all",
+ Duration: 25 * time.Minute,
+ Offset: -20 * time.Minute,
+ Stages: []string{"hot"},
+ })
+ }, flags.EventuallyTimeout).Should(gomega.Succeed())
+}
+
func verifyClusterNodeRoles(liaisonAddr string) {
conn, connErr := grpchelper.Conn(liaisonAddr, 10*time.Second,
grpclib.WithTransportCredentials(insecure.NewCredentials()))