From 9eed3d0644d53e0c86bc9e298b409ffb5988a5c4 Mon Sep 17 00:00:00 2001 From: Alexey Paschenko Date: Thu, 16 Jan 2025 16:16:42 +0300 Subject: [PATCH] chore: Add create log artifacts when e2e test fails Signed-off-by: Alexey Paschenko --- .github/ci_templates/e2e_tests.yml | 14 ++++ .github/workflows/e2e-aws.yml | 91 ++++++++++++++++++++++++++ .github/workflows/e2e-azure.yml | 91 ++++++++++++++++++++++++++ .github/workflows/e2e-daily.yml | 36 ++++++++++ .github/workflows/e2e-eks.yml | 91 ++++++++++++++++++++++++++ .github/workflows/e2e-gcp.yml | 91 ++++++++++++++++++++++++++ .github/workflows/e2e-openstack.yml | 91 ++++++++++++++++++++++++++ .github/workflows/e2e-static.yml | 91 ++++++++++++++++++++++++++ .github/workflows/e2e-vcd.yml | 91 ++++++++++++++++++++++++++ .github/workflows/e2e-vsphere.yml | 91 ++++++++++++++++++++++++++ .github/workflows/e2e-yandex-cloud.yml | 91 ++++++++++++++++++++++++++ 11 files changed, 869 insertions(+) diff --git a/.github/ci_templates/e2e_tests.yml b/.github/ci_templates/e2e_tests.yml index 53ff123967..e449148982 100644 --- a/.github/ci_templates/e2e_tests.yml +++ b/.github/ci_templates/e2e_tests.yml @@ -540,6 +540,20 @@ check_e2e_labels: INITIAL_IMAGE_TAG: ${{ steps.setup.outputs.initial-image-tag }} {!{- tmpl.Exec "e2e_run_template" (slice .provider "run-test" (coll.Has $ctx "manualRun") ) | strings.Indent 6 }!} +################################################### Collect logs when e2e failed ########################### + {!{- if coll.Has $ctx "manualRun" }!} + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + {!{- end }!} +################################################### Collect logs when e2e failed ########################### + {!{- if coll.Has $ctx "manualRun" }!} - name: Read connection string if: ${{ failure() || cancelled() }} diff --git a/.github/workflows/e2e-aws.yml b/.github/workflows/e2e-aws.yml index 96e3fd8315..7bdd53f7ab 100644 --- a/.github/workflows/e2e-aws.yml +++ b/.github/workflows/e2e-aws.yml @@ -529,6 +529,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -1024,6 +1037,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -1519,6 +1545,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -2014,6 +2053,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -2509,6 +2561,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -3004,6 +3069,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -3499,6 +3577,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster diff --git a/.github/workflows/e2e-azure.yml b/.github/workflows/e2e-azure.yml index 75f862b81c..13f8b8e1a1 100644 --- a/.github/workflows/e2e-azure.yml +++ b/.github/workflows/e2e-azure.yml @@ -533,6 +533,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -1036,6 +1049,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -1539,6 +1565,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -2042,6 +2081,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -2545,6 +2597,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -3048,6 +3113,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -3551,6 +3629,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster diff --git a/.github/workflows/e2e-daily.yml b/.github/workflows/e2e-daily.yml index 5a830ee2cb..5b247cba5d 100644 --- a/.github/workflows/e2e-daily.yml +++ b/.github/workflows/e2e-daily.yml @@ -422,6 +422,10 @@ jobs: # + ################################################### Collect logs when e2e failed ########################### + + ################################################### Collect logs when e2e failed ########################### + - name: Cleanup bootstrapped cluster if: always() id: cleanup_cluster @@ -930,6 +934,10 @@ jobs: # + ################################################### Collect logs when e2e failed ########################### + + ################################################### Collect logs when e2e failed ########################### + - name: Cleanup bootstrapped cluster if: always() id: cleanup_cluster @@ -1395,6 +1403,10 @@ jobs: # + ################################################### Collect logs when e2e failed ########################### + + ################################################### Collect logs when e2e failed ########################### + - name: Cleanup bootstrapped cluster if: always() id: cleanup_cluster @@ -1859,6 +1871,10 @@ jobs: # + ################################################### Collect logs when e2e failed ########################### + + ################################################### Collect logs when e2e failed ########################### + - name: Cleanup bootstrapped cluster if: always() id: cleanup_cluster @@ -2321,6 +2337,10 @@ jobs: # + ################################################### Collect logs when e2e failed ########################### + + ################################################### Collect logs when e2e failed ########################### + - name: Cleanup bootstrapped cluster if: always() id: cleanup_cluster @@ -2783,6 +2803,10 @@ jobs: # + ################################################### Collect logs when e2e failed ########################### + + ################################################### Collect logs when e2e failed ########################### + - name: Cleanup bootstrapped cluster if: always() id: cleanup_cluster @@ -3243,6 +3267,10 @@ jobs: # + ################################################### Collect logs when e2e failed ########################### + + ################################################### Collect logs when e2e failed ########################### + - name: Cleanup bootstrapped cluster if: always() id: cleanup_cluster @@ -3711,6 +3739,10 @@ jobs: # + ################################################### Collect logs when e2e failed ########################### + + ################################################### Collect logs when e2e failed ########################### + - name: Cleanup bootstrapped cluster if: always() id: cleanup_cluster @@ -4177,6 +4209,10 @@ jobs: # + ################################################### Collect logs when e2e failed ########################### + + ################################################### Collect logs when e2e failed ########################### + - name: Cleanup bootstrapped cluster if: always() id: cleanup_cluster diff --git a/.github/workflows/e2e-eks.yml b/.github/workflows/e2e-eks.yml index be21394356..bdd7ab6975 100644 --- a/.github/workflows/e2e-eks.yml +++ b/.github/workflows/e2e-eks.yml @@ -575,6 +575,19 @@ jobs: /deckhouse/testing/cloud_layouts/script_eks.sh wait_cluster_ready" # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -1115,6 +1128,19 @@ jobs: /deckhouse/testing/cloud_layouts/script_eks.sh wait_cluster_ready" # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -1655,6 +1681,19 @@ jobs: /deckhouse/testing/cloud_layouts/script_eks.sh wait_cluster_ready" # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -2195,6 +2234,19 @@ jobs: /deckhouse/testing/cloud_layouts/script_eks.sh wait_cluster_ready" # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -2735,6 +2787,19 @@ jobs: /deckhouse/testing/cloud_layouts/script_eks.sh wait_cluster_ready" # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -3275,6 +3340,19 @@ jobs: /deckhouse/testing/cloud_layouts/script_eks.sh wait_cluster_ready" # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -3815,6 +3893,19 @@ jobs: /deckhouse/testing/cloud_layouts/script_eks.sh wait_cluster_ready" # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster diff --git a/.github/workflows/e2e-gcp.yml b/.github/workflows/e2e-gcp.yml index 5984faeff0..5530cfa5f0 100644 --- a/.github/workflows/e2e-gcp.yml +++ b/.github/workflows/e2e-gcp.yml @@ -527,6 +527,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -1018,6 +1031,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -1509,6 +1535,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -2000,6 +2039,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -2491,6 +2543,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -2982,6 +3047,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -3473,6 +3551,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster diff --git a/.github/workflows/e2e-openstack.yml b/.github/workflows/e2e-openstack.yml index 0fabe121cd..342b547bde 100644 --- a/.github/workflows/e2e-openstack.yml +++ b/.github/workflows/e2e-openstack.yml @@ -527,6 +527,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -1018,6 +1031,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -1509,6 +1535,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -2000,6 +2039,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -2491,6 +2543,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -2982,6 +3047,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -3473,6 +3551,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster diff --git a/.github/workflows/e2e-static.yml b/.github/workflows/e2e-static.yml index 7907b68df4..a83c48692f 100644 --- a/.github/workflows/e2e-static.yml +++ b/.github/workflows/e2e-static.yml @@ -527,6 +527,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -1018,6 +1031,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -1509,6 +1535,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -2000,6 +2039,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -2491,6 +2543,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -2982,6 +3047,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -3473,6 +3551,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster diff --git a/.github/workflows/e2e-vcd.yml b/.github/workflows/e2e-vcd.yml index a4746fc1c1..f8391a8dc8 100644 --- a/.github/workflows/e2e-vcd.yml +++ b/.github/workflows/e2e-vcd.yml @@ -535,6 +535,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -1042,6 +1055,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -1549,6 +1575,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -2056,6 +2095,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -2563,6 +2615,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -3070,6 +3135,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -3577,6 +3655,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster diff --git a/.github/workflows/e2e-vsphere.yml b/.github/workflows/e2e-vsphere.yml index 9f78e6dbf3..1673a25552 100644 --- a/.github/workflows/e2e-vsphere.yml +++ b/.github/workflows/e2e-vsphere.yml @@ -529,6 +529,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -1024,6 +1037,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -1519,6 +1545,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -2014,6 +2053,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -2509,6 +2561,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -3004,6 +3069,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -3499,6 +3577,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster diff --git a/.github/workflows/e2e-yandex-cloud.yml b/.github/workflows/e2e-yandex-cloud.yml index ff2a0b5614..27784f7678 100644 --- a/.github/workflows/e2e-yandex-cloud.yml +++ b/.github/workflows/e2e-yandex-cloud.yml @@ -531,6 +531,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + ################################################### Collect logs when e2e failed ########################### + - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -1030,6 +1043,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -1529,6 +1555,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -2028,6 +2067,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -2527,6 +2579,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -3026,6 +3091,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster @@ -3525,6 +3603,19 @@ jobs: bash /deckhouse/testing/cloud_layouts/script.sh run-test # + + ################################################### Collect logs when e2e failed ########################### + - name: "Creating log artifacts when e2e testing fails" + id: create_e2e_tests_logs + if: failure() || cancelled() + env: + SSH_CONNECT_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_connection_str_file }} + SSH_BASTION_STR_FILE: ${{ steps.e2e_test_run.outputs.ssh_bastion_str_file }} + run: | + echo $SSH_CONNECT_STR_FILE + echo $SSH_BASTION_STR_FILE + + ################################################### Collect logs when e2e failed ########################### - name: Read connection string if: ${{ failure() || cancelled() }} id: check_stay_failed_cluster