Skip to content

Commit 9aa1763

Browse files
Merge branch 'temporalio:main' into fm/main
2 parents 5743fae + 6c18196 commit 9aa1763

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

features/build_id_versioning/common.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ package build_id_versioning
33
import (
44
"context"
55
"fmt"
6+
"os"
7+
"strings"
68
"time"
79

810
"github.com/temporalio/features/harness/go/harness"
@@ -40,6 +42,14 @@ func AddSomeVersions(ctx context.Context, c client.Client, tq string) error {
4042
}
4143

4244
func ServerSupportsBuildIDVersioning(ctx context.Context, r *harness.Runner) (bool, error) {
45+
// Force to explicitly enable these old tests since they fail in Server 1.25+.
46+
// This versioning API has been deprecated, and tests need to be rewritten for
47+
// the new API.
48+
enable, present := os.LookupEnv("ENABLE_VERSIONING_TESTS")
49+
if !present || strings.ToLower(enable) != "true" {
50+
return false, nil
51+
}
52+
4353
capabilities, err := r.Client.WorkflowService().GetSystemInfo(ctx, &workflowservice.GetSystemInfoRequest{})
4454
if err != nil {
4555
return false, err

0 commit comments

Comments
 (0)