Skip to content

E2E Tests (Weekly)

E2E Tests (Weekly) #1

Workflow file for this run

name: E2E Tests (Weekly)
permissions:
contents: read
on:
schedule:
- cron: "0 3 * * 0" # 3 AM UTC Sunday
workflow_dispatch:
concurrency:
group: e2e-tests
cancel-in-progress: false
jobs:
e2e-weekly:
name: Weekly Test Suite
runs-on: ubuntu-latest
environment: e2e
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
- name: Setup e2e environment
uses: ./.github/actions/e2e-setup
- name: Login to quay.io
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
with:
registry: quay.io
username: ${{ secrets.QUAY_E2E_USERNAME }}
password: ${{ secrets.QUAY_E2E_PASSWORD }}
- name: Run weekly e2e tests
env:
CLOUDSCALE_API_TOKEN: ${{ secrets.CLOUDSCALE_API_TOKEN }}
TAG: e2e-weekly-${{ github.sha }}
run: |
make test-e2e \
GINKGO_LABEL_FILTER="ha || upgrade || self-hosted || kcp-remediation || conformance" \
KUBETEST_CONFIGURATION=./data/kubetest/conformance-fast.yaml
- name: Install regctl
if: always()
run: |
curl -sL https://github.com/regclient/regclient/releases/download/v0.11.2/regctl-linux-amd64 -o /usr/local/bin/regctl
chmod +x /usr/local/bin/regctl
- name: Clean up e2e image
if: always()
run: |
TAG="e2e-$(git rev-parse --short HEAD)"
regctl tag delete "quay.io/cloudscalech/capcs-staging:${TAG}" || true
- name: Redact secrets from artifacts
if: always()
env:
CLOUDSCALE_API_TOKEN: ${{ secrets.CLOUDSCALE_API_TOKEN }}
run: hack/log/redact.sh || true
- name: Upload test artifacts
if: always()
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: e2e-artifacts-weekly-${{ github.run_id }}
path: _artifacts/
retention-days: 30