ci: bump Fedora image version to 33
PATCH 1/1 ci: bump Fedora image version to 33
The testsuite will soon be switching to testing multiple filesystems, which exposes a bug in F32 image's kernel. Since Fedora 33 has been released recently and the testsuite runs just fine on it, just bump the image version to avoid the bug.
This commit also fixes the script to read out the Fedora image version from environment variables instead of using hard-coded values.
--- .travis.yml | 2 +- scripts/ci/travis-kvm-setup.sh | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-)
.travis.yml +1 -1
@@ -36,7 +36,7 @@ matrix: env: PYVER=python3.8 RUBYLIBVER=2.7 LINKER=bfd include: - compiler: gcc - env: TRAVIS_RUN_KVM=true TRAVIS_CLOUD_IMAGE_VERSION="32:1.6" + env: TRAVIS_RUN_KVM=true FEDORA_MAJOR=33 FEDORA_MINOR=1.2 install: - skip before_script:
scripts/ci/travis-kvm-setup.sh +7 -5
@@ -7,13 +7,15 @@ TEST_RUNNER="scripts/ci/fedora-test-runner.sh" # # Variables for controlling the Fedora Image version and download URLs. # -MAJOR_VERSION="32" -MINOR_VERSION="1.6" +if [ -z "$FEDORA_MAJOR" ] || [ -z "$FEDORA_MINOR" ]; then + echo "$0: FEDORA_MAJOR and FEDORA_MINOR must be set!" 1>&2 + exit 1 +fi BASE_URL="https://download.fedoraproject.org/pub/fedora/linux/releases" -IMAGE_BASE_NAME="Fedora-Cloud-Base-$MAJOR_VERSION-$MINOR_VERSION.x86_64" -IMAGE_URL="$BASE_URL/$MAJOR_VERSION/Cloud/x86_64/images/$IMAGE_BASE_NAME.raw.xz" -CHECK_URL="$BASE_URL/$MAJOR_VERSION/Cloud/x86_64/images/Fedora-Cloud-$MAJOR_VERSION-$MINOR_VERSION-x86_64-CHECKSUM" +IMAGE_BASE_NAME="Fedora-Cloud-Base-$FEDORA_MAJOR-$FEDORA_MINOR.x86_64" +IMAGE_URL="$BASE_URL/$FEDORA_MAJOR/Cloud/x86_64/images/$IMAGE_BASE_NAME.raw.xz" +CHECK_URL="$BASE_URL/$FEDORA_MAJOR/Cloud/x86_64/images/Fedora-Cloud-$FEDORA_MAJOR-$FEDORA_MINOR-x86_64-CHECKSUM" GPG_URL="https://getfedora.org/static/fedora.gpg" #
Signature · 1 line
2.26.2
Quoted 9 lines · Ondrej Mosnacek
The testsuite will soon be switching to testing multiple filesystems, which exposes a bug in F32 image's kernel. Since Fedora 33 has been released recently and the testsuite runs just fine on it, just bump the image version to avoid the bug.
This commit also fixes the script to read out the Fedora image version from environment variables instead of using hard-coded values.
Signed-off-by Ondrej Mosnacek <[email protected]>
Would it make sense to use Rawhide images from the link bellow?
https://download.fedoraproject.org/pub/fedora/linux/development/rawhide/Cloud/x86_64/images/
I think Paul already asked for it in past but I'm not sure what was the outcome.
Quoted 46 lines
--- .travis.yml | 2 +- scripts/ci/travis-kvm-setup.sh | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-).travis.yml +1
-1@@ -36,7 +36,7 @@ matrix: env: PYVER=python3.8 RUBYLIBVER=2.7 LINKER=bfd include: - compiler: gcc - env: TRAVIS_RUN_KVM=true TRAVIS_CLOUD_IMAGE_VERSION="32:1.6" + env: TRAVIS_RUN_KVM=true FEDORA_MAJOR=33 FEDORA_MINOR=1.2 install: - skip before_script:scripts/ci/travis-kvm-setup.sh +4
-2@@ -7,13 +7,15 @@ TEST_RUNNER="scripts/ci/fedora-test-runner.sh" # # Variables for controlling the Fedora Image version and download URLs. # -MAJOR_VERSION="32" -MINOR_VERSION="1.6" +if [ -z "$FEDORA_MAJOR" ] || [ -z "$FEDORA_MINOR" ]; then + echo "$0: FEDORA_MAJOR and FEDORA_MINOR must be set!" 1>&2 + exit 1 +fi BASE_URL="https://download.fedoraproject.org/pub/fedora/linux/releases" -IMAGE_BASE_NAME="Fedora-Cloud-Base-$MAJOR_VERSION-$MINOR_VERSION.x86_64"
scripts/ci/travis-kvm-setup.sh +3
-2-IMAGE_URL="$BASE_URL/$MAJOR_VERSION/Cloud/x86_64/images/$IMAGE_BASE_NAME.raw.xz" -CHECK_URL="$BASE_URL/$MAJOR_VERSION/Cloud/x86_64/images/Fedora-Cloud-$MAJOR_VERSION-$MINOR_VERSION-x86_64-CHECKSUM" +IMAGE_BASE_NAME="Fedora-Cloud-Base-$FEDORA_MAJOR-$FEDORA_MINOR.x86_64" +IMAGE_URL="$BASE_URL/$FEDORA_MAJOR/Cloud/x86_64/images/$IMAGE_BASE_NAME.raw.xz" +CHECK_URL="$BASE_URL/$FEDORA_MAJOR/Cloud/x86_64/images/Fedora-Cloud-$FEDORA_MAJOR-$FEDORA_MINOR-x86_64-CHECKSUM" GPG_URL="https://getfedora.org/static/fedora.gpg" #Signature · 1 line
2.26.2
Quoted 9 lines · Petr Lautrbach
Quoted 8 lines · Ondrej Mosnacek
The testsuite will soon be switching to testing multiple filesystems, which exposes a bug in F32 image's kernel. Since Fedora 33 has been released recently and the testsuite runs just fine on it, just bump the image version to avoid the bug.
This commit also fixes the script to read out the Fedora image version from environment variables instead of using hard-coded values.
Quoted 7 lines
Quoted 1 line
Signed-off-by Ondrej Mosnacek <[email protected]>Would it make sense to use Rawhide images from the link bellow?
https://download.fedoraproject.org/pub/fedora/linux/development/rawhide/Cloud/x86_64/images/
I think Paul already asked for it in past but I'm not sure what was the outcome.
It is possible and already being used for the testsuite CI. However, it is a bit harder to get to work reliably and there is always the possibility of rawhide being randomly broken. It would require some more extensive updates to the scripts (including a couple fixes from my pending patches for the testsuite CI), so IMHO it should be done as a separate patch (if at all).
Signature · 3 lines
Ondrej Mosnacek Software Engineer, Platform Security - SELinux kernel Red Hat, Inc.
Quoted 17 lines · Ondrej Mosnacek
Quoted 15 lines · Petr Lautrbach
Quoted 9 lines · Ondrej Mosnacek
The testsuite will soon be switching to testing multiple filesystems, which exposes a bug in F32 image's kernel. Since Fedora 33 has been released recently and the testsuite runs just fine on it, just bump the image version to avoid the bug.
This commit also fixes the script to read out the Fedora image version from environment variables instead of using hard-coded values.
Signed-off-by Ondrej Mosnacek <[email protected]>Would it make sense to use Rawhide images from the link bellow?
https://download.fedoraproject.org/pub/fedora/linux/development/rawhide/Cloud/x86_64/images/
Quoted 8 lines
Quoted 1 line
I think Paul already asked for it in past but I'm not sure what was the outcome.
It is possible and already being used for the testsuite CI. However, it is a bit harder to get to work reliably and there is always the possibility of rawhide being randomly broken. It would require some more extensive updates to the scripts (including a couple fixes from my pending patches for the testsuite CI), so IMHO it should be done as a separate patch (if at all).
Hi, the patch looks good, but it does not fix everything: e2fsprogs, jfsutils and dosfstools also need to be added to scripts/ci/fedora-test-runner.sh, like what
https://github.com/SELinuxProject/selinux-testsuite/commit/d4e507f78a1784334611421cdfa3683a8214b22d
documented. Do you want to submit a patch about this?
Anyway, for updating the Fedora image version to 33 : Acked-by:
Nicolas Iooss <[email protected]>
Thanks,
Nicolas
Quoted 27 lines · Nicolas Iooss
Quoted 17 lines · Ondrej Mosnacek
Quoted 15 lines · Petr Lautrbach
Quoted 9 lines · Ondrej Mosnacek
The testsuite will soon be switching to testing multiple filesystems, which exposes a bug in F32 image's kernel. Since Fedora 33 has been released recently and the testsuite runs just fine on it, just bump the image version to avoid the bug.
This commit also fixes the script to read out the Fedora image version from environment variables instead of using hard-coded values.
Signed-off-by Ondrej Mosnacek <[email protected]>Would it make sense to use Rawhide images from the link bellow?
https://download.fedoraproject.org/pub/fedora/linux/development/rawhide/Cloud/x86_64/images/
Quoted 8 lines
Quoted 1 line
I think Paul already asked for it in past but I'm not sure what was the outcome.
It is possible and already being used for the testsuite CI. However, it is a bit harder to get to work reliably and there is always the possibility of rawhide being randomly broken. It would require some more extensive updates to the scripts (including a couple fixes from my pending patches for the testsuite CI), so IMHO it should be done as a separate patch (if at all).
Quoted 5 lines
Hi, the patch looks good, but it does not fix everything: e2fsprogs, jfsutils and dosfstools also need to be added to
scripts/ci/fedora-test-runner.sh, like what
https://github.com/SELinuxProject/selinux-testsuite/commit/d4e507f78a1784334611421cdfa3683a8214b22d
documented. Do you want to submit a patch about this?
Yes, I forgot that those would also be needed... I just sent a patch to the list.
Signature · 3 lines
Ondrej Mosnacek Software Engineer, Platform Security - SELinux kernel Red Hat, Inc.