Skip to content

feat(aitools): record install error categories from CLI JSON output - #2188

Open
rclarey wants to merge 2 commits into
mainfrom
aitools-install-error-categories
Open

feat(aitools): record install error categories from CLI JSON output#2188
rclarey wants to merge 2 commits into
mainfrom
aitools-install-error-categories

Conversation

@rclarey

@rclarey rclarey commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Changes

Run aitools install with --output json and parse the result so the AITOOLS_INSTALL telemetry event carries the CLI's error categories: a top-level globalErrorCategory and a per-agent agentErrors map, both category tokens only (never the free-form error/message strings)

Tests

updated / added unit tests

Run `aitools install` with `--output json` and parse the result so the
AITOOLS_INSTALL telemetry event carries the CLI's error categories: a
top-level `globalErrorCategory` and a per-agent `agentErrors` map, both
category tokens only (never the free-form error/message strings).

`aitoolsInstall` now returns `{output, error}` instead of throwing, and
the new `runInstallCli` helper records the outcome and, on a non-zero
exit, throws a ProcessError — folding in and logging the CLI's JSON
detail when it explains the failure (stderr is empty under --output
json). Parsing is defensive: a CLI old enough to ignore the flag prints
human text, which is treated as "no structured result".

Co-authored-by: Isaac <no-reply@databricks.com>
@github-actions

Copy link
Copy Markdown
Contributor

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/vscode

Inputs:

  • PR number: 2188
  • Commit SHA: 839fc721c31ac276fc1224b8a09a86d40a1902b1

Checks will be approved automatically on success.

@rugpanov

rugpanov commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

🤖 Integration tests ❌ failed for 839fc721.
View run

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