mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-02 10:35:08 -05:00
ci: add conformance test to weekly (#3230)
This commit is contained in:
parent
b781a75af7
commit
212aa64f10
@ -192,6 +192,13 @@ runs:
|
||||
run: |
|
||||
echo "flag=--force" | tee -a $GITHUB_OUTPUT
|
||||
|
||||
- name: Set conformance flag
|
||||
id: set-conformance-flag
|
||||
if: inputs.test == 'sonobuoy conformance'
|
||||
shell: bash
|
||||
run: |
|
||||
echo "flag=--conformance" | tee -a $GITHUB_OUTPUT
|
||||
|
||||
- name: Constellation apply (Terraform)
|
||||
id: constellation-apply-terraform
|
||||
if: inputs.clusterCreation == 'terraform'
|
||||
@ -204,7 +211,7 @@ runs:
|
||||
if: inputs.clusterCreation != 'terraform'
|
||||
shell: bash
|
||||
run: |
|
||||
constellation apply --skip-phases=infrastructure --debug ${{ steps.set-force-flag.outputs.flag }}
|
||||
constellation apply --skip-phases=infrastructure --debug ${{ steps.set-force-flag.outputs.flag }} ${{ steps.set-conformance-flag.outputs.flag }}
|
||||
|
||||
- name: Get kubeconfig
|
||||
id: get-kubeconfig
|
||||
|
6
.github/actions/e2e_sonobuoy/action.yml
vendored
6
.github/actions/e2e_sonobuoy/action.yml
vendored
@ -48,6 +48,12 @@ runs:
|
||||
sonobuoy results *_sonobuoy_*.tar.gz
|
||||
sonobuoy results *_sonobuoy_*.tar.gz --mode detailed | jq 'select(.status!="passed")' | jq 'select(.status!="skipped")' || true
|
||||
|
||||
- name: Cleanup sonobuoy deployment
|
||||
env:
|
||||
KUBECONFIG: ${{ inputs.kubeconfig }}
|
||||
shell: bash
|
||||
run: sonobuoy delete --wait
|
||||
|
||||
- name: Upload test results
|
||||
if: always() && !env.ACT
|
||||
uses: ./.github/actions/artifact_upload
|
||||
|
13
.github/actions/e2e_test/action.yml
vendored
13
.github/actions/e2e_test/action.yml
vendored
@ -53,7 +53,7 @@ inputs:
|
||||
description: "Azure credentials authorized to create an IAM configuration."
|
||||
required: true
|
||||
test:
|
||||
description: "The test to run. Can currently be one of [sonobuoy full, sonobuoy quick, autoscaling, lb, perf-bench, verify, recover, malicious join, nop, upgrade]."
|
||||
description: "The test to run. Can currently be one of [sonobuoy full, sonobuoy quick, sonobuoy conformance, autoscaling, lb, perf-bench, verify, recover, malicious join, nop, upgrade]."
|
||||
required: true
|
||||
sonobuoyTestSuiteCmd:
|
||||
description: "The sonobuoy test suite to run."
|
||||
@ -103,7 +103,7 @@ runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Check input
|
||||
if: (!contains(fromJson('["sonobuoy full", "sonobuoy quick", "autoscaling", "perf-bench", "verify", "lb", "recover", "malicious join", "s3proxy", "nop", "upgrade"]'), inputs.test))
|
||||
if: (!contains(fromJson('["sonobuoy full", "sonobuoy quick", "sonobuoy conformance", "autoscaling", "perf-bench", "verify", "lb", "recover", "malicious join", "s3proxy", "nop", "upgrade"]'), inputs.test))
|
||||
shell: bash
|
||||
run: |
|
||||
echo "::error::Invalid input for test field: ${{ inputs.test }}"
|
||||
@ -348,6 +348,15 @@ runs:
|
||||
artifactNameSuffix: ${{ steps.create-prefix.outputs.prefix }}
|
||||
encryptionSecret: ${{ inputs.encryptionSecret }}
|
||||
|
||||
- name: Run sonobuoy conformance
|
||||
if: inputs.test == 'sonobuoy conformance'
|
||||
uses: ./.github/actions/e2e_sonobuoy
|
||||
with:
|
||||
sonobuoyTestSuiteCmd: "--plugin e2e --mode certified-conformance"
|
||||
kubeconfig: ${{ steps.constellation-create.outputs.kubeconfig }}
|
||||
artifactNameSuffix: ${{ steps.create-prefix.outputs.prefix }}
|
||||
encryptionSecret: ${{ inputs.encryptionSecret }}
|
||||
|
||||
- name: Run autoscaling test
|
||||
if: inputs.test == 'autoscaling'
|
||||
uses: ./.github/actions/e2e_autoscaling
|
||||
|
7
.github/workflows/e2e-test-weekly.yml
vendored
7
.github/workflows/e2e-test-weekly.yml
vendored
@ -78,6 +78,13 @@ jobs:
|
||||
kubernetes-version: "v1.30"
|
||||
clusterCreation: "cli"
|
||||
|
||||
# Sonobuoy conformance test
|
||||
- test: "sonobuoy conformance"
|
||||
refStream: "ref/main/stream/debug/?"
|
||||
attestationVariant: "gcp-sev-snp"
|
||||
kubernetes-version: "v1.30"
|
||||
clusterCreation: "cli"
|
||||
|
||||
# Sonobuoy quick test on all but the latest k8s versions
|
||||
- test: "sonobuoy quick"
|
||||
refStream: "ref/main/stream/debug/?"
|
||||
|
5
.github/workflows/e2e-test.yml
vendored
5
.github/workflows/e2e-test.yml
vendored
@ -26,11 +26,12 @@ on:
|
||||
- "macos-12"
|
||||
default: "ubuntu-22.04"
|
||||
test:
|
||||
description: "The test to run."
|
||||
description: "The test to run. The conformance test is only supported for clusterCreation=cli."
|
||||
type: choice
|
||||
options:
|
||||
- "sonobuoy quick"
|
||||
- "sonobuoy full"
|
||||
- "sonobuoy conformance"
|
||||
- "autoscaling"
|
||||
- "lb"
|
||||
- "perf-bench"
|
||||
@ -82,7 +83,7 @@ on:
|
||||
type: string
|
||||
required: true
|
||||
test:
|
||||
description: "The test to run."
|
||||
description: "The test to run. The conformance test is only supported for clusterCreation=cli."
|
||||
type: string
|
||||
required: true
|
||||
kubernetesVersion:
|
||||
|
Loading…
x
Reference in New Issue
Block a user