Skip to content

Sorts release images by partition and name - #855

Merged
lorengordon merged 2 commits into
plus3it:masterfrom
lorengordon:sort-release-images
Nov 20, 2026
Merged

lorengordon merged 2 commits into
plus3it:masterfrom
lorengordon:sort-release-images

Conversation

@lorengordon

Copy link
Copy Markdown
Member

Since builds were changed to support retries, a rerun merges its images into the existing release list in place, so the order in manifests/IMAGES.md depends on which attempt built which image. The 2026.11.1 release ended up out of order.

This sorts the combined list in "Combine image lists" with commercial regions before GovCloud, then by image name. jq's sort_by is stable, so each image keeps the region order from its build artifact (us-east-1, us-east-2, us-west-1, us-west-2 and us-gov-west-1, us-gov-east-1), the same as releases before the retry change.

It also re-sorts the current IMAGES.md by running the updated steps on it. No rows change, only their order.

Testing

I downloaded the image lists from the 2026.11.1 release run:

gh run download 44174033910 --repo plus3it/spel --pattern 'images-*' --dir artifacts
find artifacts -name 'images-*.json' -exec mv -t . {} +

Then I ran the updated "Combine image lists" and "Write images table to file" steps in three cases:

  • a fresh release with all 16 image lists,
  • all 16 merged into the out-of-order 2026.11.1 IMAGES.md,
  • a simulated retry: a first run with 3 of the image lists, then a second run with the other 13 merged into its output.

All three produced the same IMAGES.md, with the same image and region order as 2026.10.1.

🤖 Generated with Claude Code

lorengordon and others added 2 commits November 20, 2026 15:09
Retries merge new images into the existing release list in place, so
images from a rerun could land out of order. Sort the combined list with
commercial regions before GovCloud, then by image name. The sort is
stable, so each image keeps the region order from its build artifact.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 2026.11.1 release list was out of order after retried builds.
Regenerated with the sorted "Combine image lists" step; the rows are
unchanged, only reordered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mergify

mergify Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@lorengordon
lorengordon requested a review from a team November 20, 2026 23:15
@lorengordon
lorengordon merged commit 485b814 into plus3it:master Nov 20, 2026
9 checks passed
@lorengordon
lorengordon deleted the sort-release-images branch November 20, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants