mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-25 14:56:18 -05:00
ci: add more filters to e2e failure OpenSearch links (#2358)
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
5cfa91f3db
commit
7aba42baa5
@ -136,6 +136,8 @@ runs:
|
|||||||
--info logcollect.github.runner-os="${{ runner.os }}" \
|
--info logcollect.github.runner-os="${{ runner.os }}" \
|
||||||
--info logcollect.github.e2e-test-payload="${{ inputs.test }}" \
|
--info logcollect.github.e2e-test-payload="${{ inputs.test }}" \
|
||||||
--info logcollect.github.is-debug-cluster=false \
|
--info logcollect.github.is-debug-cluster=false \
|
||||||
|
--info logcollect.github.ref-stream="${{ inputs.refStream }}" \
|
||||||
|
--info logcollect.github.kubernetes-version="${{ inputs.kubernetesVersion }}" \
|
||||||
--info logcollect.deployment-type="debugd" \
|
--info logcollect.deployment-type="debugd" \
|
||||||
--verbosity=-1 \
|
--verbosity=-1 \
|
||||||
--force
|
--force
|
||||||
|
@ -23,6 +23,12 @@ inputs:
|
|||||||
isDebugImage:
|
isDebugImage:
|
||||||
description: "Whether the cluster is a debug cluster / uses a debug image."
|
description: "Whether the cluster is a debug cluster / uses a debug image."
|
||||||
required: true
|
required: true
|
||||||
|
refStream:
|
||||||
|
description: "Reference and stream of the image in use"
|
||||||
|
required: false
|
||||||
|
kubernetesVersion:
|
||||||
|
description: "Kubernetes version of the cluster"
|
||||||
|
required: false
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
@ -46,6 +52,8 @@ runs:
|
|||||||
--fields github.e2e-test-payload="${{ inputs.test }}" \
|
--fields github.e2e-test-payload="${{ inputs.test }}" \
|
||||||
--fields github.isDebugImage="${{ inputs.isDebugImage }}" \
|
--fields github.isDebugImage="${{ inputs.isDebugImage }}" \
|
||||||
--fields github.e2e-test-provider="${{ inputs.provider }}" \
|
--fields github.e2e-test-provider="${{ inputs.provider }}" \
|
||||||
|
--fields github.ref-stream="${{ inputs.refStream }}" \
|
||||||
|
--fields github.kubernetes-version="${{ inputs.kubernetesVersion }}" \
|
||||||
--fields deployment-type="k8s"
|
--fields deployment-type="k8s"
|
||||||
|
|
||||||
# Make sure that helm is installed
|
# Make sure that helm is installed
|
||||||
|
10
.github/actions/e2e_test/action.yml
vendored
10
.github/actions/e2e_test/action.yml
vendored
@ -23,6 +23,8 @@ inputs:
|
|||||||
description: "Version of a released CLI to download, e.g. 'v2.3.0', leave empty to build it."
|
description: "Version of a released CLI to download, e.g. 'v2.3.0', leave empty to build it."
|
||||||
kubernetesVersion:
|
kubernetesVersion:
|
||||||
description: "Kubernetes version to create the cluster from."
|
description: "Kubernetes version to create the cluster from."
|
||||||
|
refStream:
|
||||||
|
description: "RefStream of the image"
|
||||||
regionZone:
|
regionZone:
|
||||||
description: "Region or zone to use for resource creation"
|
description: "Region or zone to use for resource creation"
|
||||||
required: false
|
required: false
|
||||||
@ -51,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]."
|
description: "The test to run. Can currently be one of [sonobuoy full, sonobuoy quick, 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."
|
||||||
@ -85,7 +87,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", "nop"]'), inputs.test))
|
if: (!contains(fromJson('["sonobuoy full", "sonobuoy quick", "autoscaling", "perf-bench", "verify", "lb", "recover", "malicious join", "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 }}"
|
||||||
@ -261,12 +263,14 @@ runs:
|
|||||||
test: ${{ inputs.test }}
|
test: ${{ inputs.test }}
|
||||||
provider: ${{ inputs.cloudProvider }}
|
provider: ${{ inputs.cloudProvider }}
|
||||||
isDebugImage: ${{ inputs.isDebugImage }}
|
isDebugImage: ${{ inputs.isDebugImage }}
|
||||||
|
kubernetesVersion: ${{ inputs.kubernetesVersion }}
|
||||||
|
refStream: ${{ inputs.refStream }}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Test payloads
|
# Test payloads
|
||||||
#
|
#
|
||||||
- name: Nop test payload
|
- name: Nop test payload
|
||||||
if: inputs.test == 'nop'
|
if: (inputs.test == 'nop') || (inputs.test == 'upgrade')
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "::warning::This test has a nop payload. It doesn't run any tests."
|
echo "::warning::This test has a nop payload. It doesn't run any tests."
|
||||||
|
2
.github/actions/notify_failure/action.yml
vendored
2
.github/actions/notify_failure/action.yml
vendored
@ -37,7 +37,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 }}"
|
||||||
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 }})))),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
|
||||||
|
|
||||||
## Metadata
|
## Metadata
|
||||||
|
1
.github/workflows/e2e-test-daily.yml
vendored
1
.github/workflows/e2e-test-daily.yml
vendored
@ -73,6 +73,7 @@ jobs:
|
|||||||
osImage: ${{ matrix.refStream == 'ref/release/stream/stable/?' && needs.find-latest-image.outputs.image-release-stable || needs.find-latest-image.outputs.image-main-debug }}
|
osImage: ${{ matrix.refStream == 'ref/release/stream/stable/?' && needs.find-latest-image.outputs.image-release-stable || needs.find-latest-image.outputs.image-main-debug }}
|
||||||
isDebugImage: ${{ matrix.refStream == 'ref/main/stream/debug/?' }}
|
isDebugImage: ${{ matrix.refStream == 'ref/main/stream/debug/?' }}
|
||||||
cliVersion: ${{ matrix.refStream == 'ref/release/stream/stable/?' && needs.find-latest-image.outputs.image-release-stable || '' }}
|
cliVersion: ${{ matrix.refStream == 'ref/release/stream/stable/?' && needs.find-latest-image.outputs.image-release-stable || '' }}
|
||||||
|
refStream: ${{ matrix.refStream }}
|
||||||
gcpProject: ${{ secrets.GCP_E2E_PROJECT }}
|
gcpProject: ${{ secrets.GCP_E2E_PROJECT }}
|
||||||
gcpClusterCreateServiceAccount: "constellation-e2e-cluster@constellation-331613.iam.gserviceaccount.com"
|
gcpClusterCreateServiceAccount: "constellation-e2e-cluster@constellation-331613.iam.gserviceaccount.com"
|
||||||
gcpIAMCreateServiceAccount: "constellation-iam-e2e@constellation-331613.iam.gserviceaccount.com"
|
gcpIAMCreateServiceAccount: "constellation-iam-e2e@constellation-331613.iam.gserviceaccount.com"
|
||||||
|
1
.github/workflows/e2e-test-weekly.yml
vendored
1
.github/workflows/e2e-test-weekly.yml
vendored
@ -213,6 +213,7 @@ jobs:
|
|||||||
isDebugImage: ${{ matrix.refStream == 'ref/main/stream/debug/?' }}
|
isDebugImage: ${{ matrix.refStream == 'ref/main/stream/debug/?' }}
|
||||||
cliVersion: ${{ matrix.refStream == 'ref/release/stream/stable/?' && needs.find-latest-image.outputs.image-release-stable || '' }}
|
cliVersion: ${{ matrix.refStream == 'ref/release/stream/stable/?' && needs.find-latest-image.outputs.image-release-stable || '' }}
|
||||||
kubernetesVersion: ${{ matrix.kubernetes-version }}
|
kubernetesVersion: ${{ matrix.kubernetes-version }}
|
||||||
|
refStream: ${{ matrix.refStream }}
|
||||||
awsOpenSearchDomain: ${{ secrets.AWS_OPENSEARCH_DOMAIN }}
|
awsOpenSearchDomain: ${{ secrets.AWS_OPENSEARCH_DOMAIN }}
|
||||||
awsOpenSearchUsers: ${{ secrets.AWS_OPENSEARCH_USER }}
|
awsOpenSearchUsers: ${{ secrets.AWS_OPENSEARCH_USER }}
|
||||||
awsOpenSearchPwd: ${{ secrets.AWS_OPENSEARCH_PWD }}
|
awsOpenSearchPwd: ${{ secrets.AWS_OPENSEARCH_PWD }}
|
||||||
|
2
.github/workflows/e2e-upgrade.yml
vendored
2
.github/workflows/e2e-upgrade.yml
vendored
@ -169,7 +169,7 @@ jobs:
|
|||||||
gcpClusterCreateServiceAccount: "constellation-e2e-cluster@constellation-331613.iam.gserviceaccount.com"
|
gcpClusterCreateServiceAccount: "constellation-e2e-cluster@constellation-331613.iam.gserviceaccount.com"
|
||||||
gcpIAMCreateServiceAccount: "constellation-iam-e2e@constellation-331613.iam.gserviceaccount.com"
|
gcpIAMCreateServiceAccount: "constellation-iam-e2e@constellation-331613.iam.gserviceaccount.com"
|
||||||
gcpInClusterServiceAccountKey: ${{ secrets.GCP_CLUSTER_SERVICE_ACCOUNT }}
|
gcpInClusterServiceAccountKey: ${{ secrets.GCP_CLUSTER_SERVICE_ACCOUNT }}
|
||||||
test: "nop"
|
test: "upgrade"
|
||||||
buildBuddyApiKey: ${{ secrets.BUILDBUDDY_ORG_API_KEY }}
|
buildBuddyApiKey: ${{ secrets.BUILDBUDDY_ORG_API_KEY }}
|
||||||
azureClusterCreateCredentials: ${{ secrets.AZURE_E2E_CLUSTER_CREDENTIALS }}
|
azureClusterCreateCredentials: ${{ secrets.AZURE_E2E_CLUSTER_CREDENTIALS }}
|
||||||
azureIAMCreateCredentials: ${{ secrets.AZURE_E2E_IAM_CREDENTIALS }}
|
azureIAMCreateCredentials: ${{ secrets.AZURE_E2E_IAM_CREDENTIALS }}
|
||||||
|
@ -33,6 +33,8 @@ var (
|
|||||||
// available in the metadata. If deployed through K8s in e2e tests with a stable image, this
|
// available in the metadata. If deployed through K8s in e2e tests with a stable image, this
|
||||||
// is where the cloud provider is saved in.
|
// is where the cloud provider is saved in.
|
||||||
"github.e2e-test-provider": {},
|
"github.e2e-test-provider": {},
|
||||||
|
"github.ref-stream": {},
|
||||||
|
"github.kubernetes-version": {},
|
||||||
"deployment-type": {}, // deployment type, e.g. "debugd", "k8s"
|
"deployment-type": {}, // deployment type, e.g. "debugd", "k8s"
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user