← Back to issue list

`revisions` only showing the most recent 500 revs

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1848565
Type
issue
State
open
Author
~saviq
Labels
—
Created
Updated
Closed
—

Current evaluation

snapcraft revisions stops at the store's 500-item page limit; root cause identified by a maintainer as missing pagination in the store client's list_releases, but no fix or labels since 2019.

Suggested action: keep open

Reason: The bug is still live at HEAD: snapcraft/store/client.py's list_releases() (both LegacyStoreClientCLI at line ~669 and OnPremStoreClientCLI at ~1136) issues a single GET to /api/v2/snaps/<name>/releases with no page-following, and StoreRevisionsCommand (snapcraft/commands/status.py:479) prints only what that returns. Maintainer ~roadmr explicitly root-caused it — "This sounds like a 'snapcraft revisions' bug... MAX_RELEASES_PER_PAGE = 500 ... snapcraft [needs] to notice there are more pages and request the following ones as well" — and ~saviq confirmed it's a snapcraft-side defect, so it is acknowledged and valid. It has no labels or assignee and has sat untouched for ~7 years, so confidence is moderated rather than high, but the missing pagination remains and it must not be closed on age.

Evaluated by: mr-cal-bot

Impact: 40 Quick Win: 14 Complexity: 50 Confidence: 78 Actionability: 72

Issue body

For a number of snaps I'm collaborator on, I'm only seeing the most recent 501 revisions: $ for snap in multipass mir-kiosk subsurface mir-kiosk-apps; do REVS=$( snapcraft revisions $snap ) echo === $snap: $( echo $REVS | wc -l ) total === echo $REVS | tail -n5 done === multipass: 501 total === 737 2019-04-18T20:43:26Z amd64 0.7.0-dev.109+gc06ffbc edge 736 2019-04-18T20:06:24Z arm64 0.6.0-rc.106+g03f8fdf edge 735 2019-04-18T20:05:30Z armhf 0.6.0-rc.106+g03f8fdf edge 734 2019-04-18T19:47:23Z amd64 0.6.0-rc.106+g03f8fdf edge 733 2019-04-18T13:42:21Z arm64 0.6.0-rc.49+geeef8c7 edge === mir-kiosk: 501 total === 2077 2019-09-10T00:14:16Z arm64 1.4.0-snap86 candidate, stable 2076 2019-09-10T00:13:49Z i386 1.4.0+dev24-snap86 edge 2075 2019-09-10T00:13:43Z i386 1.4.0-snap86 candidate, stable 2074 2019-09-10T00:13:41Z amd64 1.4.0-snap86 candidate, stable 2073 2019-09-10T00:13:30Z amd64 1.4.0+dev24-snap86 edge === subsurface: 501 total === 1313 2019-04-30T05:51:59Z i386 v4.8.6 candidate 1312 2019-04-30T05:51:29Z amd64 v4.8.6 candidate 1311 2019-04-29T22:07:32Z armhf v4.8.4-511-g154792ffd edge 1310 2019-04-29T22:07:31Z arm64 v4.8.4-511-g154792ffd edge 1309 2019-04-29T21:55:37Z i386 v4.8.4-511-g154792ffd edge === mir-kiosk-apps: 104 total === 5 2016-12-02T19:12:05Z i386 0.1 edge 4 2016-12-01T22:28:48Z arm64 0.1 edge 3 2016-12-01T22:28:38Z armhf 0.1 edge 2 2016-12-01T22:24:51Z i386 0.1 edge 1 2016-12-01T22:23:45Z amd64 0.1 edge It is said that all revisions "live forever" on the snap store. But how do we access them?

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 40
Quick Win: 14
Complexity: 50
Confidence: 78
Actionability: 72
keep open snapcraft revisions stops at the store's 500-item page limit; root cause identified by a maintainer as missing pagination in the store client's list_releases, but no fix or labels since 2019.
stealth/space-bunny-alpha
Impact: 45
Quick Win: 19
Complexity: 48
Confidence: 88
Actionability: 82
keep open Pagination bug: snapcraft revisions returns only the newest 500 revisions; the Store API is page-limited and the client still needs to fetch subsequent pages.
stealth/space-bunny-alpha
Impact: 45
Quick Win: 23
Complexity: 40
Confidence: 96
Actionability: 85
keep open `snapcraft revisions` remains capped at the store's 500-item response page because the client does not follow pagination; the exact reproducer and current single-request implementation confirm the bug remains.
stealth/space-bunny-alpha
Impact: 36
Quick Win: 11
Complexity: 45
Confidence: 82
Actionability: 58
needs triage Historical Snapcraft pagination bug: `snapcraft revisions` showed only the newest 500 revisions. Open, unlabelled, and untriaged with no maintainer response or reproducer on current code.
qwen/qwen3.8-27b
Impact: 30
Quick Win: 21
Staleness: 95
Complexity: 30
Confidence: 45
Support Request: 15
close stale snapcraft revisions command only displays the most recent 500 revisions per snap, truncating older history. Reported 2510 days ago with zero comments, no labels, and no maintainer response. Likely outdated given 7 years of project evolution.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 30
Confidence: 85
Support Request: 10
close stale snapcraft revisions command limits output to the 500 most recent entries despite store history retention. Issue remains completely inactive for over six years with zero maintainer interaction or labels.
qwen/qwen3.6-35b-a3b
Staleness: 100
Complexity: 20
Confidence: 80
Support Request: 30
close stale Issue reports `snapcraft revisions` command truncating output to the most recent 500 revisions, despite store policy stating revisions are permanent. No maintainer response.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 35
Confidence: 85
Support Request: 25
close stale snapcraft revisions CLI command limits output to the 500 most recent revisions per snap, despite the store retaining all revisions. Issue remains unlabelled, unassigned, and inactive for over six years.

Update history

Date Change
created

Related issues

No related issues found above the similarity threshold.