From b1304a8dd399dd5da3e4963f8d38a3d05922f055 Mon Sep 17 00:00:00 2001 From: Sushmitha-MN Date: Sun, 29 Mar 2026 20:30:08 +0530 Subject: [PATCH 1/2] Adding step to upload valgrind report in integration tests --- .github/workflows/nanocert_est_integration_test.yml | 8 ++++++++ .github/workflows/nanocert_scep_integration_test.yml | 9 ++++++++- .github/workflows/nanossh_integration_test.yml | 8 ++++++++ .github/workflows/nanossl_integration_test.yml | 10 ++++++++++ 4 files changed, 34 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nanocert_est_integration_test.yml b/.github/workflows/nanocert_est_integration_test.yml index defcb8a..f49cfe8 100644 --- a/.github/workflows/nanocert_est_integration_test.yml +++ b/.github/workflows/nanocert_est_integration_test.yml @@ -74,6 +74,14 @@ jobs: echo "Coverage Summary:" lcov --list /tmp/est_total.info + - name: Upload Valgrind Report Artifact + if: always() + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + with: + name: report_valgrind_client + path: report_valgrind_client.zip + retention-days: 5 + - name: Cleanup mocn-qa-m-products run: | rm -rf ~/mocn-qa-m-products diff --git a/.github/workflows/nanocert_scep_integration_test.yml b/.github/workflows/nanocert_scep_integration_test.yml index 287a6fd..a73f4eb 100644 --- a/.github/workflows/nanocert_scep_integration_test.yml +++ b/.github/workflows/nanocert_scep_integration_test.yml @@ -1,5 +1,4 @@ name: "NanoCert SCEP Integration Tests" - on: workflow_dispatch: {} @@ -79,6 +78,14 @@ jobs: echo "Coverage Summary:" lcov --list /tmp/scep_total.info + - name: Upload Valgrind Report Artifact + if: always() + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + with: + name: report_valgrind_client + path: report_valgrind_client.zip + retention-days: 5 + - name: Cleanup mocn-qa-m-products run: | rm -rf ~/mocn-qa-m-products diff --git a/.github/workflows/nanossh_integration_test.yml b/.github/workflows/nanossh_integration_test.yml index 31221fb..0509ab5 100644 --- a/.github/workflows/nanossh_integration_test.yml +++ b/.github/workflows/nanossh_integration_test.yml @@ -66,6 +66,14 @@ jobs: run: | PYTHONUNBUFFERED=1 python3 run.py global_nanossh_cap_no_tap.json + - name: Upload Valgrind Report Artifact + if: always() + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + with: + name: report_valgrind + path: report_valgrind.zip + retention-days: 5 + - name: Cleanup mocn-qa-m-products if: always() run: | diff --git a/.github/workflows/nanossl_integration_test.yml b/.github/workflows/nanossl_integration_test.yml index d702aa7..764f912 100644 --- a/.github/workflows/nanossl_integration_test.yml +++ b/.github/workflows/nanossl_integration_test.yml @@ -18,6 +18,8 @@ jobs: MY_SECRET_TOKEN: ${{ secrets.MY_SECRET_TOKEN }} run: | git clone https://${MY_SECRET_TOKEN}@github.com/digicert/mocn-qa-m-products.git ~/mocn-qa-m-products + cd ~/mocn-qa-m-products + git checkout DTM-7857-add-upload-valrgind-report-step-for-all-the-integration-test-workflow-files-in-trustcore-test - name: Install Dependencies run: | @@ -95,6 +97,14 @@ jobs: CM_ENV_CODE_COVERAGE: 1 run: | python3 nanossl_integration_test.py build_server_cap_no_tap.json + + - name: Upload Valgrind Report Artifact + if: always() + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + with: + name: report_valgrind + path: report_valgrind.zip + retention-days: 5 - name: Baseline Coverage run: | From a2d673551fabe28d9f8a9c4cef55fd2ad942227b Mon Sep 17 00:00:00 2001 From: Sushmitha-MN Date: Mon, 30 Mar 2026 13:26:46 +0530 Subject: [PATCH 2/2] Removing hardcoded branch --- .github/workflows/nanossl_integration_test.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/nanossl_integration_test.yml b/.github/workflows/nanossl_integration_test.yml index 764f912..d225ced 100644 --- a/.github/workflows/nanossl_integration_test.yml +++ b/.github/workflows/nanossl_integration_test.yml @@ -18,8 +18,6 @@ jobs: MY_SECRET_TOKEN: ${{ secrets.MY_SECRET_TOKEN }} run: | git clone https://${MY_SECRET_TOKEN}@github.com/digicert/mocn-qa-m-products.git ~/mocn-qa-m-products - cd ~/mocn-qa-m-products - git checkout DTM-7857-add-upload-valrgind-report-step-for-all-the-integration-test-workflow-files-in-trustcore-test - name: Install Dependencies run: |