Skip to content

Commit

Permalink
🤖 Drop uki test as its no longer valid (#1949)
Browse files Browse the repository at this point in the history
  • Loading branch information
Itxaka authored Oct 24, 2023
1 parent 38c9bf9 commit 83eaef1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 47 deletions.
1 change: 1 addition & 0 deletions .github/workflows/image-pr.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: Build and test images - Pull Request
on:
pull_request:
paths:
Expand Down
44 changes: 0 additions & 44 deletions .github/workflows/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -301,49 +301,6 @@ jobs:
- flavor: "alpine"
flavorRelease: "3.18"

test-uki:
runs-on: kvm
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: tests/go.mod
cache-dependency-path: tests/go.sum
- name: Enable KVM group perms
run: |
sudo apt-get update
sudo apt-get install -y libvirt-clients libvirt-daemon-system libvirt-daemon virtinst bridge-utils qemu qemu-system-x86 qemu-system-x86 qemu-utils qemu-kvm acl udev
# https://github.blog/changelog/2023-02-23-hardware-accelerated-android-virtualization-on-actions-windows-and-linux-larger-hosted-runners/
# echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
# sudo udevadm control --reload-rules
# sudo udevadm trigger --name-match=kvm
# sudo usermod -a -G kvm,libvirt $USER
#
# TODO: Switch back to the above solution when we switch to the github runners
# https://askubuntu.com/a/1081326
sudo setfacl -m u:runner:rwx /dev/kvm
- name: Install earthly
uses: Luet-lab/luet-install-action@v1.1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
- name: Build uki disk 🔧
run: |
# Do fedora as its the smaller uki possible
earthly +prepare-uki-disk-image --FLAVOR=fedora
- name: Run tests
env:
USE_QEMU: true
KVM: true
MEMORY: 4000
CPUS: 2
FIRMWARE: /usr/share/OVMF/OVMF_CODE.fd
run: |
export UKI_DRIVE=${PWD}/build/disk.img
cp tests/go.* .
go run github.com/onsi/ginkgo/v2/ginkgo -v --label-filter "uki" --fail-fast -r ./tests/
notify:
runs-on: ubuntu-latest
if: failure()
Expand All @@ -362,7 +319,6 @@ jobs:
- encryption
- various
- standard-upgrade-latest
- test-uki
steps:
- uses: actions/checkout@v4
- run: |
Expand Down
20 changes: 17 additions & 3 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -964,9 +964,15 @@ trivy-scan:
COPY +trivy/trivy /trivy
COPY +trivy/contrib /contrib
COPY +version/VERSION ./
ARG VERSION=$(cat VERSION)
ARG FLAVOR
ARG VARIANT
ARG KAIROS_VERSION=$(cat VERSION)
ARG TARGETARCH
ARG --required FAMILY # The dockerfile to use
ARG --required FLAVOR # The distribution E.g. "ubuntu"
ARG --required FLAVOR_RELEASE # The distribution release/version E.g. "20.04"
ARG --required VARIANT
ARG --required MODEL
ARG --required BASE_IMAGE # BASE_IMAGE is the image to apply the strategy (aka FLAVOR) on. E.g. ubuntu:20.04
COPY ./naming.sh .
ARG ISO_NAME=$(./naming.sh bootable_artifact_name)

WORKDIR /build
Expand All @@ -989,6 +995,14 @@ grype-scan:
COPY +grype/grype /grype
COPY +version/VERSION ./
ARG KAIROS_VERSION=$(cat VERSION)
ARG TARGETARCH
ARG --required FAMILY # The dockerfile to use
ARG --required FLAVOR # The distribution E.g. "ubuntu"
ARG --required FLAVOR_RELEASE # The distribution release/version E.g. "20.04"
ARG --required VARIANT
ARG --required MODEL
ARG --required BASE_IMAGE # BASE_IMAGE is the image to apply the strategy (aka FLAVOR) on. E.g. ubuntu:20.04
COPY ./naming.sh .
ARG ISO_NAME=$(./naming.sh bootable_artifact_name)

WORKDIR /build
Expand Down

0 comments on commit 83eaef1

Please sign in to comment.