Docs Operation reference diagnostics operations
diagnostics operations#
2 operations. Generated from assets/operations.json; all areas.
diagnostics.bundle#
Write a bug report bundle
Write one .tar.gz for a bug report on this computer; nothing is sent anywhere. It holds the version, a host summary (OS, kernel, CPUs, memory, KVM, desktop session), doctor, the settings, and for the most recent failed, timed-out or cancelled jobs their record, timeline and the end of their log. With virtual_ios (the default) it also holds virtual-ios.json: ios.virtual.host_check's readiness (CPU, memory, disk, graphics card and its memory), and for a configured virtual iOS device the profile's run settings, ios.virtual.status, the engine build (digest, pinned revisions, options, patch counts) and guest-tools build, and how the last guest run ended as its report classified it (outcome, evidence counts, the first userspace failures and respawn storms); virtual-ios/guest.log is the end of that run's log. Recognised secrets are masked, job environments keep only variable names, and the home directory is shown as ~. Masking recognises known shapes only: the person should read the bundle before sharing it. Returns the path, size, SHA-256 and the files it holds.
Annotations: writes, not idempotent, closed world.
| Argument | Type | Required | Default | Details |
|---|---|---|---|---|
path | string | non-empty; Absolute .tar.gz file to write; by default a new file under diagnostics/ in the data directory | ||
jobs | integer | 10 | 0 to 50; How many recent jobs that did not succeed to include | |
log_kb | integer | 64 | 1 to 1024; How much of the end of each job's log to include | |
doctor | boolean | true | Include the doctor report | |
virtual_ios | boolean | true | Include the virtual iOS device's readiness, profile, builds and last run | |
anonymize_home | boolean | true | Show the home directory as ~ |
tomaccoctl call diagnostics.bundle
diagnostics.report_draft#
Draft a bug report
Write a bug report the person can read before anything leaves this computer: a directory with issue.md (title, environment, steps, expected, what happened, excerpts of the jobs that did not succeed, the attachments with their digests), the attachments (the redacted diagnostics.bundle and the job log tails) and redaction-receipt.json, which counts the secrets of known shapes that were masked, whether the home directory became ~, the device serials and UDIDs replaced by stable placeholders, and which absolute paths remain to look at. Nothing is posted or uploaded, and issue_url carries only the title, never the body or an attachment. Masking recognises known shapes only: the person reads the draft before sharing it.
Annotations: writes, not idempotent, closed world.
| Argument | Type | Required | Default | Details |
|---|---|---|---|---|
title | string | yes | non-empty, up to 120 characters; What went wrong, in one line | |
steps | string | "" | up to 4000 characters; How to reproduce it, as the person would type it | |
expected | string | "" | up to 2000 characters | |
actual | string | "" | up to 2000 characters | |
directory | string | non-empty; Absolute path of the directory to write; new or empty. By default a new one under diagnostics/ in the data directory | ||
jobs | integer | 3 | 0 to 20; How many recent jobs that did not succeed to excerpt and attach | |
log_kb | integer | 16 | 1 to 1024; How much of the end of each job's log to attach | |
bundle | boolean | true | Also write the diagnostics.bundle archive as an attachment | |
anonymize_home | boolean | true | Show the home directory as ~ | |
device_ids | string | "mask" | one of mask, keep; mask replaces device serials and UDIDs by [device-N]; keep leaves them |
tomaccoctl call diagnostics.report_draft '{"title":"<title>"}'