Skip to content

Commit

Permalink
e2e: run regression tests on bare metal
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerdev committed Oct 2, 2024
1 parent 0a7b774 commit 7d2eca9
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions .github/workflows/e2e_regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,32 @@ env:

jobs:
regression-test:
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
strategy:
matrix:
platform:
- name: AKS-CLH-SNP
runner: ubuntu-22.04
self-hosted: false
- name: K3s-QEMU-SNP
runner: SNP
self-hosted: true
- name: K3s-QEMU-TDX
runner: TDX
self-hosted: true
case:
- getdents
- genpolicy
- regression
fail-fast: false
name: "${{ matrix.platform.name }} / ${{ matrix.case }}"
runs-on: ${{ matrix.platform.runner }}
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: ./.github/actions/setup_nix
if: ${{ !matrix.platform.self-hosted }}
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
cachixToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
Expand All @@ -59,22 +71,26 @@ jobs:
azure_resource_group=${{ env.azure_resource_group }}
EOF
- name: Get credentials for CI cluster
if: ${{ !matrix.platform.self-hosted }}
run: |
just get-credentials
- if: ${{ !matrix.platform.self-hosted }}
name: Set sync environment
run: |
sync_ip=$(kubectl get svc sync -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
echo "SYNC_ENDPOINT=http://$sync_ip:8080" | tee -a "$GITHUB_ENV"
sync_uuid=$(kubectl get configmap sync-server-fifo -o jsonpath='{.data.uuid}')
echo "SYNC_FIFO_UUID=$sync_uuid" | tee -a "$GITHUB_ENV"
- name: Build and prepare deployments
run: |
just node-installer
if [[ "${{ matrix.case }}" == "regression" ]]; then
# build and push other dependencies for the regression test
just coordinator initializer port-forwarder openssl service-mesh-proxy
fi
just coordinator initializer port-forwarder openssl service-mesh-proxy node-installer ${{ matrix.platform.name }}
- name: Run regression test
run: |
nix run .#scripts.get-logs workspace/e2e.namespace &
nix shell -L .#contrast.e2e --command ${{ matrix.case }}.test -test.v \
--image-replacements workspace/just.containerlookup \
--namespace-file workspace/e2e.namespace \
--platform aks-clh-snp \
--platform ${{ matrix.platform.name }} \
--skip-undeploy="${{ inputs.skip-undeploy && 'true' || 'false' }}"
- name: Upload logs
if: always()
Expand Down

0 comments on commit 7d2eca9

Please sign in to comment.