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()