mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-08 19:08:40 -05:00
ci: add conformance test to weekly (#3230)
This commit is contained in:
parent
b781a75af7
commit
212aa64f10
@ -192,6 +192,13 @@ runs:
|
|||||||
run: |
|
run: |
|
||||||
echo "flag=--force" | tee -a $GITHUB_OUTPUT
|
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)
|
- name: Constellation apply (Terraform)
|
||||||
id: constellation-apply-terraform
|
id: constellation-apply-terraform
|
||||||
if: inputs.clusterCreation == 'terraform'
|
if: inputs.clusterCreation == 'terraform'
|
||||||
@ -204,7 +211,7 @@ runs:
|
|||||||
if: inputs.clusterCreation != 'terraform'
|
if: inputs.clusterCreation != 'terraform'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
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
|
- name: Get kubeconfig
|
||||||
id: 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
|
||||||
sonobuoy results *_sonobuoy_*.tar.gz --mode detailed | jq 'select(.status!="passed")' | jq 'select(.status!="skipped")' || true
|
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
|
- name: Upload test results
|
||||||
if: always() && !env.ACT
|
if: always() && !env.ACT
|
||||||
uses: ./.github/actions/artifact_upload
|
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."
|
description: "Azure credentials authorized to create an IAM configuration."
|
||||||
required: true
|
required: true
|
||||||
test:
|
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
|
required: true
|
||||||
sonobuoyTestSuiteCmd:
|
sonobuoyTestSuiteCmd:
|
||||||
description: "The sonobuoy test suite to run."
|
description: "The sonobuoy test suite to run."
|
||||||
@ -103,7 +103,7 @@ runs:
|
|||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Check input
|
- 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
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "::error::Invalid input for test field: ${{ inputs.test }}"
|
echo "::error::Invalid input for test field: ${{ inputs.test }}"
|
||||||
@ -348,6 +348,15 @@ runs:
|
|||||||
artifactNameSuffix: ${{ steps.create-prefix.outputs.prefix }}
|
artifactNameSuffix: ${{ steps.create-prefix.outputs.prefix }}
|
||||||
encryptionSecret: ${{ inputs.encryptionSecret }}
|
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
|
- name: Run autoscaling test
|
||||||
if: inputs.test == 'autoscaling'
|
if: inputs.test == 'autoscaling'
|
||||||
uses: ./.github/actions/e2e_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"
|
kubernetes-version: "v1.30"
|
||||||
clusterCreation: "cli"
|
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
|
# Sonobuoy quick test on all but the latest k8s versions
|
||||||
- test: "sonobuoy quick"
|
- test: "sonobuoy quick"
|
||||||
refStream: "ref/main/stream/debug/?"
|
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"
|
- "macos-12"
|
||||||
default: "ubuntu-22.04"
|
default: "ubuntu-22.04"
|
||||||
test:
|
test:
|
||||||
description: "The test to run."
|
description: "The test to run. The conformance test is only supported for clusterCreation=cli."
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
- "sonobuoy quick"
|
- "sonobuoy quick"
|
||||||
- "sonobuoy full"
|
- "sonobuoy full"
|
||||||
|
- "sonobuoy conformance"
|
||||||
- "autoscaling"
|
- "autoscaling"
|
||||||
- "lb"
|
- "lb"
|
||||||
- "perf-bench"
|
- "perf-bench"
|
||||||
@ -82,7 +83,7 @@ on:
|
|||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
test:
|
test:
|
||||||
description: "The test to run."
|
description: "The test to run. The conformance test is only supported for clusterCreation=cli."
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
kubernetesVersion:
|
kubernetesVersion:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user