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

kola/kernel-replace: Add OS_ID recogntion #3048

Draft
wants to merge 1 commit into
base: testing-devel
Choose a base branch
from

Conversation

c4rt0
Copy link
Member

@c4rt0 c4rt0 commented Jul 2, 2024

There were instances where kola/switch-kernel test would fail.
It was recommended to remove it (PR) and generalize this test, so that it can work with FCOS, RHCOS and SCOS.

@c4rt0 c4rt0 requested a review from jbtrystram July 2, 2024 11:28
Copy link
Contributor

@jbtrystram jbtrystram left a comment

Choose a reason for hiding this comment

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

Shellcheck will complain other than this it looks good.
Could you run the test locally on RHCOS ?

## # This test only runs on FCOS due to a problem with skopeo copy on
## # RHCOS. See: https://github.com/containers/skopeo/issues/1846
## distros: fcos
## distros: "fcos rhcos scos"
Copy link
Contributor

@jbtrystram jbtrystram Jul 2, 2024

Choose a reason for hiding this comment

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

just omit the tag would work from what i understand ?

image=oci:$image_dir
image_pull=ostree-unverified-image:$image
tmp_imagedir=/var/tmp/fcos-tmp
tmp_imagedir=/var/tmp/$OS_ID-tmp
Copy link
Contributor

Choose a reason for hiding this comment

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

shellcheck will complain :)

@@ -43,10 +41,13 @@ set -euxo pipefail
cd $(mktemp -d)

# TODO: It'd be much better to test this via a registry
image_dir=/var/tmp/fcos

OS_ID=$(grep '^ID=' /etc/os-release | cut -d "=" -f2)
Copy link
Member

Choose a reason for hiding this comment

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

How we name the image dir and built images is purely cosmetic. Instead of this, we could s/fcos/coreos/ instead to make it more generic.

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.

None yet

3 participants