Add more logs and refactor the server handers

- Flatten if/else logic by handling errors and returning early
- Use different logger for server logs. Also handle skipped errors.
- Remove unecessary for loop
- --zap-log-level can already be used (and it works)
- Remove non-existent enki flag
- Run tests with KVM enabled on self-hosted runners
  and also don't add grub.cfg since it's already there in the base image
- Remove non-used earthly target

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
This commit is contained in:
Dimitris Karakasilis
2023-10-24 11:17:10 +03:00
parent 09981d750e
commit ecbbe1499e
6 changed files with 234 additions and 251 deletions

View File

@@ -58,7 +58,7 @@ jobs:
e2e-tests:
needs:
- build-iso
runs-on: ubuntu-latest
runs-on: self-hosted
strategy:
fail-fast: false
matrix:
@@ -97,6 +97,7 @@ jobs:
- name: Run tests
env:
LABEL: ${{ matrix.label }}
KVM: true
run: |
sudo apt update && \
sudo apt install -y git qemu-system-x86 qemu-utils swtpm jq make glibc-tools \