zephyr/scripts
Noah Pendleton 7f1a639327 west: blobs: fetch exit immediately on HTTP error
If an HTTP error occurs during `west blobs fetch`, the response was written
to a file (even if the response body is empty), and then the checksum
validation fails, which can be somewhat confusing.

Add an immediate error message and exit-with-error-code when the HTTP
request fails.

Tested by modify a blob manifest to have an invalid URL:

```bash
# test with invalid URL
❯ west blobs fetch nrf_wifi
Fetching blob nrf_wifi: .../wifi_fw_bins/default/nrf70.bin
ERROR: HTTP error occurred: 404 Client Error: Not Found for url: ...

# test with networking disabled
❯ west blobs fetch nrf_wifi
Fetching blob nrf_wifi: .../wifi_fw_bins/default/nrf70.bin
ERROR: An error occurred: HTTPSConnectionPool(host='git.... \
  Max retries exceeded with url: \
  .../zzzz/nrf_wifi/bin/zephyr/default/nrf70.bin
...
```

Signed-off-by: Noah Pendleton <noah.pendleton@gmail.com>
2025-05-28 11:09:54 +02:00
..
build code_relocation: use booleans for string_create_helper arguments 2025-05-22 20:57:39 +02:00
checkpatch
ci ci: pr_metadata_check: convert DNM logic to python 2025-05-20 10:17:19 +02:00
coccinelle
coredump
dts cmake: modules: Add zephyr_dt_import 2025-05-22 13:44:18 +02:00
footprint boards: max10/nios2: remove remaining boards/socs 2025-05-15 20:01:05 -04:00
generate_usb_vif
gitlint
kconfig scripts: kconfig: Add dt_nodelabel_int_prop function 2025-05-23 14:04:32 +02:00
logging/dictionary arch: nios2: remove arch 2025-05-15 20:01:05 -04:00
native_simulator native_simulator: Get latest from upstream 2025-05-12 19:20:37 +02:00
net
profiling
pylib twister: Convert platform names before printing 2025-05-27 17:55:46 +02:00
pylint/checkers
release
ruff
schemas cmake: shields: introduce shield.yml 2025-05-23 17:19:58 +02:00
tests twister: harness_config extended by test retries in testcase.yaml 2025-05-13 03:20:10 +02:00
tracing
utils scripts: utils: tls_creds_installer: Improvements 2025-04-22 09:59:05 +02:00
west_commands west: blobs: fetch exit immediately on HTTP error 2025-05-28 11:09:54 +02:00
.gitignore
check_maintainers.py
checkpatch.pl checkpatch: Allow __BYTE_ORDER__ and __aligned__ in toolchain files 2025-02-14 19:12:44 +00:00
checkstack.pl
coccicheck
dump_bugs_pickle.py
gen_gcov_files.py
get_maintainer.py
github_helpers.py
list_boards.py
list_hardware.py
list_shields.py cmake: shields: introduce shield.yml 2025-05-23 17:19:58 +02:00
make_bugs_pickle.py
requirements-actions.in actions: update requirements-actions.in 2025-04-01 16:26:22 +02:00
requirements-actions.txt actions: update requirements-actions.in 2025-04-01 16:26:22 +02:00
requirements-base.txt scripts: make sure we do not install vulunerable python packages 2025-03-22 14:03:56 -04:00
requirements-build-test.txt
requirements-compliance.txt scripts: make sure we do not install vulunerable python packages 2025-03-22 14:03:56 -04:00
requirements-extras.txt scripts: make sure we do not install vulunerable python packages 2025-03-22 14:03:56 -04:00
requirements-run-test.txt scripts: make sure we do not install vulunerable python packages 2025-03-22 14:03:56 -04:00
requirements.txt
series-push-hook.sh
set_assignees.py ci: set_assignee: don't allways pick next area when submitter = assignee 2025-04-23 17:54:38 +02:00
snippets.py
spelling.txt
tags.sh
twister
valgrind.supp
west-commands.yml scripts: add "west gtags" command 2025-03-07 19:57:00 +01:00
zephyr_module.py scripts: blobs: add click-through property 2025-05-21 12:34:59 +02:00