mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-25 15:39:37 -05:00
ci: mark self-managed infrastructure tests (#2537)
* mark self-managed infrastructure tests Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * add TODO --------- Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>
This commit is contained in:
parent
5f05810ad7
commit
8d08ace0b5
4
.github/actions/cdbg_deploy/action.yml
vendored
4
.github/actions/cdbg_deploy/action.yml
vendored
@ -20,6 +20,9 @@ inputs:
|
|||||||
refStream:
|
refStream:
|
||||||
description: "The refStream of the image the test runs on."
|
description: "The refStream of the image the test runs on."
|
||||||
required: true
|
required: true
|
||||||
|
selfManagedInfra:
|
||||||
|
description: "Use self-managed infrastructure instead of infrastructure created by the Constellation CLI."
|
||||||
|
default: "false"
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
@ -94,6 +97,7 @@ runs:
|
|||||||
--info logcollect.github.is-debug-cluster=false \
|
--info logcollect.github.is-debug-cluster=false \
|
||||||
--info logcollect.github.ref-stream="${{ inputs.refStream }}" \
|
--info logcollect.github.ref-stream="${{ inputs.refStream }}" \
|
||||||
--info logcollect.github.kubernetes-version="${{ inputs.kubernetesVersion }}" \
|
--info logcollect.github.kubernetes-version="${{ inputs.kubernetesVersion }}" \
|
||||||
|
--info logcollect.github.self-managed-infra="${{ inputs.selfManagedInfra }}" \
|
||||||
--info logcollect.deployment-type="debugd" \
|
--info logcollect.deployment-type="debugd" \
|
||||||
--verbosity=-1 \
|
--verbosity=-1 \
|
||||||
--force
|
--force
|
||||||
|
@ -156,6 +156,7 @@ runs:
|
|||||||
azureIAMCreateCredentials: ${{ inputs.azureIAMCreateCredentials }}
|
azureIAMCreateCredentials: ${{ inputs.azureIAMCreateCredentials }}
|
||||||
refStream: ${{ inputs.refStream }}
|
refStream: ${{ inputs.refStream }}
|
||||||
kubernetesVersion: ${{ inputs.kubernetesVersion }}
|
kubernetesVersion: ${{ inputs.kubernetesVersion }}
|
||||||
|
selfManagedInfra: ${{ inputs.selfManagedInfra }}
|
||||||
|
|
||||||
- name: Constellation init
|
- name: Constellation init
|
||||||
id: constellation-init
|
id: constellation-init
|
||||||
|
@ -29,6 +29,9 @@ inputs:
|
|||||||
kubernetesVersion:
|
kubernetesVersion:
|
||||||
description: "Kubernetes version of the cluster"
|
description: "Kubernetes version of the cluster"
|
||||||
required: false
|
required: false
|
||||||
|
selfManagedInfra:
|
||||||
|
description: "Use self-managed infrastructure instead of infrastructure created by the Constellation CLI."
|
||||||
|
default: "false"
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
@ -54,6 +57,7 @@ runs:
|
|||||||
--fields github.e2e-test-provider="${{ inputs.provider }}" \
|
--fields github.e2e-test-provider="${{ inputs.provider }}" \
|
||||||
--fields github.ref-stream="${{ inputs.refStream }}" \
|
--fields github.ref-stream="${{ inputs.refStream }}" \
|
||||||
--fields github.kubernetes-version="${{ inputs.kubernetesVersion }}" \
|
--fields github.kubernetes-version="${{ inputs.kubernetesVersion }}" \
|
||||||
|
--fields github.self-managed-infra="${{ inputs.selfManagedInfra }}" \
|
||||||
--fields deployment-type="k8s"
|
--fields deployment-type="k8s"
|
||||||
|
|
||||||
# Make sure that helm is installed
|
# Make sure that helm is installed
|
||||||
|
1
.github/actions/e2e_test/action.yml
vendored
1
.github/actions/e2e_test/action.yml
vendored
@ -279,6 +279,7 @@ runs:
|
|||||||
isDebugImage: ${{ inputs.isDebugImage }}
|
isDebugImage: ${{ inputs.isDebugImage }}
|
||||||
kubernetesVersion: ${{ inputs.kubernetesVersion }}
|
kubernetesVersion: ${{ inputs.kubernetesVersion }}
|
||||||
refStream: ${{ inputs.refStream }}
|
refStream: ${{ inputs.refStream }}
|
||||||
|
selfManagedInfra: ${{ inputs.selfManagedInfra }}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Test payloads
|
# Test payloads
|
||||||
|
11
.github/actions/notify_failure/action.yml
vendored
11
.github/actions/notify_failure/action.yml
vendored
@ -20,6 +20,9 @@ inputs:
|
|||||||
kubernetesVersion:
|
kubernetesVersion:
|
||||||
description: "Kubernetes version"
|
description: "Kubernetes version"
|
||||||
required: false
|
required: false
|
||||||
|
selfManagedInfra:
|
||||||
|
description: "Use self-managed infrastructure instead of infrastructure created by the Constellation CLI."
|
||||||
|
default: "false"
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
@ -37,6 +40,7 @@ runs:
|
|||||||
run: |
|
run: |
|
||||||
# TODO(katexochen): add job number when possible
|
# TODO(katexochen): add job number when possible
|
||||||
jobURL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
|
jobURL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
|
||||||
|
# TODO(msanft): Add Self-managed param once logcollection is fixed.
|
||||||
opensearchURL="https://search-e2e-logs-y46renozy42lcojbvrt3qq7csm.eu-central-1.es.amazonaws.com/_dashboards/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-7d,to:now))&_a=(columns:!(metadata.name,systemd.unit,kubernetes.pod_name,message),filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:'74517cf0-6442-11ed-acf1-47dda8fdfbbb',key:metadata.github.e2e-test-provider,negate:!f,params:(query:${{ inputs.provider }}),type:phrase),query:(match_phrase:(metadata.github.e2e-test-provider:${{ inputs.provider }}))),('$state':(store:appState),meta:(alias:!n,disabled:!f,index:'74517cf0-6442-11ed-acf1-47dda8fdfbbb',key:metadata.github.run-id,negate:!f,params:(query:${{ github.run_id }}),type:phrase),query:(match_phrase:(metadata.github.run-id:${{ github.run_id }}))),('$state':(store:appState),meta:(alias:!n,disabled:!f,index:'74517cf0-6442-11ed-acf1-47dda8fdfbbb',key:metadata.github.ref-stream.keyword,negate:!f,params:(query:'${{ inputs.refStream }}'),type:phrase),query:(match_phrase:(metadata.github.ref-stream.keyword:'${{ inputs.refStream }}'))),('$state':(store:appState),meta:(alias:!n,disabled:!f,index:'74517cf0-6442-11ed-acf1-47dda8fdfbbb',key:metadata.github.kubernetes-version.keyword,negate:!f,params:(query:'${{ inputs.kubernetesVersion }}'),type:phrase),query:(match_phrase:(metadata.github.kubernetes-version.keyword:'${{ inputs.kubernetesVersion }}'))),('$state':(store:appState),meta:(alias:!n,disabled:!f,index:'74517cf0-6442-11ed-acf1-47dda8fdfbbb',key:metadata.github.e2e-test-payload,negate:!f,params:(query:'${{ inputs.test }}'),type:phrase),query:(match_phrase:(metadata.github.e2e-test-payload:'${{ inputs.test }}')))),index:'74517cf0-6442-11ed-acf1-47dda8fdfbbb',interval:auto,query:(language:kuery,query:''),sort:!())"
|
opensearchURL="https://search-e2e-logs-y46renozy42lcojbvrt3qq7csm.eu-central-1.es.amazonaws.com/_dashboards/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-7d,to:now))&_a=(columns:!(metadata.name,systemd.unit,kubernetes.pod_name,message),filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:'74517cf0-6442-11ed-acf1-47dda8fdfbbb',key:metadata.github.e2e-test-provider,negate:!f,params:(query:${{ inputs.provider }}),type:phrase),query:(match_phrase:(metadata.github.e2e-test-provider:${{ inputs.provider }}))),('$state':(store:appState),meta:(alias:!n,disabled:!f,index:'74517cf0-6442-11ed-acf1-47dda8fdfbbb',key:metadata.github.run-id,negate:!f,params:(query:${{ github.run_id }}),type:phrase),query:(match_phrase:(metadata.github.run-id:${{ github.run_id }}))),('$state':(store:appState),meta:(alias:!n,disabled:!f,index:'74517cf0-6442-11ed-acf1-47dda8fdfbbb',key:metadata.github.ref-stream.keyword,negate:!f,params:(query:'${{ inputs.refStream }}'),type:phrase),query:(match_phrase:(metadata.github.ref-stream.keyword:'${{ inputs.refStream }}'))),('$state':(store:appState),meta:(alias:!n,disabled:!f,index:'74517cf0-6442-11ed-acf1-47dda8fdfbbb',key:metadata.github.kubernetes-version.keyword,negate:!f,params:(query:'${{ inputs.kubernetesVersion }}'),type:phrase),query:(match_phrase:(metadata.github.kubernetes-version.keyword:'${{ inputs.kubernetesVersion }}'))),('$state':(store:appState),meta:(alias:!n,disabled:!f,index:'74517cf0-6442-11ed-acf1-47dda8fdfbbb',key:metadata.github.e2e-test-payload,negate:!f,params:(query:'${{ inputs.test }}'),type:phrase),query:(match_phrase:(metadata.github.e2e-test-payload:'${{ inputs.test }}')))),index:'74517cf0-6442-11ed-acf1-47dda8fdfbbb',interval:auto,query:(language:kuery,query:''),sort:!())"
|
||||||
cat << EOF > header.md
|
cat << EOF > header.md
|
||||||
|
|
||||||
@ -52,7 +56,11 @@ runs:
|
|||||||
DATE=$(date '+%F %a %T %Z') yq -iP '.issueTitle = env(DATE)' metadata.json
|
DATE=$(date '+%F %a %T %Z') yq -iP '.issueTitle = env(DATE)' metadata.json
|
||||||
yq -iP '.assignees += [ "${{ steps.pick-assignee.outputs.assignee }}" ]' metadata.json
|
yq -iP '.assignees += [ "${{ steps.pick-assignee.outputs.assignee }}" ]' metadata.json
|
||||||
yq -iP '.fields.cloudProvider = "${{ inputs.provider }}"' metadata.json
|
yq -iP '.fields.cloudProvider = "${{ inputs.provider }}"' metadata.json
|
||||||
yq -iP '.fields.test = "${{ inputs.test }}"' metadata.json
|
if [[ ${{ inputs.selfManagedInfra }} == 'true' ]]; then
|
||||||
|
yq -iP '.fields.test = "${{ inputs.test }} (Self-managed infrastructure)"' metadata.json
|
||||||
|
else
|
||||||
|
yq -iP '.fields.test = "${{ inputs.test }}"' metadata.json
|
||||||
|
fi
|
||||||
yq -iP '.fields.workflow = "${{ github.workflow }}"' metadata.json
|
yq -iP '.fields.workflow = "${{ github.workflow }}"' metadata.json
|
||||||
if [[ -n "${{ inputs.kubernetesVersion }}" ]]; then
|
if [[ -n "${{ inputs.kubernetesVersion }}" ]]; then
|
||||||
yq -iP '.fields.kubernetesVersion = "${{ inputs.kubernetesVersion }}"' metadata.json
|
yq -iP '.fields.kubernetesVersion = "${{ inputs.kubernetesVersion }}"' metadata.json
|
||||||
@ -60,6 +68,7 @@ runs:
|
|||||||
if [[ -n "${{ inputs.refStream }}" ]]; then
|
if [[ -n "${{ inputs.refStream }}" ]]; then
|
||||||
yq -iP '.fields.refStream = "${{ inputs.refStream }}"' metadata.json
|
yq -iP '.fields.refStream = "${{ inputs.refStream }}"' metadata.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat metadata.json
|
cat metadata.json
|
||||||
|
|
||||||
issueURL=$(
|
issueURL=$(
|
||||||
|
1
.github/workflows/e2e-test-daily.yml
vendored
1
.github/workflows/e2e-test-daily.yml
vendored
@ -128,6 +128,7 @@ jobs:
|
|||||||
test: ${{ matrix.test }}
|
test: ${{ matrix.test }}
|
||||||
kubernetesVersion: ${{ matrix.kubernetesVersion }}
|
kubernetesVersion: ${{ matrix.kubernetesVersion }}
|
||||||
provider: ${{ matrix.provider }}
|
provider: ${{ matrix.provider }}
|
||||||
|
selfManagedInfra: "false"
|
||||||
|
|
||||||
e2e-mini:
|
e2e-mini:
|
||||||
name: Run miniconstellation E2E test
|
name: Run miniconstellation E2E test
|
||||||
|
1
.github/workflows/e2e-test-weekly.yml
vendored
1
.github/workflows/e2e-test-weekly.yml
vendored
@ -281,6 +281,7 @@ jobs:
|
|||||||
test: ${{ matrix.test }}
|
test: ${{ matrix.test }}
|
||||||
kubernetesVersion: ${{ matrix.kubernetes-version }}
|
kubernetesVersion: ${{ matrix.kubernetes-version }}
|
||||||
provider: ${{ matrix.provider }}
|
provider: ${{ matrix.provider }}
|
||||||
|
selfManagedInfra: ${{ matrix.selfManagedInfra == 'true' }}
|
||||||
|
|
||||||
- name: Always upload Terraform logs
|
- name: Always upload Terraform logs
|
||||||
if: always()
|
if: always()
|
||||||
|
Loading…
Reference in New Issue
Block a user