You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CLI: report manual self update (and banner-prompt update) failures to telemetry with a bounded error code #2243
A manual squirrel self update, and the update the startup banner prompts for, don't report their OUTCOME to telemetry. Only background auto-updates do (update_auto_error with the error code, in apps/cli/src/self/updater.ts). The manual path sends update when it STARTS (updater.ts ~1310) and nothing when it fails, so a broken upgrade path is invisible to us. Example: a 0.0.189 install with a logged-in GitHub CLI updating to a key-signed release fails ATTESTATION_FAILED.
The telemetry endpoint (POST /v1/traces) accepts a fixed set of event names, including error (with error_type up to 128 chars and error_message up to 256). To avoid a server change, failures use the existing error event.
Acceptance Criteria
A failed manual squirrel self update sends ONE telemetry event: error, with error_type = self_update:<CODE>. CODE is a bounded value from the update path's own error codes (e.g. ATTESTATION_FAILED, SIGNATURE_INVALID, CHECKSUM_MISMATCH, DOWNLOAD_FAILED, UPDATE_IN_PROGRESS, UNMANAGED_INSTALL, NETWORK, UNKNOWN), and version = the CURRENT (pre-update) version.
error_message is at most 256 chars and contains no URL, host, path, email or token. Use the code's fixed description, not raw output.
The banner prompt path (update_prompt_accepted, then the update) reports a failure the same way, with error_type self_update_prompt:<CODE>.
A successful manual update sends nothing new. Recovery is visible as the install's next event carrying the new version; this is documented in a code comment.
Telemetry respects the existing opt-out (NO_TELEMETRY / settings) exactly like the auto-update events.
Tests: a mocked ATTESTATION_FAILED manual update sends exactly one error event with self_update:ATTESTATION_FAILED and the pre-update version; a success sends none; opt-out sends none; the banner path is covered.
Activity
feat(cli): report manual self update failures to telemetry with a bou…
docs(faq): keep bun.lock out of the docs change #2243
docs(faq): telemetry also sends the fixed description of a self updat…