← Back to issue list

`ReviewQueued` status breaks `revisions` output

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1936247
Type
issue
State
closed
Author
~saviq
Labels
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

Fixed and closed. Schema updated to include the ReviewQueued enum value, resolving the validation error that crashed snapcraft revisions.

Suggested action:

No scores available.

Issue body

 snapcraft revisions multipass Sorry, an error occurred in Snapcraft: 'ReviewQueued' is not one of ['Published', 'Unpublished', 'ManualReviewPending', 'NeedsInformation', 'AutomaticallyRejected', 'Rejected', 'ReviewInProgress'] Failed validating 'enum' in schema['properties']['revisions']['items']['properties']['status']: {'enum': ['Published', 'Unpublished', 'ManualReviewPending', 'NeedsInformation', 'AutomaticallyRejected', 'Rejected', 'ReviewInProgress'], 'introduced_at': 1, 'type': 'string'} On instance['revisions'][0]['status']: 'ReviewQueued' Traceback (most recent call last): File "/opt/homebrew/bin/snapcraft", line 8, in <module> sys.exit(run()) File "/opt/homebrew/Cellar/snapcraft/4.8.3/libexec/lib/python3.9/site-packages/click/core.py", line 1137, in __call__ return self.main(*args, **kwargs) File "/opt/homebrew/Cellar/snapcraft/4.8.3/libexec/lib/python3.9/site-packages/click/core.py", line 1062, in main rv = self.invoke(ctx) File "/opt/homebrew/Cellar/snapcraft/4.8.3/libexec/lib/python3.9/site-packages/click/core.py", line 1668, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/opt/homebrew/Cellar/snapcraft/4.8.3/libexec/lib/python3.9/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, **ctx.params) File "/opt/homebrew/Cellar/snapcraft/4.8.3/libexec/lib/python3.9/site-packages/click/core.py", line 763, in invoke return __callback(*args, **kwargs) File "/opt/homebrew/Cellar/snapcraft/4.8.3/libexec/lib/python3.9/site-packages/snapcraft/cli/store.py", line 572, in list_revisions releases = StoreClientCLI().get_snap_releases(snap_name=snap_name) File "/opt/homebrew/Cellar/snapcraft/4.8.3/libexec/lib/python3.9/site-packages/snapcraft/_store.py", line 260, in login_decorator return method(self, *args, **kwargs) File "/opt/homebrew/Cellar/snapcraft/4.8.3/libexec/lib/python3.9/site-packages/snapcraft/_store.py", line 326, in get_snap_releases return super().get_snap_releases(snap_name=snap_name) File "/opt/homebrew/Cellar/snapcraft/4.8.3/libexec/lib/python3.9/site-packages/snapcraft/storeapi/_store_client.py", line 193, in get_snap_releases return self.dashboard.get_snap_releases(snap_name=snap_name) File "/opt/homebrew/Cellar/snapcraft/4.8.3/libexec/lib/python3.9/site-packages/snapcraft/storeapi/_dashboard_api.py", line 358, in get_snap_releases return releases.Releases.unmarshal(response.json()) File "/opt/homebrew/Cellar/snapcraft/4.8.3/libexec/lib/python3.9/site-packages/snapcraft/storeapi/v2/releases.py", line 167, in unmarshal jsonschema.validate(payload, RELEASES_JSONSCHEMA) File "/opt/homebrew/Cellar/snapcraft/4.8.3/libexec/lib/python3.9/site-packages/jsonschema/validators.py", line 478, in validate cls(schema, *args, **kwargs).validate(instance) File "/opt/homebrew/Cellar/snapcraft/4.8.3/libexec/lib/python3.9/site-packages/jsonschema/validators.py", line 123, in validate raise error jsonschema.exceptions.ValidationError: 'ReviewQueued' is not one of ['Published', 'Unpublished', 'ManualReviewPending', 'NeedsInformation', 'AutomaticallyRejected', 'Rejected', 'ReviewInProgress'] Failed validating 'enum' in schema['properties']['revisions']['items']['properties']['status']: {'enum': ['Published', 'Unpublished', 'ManualReviewPending', 'NeedsInformation', 'AutomaticallyRejected', 'Rejected', 'ReviewInProgress'], 'introduced_at': 1, 'type': 'string'} On instance['revisions'][0]['status']: 'ReviewQueued' We would appreciate it if you created a bug report at https://launchpad.net/snapcraft/+filebug with the above text included. You can find the traceback in file '/var/folders/0t/qk5ggp0d3ggf2qmmzbcf79n80000gn/T/tmpjk4qxp4k/trace.txt'.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Fixed and closed. Schema updated to include the ReviewQueued enum value, resolving the validation error that crashed snapcraft revisions.
qwen/qwen3.6-35b-a3b Fixed by updating the JSON schema to accept the new ReviewQueued status enum, resolving the snapcraft revisions crash.
qwen3.6-35b-a3b-mtp-q6 Abandoned. The revisions command crashed when the Snap Store API returned an unlisted 'ReviewQueued' status, failing JSON schema validation. No fix or discussion was recorded.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#3556 store: Add ReviewQueued status snapcraft merged Merged a fix adding ReviewQueued to the allowed status enum for store revisions. This resolves a schema validation error causing snapcraft list-revisions to fail when encountering the new status. Approved and passed CI.
81%