Skip to content

Add "load" command flags to restore CI image from Job ID / PR ID #45269

@potiuk

Description

@potiuk

With #45261 we switched to storing "per-job" image dumps as artifacts in the jobs from GitHub registry - this also means that we cannot use Commit SHA TAG to pull the image from registry when we want to reproduce a CI job environment.

For now we can do it manually - by downloading the artifact and using breeze ci-image load --image-file <file> - but this can be all easily automated.

The load command could have optional --from-job <JOB> and --from-pr PR flags that could use GiHub API to find and download the right artifact before loading. For JOB - it would take it from the JOB, from PR it would load it from the latest JOB for the PR.

We would also add diagnostic to error out if the image is not with the right platform (for now only linux/amd is supported) and in the future when we add ARM support via ARC (#44512) - we should be able to also produce and store ARM image as artifact, and in this case we would just find and use the right one depending on the platform we are in.

Metadata

Metadata

Assignees

Labels

area:dev-envCI, pre-commit, pylint and other changes that do not change the behavior of the final codearea:dev-tools

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions