Tomacco

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.

ArgumentTypeRequiredDefaultDetails
pathstringnon-empty; Absolute .tar.gz file to write; by default a new file under diagnostics/ in the data directory
jobsinteger100 to 50; How many recent jobs that did not succeed to include
log_kbinteger641 to 1024; How much of the end of each job's log to include
doctorbooleantrueInclude the doctor report
virtual_iosbooleantrueInclude the virtual iOS device's readiness, profile, builds and last run
anonymize_homebooleantrueShow 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.

ArgumentTypeRequiredDefaultDetails
titlestringyesnon-empty, up to 120 characters; What went wrong, in one line
stepsstring""up to 4000 characters; How to reproduce it, as the person would type it
expectedstring""up to 2000 characters
actualstring""up to 2000 characters
directorystringnon-empty; Absolute path of the directory to write; new or empty. By default a new one under diagnostics/ in the data directory
jobsinteger30 to 20; How many recent jobs that did not succeed to excerpt and attach
log_kbinteger161 to 1024; How much of the end of each job's log to attach
bundlebooleantrueAlso write the diagnostics.bundle archive as an attachment
anonymize_homebooleantrueShow the home directory as ~
device_idsstring"mask"one of mask, keep; mask replaces device serials and UDIDs by [device-N]; keep leaves them
tomaccoctl call diagnostics.report_draft '{"title":"<title>"}'

View this page as Markdown on GitHub