Repository navigation
fix(macos): resume notarization without rebuilding signed artifacts - #135601
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 7:27 PM ET / 23:27 UTC. ClawSweeper reviewWhat this changesThis PR retains source- and hash-bound macOS signing artifacts and Apple submission IDs so an interrupted notarization can resume without rebuilding the app or symbols. Merge readinessNo actionable introduced correctness defect was found, but this maintainer-labeled release-tooling change should remain open pending exact-head CI and release-owner confirmation that the checkpoint artifact handoff is available where resume will be used. Priority: P2 Review scores
Verification
How this fits togethermacOS release packaging signs an app, submits archives to Apple for notarization, then produces ZIP, DMG, and symbol artifacts. This change adds a validated checkpoint between submission and final packaging so an interrupted operator flow can safely continue. flowchart LR
A[Signed macOS app] --> B[Recovery checkpoint]
B --> C[Apple notarization submission]
C --> D[Resume verification]
D --> E[Notarized app and DMG]
E --> F[Release artifacts]
Decision needed
Why: The scripts and focused fault-injection coverage support the implementation, but only the release owner can confirm the private runner or artifact-retention boundary that makes this recovery path operational. Before merge
Agent review detailsSecurityNone. PR surfaceTests +406, Docs +3, Other +295. Total +704 across 7 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the source-bound checkpoint design, confirm the release owner can preserve it across the real interruption boundary, and land only after the exact head has clean required checks. Do we have a high-confidence way to reproduce the issue? Yes, at source level: the focused tests model a disconnected notarization wait, remove build products, and resume while asserting a single submission. I did not execute the macOS-specific scenario in this read-only review. Is this the best way to solve the issue? Yes, provisionally: binding the retained archive to source, version, hashes, signatures, and the Apple submission ID addresses the failure at its packaging owner without retrying uploads; operational retention still needs owner confirmation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 759e127777b5. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
|
Addressed the completed-checkpoint finding and both rank-up points:
The changelog entry is intentionally retained: this PR is owner-directed release maintenance, and the explicit release/forward-port instruction includes changelog maintenance. It is not an unsolicited contributor edit to the release ledger. The seven manifest cases were also consolidated into the existing notarization test file. This preserves coverage while keeping the GitHub planner within its existing 112-job cap; all three planner regression variants pass. No capacity limit was raised. |
|
The remaining CI failure was deterministic, rather than a timing failure: the CI merge included #135523, which added a header marquee before the session-row marquee. The existing lifecycle test selected that header with an unscoped query. Scoped its two queries to catalog session rows, preserving the node-replacement, scrolling-class and style-reset assertions. The focused test passes on the exact previously failing CI merge. Independent review is clean. This adds no UI runtime changes and no test files. |
|
The latest skip-flag finding is a false positive. The verified manifest assignments in Direct execution under the system Bash with both variables initially unset, assigned I also ran the unchanged packaging script through the existing signed-fixture setup: produce a checkpoint with both skip flags set, interrupt the first Apple wait, remove build products and make any rebuild fail, then resume with both variables absent and again with conflicting |
675776c to
64f8dd0
Compare
|
Release-owner retention handoff is confirmed for the intended release path: the paired orchestration change has landed and retains the source-bound checkpoint across failed jobs, validates producer provenance, and restores the retained artifacts for resume. The public validation workflow is not that publication owner. This work is explicitly owner-directed release closeout. Exact-head CI for |
|
Merged via squash.
|
…penclaw#135601) * fix(macos): resume notarization without rebuilding signed artifacts * test(macos): keep notarization recovery within existing CI shards * fix(macos): retire completed notarization checkpoints before new builds
What Problem This Solves
Fixes an issue where release operators had to rebuild a signed macOS release after a network failure interrupted Apple's notarization status polling. The submission had already reached Apple, but the packaging script discarded its ZIP and retained neither the submission ID nor a resumable artifact checkpoint.
Why This Change Was Made
The notarization helper now persists the submission ID and artifact hash before waiting.
scripts/package-mac-dist.sh --resume-notarizationverifies the retained source, version, signed bundle, and artifact hashes, then continues the existing submission and packaging without compiling or signing the app again. DMG stapling records both approved byte representations so an interrupted replacement remains recoverable. Apple's rejection remains a hard failure. Successful packaging marks the checkpoint complete for artifact retention; the next ordinary build verifies and retires it automatically.The package owner retains the original signed app archive and symbols; release automation can preserve that checkpoint between jobs. The existing raw
NOTARY_RESULT_FILEcontract remains unchanged for other notarization callers. Recovery requires artifacts produced with this change; older failed jobs without retained artifacts cannot be recovered retroactively.User Impact
A transient Apple polling or runner-network failure no longer requires repeating a completed native app build. Operators get an explicit resume command and integrity failures stop recovery before submission. This change adds a recovery capability to release tooling; it does not alter the current published version or an in-flight release.
Evidence
notarytool waitagainst an existing accepted submission returnedAcceptedfor the same ID; no new upload was made for this check.Production tooling delta: +363/-68 (net +295); tests: +443/-37 (net +406); docs/changelog: +4/-1. The production growth implements the new persisted submission, source/integrity verification, and interrupted-stapling recovery contract. Repeating the build or retrying upload would not preserve those invariants.
A signed-fixture probe also verifies checkpointed skip flags with absent and conflicting resume environment values: both recoveries produce only the intended ZIP, retain one submission, and do not rebuild.