← Back to issue list

validation-sets sorts integer sequence alphabetically

View original Github issue

Metadata

Project
snapcraft
Number
#6324
Type
issue
State
open
Author
joulsen
Labels
Created
Updated
Closed

Current evaluation

Validation sets command sorts sequence numbers alphabetically instead of numerically. A fix was submitted in PR #6339 but closed due to CLA issues, leaving the bug unfixed.

Suggested action: keep open

Reason: The issue is a valid bug confirmed by @wanacode who referenced PR #6339 as a fix. The PR was closed due to CLA issues, not technical problems, so the bug remains unfixed. The sorting logic in snapcraft/services/validationsets.py and snapcraft/store/client.py shows no numeric sort is applied, confirming the issue persists.

Impact: 55 Quick Win: 46.75 Staleness: 25 Complexity: 15 Confidence: 75 Support Request: 5

Issue body

### Check existing issues - [x] I've verified that this bug isn't described by any existing issues. ### Bug description The command `snapcraft validation-sets --name <validation-set> --sequence all` sorts by sequence number, but the sequence numbers are sorted alphabetically, i.e. ``` 1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 2, 20, 21, ... ``` instead of ``` 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ... ``` The same is true for the validation set view on snapcraft.io, which has the same sorting problems. ### Steps to reproduce - Have a validation set with 10 or more sequences - Run `snapcraft validation-sets --name <validation-set> --sequence all` ### Environment Running on Ubuntu 24.04 with Snapcraft version 9.0.0 (revision 18124) ### snapcraft.yaml ```yaml ``` ### Log output ```shell ```

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6
Impact: 55
Quick Win: 46.75
Staleness: 25
Complexity: 15
Confidence: 75
Support Request: 5
keep open Validation sets command sorts sequence numbers alphabetically instead of numerically. A fix was submitted in PR #6339 but closed due to CLA issues, leaving the bug unfixed.
qwen/qwen3.6-35b-a3b
Staleness: 10
Complexity: 20
Confidence: 95
Support Request: 0
keep open Bug: validation-sets command sorts integer sequences alphabetically instead of numerically. Fix submitted in PR #6339.
qwen3.6-35b-a3b-mtp-q6
Staleness: 5
Complexity: 15
Confidence: 90
Support Request: 5
needs triage Bug report: snapcraft validation-sets command and snapcraft.io sort sequence numbers alphabetically instead of numerically. Open, unlabelled, awaiting maintainer triage.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: snapcraft#6339 (confidence 80%)

    PR #6339 attempted to add numeric sort on sequence numbers but was closed due to CLA issues, not technical rejection. The fix approach is sound but needs to be re-submitted or rebased.

Related issues

Issue Project State Summary Similarity
#6339 fix: sort validation sets by numeric sequence snapcraft closed Sorting validation sets by numeric sequence was closed without merging. The change failed the Canonical CLA check, and with no reviewer engagement, it was abandoned due to the missing contributor license agreement.
71%