Commit ff25a2f
authored
QNN SDK download: validate archive and retry on all errors (#19233)
### Summary
The QNN backend test workflows have been flaking because the download
from softwarecenter.qualcomm.com aborts mid-stream with `curl: (92)
HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR`, or returns a
short error body that curl treats as a successful 200 — letting unzip
choke on the not-a-zip with exit 9. The previous `curl --retry 3` only
covered a narrow set of transient errors and never validated the
archive, so neither failure was retried. Wrap the download in a
five-attempt loop using `curl --fail --retry-all-errors` and validate
each attempt with `unzip -t` before proceeding, with the on-disk file
size logged on failure so a tiny error body is unambiguous in the log.
Authored with Claude Code.
### Test plan
CI1 parent 9915faf commit ff25a2f
1 file changed
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
68 | 88 | | |
69 | 89 | | |
70 | 90 | | |
| |||
0 commit comments