From d31f30b115becfcb53c3318a8a665f15556fdd3d Mon Sep 17 00:00:00 2001 From: Dipin <26918585+dipinknair@users.noreply.github.com> Date: Fri, 25 Aug 2023 10:42:03 -0500 Subject: [PATCH 1/4] Update ci_cd.yml The doc building failures were not captured by git workflow previously. Modifying code to capture the error and check the status of the process. --- .github/workflows/ci_cd.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index b36f74c8..93bfc90f 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -101,7 +101,19 @@ jobs: ANSYSLMD_LICENSE_FILE: 1055@${{ secrets.LICENSE_SERVER }} ANSYS_WORKBENCH_LOGGING_FILTER_LEVEL: 0 run: | - xvfb-run /install/ansys_inc/v232/aisol/.workbench_lite make -C doc html + xvfb-run /install/ansys_inc/v232/aisol/.workbench_lite make -C doc html > doc_build_ouput.txt + cat pytest_output.txt + # + # Check if Error occurred + # + output=$(grep -c "Error" doc_build_ouput || true) + if [ $output -eq 0 ]; then + echo "Documentation building succeeded" + exit 0 + else + echo "Documentation building failed" + exit 1 + fi - name: Upload HTML Documentation uses: actions/upload-artifact@v3 From bca4fe98350269e8b8ad8356a484d10aac02fdc0 Mon Sep 17 00:00:00 2001 From: Dipin <26918585+dipinknair@users.noreply.github.com> Date: Fri, 25 Aug 2023 10:54:58 -0500 Subject: [PATCH 2/4] Update ci_cd.yml --- .github/workflows/ci_cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 93bfc90f..6121bb42 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -102,7 +102,7 @@ jobs: ANSYS_WORKBENCH_LOGGING_FILTER_LEVEL: 0 run: | xvfb-run /install/ansys_inc/v232/aisol/.workbench_lite make -C doc html > doc_build_ouput.txt - cat pytest_output.txt + cat doc_build_ouput.txt # # Check if Error occurred # From 90fbba21bd7a679fe9d99129e70645f203242be7 Mon Sep 17 00:00:00 2001 From: dkunhamb Date: Tue, 29 Aug 2023 14:14:44 -0500 Subject: [PATCH 3/4] stderr capture --- .github/workflows/ci_cd.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 6121bb42..461c400f 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -101,12 +101,14 @@ jobs: ANSYSLMD_LICENSE_FILE: 1055@${{ secrets.LICENSE_SERVER }} ANSYS_WORKBENCH_LOGGING_FILTER_LEVEL: 0 run: | - xvfb-run /install/ansys_inc/v232/aisol/.workbench_lite make -C doc html > doc_build_ouput.txt - cat doc_build_ouput.txt + xvfb-run /install/ansys_inc/v232/aisol/.workbench_lite make -C doc html > doc_build_output.txt 2>&1 + echo "___________________________________" + cat doc_build_output.txt + echo "___________________________________" # # Check if Error occurred # - output=$(grep -c "Error" doc_build_ouput || true) + output=$(grep -c "Error" doc_build_output.txt || true) if [ $output -eq 0 ]; then echo "Documentation building succeeded" exit 0 From 091f450a04e37d5637d641051e71bc6bf974fcb1 Mon Sep 17 00:00:00 2001 From: dkunhamb Date: Tue, 29 Aug 2023 14:37:42 -0500 Subject: [PATCH 4/4] reg expression updated --- .github/workflows/ci_cd.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 461c400f..409c3ed7 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -102,13 +102,11 @@ jobs: ANSYS_WORKBENCH_LOGGING_FILTER_LEVEL: 0 run: | xvfb-run /install/ansys_inc/v232/aisol/.workbench_lite make -C doc html > doc_build_output.txt 2>&1 - echo "___________________________________" cat doc_build_output.txt - echo "___________________________________" # # Check if Error occurred # - output=$(grep -c "Error" doc_build_output.txt || true) + output=$(grep -c ".*make:.*Error.*" doc_build_output.txt || true) if [ $output -eq 0 ]; then echo "Documentation building succeeded" exit 0