-
Notifications
You must be signed in to change notification settings - Fork 154
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
base: testing-devel
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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" |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
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.