vendor: github.com/fvbommel/sortorder v1.2.0 and update sort - #7269
vendor: github.com/fvbommel/sortorder v1.2.0 and update sort#7269thaJeztah wants to merge 12 commits into
Conversation
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Use filepath.Rel and filepath.IsLocal instead of comparing path prefixes as strings when checking that a path stays within the config directory. Also avoid calling Dir multiple times when constructing and validating the path. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Extract construction of the cluster volume spec from runCreate, and use struct literals for the individual cluster volume options. Also simplify topology parsing by reusing ConvertKVStringsToMap, use slices.SortFunc for deterministic secret ordering, and use max to clamp negative capacity values to zero. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
full diff: fvbommel/sortorder@v1.1.0...v1.2.0 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
4044fe5 to
6dc2fa8
Compare
docker-agent
left a comment
There was a problem hiding this comment.
⚠️ Review incomplete
chunk 1: Drafter did not complete
chunk 2: Drafter did not complete
chunk 3: Drafter did not complete
All three drafter delegations failed with a sub-agent schema validation error (output_config.format.schema: Unsupported regex feature). The automated hypothesis-generation pipeline could not run.
Manual inspection summary (orchestrator-level): The diff was reviewed directly. This PR is a clean mechanical migration from sort.Slice/sort.Sort to slices.SortFunc/slices.SortStableFunc in tandem with vendoring github.com/fvbommel/sortorder v1.2.0 (which adds NaturalCompare for three-way comparison). All comparator semantics were verified to be preserved correctly:
sort.Slice→slices.SortFuncconversions: comparator directions correct throughout.sort.SliceStable/sort.Stable→slices.SortStableFunc: stability preserved.slices.SortedFunc(maps.Values(emptyMap), ...)returnsnilin Go 1.24, so theupdateUlimits"remove all" test expectation (nil) remains satisfied.cmp.Or/cmp.Compareport-sort replacements match the original field ordering.formatAdminRolekey-ID sort now creates a copy instead of mutating the receiver — a bug fix.toStringList%s→%vformat change is safer for non-stringanyvalues.filepath.IsLocalpath-escape check incli/config/config.gois more robust than the oldstrings.HasPrefixapproach.
No bugs were identified in the manual pass. However, since the automated pipeline did not complete, this review cannot be treated as a full automated review.
Findings so far:
vendor: github.com/fvbommel/sortorder v1.2.0
full diff: fvbommel/sortorder@v1.1.0...v1.2.0
- Human readable description for the release notes
- A picture of a cute animal (not mandatory but encouraged)