Skip to content

Commit

Permalink
Fix abort workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Portnov <[email protected]>
  • Loading branch information
Taior committed Nov 13, 2024
1 parent 0e5a1b0 commit 84d73ea
Show file tree
Hide file tree
Showing 12 changed files with 107 additions and 126 deletions.
2 changes: 1 addition & 1 deletion .github/ci_templates/e2e_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ check_e2e_labels:
# <template: e2e_run_job_template>
{!{ $ctx.jobID }!}:
name: "{!{ $ctx.jobName }!}"
if: ${{ fromJson(inputs.test_config).cri == '{!{ $ctx.cri }!}' && github.event.inputs.k8s_version == '{!{ $ctx.kubernetesVersion }!}' && github.event.inputs.layout == '{!{ $ctx.layout }!}' }}
if: ${{ fromJson(inputs.test_config).cri == '{!{ $ctx.cri }!}' && fromJson(inputs.test_config).ver == '{!{ $ctx.kubernetesVersion }!}' && github.event.inputs.layout == '{!{ $ctx.layout }!}' }}
env:
PROVIDER: {!{ $ctx.providerName }!}
CRI: {!{ $ctx.criName }!}
Expand Down
5 changes: 3 additions & 2 deletions .github/scripts/js/e2e/slash_workflow_command.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ function tryParseAbortE2eCluster({argv, context, core}){
const layout = ranForSplit[1];
const cri = ranForSplit[2];
const k8s_version = ranForSplit[3];
const edition = 'fe';
const k8sSlug = k8s_version.replace('.', '_');
const state_artifact_name = `failed_cluster_state_${provider}_${cri}_${k8sSlug}`;
const test_config = JSON.stringify({ cri: cri, ver: k8s_version, edition: edition })

const inputs = {
run_id,
Expand All @@ -71,8 +73,7 @@ function tryParseAbortE2eCluster({argv, context, core}){
ssh_master_connection_string: sshConnectStr,

layout,
cri,
k8s_version,
test_config,
issue_number: prNumber.toString(),
};

Expand Down
10 changes: 4 additions & 6 deletions .github/workflow_templates/e2e.abort.multi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,10 @@ on:
layout:
description: 'Cloud provider layout which was tested'
required: true
cri:
description: 'CRI which was tested'
required: true
k8s_version:
description: 'CRI which was tested'
required: true
test_config:
description: 'JSON string of parameters which was tested'
required: false
default: '{"cri":"Containerd","ver":"1.27","edition":"FE"}'
# needs for run correct installer image for abort
installer_image_path:
description: 'Installer image without host'
Expand Down
24 changes: 11 additions & 13 deletions .github/workflows/e2e-abort-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ on:
layout:
description: 'Cloud provider layout which was tested'
required: true
cri:
description: 'CRI which was tested'
required: true
k8s_version:
description: 'CRI which was tested'
required: true
test_config:
description: 'JSON string of parameters which was tested'
required: false
default: '{"cri":"Containerd","ver":"1.27","edition":"FE"}'
# needs for run correct installer image for abort
installer_image_path:
description: 'Installer image without host'
Expand Down Expand Up @@ -108,7 +106,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_1_26:
name: "destroy cluster: AWS, Containerd, Kubernetes 1.26"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.26' && github.event.inputs.layout == 'WithoutNAT' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == '1.26' && github.event.inputs.layout == 'WithoutNAT' }}
env:
PROVIDER: AWS
CRI: Containerd
Expand Down Expand Up @@ -398,7 +396,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_1_27:
name: "destroy cluster: AWS, Containerd, Kubernetes 1.27"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.27' && github.event.inputs.layout == 'WithoutNAT' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == '1.27' && github.event.inputs.layout == 'WithoutNAT' }}
env:
PROVIDER: AWS
CRI: Containerd
Expand Down Expand Up @@ -688,7 +686,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_1_28:
name: "destroy cluster: AWS, Containerd, Kubernetes 1.28"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.28' && github.event.inputs.layout == 'WithoutNAT' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == '1.28' && github.event.inputs.layout == 'WithoutNAT' }}
env:
PROVIDER: AWS
CRI: Containerd
Expand Down Expand Up @@ -978,7 +976,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_1_29:
name: "destroy cluster: AWS, Containerd, Kubernetes 1.29"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.29' && github.event.inputs.layout == 'WithoutNAT' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == '1.29' && github.event.inputs.layout == 'WithoutNAT' }}
env:
PROVIDER: AWS
CRI: Containerd
Expand Down Expand Up @@ -1268,7 +1266,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_1_30:
name: "destroy cluster: AWS, Containerd, Kubernetes 1.30"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.30' && github.event.inputs.layout == 'WithoutNAT' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == '1.30' && github.event.inputs.layout == 'WithoutNAT' }}
env:
PROVIDER: AWS
CRI: Containerd
Expand Down Expand Up @@ -1558,7 +1556,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_1_31:
name: "destroy cluster: AWS, Containerd, Kubernetes 1.31"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.31' && github.event.inputs.layout == 'WithoutNAT' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == '1.31' && github.event.inputs.layout == 'WithoutNAT' }}
env:
PROVIDER: AWS
CRI: Containerd
Expand Down Expand Up @@ -1848,7 +1846,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_automatic:
name: "destroy cluster: AWS, Containerd, Kubernetes Automatic"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == 'Automatic' && github.event.inputs.layout == 'WithoutNAT' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == 'Automatic' && github.event.inputs.layout == 'WithoutNAT' }}
env:
PROVIDER: AWS
CRI: Containerd
Expand Down
24 changes: 11 additions & 13 deletions .github/workflows/e2e-abort-azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ on:
layout:
description: 'Cloud provider layout which was tested'
required: true
cri:
description: 'CRI which was tested'
required: true
k8s_version:
description: 'CRI which was tested'
required: true
test_config:
description: 'JSON string of parameters which was tested'
required: false
default: '{"cri":"Containerd","ver":"1.27","edition":"FE"}'
# needs for run correct installer image for abort
installer_image_path:
description: 'Installer image without host'
Expand Down Expand Up @@ -108,7 +106,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_1_26:
name: "destroy cluster: Azure, Containerd, Kubernetes 1.26"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.26' && github.event.inputs.layout == 'Standard' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == '1.26' && github.event.inputs.layout == 'Standard' }}
env:
PROVIDER: Azure
CRI: Containerd
Expand Down Expand Up @@ -402,7 +400,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_1_27:
name: "destroy cluster: Azure, Containerd, Kubernetes 1.27"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.27' && github.event.inputs.layout == 'Standard' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == '1.27' && github.event.inputs.layout == 'Standard' }}
env:
PROVIDER: Azure
CRI: Containerd
Expand Down Expand Up @@ -696,7 +694,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_1_28:
name: "destroy cluster: Azure, Containerd, Kubernetes 1.28"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.28' && github.event.inputs.layout == 'Standard' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == '1.28' && github.event.inputs.layout == 'Standard' }}
env:
PROVIDER: Azure
CRI: Containerd
Expand Down Expand Up @@ -990,7 +988,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_1_29:
name: "destroy cluster: Azure, Containerd, Kubernetes 1.29"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.29' && github.event.inputs.layout == 'Standard' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == '1.29' && github.event.inputs.layout == 'Standard' }}
env:
PROVIDER: Azure
CRI: Containerd
Expand Down Expand Up @@ -1284,7 +1282,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_1_30:
name: "destroy cluster: Azure, Containerd, Kubernetes 1.30"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.30' && github.event.inputs.layout == 'Standard' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == '1.30' && github.event.inputs.layout == 'Standard' }}
env:
PROVIDER: Azure
CRI: Containerd
Expand Down Expand Up @@ -1578,7 +1576,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_1_31:
name: "destroy cluster: Azure, Containerd, Kubernetes 1.31"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.31' && github.event.inputs.layout == 'Standard' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == '1.31' && github.event.inputs.layout == 'Standard' }}
env:
PROVIDER: Azure
CRI: Containerd
Expand Down Expand Up @@ -1872,7 +1870,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_automatic:
name: "destroy cluster: Azure, Containerd, Kubernetes Automatic"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == 'Automatic' && github.event.inputs.layout == 'Standard' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == 'Automatic' && github.event.inputs.layout == 'Standard' }}
env:
PROVIDER: Azure
CRI: Containerd
Expand Down
24 changes: 11 additions & 13 deletions .github/workflows/e2e-abort-eks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ on:
layout:
description: 'Cloud provider layout which was tested'
required: true
cri:
description: 'CRI which was tested'
required: true
k8s_version:
description: 'CRI which was tested'
required: true
test_config:
description: 'JSON string of parameters which was tested'
required: false
default: '{"cri":"Containerd","ver":"1.27","edition":"FE"}'
# needs for run correct installer image for abort
installer_image_path:
description: 'Installer image without host'
Expand Down Expand Up @@ -108,7 +106,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_1_26:
name: "destroy cluster: EKS, Containerd, Kubernetes 1.26"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.26' && github.event.inputs.layout == 'WithoutNAT' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == '1.26' && github.event.inputs.layout == 'WithoutNAT' }}
env:
PROVIDER: EKS
CRI: Containerd
Expand Down Expand Up @@ -401,7 +399,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_1_27:
name: "destroy cluster: EKS, Containerd, Kubernetes 1.27"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.27' && github.event.inputs.layout == 'WithoutNAT' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == '1.27' && github.event.inputs.layout == 'WithoutNAT' }}
env:
PROVIDER: EKS
CRI: Containerd
Expand Down Expand Up @@ -694,7 +692,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_1_28:
name: "destroy cluster: EKS, Containerd, Kubernetes 1.28"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.28' && github.event.inputs.layout == 'WithoutNAT' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == '1.28' && github.event.inputs.layout == 'WithoutNAT' }}
env:
PROVIDER: EKS
CRI: Containerd
Expand Down Expand Up @@ -987,7 +985,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_1_29:
name: "destroy cluster: EKS, Containerd, Kubernetes 1.29"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.29' && github.event.inputs.layout == 'WithoutNAT' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == '1.29' && github.event.inputs.layout == 'WithoutNAT' }}
env:
PROVIDER: EKS
CRI: Containerd
Expand Down Expand Up @@ -1280,7 +1278,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_1_30:
name: "destroy cluster: EKS, Containerd, Kubernetes 1.30"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.30' && github.event.inputs.layout == 'WithoutNAT' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == '1.30' && github.event.inputs.layout == 'WithoutNAT' }}
env:
PROVIDER: EKS
CRI: Containerd
Expand Down Expand Up @@ -1573,7 +1571,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_1_31:
name: "destroy cluster: EKS, Containerd, Kubernetes 1.31"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.31' && github.event.inputs.layout == 'WithoutNAT' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == '1.31' && github.event.inputs.layout == 'WithoutNAT' }}
env:
PROVIDER: EKS
CRI: Containerd
Expand Down Expand Up @@ -1866,7 +1864,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_automatic:
name: "destroy cluster: EKS, Containerd, Kubernetes Automatic"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == 'Automatic' && github.event.inputs.layout == 'WithoutNAT' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == 'Automatic' && github.event.inputs.layout == 'WithoutNAT' }}
env:
PROVIDER: EKS
CRI: Containerd
Expand Down
24 changes: 11 additions & 13 deletions .github/workflows/e2e-abort-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ on:
layout:
description: 'Cloud provider layout which was tested'
required: true
cri:
description: 'CRI which was tested'
required: true
k8s_version:
description: 'CRI which was tested'
required: true
test_config:
description: 'JSON string of parameters which was tested'
required: false
default: '{"cri":"Containerd","ver":"1.27","edition":"FE"}'
# needs for run correct installer image for abort
installer_image_path:
description: 'Installer image without host'
Expand Down Expand Up @@ -108,7 +106,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_1_26:
name: "destroy cluster: GCP, Containerd, Kubernetes 1.26"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.26' && github.event.inputs.layout == 'WithoutNAT' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == '1.26' && github.event.inputs.layout == 'WithoutNAT' }}
env:
PROVIDER: GCP
CRI: Containerd
Expand Down Expand Up @@ -396,7 +394,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_1_27:
name: "destroy cluster: GCP, Containerd, Kubernetes 1.27"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.27' && github.event.inputs.layout == 'WithoutNAT' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == '1.27' && github.event.inputs.layout == 'WithoutNAT' }}
env:
PROVIDER: GCP
CRI: Containerd
Expand Down Expand Up @@ -684,7 +682,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_1_28:
name: "destroy cluster: GCP, Containerd, Kubernetes 1.28"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.28' && github.event.inputs.layout == 'WithoutNAT' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == '1.28' && github.event.inputs.layout == 'WithoutNAT' }}
env:
PROVIDER: GCP
CRI: Containerd
Expand Down Expand Up @@ -972,7 +970,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_1_29:
name: "destroy cluster: GCP, Containerd, Kubernetes 1.29"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.29' && github.event.inputs.layout == 'WithoutNAT' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == '1.29' && github.event.inputs.layout == 'WithoutNAT' }}
env:
PROVIDER: GCP
CRI: Containerd
Expand Down Expand Up @@ -1260,7 +1258,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_1_30:
name: "destroy cluster: GCP, Containerd, Kubernetes 1.30"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.30' && github.event.inputs.layout == 'WithoutNAT' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == '1.30' && github.event.inputs.layout == 'WithoutNAT' }}
env:
PROVIDER: GCP
CRI: Containerd
Expand Down Expand Up @@ -1548,7 +1546,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_1_31:
name: "destroy cluster: GCP, Containerd, Kubernetes 1.31"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.31' && github.event.inputs.layout == 'WithoutNAT' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == '1.31' && github.event.inputs.layout == 'WithoutNAT' }}
env:
PROVIDER: GCP
CRI: Containerd
Expand Down Expand Up @@ -1836,7 +1834,7 @@ jobs:
# <template: e2e_run_job_template>
run_containerd_automatic:
name: "destroy cluster: GCP, Containerd, Kubernetes Automatic"
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == 'Automatic' && github.event.inputs.layout == 'WithoutNAT' }}
if: ${{ fromJson(inputs.test_config).cri == 'containerd' && fromJson(inputs.test_config).ver == 'Automatic' && github.event.inputs.layout == 'WithoutNAT' }}
env:
PROVIDER: GCP
CRI: Containerd
Expand Down
Loading

0 comments on commit 84d73ea

Please sign in to comment.