Skip to content

Commit

Permalink
wip: debug libvirt test run
Browse files Browse the repository at this point in the history
Add debug step and enable running on fork.

Signed-off-by: Magnus Kulke <[email protected]>
  • Loading branch information
mkulke committed Dec 18, 2024
1 parent b8fcfcb commit ea95283
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/caa_build_and_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,18 @@ jobs:
build_push_job:
name: build and push
runs-on: ${{ inputs.runner }}

permissions:
packages: write

strategy:
fail-fast: false
matrix:
include:
- type: dev
arches: ${{ inputs.dev_arches }}
- type: release
arches: ${{ inputs.release_arches }}
# - type: release
# arches: ${{ inputs.release_arches }}
steps:
- name: Checkout the code
uses: actions/checkout@v4
Expand Down Expand Up @@ -88,6 +92,7 @@ jobs:
run: |
sudo apt-get update -y
sudo apt-get install -y libvirt-dev
- name: Login to quay Container Registry
if: ${{ startsWith(inputs.registry, 'quay.io') }}
uses: docker/login-action@v3
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/daily-e2e-tests-libvirt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
# will base on default branch `main`
- cron: '15 4 * * *'
workflow_dispatch:
inputs:
git-ref:
type: string
default: 'refs/heads/main'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -21,7 +25,7 @@ jobs:
uses: ./.github/workflows/e2e_run_all.yaml
with:
caa_image_tag: latest
git_ref: refs/heads/main
git_ref: ${{ inputs.git-ref || 'refs/heads/main' }}
podvm_image_tag: latest
registry: ghcr.io/${{ github.repository_owner }}
secrets: inherit
6 changes: 5 additions & 1 deletion .github/workflows/e2e_libvirt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,11 @@ jobs:
export TEST_E2E_TIMEOUT="75m"
export TEST_E2E_SECURE_COMMS="${{ inputs.secure_comms }}"
make test-e2e
# make test-e2e
make test-e2e RUN_TESTS="TestLibvirtCreateSimplePod"
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3

- name: Debug tests failure
if: failure() && steps.runTests.outcome == 'failure'
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/e2e_run_all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ defaults:
run:
working-directory: src/cloud-api-adaptor


jobs:
# Build the podvm images.
#
podvm_builder:
uses: ./.github/workflows/podvm_builder.yaml
if: false
with:
registry: ${{ inputs.registry }}
image_tag: ${{ inputs.podvm_image_tag }}
Expand All @@ -50,6 +52,7 @@ jobs:

podvm_binaries:
needs: [podvm_builder]
if: false
uses: ./.github/workflows/podvm_binaries.yaml
with:
registry: ${{ inputs.registry }}
Expand All @@ -59,6 +62,7 @@ jobs:

podvm:
needs: [podvm_binaries]
if: false
uses: ./.github/workflows/podvm.yaml
with:
registry: ${{ inputs.registry }}
Expand All @@ -78,6 +82,7 @@ jobs:

podvm_mkosi_s390x:
uses: ./.github/workflows/podvm_mkosi.yaml
if: false
with:
registry: ${{ inputs.registry }}
image_tag: ${{ inputs.podvm_image_tag }}
Expand Down Expand Up @@ -208,6 +213,7 @@ jobs:

caa_image_s390x:
uses: ./.github/workflows/caa_build_and_push.yaml
if: false
with:
registry: ${{ inputs.registry }}
dev_arches: 'linux/s390x'
Expand Down

0 comments on commit ea95283

Please sign in to comment.