Skip to content

Fix aitools/install panic in TestCountFuzz on agent-equipped machines - #5984

Merged
pietern merged 1 commit into
mainfrom
investigate-test-panic
Jul 25, 2026
Merged

Fix aitools/install panic in TestCountFuzz on agent-equipped machines#5984
pietern merged 1 commit into
mainfrom
investigate-test-panic

Conversation

@pietern

@pieternpietern commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

TestCountFuzz/aitools/install panics with telemetry logger not found, but only on machines with a supported coding agent installed.

Two causes:

  1. aitools is hand-written but was being fuzzed. It was missing from the fuzz harness manualRoots blocklist added in cmd: add count-fuzz test for auto-generated commands #5102 (the test targets auto-generated commands, guarding against codegen regressions like CLI panics on interactive command for warehouses update-default-warehouse-override #5070).
  2. telemetry.Log panicked when no logger was on the context, which aitools install started triggering in Add telemetry for databricks aitools install #5862 (telemetry for the command).

CI never caught it: install's deferred logInstallEvent only runs once an agent is detected, and the panic is unreachable via the real CLI anyway (cmd/root.Execute always installs the logger; the fuzz harness bypasses it).

This pull request and its description were written by Isaac.

TestCountFuzz/aitools/install panics with `telemetry logger not found`,
but only on machines with a supported coding agent installed.
Two causes:
1. aitools is hand-written but was being fuzzed. It was missing from the
fuzz harness manualRoots blocklist added in #5102 (the test targets
auto-generated commands, guarding against codegen regressions like #5070).
2. telemetry.Log panicked when no logger was on the context, which
aitools install started triggering in #5862 (telemetry for the command).
CI never caught it: install's deferred logInstallEvent only runs once an
agent is detected, and the panic is unreachable via the real CLI anyway
(cmd/root.Execute always installs the logger; the fuzz harness bypasses it).
Co-authored-by: Isaac
@pietern
pietern requested a review from parthban-dbJuly 20, 2026 12:58
@pietern
pietern enabled auto-merge July 20, 2026 12:59
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 93de39f

Run: 29744276146

Env💚​RECOVERED🙈​SKIP✅​pass🙈​skipTime
💚​aws linux4422711263:34
💚​aws windows4422911243:49
💚​aws-ucws linux4431410436:54
💚​aws-ucws windows4431610415:37
💚​azure linux4422711254:05
💚​azure windows4422911233:36
💚​azure-ucws linux4431610407:20
💚​azure-ucws windows4431810385:34
💚​gcp linux4422611273:14
💚​gcp windows4422811253:44
8 interesting tests: 4 RECOVERED, 4 SKIP
Test Nameaws linuxaws windowsaws-ucws linuxaws-ucws windowsazure linuxazure windowsazure-ucws linuxazure-ucws windowsgcp linuxgcp windows
💚​TestAccept💚​R💚​R💚​R💚​R💚​R💚​R💚​R💚​R💚​R💚​R
🙈​TestAccept/bundle/invariant/no_drift🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
🙈​TestAccept/bundle/resources/vector_search_endpoints/drift/recreated_same_name🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
🙈​TestAccept/bundle/resources/vector_search_indexes/recreate/embedding_dimension🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
🙈​TestAccept/ssh/connection🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
💚​TestFetchRepositoryInfoAPI_FromRepo💚​R💚​R💚​R💚​R💚​R💚​R💚​R💚​R💚​R💚​R
💚​TestFetchRepositoryInfoAPI_FromRepo/root💚​R💚​R💚​R💚​R💚​R💚​R💚​R💚​R💚​R💚​R
💚​TestFetchRepositoryInfoAPI_FromRepo/subdir💚​R💚​R💚​R💚​R💚​R💚​R💚​R💚​R💚​R💚​R
Top 5 slowest tests (at least 2 minutes):
durationenvtestname
3:21aws windowsTestAccept
3:18gcp windowsTestAccept
3:11azure windowsTestAccept
3:08azure-ucws windowsTestAccept
3:06aws-ucws windowsTestAccept

@pietern
pietern added this pull request to the merge queueJul 25, 2026
Merged via the queue into main with commit 3282799Jul 25, 2026
25 checks passed
@pietern
pietern deleted the investigate-test-panic branch July 25, 2026 22:16
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@pietern@eng-dev-ecosystem-bot@renaudhartert-db