Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: remove tag (#8088)

Danny Xu80f713e26855
diff --git a/backend/tests/rollback_test.go b/backend/tests/rollback_test.go
index 64ca078084..aeb4868bab 100644
--- a/backend/tests/rollback_test.go
+++ b/backend/tests/rollback_test.go
@@ -11,16 +11,12 @@ import (
"github.com/stretchr/testify/require"
"google.golang.org/protobuf/types/known/fieldmaskpb"
- "github.com/bytebase/bytebase/backend/common"
resourcemysql "github.com/bytebase/bytebase/backend/resources/mysql"
"github.com/bytebase/bytebase/backend/tests/fake"
v1pb "github.com/bytebase/bytebase/proto/generated-go/v1"
)
func TestCreateRollbackIssueMySQL(t *testing.T) {
- if testReleaseMode == common.ReleaseModeProd {
- t.Skip()
- }
t.Parallel()
a := require.New(t)
@@ -171,9 +167,6 @@ func TestCreateRollbackIssueMySQL(t *testing.T) {
}
func TestCreateRollbackIssueMySQLByPatch(t *testing.T) {
- if testReleaseMode == common.ReleaseModeProd {
- t.Skip()
- }
t.Parallel()
a := require.New(t)
@@ -335,9 +328,6 @@ func TestCreateRollbackIssueMySQLByPatch(t *testing.T) {
}
func TestRollbackCanceled(t *testing.T) {
- if testReleaseMode == common.ReleaseModeProd {
- t.Skip()
- }
t.Parallel()
a := require.New(t)
diff --git a/backend/tests/tags_dev.go b/backend/tests/tags_dev.go
deleted file mode 100644
index 31cce1e9c8..0000000000
--- a/backend/tests/tags_dev.go
+++ /dev/null
@@ -1,7 +0,0 @@
-//go:build !release
-
-package tests
-
-import "github.com/bytebase/bytebase/backend/common"
-
-const testReleaseMode = common.ReleaseModeDev
diff --git a/backend/tests/tags_prod.go b/backend/tests/tags_prod.go
deleted file mode 100644
index 4277a92db4..0000000000
--- a/backend/tests/tags_prod.go
+++ /dev/null
@@ -1,7 +0,0 @@
-//go:build release
-
-package tests
-
-import "github.com/bytebase/bytebase/backend/common"
-
-const testReleaseMode = common.ReleaseModeProd
diff --git a/backend/tests/tests.go b/backend/tests/tests.go
index 5c5e9233a7..9b61614f40 100644
--- a/backend/tests/tests.go
+++ b/backend/tests/tests.go
@@ -345,7 +345,7 @@ func (ctl *controller) initWorkspaceProfile(ctx context.Context) error {
// We require port as an argument of GetTestProfile so that test can run in parallel in different ports.
func getTestProfile(dataDir, resourceDir string, port int, readOnly bool) componentConfig.Profile {
return componentConfig.Profile{
- Mode: testReleaseMode,
+ Mode: common.ReleaseModeDev,
ExternalURL: fmt.Sprintf("http://localhost:%d", port),
GrpcPort: port + 1,
DatastorePort: port + 2,
@@ -365,7 +365,7 @@ func getTestProfile(dataDir, resourceDir string, port int, readOnly bool) compon
// pgURL for connect to Postgres.
func getTestProfileWithExternalPg(dataDir, resourceDir string, port int, pgUser string, pgURL string, skipOnboardingData bool) componentConfig.Profile {
return componentConfig.Profile{
- Mode: testReleaseMode,
+ Mode: common.ReleaseModeDev,
ExternalURL: fmt.Sprintf("http://localhost:%d", port),
GrpcPort: port + 1,
SampleDatabasePort: 0,