Skip to content

fix(release): recover when Tauri leaves the desktop app unstapled, and collect evidence 4.5x faster - #107

Merged
dcolthorp merged 4 commits into
mainfrom
fix/release-evidence-parallel-gh
Nov 6, 2026
Merged

dcolthorp merged 4 commits into
mainfrom
fix/release-evidence-parallel-gh

Conversation

@dcolthorp

Copy link
Copy Markdown
Member

The v0.51.0 candidate run (42263761184) failed at the very end: Rhizome.app does not have a ticket stapled to it. Yesterday's candidate passed on the same signing setup.

Cause. After Apple accepts the app, Tauri (tauri-cli 2.12.1, crates/tauri-macos-sign/src/lib.rs, staple_app) runs xcrun stapler staple but never checks its exit status. When stapling fails, typically because the new ticket hasn't propagated yet, Tauri carries on and builds the DMG and updater archive from an unstapled app. Our final verification caught it, but by then the bundle was already built. The bundle output is captured to keep credentials out of logs, so CI showed no detail.

Fix. After bundling, the hook checks the app's ticket with stapler validate. If there's none, it rebuilds the bundle once, which resubmits the same app. It now also prints Tauri's notarization status lines (no credentials) so the next failure is readable. Final verification still requires stapled tickets everywhere.

Also: release evidence 4.5x faster. prepare_release.py evidence asked GitHub about ~1,300 PR commits one at a time and took 14m23s. Eight concurrent lookups take 3m09s, with byte-identical evidence output (same fingerprint).

Verification

  • build_desktop_test: new test that an unstapled app triggers exactly one rebuild; existing tests updated for the extra check.
  • Release script suite: 395 tests; the only error is verify_desktop_signing_test needing desktop/node_modules in a fresh worktree.
  • Not yet verified in CI: the candidate run needs this on main (the release environment only allows main).

After merge: run a candidate on main, then refresh #106 onto the new main.

Created with Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

dcolthorp and others added 4 commits November 6, 2026 10:53
Stacked-PR expansion asks GitHub about every commit in every merged PR,
one gh process at a time. For the first public release (99 PRs, ~1,300
commits) that took 14m23s. Eight concurrent lookups bring it to 3m09s
with byte-identical evidence output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…stapled

Tauri runs `xcrun stapler staple` after Apple accepts the app but never
checks its exit status, so a ticket that has not propagated yet leaves
the app, DMG and updater archive unstapled. The v0.51.0 candidate run
failed this way in final verification. The hook now checks the app's
ticket after bundling, prints Tauri's notarization status lines, and
rebuilds once. Final verification still requires stapled tickets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dcolthorp
dcolthorp merged commit 8e2899f into main Nov 6, 2026
22 checks passed
dcolthorp added a commit that referenced this pull request Nov 6, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dcolthorp added a commit that referenced this pull request Nov 6, 2026
…#106)

* chore(release): v0.51.0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(release): pin v0.51.0 to main after #107

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant