Skip to content

feat: preheat and delete all the platforms of the image by default - #698

Merged
CormickKneey merged 1 commit into
mainfrom
feature/preheat
Nov 10, 2026
Merged

CormickKneey merged 1 commit into
mainfrom
feature/preheat

Conversation

@gaius-qi

Copy link
Copy Markdown
Member

Description

Delete all the platforms of the image if the platform of the image is empty in DeleteImageRequest, the same as deleting an image name releases all its platforms in containerd, and allow the empty platform in common.v2.Image.

Preheat all the platforms of the image if the platform is not specified in PreheatImageRequest. The platform of the image in the request is ignored, because the platform of each preheated manifest is recorded by the peers. The manager preheat jobs do not use this request, so their default platform is unchanged.

Regenerate the Go and Rust bindings and bump the version to 2.3.10.

Related Issue

Motivation and Context

@gaius-qi gaius-qi self-assigned this Nov 10, 2026
@gaius-qi
gaius-qi requested review from a team as code owners November 10, 2026 09:42
@gaius-qi
gaius-qi requested a review from imeoer November 10, 2026 09:42
@gaius-qi gaius-qi added the enhancement New feature or request label Nov 10, 2026
CormickKneey
CormickKneey previously approved these changes Nov 10, 2026
CormickKneey
CormickKneey previously approved these changes Nov 10, 2026
…tform

Delete the image by the manifest url and the platform, the same as
`PreheatImageRequest` and `StatImageRequest`, and take all the platforms
of the image if the platform is not specified in any of them:

- `DeleteImageRequest` takes the `url` of the image manifest and an
  optional `platform`, and deletes all the platforms of the image if the
  platform is not specified, the same as deleting an image name releases
  all its platforms in containerd.
- `PreheatImageRequest` and `StatImageRequest` preheat and stat all the
  platforms of the image if the platform is not specified. The manager
  jobs do not use these requests, so their default platform is unchanged.
- `common.v2.Image` in `Download` takes the `reference` and the optional
  `platform` of the image that the task belongs to, and the task belongs
  to all the platforms of the image if the platform is not specified.
- Remove the image from `PreheatImageRequest`, because the scheduler
  already has the manifest url, and the platform of each preheated
  manifest.

Regenerate the Go, Rust and Python bindings and bump the version to
2.3.10.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Gaius <gaius.qi@gmail.com>
CormickKneey
CormickKneey previously approved these changes Nov 10, 2026

@LunaWhispers LunaWhispers left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@CormickKneey
CormickKneey merged commit 9eff01b into main Nov 10, 2026
6 checks passed
@CormickKneey
CormickKneey deleted the feature/preheat branch November 10, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants