From 6f53bc3dd29cdd48e1bb9a92af9d775655c902d1 Mon Sep 17 00:00:00 2001 From: troychiu Date: Thu, 14 Mar 2024 14:03:25 -0700 Subject: [PATCH] modify config Signed-off-by: troychiu --- .github/workflows/integration.yml | 2 +- flyteadmin/tests/bootstrap.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 3854adbf5c..f60e8b95ca 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -40,7 +40,7 @@ jobs: go-version: ${{ inputs.go-version }} - name: Integration env: - ADMIN_DB_CONFIG: CI + USE_LOCAL_SANDBOX: false run: | # attempt to clean up some unneeded data: https://github.com/actions/virtual-environments/issues/2840#issuecomment-790492173 sudo rm -rf /usr/share/dotnet diff --git a/flyteadmin/tests/bootstrap.go b/flyteadmin/tests/bootstrap.go index 7c5dc705c8..b3950b0b84 100644 --- a/flyteadmin/tests/bootstrap.go +++ b/flyteadmin/tests/bootstrap.go @@ -20,12 +20,12 @@ const insertExecutionQueryStr = `INSERT INTO "executions" ` + `("execution_project","execution_domain","execution_name","phase","launch_plan_id","workflow_id") ` + `VALUES ('%s', '%s', '%s', '%s', '%d', '%d')` -const ENV_DB_CONFIG = "ADMIN_DB_CONFIG" +const sandboxEnv = "USE_LOCAL_SANDBOX" var adminScope = promutils.NewScope("flyteadmin") func getDbConfigWithEnv() *database.DbConfig { - if os.Getenv(ENV_DB_CONFIG) == "CI" { + if os.Getenv(sandboxEnv) == "False" { return getDbConfig() } else { return getSandboxDbConfig()