mirror of
https://github.com/NanmiCoder/claude-code-haha.git
synced 2026-10-10 11:53:10 +08:00
fix(release): preserve macOS signing failure status
Capture the signed macOS electron-builder exit code before the retry branch so watchdog timeouts and notarization failures fail the signed step directly instead of falling through to package-smoke.\n\nTested: bun test scripts/pr/release-workflow.test.ts\nTested: git diff --check\nTested: bun run scripts/release.ts 0.4.3 --dry\nTested: local bash watchdog timeout returns status 124\nConfidence: high\nScope-risk: narrow
This commit is contained in:
@@ -140,6 +140,9 @@ describe('release desktop workflow', () => {
|
||||
expect(signedBuildStep).toContain('Signed electron-builder timed out')
|
||||
expect(signedBuildStep).toContain('pkill -TERM -P "$build_pid"')
|
||||
expect(signedBuildStep).toContain('with ${build_timeout_seconds}s watchdog')
|
||||
expect(signedBuildStep).toContain('set +e')
|
||||
expect(signedBuildStep).toContain('status=$?')
|
||||
expect(signedBuildStep).toContain('if [ "$status" -eq 0 ]; then')
|
||||
expect(signedBuildStep).toContain('rm -rf build-artifacts/electron')
|
||||
expect(signedBuildStep).toContain('Starting signed electron-builder attempt')
|
||||
expect(signedBuildStep).toContain('Finished signed electron-builder attempt')
|
||||
|
||||
Reference in New Issue
Block a user