Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build --all-platforms: skip some base "image" platforms #5335

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

nalind
Copy link
Member

@nalind nalind commented Feb 12, 2024

What type of PR is this?

/kind bug

What this PR does / why we need it:

When figuring out which platforms the base images allow us to build derived images for, screen out any images with non-empty artifactType values. Also screen out any which use empty values or the word "unknown" in the OS and Architecture platform fields, and any Architecture values that the compiler hasn't heard of.

How to verify it

New integration test!

Which issue(s) this PR fixes:

Fixes #5331.

Special notes for your reviewer:

An alternate to the approach taken by #5334.

Does this PR introduce a user-facing change?

Building with `--all-platforms` will now refrain from building for platforms with OS or Architecture values that are empty or set to the value "unknown".  Additionally, "Architecture" values that are not recognized by the Go compiler will also be skipped.

@openshift-ci openshift-ci bot added kind/bug Categorizes issue or PR as related to a bug. approved labels Feb 12, 2024
@nalind nalind force-pushed the only-most-platforms branch from 98a6d4f to 48605c1 Compare February 12, 2024 19:31
When figuring out which platforms the base images allow us to build
derived images for, screen out any images with non-empty artifactType
values.  Also screen out any which use empty values or the word
"unknown" in the OS and Architecture platform fields, and any
Architecture values that the compiler hasn't heard of.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
@nalind nalind force-pushed the only-most-platforms branch from 48605c1 to 98f8707 Compare February 12, 2024 19:34
@rhatdan
Copy link
Member

rhatdan commented Feb 12, 2024

Copy link
Collaborator

@flouthoc flouthoc left a comment

Choose a reason for hiding this comment

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

LGTM
/lgtm
/hold

Copy link
Contributor

openshift-ci bot commented Feb 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: flouthoc, nalind

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rhatdan
Copy link
Member

rhatdan commented Feb 12, 2024

/unhold

@openshift-merge-bot openshift-merge-bot bot merged commit a626bd1 into containers:main Feb 12, 2024
34 checks passed
@nalind nalind deleted the only-most-platforms branch February 12, 2024 22:52
@stale-locking-app stale-locking-app bot locked as resolved and limited conversation to collaborators May 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved kind/bug Categorizes issue or PR as related to a bug. lgtm locked - please file new issue/PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

build "--all-platforms" fails for some images
3 participants