Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions acceptance/acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,22 @@ func testAccept(t *testing.T, inprocessMode bool, singleTest string) int {
// Consistent behavior of locale-dependent tools, such as 'sort'
t.Setenv("LC_ALL", "C")

// Unset AI-agent detection env vars so the SDK's user-agent does not
// pick up the host's agent. Setting these to "" via test.toml is not
// enough: the SDK (since v0.132.0) treats empty values as a truthy
// signal because os.LookupEnv reports them as present.
for _, v := range []string{
"ANTIGRAVITY_AGENT",
"CLAUDECODE",
"CLINE_ACTIVE",
"CODEX_CI",
"CURSOR_AGENT",
"GEMINI_CLI",
"OPENCODE",
} {
os.Unsetenv(v) //nolint:usetesting // t.Setenv cannot unset
}

buildDir := getBuildDir(t, cwd, runtime.GOOS, runtime.GOARCH)

// Set up terraform for tests. Skip on DBR - tests with RunsOnDbr only use direct deployment.
Expand Down
9 changes: 0 additions & 9 deletions acceptance/test.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@ Env.PYTHONDONTWRITEBYTECODE = "1"
Env.PYTHONUNBUFFERED = "1"
Env.PYTHONUTF8 = "1"

# Clear agent env vars to prevent them from affecting test output
Env.ANTIGRAVITY_AGENT = ""
Env.CLAUDECODE = ""
Env.CLINE_ACTIVE = ""
Env.CODEX_CI = ""
Env.CURSOR_AGENT = ""
Env.GEMINI_CLI = ""
Env.OPENCODE = ""

EnvMatrix.DATABRICKS_BUNDLE_ENGINE = ["terraform", "direct"]
EnvMatrixExclude.noplantf = ["DATABRICKS_BUNDLE_ENGINE=terraform", "READPLAN=1"]
EnvRepl.DATABRICKS_BUNDLE_ENGINE = false
Expand Down
Loading