🤖 Drop flaky workflows jobs

Drops qrcode test (needs to be optimized), and drops build-vm jobs as are redundant( we run similar tests in kairos )
Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
This commit is contained in:
Ettore Di Giacinto
2022-12-03 22:35:13 +00:00
parent 1ef914c818
commit 52c7568ecc

View File

@@ -106,32 +106,32 @@ jobs:
# - flavor: "tumbleweed" # - flavor: "tumbleweed"
# - flavor: "ubuntu" # - flavor: "ubuntu"
# - flavor: "fedora" # - flavor: "fedora"
steps: # steps:
- uses: actions/checkout@v3 # - uses: actions/checkout@v3
- name: Install deps # - name: Install deps
run: | # run: |
brew install hudochenkov/sshpass/sshpass # brew install hudochenkov/sshpass/sshpass
brew install qemu # brew install qemu
- name: Download artifacts # - name: Download artifacts
uses: actions/download-artifact@v3 # uses: actions/download-artifact@v3
with: # with:
name: kairos-${{ matrix.flavor }}.iso.zip # name: kairos-${{ matrix.flavor }}.iso.zip
- run: | # - run: |
git clone https://github.com/kairos-io/kairos # git clone https://github.com/kairos-io/kairos
ls -liah # ls -liah
iso=$(ls *.iso) # iso=$(ls *.iso)
bash kairos/scripts/build_vm.sh $iso # bash kairos/scripts/build_vm.sh $iso
- uses: actions/upload-artifact@v3 # - uses: actions/upload-artifact@v3
with: # with:
name: kairos-${{ matrix.flavor }}.qcow2.tar.xz # name: kairos-${{ matrix.flavor }}.qcow2.tar.xz
path: | # path: |
*.qcow2.tar.xz # *.qcow2.tar.xz
- uses: actions/upload-artifact@v3 # - uses: actions/upload-artifact@v3
with: # with:
name: kairos-${{ matrix.flavor }}.ova # name: kairos-${{ matrix.flavor }}.ova
path: | # path: |
*.ova # *.ova
if-no-files-found: error # if-no-files-found: error
prepare-test: prepare-test:
needs: build needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -341,85 +341,85 @@ jobs:
path: last-release path: last-release
if-no-files-found: error if-no-files-found: error
qrcode-test-cli: # qrcode-test-cli:
needs: # needs:
- build # - build
- prepare-alpine-test # - prepare-alpine-test
- upgrade-test # - upgrade-test
runs-on: ubuntu-latest # runs-on: ubuntu-latest
steps: # steps:
- uses: actions/checkout@v3 # - uses: actions/checkout@v3
- name: Download artifacts # - name: Download artifacts
uses: actions/download-artifact@v3 # uses: actions/download-artifact@v3
with: # with:
name: config.yaml # name: config.yaml
- name: Install Go # - name: Install Go
uses: actions/setup-go@v3 # uses: actions/setup-go@v3
with: # with:
go-version: '^1.16' # go-version: '^1.16'
- run: | # - run: |
./earthly.sh +build-kairos-agent-provider # ./earthly.sh +build-kairos-agent-provider
sudo cp -rfv build/agent-provider-kairos /usr/bin/kairos # sudo cp -rfv build/agent-provider-kairos /usr/bin/kairos
export CLOUD_INIT=$PWD/tests/assets/qrcode.yaml # export CLOUD_INIT=$PWD/tests/assets/qrcode.yaml
export FLAVOR=${{ matrix.flavor }} # export FLAVOR=${{ matrix.flavor }}
./.github/run_test.sh "qrcode-register" # ./.github/run_test.sh "qrcode-register"
env: # env:
SENDKEY: 4kgpo43kphopj # SENDKEY: 4kgpo43kphopj
- uses: actions/upload-artifact@v3 # - uses: actions/upload-artifact@v3
if: failure() # if: failure()
with: # with:
name: screenshot.zip # name: screenshot.zip
path: | # path: |
tests/*.png # tests/*.png
qrcode-test: # qrcode-test:
needs: # needs:
- build # - build
- upgrade-test # - upgrade-test
- prepare-alpine-test # - prepare-alpine-test
runs-on: macos-12 # runs-on: macos-12
strategy: # strategy:
fail-fast: false # fail-fast: false
matrix: # matrix:
include: # include:
- flavor: "alpine-opensuse-leap" # - flavor: "alpine-opensuse-leap"
node: "A" # Arbitrary field # node: "A" # Arbitrary field
# - flavor: "alpine" # # - flavor: "alpine"
# node: "C" # # node: "C"
steps: # steps:
- uses: actions/checkout@v3 # - uses: actions/checkout@v3
- name: Download artifacts # - name: Download artifacts
uses: actions/download-artifact@v3 # uses: actions/download-artifact@v3
with: # with:
name: config.yaml # name: config.yaml
- name: Download artifacts # - name: Download artifacts
uses: actions/download-artifact@v3 # uses: actions/download-artifact@v3
with: # with:
name: kairos-${{ matrix.flavor }}.iso.zip # name: kairos-${{ matrix.flavor }}.iso.zip
- name: Install deps # - name: Install deps
run: | # run: |
brew install cdrtools jq # brew install cdrtools jq
- name: Install Go # - name: Install Go
uses: actions/setup-go@v3 # uses: actions/setup-go@v3
with: # with:
go-version: '^1.16' # go-version: '^1.16'
- run: | # - run: |
ls -liah # ls -liah
export ISO=$PWD/$(ls *.iso) # export ISO=$PWD/$(ls *.iso)
export GOPATH="/Users/runner/go" # export GOPATH="/Users/runner/go"
export PATH=$PATH:$GOPATH/bin # export PATH=$PATH:$GOPATH/bin
export CLOUD_INIT=$PWD/tests/assets/qrcode.yaml # export CLOUD_INIT=$PWD/tests/assets/qrcode.yaml
export CREATE_VM=true # export CREATE_VM=true
export FLAVOR=${{ matrix.flavor }} # export FLAVOR=${{ matrix.flavor }}
./.github/run_test.sh "qrcode-install" # ./.github/run_test.sh "qrcode-install"
env: # env:
SENDKEY: 4kgpo43kphopj # SENDKEY: 4kgpo43kphopj
- uses: actions/upload-artifact@v3 # - uses: actions/upload-artifact@v3
if: failure() # if: failure()
with: # with:
name: ${{ matrix.flavor }}-qrcode-test.logs.zip # name: ${{ matrix.flavor }}-qrcode-test.logs.zip
path: tests/**/logs/* # path: tests/**/logs/*
if-no-files-found: warn # if-no-files-found: warn
upgrade-test: upgrade-test: