Commit c94ac70
authored
fix(notarize): auto-retrieve notarytool log on status: Invalid (#1251)
* fix(notarize): auto-retrieve notarytool log on status: Invalid
When Apple's notarization returns 'status: Invalid', the rejection
reason is only available via 'xcrun notarytool log <UUID>'. Previously
this required running the command manually after CI failed, adding a
debugging round-trip.
Now the script captures the submission output, extracts the UUID, and
automatically fetches the rejection log from Apple's server. The full
JSON log (which lists every rejected binary with the specific error) is
printed directly in CI output, making the next failure self-diagnosing.
* fix(notarize): stream notarytool output in real-time via tee
Addresses Greptile P1: the $() subshell was buffering all notarytool
submit --wait output until completion (~minutes), silencing CI progress.
Fix: pipe through tee to a temp file so output streams in real-time,
then read the temp file for pattern matching. Use PIPESTATUS[0] to
capture the true exit status through the pipe.
Also fixes non-POSIX \s → [[:space:]] in grep pattern.1 parent 93053d0 commit c94ac70
1 file changed
Lines changed: 21 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
20 | 38 | | |
21 | 39 | | |
22 | 40 | | |
| |||
0 commit comments