Build History
Build history records every shorebird release and shorebird patch run
against your apps: whether it succeeded, why it failed if it did, and where its
time went. Use it to answer questions such as how often patches failed in CI
last month and why, or whether your iOS builds are getting slower, without
keeping CI logs around.
Build history is available on the Enterprise plan. The Shorebird CLI records runs for every plan, so an organization that moves to Enterprise sees its earlier runs too, for as long as they’re kept. Runs are recorded by Shorebird 1.6.139 and newer.
What a run records
Section titled “What a run records”The CLI sends one record per platform when a run ends, so
shorebird release --platforms=android,ios makes two records that share a run
ID. Each record has:
- Command and platform:
releaseorpatch, andandroid,ios, and so on. - Outcome:
succeededorfailed, and for a failed run, a reason. - Release and patch: the release the run made or patched, and the patch it made, if it got that far. A failed release can leave a draft release.
- When and how long: when the run started building this platform, and how long that platform took.
- Build trace summary: how long each stage took, such as setup, the Dart compile, the Gradle or Xcode build, Shorebird’s link step and uploads. Shorebird splits it into five time slices.
- Build facts: for an iOS patch, its link percentage; whether it changed
assets or native code, and whether it used
--allow-asset-diffsor--allow-native-diffs; whether it ran on CI, and which provider; and the Shorebird, Flutter and Xcode versions and operating system it ran with. - Build flags: the names of the
--dart-definevalues the run passed, including those from--dart-define-from-file, with a SHA-256 hash of each value, and a hash of--target. Never the values or paths themselves. The hashes aren’t salted, so anyone who can read your build history can check a guess, such asprodorlib/main_prod.dart, against them. - Dry run: whether it was a
--dry-run, so checks you run on pull requests show apart from real releases and patches. - Debug bundle: whether the run shared a debug bundle with Shorebird that hasn’t since been deleted.
- Who ran it: the teammate, API key or service account the CLI signed in as.
A run record never holds logs, file paths, command lines, environment variables,
dart-define values, machine or user names, or source code. The only error text
it can hold is why Shorebird couldn’t read an iOS patch’s link details, when
that happens: one line of about 200 characters at most, with everything from the
first file path on replaced by <path>.
What Shorebird Collects lists
the same fields from the CLI’s side.
A patch run can also share its debug bundle, build/patch-debug.zip, which
holds your app’s compiled Dart code. The bundle is stored apart from the run
record, and is shared only when the run passed --share-debug-info or failed
while your organization
shares debugging information. In
the console, members who can open the release’s Artifacts tab (Developers
and above) see a bug icon in the row of a run that shared one, and a Debug
bundle link in its details. Both go to the bundle under Shared with
Shorebird on that tab.
A run is recorded only once Shorebird has confirmed the app and, for a patch,
found the release being patched. So runs that stop earlier, such as when you
aren’t signed in, the checked-in shorebird.yaml is missing or the release
doesn’t exist, aren’t recorded. Neither are runs you stop with Ctrl-C or that
end because the CLI crashed. The CLI waits at most 5 seconds to send a record
(30 seconds for a patch run that wrote a
debug bundle), and a
record it can’t send in that time is dropped; the run’s result doesn’t change.
Failure reasons
Section titled “Failure reasons”link_percentage: the patch linked less of its code than your--min-link-percentageallows.asset_diffs,native_diffs,build_flag_diffs: the patch changed assets, native code or build flags since the release, and the run stopped there, either on its own (when the CLI can’t prompt, such as in CI, without the matching--allow-*flag) or because someone answered no when asked to continue.asset_limit_exceeded: the patch’s changed assets exceeded the per-patch asset size limit.build_failed: the Flutter, Gradle or Xcode build failed.release_incompatible: the release can’t be patched on this platform: it has no build or isn’t active there, it was built with a Flutter version that’s too old, or your enterprise requires patch signing and it wasn’t signed. Forshorebird release, the existing release was built with a different Flutter version.server_rejected: Shorebird’s API refused a request, such as creating the release or patch.upload_failed: uploading the release or patch failed.canceled: someone declined a confirmation other than the asset, native code and build flag prompts above.other: a failure the CLI doesn’t sort into one of the reasons above.
Where a run’s time went
Section titled “Where a run’s time went”Shorebird splits each run’s duration into five slices that don’t overlap and add up to the run’s total:
- Setup: installing Shorebird’s Flutter, downloading its engine artifacts and updating Shorebird’s cache.
- Dart compile: compiling your Dart code to kernel and AOT snapshots.
- Native build: the rest of the Flutter build, mostly Gradle or Xcode, plus
assets, Flutter’s own tooling and any engine artifacts Flutter downloads while
it builds. When
shorebird patchruns without a terminal, such as in CI, and without--release-version, it also holds the whole extra build that guesses the release; pass--release-versionto skip that build. - Shorebird: Shorebird’s own work outside the Flutter build, such as linking, diffing and packaging, and any time the run spent waiting at a prompt. For a release, the final call that marks it active lands here too. For a patch made with Shorebird 1.6.147 or earlier, or one that failed while being created, uploaded or published, so does the time spent on those steps.
- Uploads and API: Shorebird’s other uploads, downloads and API calls outside setup and the Flutter build, such as uploading a release or patch, or downloading the release a patch is built against.
Runs from Shorebird 1.6.147 and earlier count some of the Flutter build under
Shorebird: Flutter’s startup, such as pub get and the engine artifacts it
downloads before building, and that extra build of a shorebird patch without a
terminal or --release-version. On macOS, they also count compiling the AOT
snapshot under the native build rather than Dart compile.
Some runs show only their total:
- Runs from Shorebird 1.6.142 and earlier. Those CLIs could add earlier runs’ build time into a run’s breakdown, so Shorebird doesn’t split them.
- Runs built with a Flutter version that doesn’t report its build’s stages:
older than 3.41.7 for Android and iOS apps, older than 3.47.3 for Android
add-to-app (
aar), older than 3.47.6 for iOS add-to-app (ios-framework), and older than 3.47.7 for macOS. Windows and Linux runs don’t report them. A patch builds with its release’s Flutter version. - Runs that stopped before their Flutter build finished, such as one that failed to build.
See build history in the console
Section titled “See build history in the console”In the Shorebird console, open an app and choose its Build history tab. It lists the app’s runs newest first, with when each ran, the command, platform, release or patch, outcome or failure reason, duration and who ran it. Filter it by month, command and outcome; it offers the last 12 months, the current one first.
Beside each run’s duration, a small bar shows its five time slices; hover over it to see each slice’s time and share, and a legend above the list names their colors. In the hover and the run’s details, the native build slice is named Gradle for Android and Xcode for iOS and macOS, and slices that took no time are left out. Runs without a breakdown show their duration alone. On a phone, the list hides durations and the legend; open a run to see its slices.
Above the list, totals for the month show how many runs there were, how many failed and why, and the median and 90th-percentile duration. Open a run to see its time slices and, for an iOS patch, its link percentage.
Each release’s page has a Build history link that lists every run that made or patched that release, whatever the month. Patch runs in that list name their patch number.
Read build history with the API
Section titled “Read build history with the API”GET /api/v1/organizations/{organizationId}/runs returns the organization’s run
records, newest first, a page at a time. The organization ID is the number after
/orgs/ in the console’s address bar. Members of the organization can read it,
and so can a service account with the Viewer role
or above, so a scheduled job can pull records into your own dashboards.
Organizations without the Enterprise plan get 403.
These query parameters narrow the results:
startDateandendDate: ISO 8601 timestamps with a time zone, such as2026-10-01T00:00:00Z.appId: only runs for that app.command:releaseorpatch.outcome:succeededorfailed.releaseId: runs that made or patched that release.patchId: runs that made that patch.dryRun:truefor only--dry-runruns,falseto leave them out.
For example, to list last month’s failed patches in an app:
Each run’s timing holds its five slices in milliseconds: setup_ms,
dart_ms, native_ms, shorebird_ms and network_ms, which add up to its
duration_ms. It’s null for runs that show only their total. A patch’s
creation, upload and publishing count under network_ms from Shorebird CLI
1.6.148 on. Earlier versions, and a patch run that fails during one of those
steps, put them in shorebird_ms.
See Calling the API for authentication, and Common patterns for paging.
How long runs are kept
Section titled “How long runs are kept”Run records are kept for 13 months, so you can compare a month with the same month a year earlier. Deleting an app deletes its run records. When an app moves to another organization, the runs recorded before the move stay with the organization they were recorded in.