Skip to content

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

Open
pietern wants to merge 1 commit into
mainfrom
investigate-test-panic
Open

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

Conversation

@pietern

@pietern pietern 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
@github-actions

Copy link
Copy Markdown
Contributor

Approval status: pending

/libs/telemetry/ - needs approval

Files: libs/telemetry/context.go, libs/telemetry/logger.go, libs/telemetry/logger_test.go
Suggested: @Divyansh-db
Also eligible: @parthban-db, @simonfaltum, @renaudhartert-db, @hectorcast-db, @tanmay-db, @tejaskochar-db, @mihaimitrea-db, @chrisst, @rauchy

General files (require maintainer)

Files: cmd/fuzz_panic_test.go
Based on git history:

  • @shreyas-goenka -- recent work in libs/telemetry/

Any maintainer (@andrewnester, @anton-107, @denik, @shreyas-goenka, @simonfaltum, @renaudhartert-db, @janniklasrose, @lennartkats-db) can approve all areas.
See OWNERS for ownership rules.

@pietern
pietern requested a review from parthban-db July 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 🙈​skip Time
💚​ aws linux 4 4 227 1126 3:34
💚​ aws windows 4 4 229 1124 3:49
💚​ aws-ucws linux 4 4 314 1043 6:54
💚​ aws-ucws windows 4 4 316 1041 5:37
💚​ azure linux 4 4 227 1125 4:05
💚​ azure windows 4 4 229 1123 3:36
💚​ azure-ucws linux 4 4 316 1040 7:20
💚​ azure-ucws windows 4 4 318 1038 5:34
💚​ gcp linux 4 4 226 1127 3:14
💚​ gcp windows 4 4 228 1125 3:44
8 interesting tests: 4 RECOVERED, 4 SKIP
Test Name aws linux aws windows aws-ucws linux aws-ucws windows azure linux azure windows azure-ucws linux azure-ucws windows gcp linux gcp 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):
duration env testname
3:21 aws windows TestAccept
3:18 gcp windows TestAccept
3:11 azure windows TestAccept
3:08 azure-ucws windows TestAccept
3:06 aws-ucws windows TestAccept

Sign up for free to 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.

2 participants