poky/bitbake/lib
Etienne Cordonnier 4bca6762e5 bitbake: gcp.py: remove slow calls to gsutil stat
The changes of 1ab1d36c0af6fc58a974106b61ff4d37da6cb229 added calls to "gsutil stat" to avoid unhandled exceptions, however:
- in the case of checkstatus() this is redundant with the call to self.gcp_client.bucket(ud.host).blob(path).exists() which already returns True/False
 and does not throw an exception in case the file does not exist.
- Also the call to gsutil stat is much slower than using the python client to call exists() so we should not replace the call to exists() with a call to gsutil stat.
- I think the intent of calling check_network_access in checkstatus() was to error-out in case the error is disabled. We can rather change the string "gsutil stat" to something else to make the code more readable.
- add a try/except block in download() instead of the extra call to gsutil

[RP: Tweak to avoid import until needed so google module isn't required for everyone]
(Bitbake rev: 59df5390381792aba4f3f5185000adf5109267fb)

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2025-06-11 08:17:34 -07:00
..
bb bitbake: gcp.py: remove slow calls to gsutil stat 2025-06-11 08:17:34 -07:00
bblayers bitbake: bblayers/query: Fix using "removeprefix" string method 2025-02-21 06:25:05 -08:00
bs4 bitbake: bitbake/lib/bs4/tests/test_tree.py: python 3.12 regex 2024-02-13 13:52:10 +00:00
hashserv bitbake: hashserv: client: Add batch stream API 2024-06-06 06:53:49 -07:00
layerindexlib bitbake: layerindexlib: fix missing layer branch backtrace 2024-02-27 11:36:38 +00:00
ply bitbake: utils/ply: Update md5 to better report errors with hashlib 2022-10-26 12:32:08 +01:00
progressbar bitbake: bitbake: progressbar: accept value over initial maxval 2024-02-23 14:34:05 +00:00
prserv bitbake: prserv: remove unnecessary code 2024-04-14 06:31:45 +01:00
simplediff
toaster bitbake: toaster/tests/buildtest: Switch to new CDN 2025-06-05 08:41:15 -07:00
codegen.py bitbake: codegen: cleanup deprecated AST usages 2023-11-14 23:39:53 +00:00
pyinotify.py bitbake: pyinotify.py: Simplify identification of which event has occurred 2022-04-14 09:48:33 +01:00