DocsCI report and crashes

Features

CI report and crashes

What you do

  1. Nothing to add: the Action writes the report after every job.

  2. Shut the Simulator down after the tests, so reading the results stays fast.

    .github/workflows/build.yml
    - run: xcrun simctl shutdown all
  3. Read it in the job summary, or on the dashboard's CI report tab for the history.

What you get

Where each job's minutes went, findings with what they would save, failed and flaky tests checked against the default branch, and symbolicated crashes.

The CI report

After each job, the Action’s post step reads the build logs and result bundles Xcode left behind and uploads a summary. The job summary on GitHub shows it at once; the dashboard’s CI report tab keeps the history per repository.

  • Where the minutes go: the median job split into compile, cache, asset catalogs, link, tests, waiting for the Simulator, and other work. Time that several kinds of work share is split between them, so the parts add up to the job.
  • Trend: one column per job, so a regression shows up as a step.
  • Findings: patterns across recent jobs (Simulator boot before tests, vector images rendered at every scale, dSYMs nobody uploads) with an estimate of what each would save and what the estimate assumes.
  • Latest job: targets by compile time, the slowest tasks and the slowest tests.
  • Failed and flaky tests: the job summary says for each whether it also failed on the default branch lately, so a pull request that is red for a reason already red there needs no digging, and gives the -only-testing arguments that run only the failed ones again.
  • What is uploaded: task names, target names, file names of slow tasks, test identifiers, durations, counts and sizes. Never source code, command lines or logs.
  • Turn it off: report: false on the Action.

Crashes

When the app, a test host or a UI test runner crashes during xcodebuild test, the Action’s post step:

  1. finds the crash report: attached to the test in the result bundle, or new in the Mac’s diagnostic reports;
  2. symbolicates it on the runner against the job’s own build products;
  3. ties it to the test that was running.
  • Job summary: under each failed test, the process, exception and reason, the top frames as Module`function File.swift:line, “Same crash as run N” when an earlier job had it, and a link to the full report.
  • Dashboard: the CI page’s Crashes card groups recent crashes by signature (the exception and the top frames, without line numbers), so the same crash after an unrelated edit reads as one.
  • What leaves the runner: names, numbers and file names: process, exception, the crashing thread’s frames, the test. No source, paths, registers or environment. Green runs pay one directory listing.
  • Symbolication shares the report’s time budget (report-budget, 90 s); when it runs out, a crash keeps the names macOS gave it.