← Back to issue list

Silent failure on certain store issues

View original Github issue

Metadata

Project
craft-parts
Number
#751
Type
issue
State
open
Author
lengau
Labels
Status: Triaged Type: Bug
Created
2024-06-07 13:56:12+00:00
Updated
2025-04-21 12:20:49+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Bug Description During transient store issues (i.e. 500-series HTTP errors), we don't error out as expected. ### To Reproduce Set up a fake store 🙃 that always returns 500 errors and run `craft_parts.packages.snaps.SnapPackage("any-name").get_store_snap_info()` ## Expected result: Errors out when getting the info ## Actual result: Just returns no snap info ### part yaml ```shell plugin: go source: . source-type: local build-snaps: - go/1.21/stable ``` ### Relevant log output ```shell [From snapcraft] 2024-05-27 21:41:21.556 :: 2024-05-27 21:34:40.843 ignore patterns: ['*.snap'] 2024-05-27 21:41:21.556 :: 2024-05-27 21:34:40.843 Installing build-packages 2024-05-27 21:41:21.556 :: 2024-05-27 21:34:40.844 Installing build-snaps 2024-05-27 21:41:21.556 :: 2024-05-27 21:35:20.892 The http error when checking the store for core22 is 500 (retries left 5) 2024-05-27 21:41:21.556 :: 2024-05-27 21:36:00.933 The http error when checking the store for core22 is 500 (retries left 4) 2024-05-27 21:41:21.556 :: 2024-05-27 21:36:40.967 The http error when checking the store for core22 is 500 (retries left 3) 2024-05-27 21:41:21.556 :: 2024-05-27 21:37:20.995 The http error when checking the store for core22 is 500 (retries left 2) 2024-05-27 21:41:21.556 :: 2024-05-27 21:38:01.017 The http error when checking the store for core22 is 500 (retries left 1) 2024-05-27 21:41:21.556 :: 2024-05-27 21:38:41.043 The http error when checking the store for go is 500 (retries left 5) 2024-05-27 21:41:21.556 :: 2024-05-27 21:39:21.073 The http error when checking the store for go is 500 (retries left 4) 2024-05-27 21:41:21.556 :: 2024-05-27 21:40:01.086 The http error when checking the store for go is 500 (retries left 3) 2024-05-27 21:41:21.556 :: 2024-05-27 21:40:41.102 The http error when checking the store for go is 500 (retries left 2) 2024-05-27 21:41:21.556 :: 2024-05-27 21:41:21.116 The http error when checking the store for go is 500 (retries left 1) 2024-05-27 21:41:21.556 :: 2024-05-27 21:41:21.121 verify plugin environment for part '********' 2024-05-27 21:41:21.556 :: 2024-05-27 21:41:21.124 plugin validation environment: # Environment 2024-05-27 21:41:21.556 :: ## Application environment // continues as normal, errors out because we don't have go ```

Evaluation history

No evaluation history available.