From 41acd508d8cf9b12782ad1a22831b9fcf95049e8 Mon Sep 17 00:00:00 2001 From: sithanda <109532799+sithanda@users.noreply.github.com> Date: Mon, 1 Apr 2024 16:34:57 +0530 Subject: [PATCH 01/17] uploaded json to automatics --- .github/workflows/L1-tests.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index e4e0023d2..03f1d3335 100755 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -73,10 +73,13 @@ jobs: - name: run l1-tests if: ${{ matrix.extra_flags == 'RUN_TESTS' && matrix.build_type == 'Debug' }} run: | - sudo valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try $GITHUB_WORKSPACE/build/tests/L1_testing/tests/DobbyTest/DobbyL1Test --gtest_output="json:$(pwd)/DobbyL1TestResults.json" - sudo $GITHUB_WORKSPACE/build/tests/L1_testing/tests/DobbyUtilsTest/DobbyUtilsL1Test --gtest_output="json:$(pwd)/DobbyUtilsL1TestResults.json" - sudo valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try $GITHUB_WORKSPACE/build/tests/L1_testing/tests/DobbyManagerTest/DobbyManagerL1Test --gtest_output="json:$(pwd)/DobbyManagerL1TestResults.json" - + mkdir -p /tmp/Gtest_Report/ + sudo valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try $GITHUB_WORKSPACE/build/tests/L1_testing/tests/DobbyTest/DobbyL1Test --gtest_output="json:/tmp/Gtest_Report/DobbyL1TestResults.json" + sudo $GITHUB_WORKSPACE/build/tests/L1_testing/tests/DobbyUtilsTest/DobbyUtilsL1Test --gtest_output="json:/tmp/Gtest_Report/DobbyUtilsL1TestResults.json" + sudo valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try $GITHUB_WORKSPACE/build/tests/L1_testing/tests/DobbyManagerTest/DobbyManagerL1Test --gtest_output="json:/tmp/Gtest_Report/DobbyManagerL1TestResults.json" + echo "Siva: /tmp/Gtest_Report/DobbyL1TestResults.json" + ls -l /tmp/Gtest_Report/ + cat /tmp/Gtest_Report/DobbyL1TestResults.json - name: Generate coverage if: ${{ matrix.coverage == 'with-coverage' && matrix.extra_flags == 'RUN_TESTS' && matrix.build_type == 'Debug' }} run: > @@ -95,15 +98,20 @@ jobs: -o coverage/${{ matrix.build_type }}/${{ matrix.extra_flags }}/coverage -t "dobby coverage" filtered_coverage.info - - name: Upload artifacts if: ${{ !env.ACT && matrix.coverage == 'with-coverage' && matrix.extra_flags == 'RUN_TESTS' && matrix.build_type == 'Debug' }} uses: actions/upload-artifact@v4 with: name: artifacts path: | - DobbyL1TestResults.json - DobbyUtilsL1TestResults.json - DobbyManagerL1TestResults.json coverage + /tmp/Gtest_Report/DobbyL1TestResults.json + /tmp/Gtest_Report/DobbyL1TestResults.json + /tmp/Gtest_Report/DobbyManagerL1TestResults.json if-no-files-found: warn + + - name: Publishing the artifacts to automatics + if: ${{ matrix.extra_flags == 'RUN_TESTS' && matrix.build_type == 'Debug' }} + run: > + git config --global --add safe.directory $GITHUB_WORKSPACE && + $GITHUB_WORKSPACE/gtest-json-result-push.py /tmp/Gtest_Report/ https://rdkeorchestrationservice.ho-g2.cf.comcast.net/rdke_orchestration_api/push_unit_test_results $GITHUB_WORKSPACE From f64ca14619d0e375142c7f685415fac588f96991 Mon Sep 17 00:00:00 2001 From: Siva Thandayuthapani Date: Mon, 1 Apr 2024 15:58:46 +0530 Subject: [PATCH 02/17] Adding gtest-json-result-push.py for testing --- gtest-json-result-push.py | 123 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 gtest-json-result-push.py diff --git a/gtest-json-result-push.py b/gtest-json-result-push.py new file mode 100644 index 000000000..fc30f9654 --- /dev/null +++ b/gtest-json-result-push.py @@ -0,0 +1,123 @@ +#!/usr/bin/python3 + +#################################################################################### +# If not stated otherwise in this file or this component's Licenses.txt file the +# following copyright and licenses apply: +# +# Copyright 2023 RDK Management +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#################################################################################### + + +# This utility depends on the xmltodict, json and requests python library + +import sys +import xmltodict +import json +import requests +import os + + +from requests.auth import HTTPBasicAuth + +# function to read json file as input and return minified json data as string +def json_string(xml_file_path, git_folder_path): + + # Change current working directory to the script directory + os.chdir(git_folder_path) + commit_id = os.popen('git log --pretty="format:%H" -n 1').read() + component_name=os.popen('git remote -v | grep fetch | cut -d "/" -f2 | cut -d "." -f1').read() + # TBD : Need to get the execution link from the environment variable + execution_link="https://ci.comcast.net" + developer=os.popen('git log --pretty="format:%an" -n 1').read() + jira_ticket=os.popen('git log --pretty="format:%s" -n 1 | cut -d ":" -f1').read() + + json_root = { + "commit_id": commit_id.strip(), + "component_name": component_name.strip(), + "execution_link": execution_link.strip(), + "developer": developer.strip(), + "jira_ticket": jira_ticket.strip() + } + + with open(xml_file_path) as json_file: + # minify the json message + json_data = json.dumps(json.loads(json_file.read())) + json_root["test_cases_results"] = json.loads(json_data) + + + return json.dumps(json_root) + +# function to http post json data to a url +def post_json(json_data, url): + + + # Get username and password from env variable + username = os.environ.get('AUTOMATICS_UNAME') + password = os.environ.get('AUTOMATICS_PWD') + passcode = os.environ.get('AUTOMATICS_PASSCODE') + passvalue = "Basic " + passcode + headers = { + 'Content-type': 'application/json', + 'Authorization': passvalue + + } + + # print("Automatics simple auth uname : " + username) + # print("Automatics simple auth uname : " + password) + # print("Automatics simple auth passcode : " + passcode) + + # response = requests.post(url, data=json_data, headers=headers, auth=HTTPBasicAuth(username, password)) + response = requests.post(url, data=json_data, headers=headers) + print(response) + +# Loop through all the xml files in the folder and call the xml_to_json function +# to convert xml to json and then call the post_json function to post the json data to a url +def post_json_to_url(json_folder_path, url, git_folder_path): + + try : + + for filename in os.listdir(json_folder_path): + if filename.endswith(".json"): + json_file_path = os.path.join(json_folder_path, filename) + json_data = json_string(json_file_path, git_folder_path) + print(json_data) + post_json(json_data, url) + + except FileNotFoundError as e: + print(f"Test results are not found in the specified {git_folder_path} folder.") + print(f"Please check the folder path and try again. Error: {e}") + +def main(): + + # Check if the script is called with the correct number of arguments + if len(sys.argv) != 4: + print("Usage: python3 gtest-xml-json-coverter.py ") + sys.exit(1) + + + print("Converting xml to json") + + print("Siva: Prinitng sys.argv[1]") + print(sys.argv[1]) + + print("Siva: Prinitng sys.argv[2]") + print(sys.argv[2]) + + print("Siva: Prinitng sys.argv[3]") + print(sys.argv[3]) + post_json_to_url(sys.argv[1], sys.argv[2], sys.argv[3]) + +if __name__ == "__main__": + main() From 8709bb7a563339dbb16746e8c5f10548fce29346 Mon Sep 17 00:00:00 2001 From: Siva Thandayuthapani Date: Mon, 1 Apr 2024 16:03:19 +0530 Subject: [PATCH 03/17] Adding gtest-json-result-push.py for testing --- gtest-json-result-push.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 gtest-json-result-push.py diff --git a/gtest-json-result-push.py b/gtest-json-result-push.py old mode 100644 new mode 100755 From e5a6c289aa971e21f23b16b181760a8fb8bcb997 Mon Sep 17 00:00:00 2001 From: Siva Thandayuthapani Date: Mon, 1 Apr 2024 16:10:05 +0530 Subject: [PATCH 04/17] Adding gtest-json-result-push.py for testing --- .github/workflows/L1-tests.yml | 238 +++++++++++++++++---------------- 1 file changed, 121 insertions(+), 117 deletions(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index 03f1d3335..e6be90e55 100755 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -1,117 +1,121 @@ -name: DobbyL1Test -on: [push, pull_request] - -jobs: - build: - runs-on: ubuntu-latest - env: - # For CI, build all optional plugins. Newly developed plugins should be added to this list - optional_plugins: "-DPLUGIN_TESTPLUGIN=ON -DPLUGIN_GPU=ON -DPLUGIN_LOCALTIME=ON -DPLUGIN_RTSCHEDULING=ON -DPLUGIN_HTTPPROXY=ON -DPLUGIN_APPSERVICES=ON -DPLUGIN_IONMEMORY=ON -DPLUGIN_DEVICEMAPPER=ON -DPLUGIN_OOMCRASH=ON" - optional_flags: "-DLEGACY_COMPONENTS=ON -DRDK=ON -DUSE_SYSTEMD=ON -DDOBBY_HIBERNATE_MEMCR_IMPL=ON" - strategy: - fail-fast: false - matrix: - compiler: [ gcc, clang ] - coverage: [ with-coverage, without-coverage ] - exclude: - - compiler: clang - coverage: with-coverage - - compiler: clang - coverage: without-coverage - - compiler: gcc - coverage: without-coverage - # The matrix will try all possible combinations of the below arrays - # If adding a new cmake option, include both the ON and OFF version to ensure the - # If adding a RUN_TESTS cmake option, it will build with enabling optional_flags and run the L1 tests - # matrix runs both versions - build_type: ["Release", "Debug"] - extra_flags: [ "RUN_TESTS", "-DLEGACY_COMPONENTS=ON", "-DLEGACY_COMPONENTS=OFF", "-DUSE_SYSTEMD=ON", "-DUSE_SYSTEMD=OFF", "-DDOBBY_HIBERNATE_MEMCR_IMPL=ON", "-DDOBBY_HIBERNATE_MEMCR_IMPL=OFF"] - name: Build in ${{ matrix.build_type }} Mode (${{ matrix.extra_flags }}) - steps: - - name: checkout - uses: actions/checkout@v4 - - - name: install-dependencies - run: | - sudo apt-get update -y -q - sudo apt-get install -q -y automake libtool autotools-dev software-properties-common build-essential cmake libsystemd-dev libctemplate-dev libjsoncpp-dev libdbus-1-dev libnl-3-dev libnl-route-3-dev libsystemd-dev libyajl-dev libcap-dev libboost-dev lcov clang valgrind - sudo pip3 install xmltodict - sudo pip3 install requests - - - name: Set clang toolchain - if: ${{ matrix.compiler == 'clang' }} - run: echo "TOOLCHAIN_FILE=${GITHUB_WORKSPACE}/tests/clang.cmake" >> $GITHUB_ENV - - - name: Set gcc/with-coverage toolchain - if: ${{ matrix.compiler == 'gcc' && matrix.coverage == 'with-coverage' }} - run: echo "TOOLCHAIN_FILE=${GITHUB_WORKSPACE}/tests/gcc-with-coverage.cmake" >> $GITHUB_ENV - - - name: Install gmock - run: | - cd $GITHUB_WORKSPACE - git clone https://github.com/google/googletest.git -b release-1.11.0 - cd googletest - mkdir build - cd build - cmake .. - make - sudo make install - - - name: build dobby - run: | - cd $GITHUB_WORKSPACE - mkdir build - cd build - if [ ${{ matrix.extra_flags }} = "RUN_TESTS" ] - then - cmake -DCMAKE_TOOLCHAIN_FILE="${{ env.TOOLCHAIN_FILE }}" -DRDK_PLATFORM=DEV_VM -DCMAKE_INSTALL_PREFIX:PATH=/usr -DENABLE_DOBBYL1TEST=ON -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ${{ env.optional_flags }} ${{ env.optional_plugins }} .. - else - cmake -DCMAKE_TOOLCHAIN_FILE="${{ env.TOOLCHAIN_FILE }}" -DRDK_PLATFORM=DEV_VM -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ${{ matrix.extra_flags }} ${{ env.optional_plugins }} .. - fi - make -j $(nproc) - - - name: run l1-tests - if: ${{ matrix.extra_flags == 'RUN_TESTS' && matrix.build_type == 'Debug' }} - run: | - mkdir -p /tmp/Gtest_Report/ - sudo valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try $GITHUB_WORKSPACE/build/tests/L1_testing/tests/DobbyTest/DobbyL1Test --gtest_output="json:/tmp/Gtest_Report/DobbyL1TestResults.json" - sudo $GITHUB_WORKSPACE/build/tests/L1_testing/tests/DobbyUtilsTest/DobbyUtilsL1Test --gtest_output="json:/tmp/Gtest_Report/DobbyUtilsL1TestResults.json" - sudo valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try $GITHUB_WORKSPACE/build/tests/L1_testing/tests/DobbyManagerTest/DobbyManagerL1Test --gtest_output="json:/tmp/Gtest_Report/DobbyManagerL1TestResults.json" - echo "Siva: /tmp/Gtest_Report/DobbyL1TestResults.json" - ls -l /tmp/Gtest_Report/ - cat /tmp/Gtest_Report/DobbyL1TestResults.json - - name: Generate coverage - if: ${{ matrix.coverage == 'with-coverage' && matrix.extra_flags == 'RUN_TESTS' && matrix.build_type == 'Debug' }} - run: > - lcov -c - -o coverage.info - -d $GITHUB_WORKSPACE - && - lcov - -r coverage.info - '11/*' - '/usr/include/*' - '*/tests/L1_testing/tests/*' - -o filtered_coverage.info - && - genhtml - -o coverage/${{ matrix.build_type }}/${{ matrix.extra_flags }}/coverage - -t "dobby coverage" - filtered_coverage.info - - name: Upload artifacts - if: ${{ !env.ACT && matrix.coverage == 'with-coverage' && matrix.extra_flags == 'RUN_TESTS' && matrix.build_type == 'Debug' }} - uses: actions/upload-artifact@v4 - with: - name: artifacts - path: | - coverage - /tmp/Gtest_Report/DobbyL1TestResults.json - /tmp/Gtest_Report/DobbyL1TestResults.json - /tmp/Gtest_Report/DobbyManagerL1TestResults.json - if-no-files-found: warn - - - name: Publishing the artifacts to automatics - if: ${{ matrix.extra_flags == 'RUN_TESTS' && matrix.build_type == 'Debug' }} - run: > - git config --global --add safe.directory $GITHUB_WORKSPACE && - $GITHUB_WORKSPACE/gtest-json-result-push.py /tmp/Gtest_Report/ https://rdkeorchestrationservice.ho-g2.cf.comcast.net/rdke_orchestration_api/push_unit_test_results $GITHUB_WORKSPACE +name: DobbyL1Test +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + env: + # For CI, build all optional plugins. Newly developed plugins should be added to this list + optional_plugins: "-DPLUGIN_TESTPLUGIN=ON -DPLUGIN_GPU=ON -DPLUGIN_LOCALTIME=ON -DPLUGIN_RTSCHEDULING=ON -DPLUGIN_HTTPPROXY=ON -DPLUGIN_APPSERVICES=ON -DPLUGIN_IONMEMORY=ON -DPLUGIN_DEVICEMAPPER=ON -DPLUGIN_OOMCRASH=ON" + optional_flags: "-DLEGACY_COMPONENTS=ON -DRDK=ON -DUSE_SYSTEMD=ON -DDOBBY_HIBERNATE_MEMCR_IMPL=ON" + AUTOMATICS_UNAME: ${{ secrets.AUTOMATICS_UNAME}} + AUTOMATICS_PASSCODE: ${{ secrets. AUTOMATICS_PASSCODE}} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + strategy: + fail-fast: false + matrix: + compiler: [ gcc, clang ] + coverage: [ with-coverage, without-coverage ] + exclude: + - compiler: clang + coverage: with-coverage + - compiler: clang + coverage: without-coverage + - compiler: gcc + coverage: without-coverage + # The matrix will try all possible combinations of the below arrays + # If adding a new cmake option, include both the ON and OFF version to ensure the + # If adding a RUN_TESTS cmake option, it will build with enabling optional_flags and run the L1 tests + # matrix runs both versions + build_type: ["Release", "Debug"] + extra_flags: [ "RUN_TESTS", "-DLEGACY_COMPONENTS=ON", "-DLEGACY_COMPONENTS=OFF", "-DUSE_SYSTEMD=ON", "-DUSE_SYSTEMD=OFF", "-DDOBBY_HIBERNATE_MEMCR_IMPL=ON", "-DDOBBY_HIBERNATE_MEMCR_IMPL=OFF"] + name: Build in ${{ matrix.build_type }} Mode (${{ matrix.extra_flags }}) + steps: + - name: checkout + uses: actions/checkout@v4 + + - name: install-dependencies + run: | + sudo apt-get update -y -q + sudo apt-get install -q -y automake libtool autotools-dev software-properties-common build-essential cmake libsystemd-dev libctemplate-dev libjsoncpp-dev libdbus-1-dev libnl-3-dev libnl-route-3-dev libsystemd-dev libyajl-dev libcap-dev libboost-dev lcov clang valgrind + sudo pip3 install xmltodict + sudo pip3 install requests + + - name: Set clang toolchain + if: ${{ matrix.compiler == 'clang' }} + run: echo "TOOLCHAIN_FILE=${GITHUB_WORKSPACE}/tests/clang.cmake" >> $GITHUB_ENV + + - name: Set gcc/with-coverage toolchain + if: ${{ matrix.compiler == 'gcc' && matrix.coverage == 'with-coverage' }} + run: echo "TOOLCHAIN_FILE=${GITHUB_WORKSPACE}/tests/gcc-with-coverage.cmake" >> $GITHUB_ENV + + - name: Install gmock + run: | + cd $GITHUB_WORKSPACE + git clone https://github.com/google/googletest.git -b release-1.11.0 + cd googletest + mkdir build + cd build + cmake .. + make + sudo make install + + - name: build dobby + run: | + cd $GITHUB_WORKSPACE + mkdir build + cd build + if [ ${{ matrix.extra_flags }} = "RUN_TESTS" ] + then + cmake -DCMAKE_TOOLCHAIN_FILE="${{ env.TOOLCHAIN_FILE }}" -DRDK_PLATFORM=DEV_VM -DCMAKE_INSTALL_PREFIX:PATH=/usr -DENABLE_DOBBYL1TEST=ON -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ${{ env.optional_flags }} ${{ env.optional_plugins }} .. + else + cmake -DCMAKE_TOOLCHAIN_FILE="${{ env.TOOLCHAIN_FILE }}" -DRDK_PLATFORM=DEV_VM -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ${{ matrix.extra_flags }} ${{ env.optional_plugins }} .. + fi + make -j $(nproc) + + - name: run l1-tests + if: ${{ matrix.extra_flags == 'RUN_TESTS' && matrix.build_type == 'Debug' }} + run: | + sudo valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try $GITHUB_WORKSPACE/build/tests/L1_testing/tests/DobbyTest/DobbyL1Test --gtest_output="json:$GITHUB_WORKSPACE/DobbyL1TestResults.json" + sudo $GITHUB_WORKSPACE/build/tests/L1_testing/tests/DobbyUtilsTest/DobbyUtilsL1Test --gtest_output="json:$GITHUB_WORKSPACE/DobbyUtilsL1TestResults.json" + sudo valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try $GITHUB_WORKSPACE/build/tests/L1_testing/tests/DobbyManagerTest/DobbyManagerL1Test --gtest_output="json:$GITHUB_WORKSPACE//DobbyManagerL1TestResults.json" + echo "Siva: $GITHUB_WORKSPACE/DobbyL1TestResults.json" + ls -l $GITHUB_WORKSPACE/ + cat $GITHUB_WORKSPACE/DobbyL1TestResults.json + + - name: Generate coverage + if: ${{ matrix.coverage == 'with-coverage' && matrix.extra_flags == 'RUN_TESTS' && matrix.build_type == 'Debug' }} + run: > + lcov -c + -o coverage.info + -d $GITHUB_WORKSPACE + && + lcov + -r coverage.info + '11/*' + '/usr/include/*' + '*/tests/L1_testing/tests/*' + -o filtered_coverage.info + && + genhtml + -o coverage/${{ matrix.build_type }}/${{ matrix.extra_flags }}/coverage + -t "dobby coverage" + filtered_coverage.info + + - name: Upload artifacts + if: ${{ !env.ACT && matrix.coverage == 'with-coverage' && matrix.extra_flags == 'RUN_TESTS' && matrix.build_type == 'Debug' }} + uses: actions/upload-artifact@v4 + with: + name: artifacts + path: | + coverage + $GITHUB_WORKSPACE/DobbyL1TestResults.json + $GITHUB_WORKSPACE/DobbyL1TestResults.json + $GITHUB_WORKSPACE/DobbyManagerL1TestResults.json + if-no-files-found: warn + + - name: Publishing the artifacts to automatics + run: > + git config --global --add safe.directory $GITHUB_WORKSPACE && + $GITHUB_WORKSPACE/gtest-json-result-push.py $GITHUB_WORKSPACE https://rdkeorchestrationservice.as-g8.cf.comcast.net/rdke_orchestration_api/push_unit_test_results $GITHUB_WORKSPACE From 959c1d73e1517f983cff5a0ac650b42bd91d0384 Mon Sep 17 00:00:00 2001 From: sithanda <109532799+sithanda@users.noreply.github.com> Date: Mon, 1 Apr 2024 18:06:18 +0530 Subject: [PATCH 05/17] Update L1-tests.yml --- .github/workflows/L1-tests.yml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index e6be90e55..66509eada 100755 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -41,7 +41,6 @@ jobs: sudo apt-get install -q -y automake libtool autotools-dev software-properties-common build-essential cmake libsystemd-dev libctemplate-dev libjsoncpp-dev libdbus-1-dev libnl-3-dev libnl-route-3-dev libsystemd-dev libyajl-dev libcap-dev libboost-dev lcov clang valgrind sudo pip3 install xmltodict sudo pip3 install requests - - name: Set clang toolchain if: ${{ matrix.compiler == 'clang' }} run: echo "TOOLCHAIN_FILE=${GITHUB_WORKSPACE}/tests/clang.cmake" >> $GITHUB_ENV @@ -60,7 +59,6 @@ jobs: cmake .. make sudo make install - - name: build dobby run: | cd $GITHUB_WORKSPACE @@ -73,17 +71,16 @@ jobs: cmake -DCMAKE_TOOLCHAIN_FILE="${{ env.TOOLCHAIN_FILE }}" -DRDK_PLATFORM=DEV_VM -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ${{ matrix.extra_flags }} ${{ env.optional_plugins }} .. fi make -j $(nproc) - - name: run l1-tests if: ${{ matrix.extra_flags == 'RUN_TESTS' && matrix.build_type == 'Debug' }} run: | - sudo valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try $GITHUB_WORKSPACE/build/tests/L1_testing/tests/DobbyTest/DobbyL1Test --gtest_output="json:$GITHUB_WORKSPACE/DobbyL1TestResults.json" - sudo $GITHUB_WORKSPACE/build/tests/L1_testing/tests/DobbyUtilsTest/DobbyUtilsL1Test --gtest_output="json:$GITHUB_WORKSPACE/DobbyUtilsL1TestResults.json" - sudo valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try $GITHUB_WORKSPACE/build/tests/L1_testing/tests/DobbyManagerTest/DobbyManagerL1Test --gtest_output="json:$GITHUB_WORKSPACE//DobbyManagerL1TestResults.json" - echo "Siva: $GITHUB_WORKSPACE/DobbyL1TestResults.json" - ls -l $GITHUB_WORKSPACE/ - cat $GITHUB_WORKSPACE/DobbyL1TestResults.json - + mkdir -p /tmp/Gtest_Report/ + sudo valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try $GITHUB_WORKSPACE/build/tests/L1_testing/tests/DobbyTest/DobbyL1Test --gtest_output="json:/tmp/Gtest_Report/DobbyL1TestResults.json" + sudo $GITHUB_WORKSPACE/build/tests/L1_testing/tests/DobbyUtilsTest/DobbyUtilsL1Test --gtest_output="json:/tmp/Gtest_Report/DobbyUtilsL1TestResults.json" + sudo valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try $GITHUB_WORKSPACE/build/tests/L1_testing/tests/DobbyManagerTest/DobbyManagerL1Test --gtest_output="json:/tmp/Gtest_Report/DobbyManagerL1TestResults.json" + echo "Siva: /tmp/Gtest_Report/DobbyL1TestResults.json" + ls -l /tmp/Gtest_Report/ + cat /tmp/Gtest_Report/DobbyL1TestResults.json - name: Generate coverage if: ${{ matrix.coverage == 'with-coverage' && matrix.extra_flags == 'RUN_TESTS' && matrix.build_type == 'Debug' }} run: > @@ -102,7 +99,6 @@ jobs: -o coverage/${{ matrix.build_type }}/${{ matrix.extra_flags }}/coverage -t "dobby coverage" filtered_coverage.info - - name: Upload artifacts if: ${{ !env.ACT && matrix.coverage == 'with-coverage' && matrix.extra_flags == 'RUN_TESTS' && matrix.build_type == 'Debug' }} uses: actions/upload-artifact@v4 @@ -110,12 +106,13 @@ jobs: name: artifacts path: | coverage - $GITHUB_WORKSPACE/DobbyL1TestResults.json - $GITHUB_WORKSPACE/DobbyL1TestResults.json - $GITHUB_WORKSPACE/DobbyManagerL1TestResults.json + /tmp/Gtest_Report/DobbyL1TestResults.json + /tmp/Gtest_Report/DobbyL1TestResults.json + /tmp/Gtest_Report/DobbyManagerL1TestResults.json if-no-files-found: warn - name: Publishing the artifacts to automatics + if: ${{ matrix.extra_flags == 'RUN_TESTS' && matrix.build_type == 'Debug' }} run: > git config --global --add safe.directory $GITHUB_WORKSPACE && - $GITHUB_WORKSPACE/gtest-json-result-push.py $GITHUB_WORKSPACE https://rdkeorchestrationservice.as-g8.cf.comcast.net/rdke_orchestration_api/push_unit_test_results $GITHUB_WORKSPACE + $GITHUB_WORKSPACE/gtest-json-result-push.py /tmp/Gtest_Report/ https://rdkeorchestrationservice.ho-g2.cf.comcast.net/rdke_orchestration_api/push_unit_test_results $GITHUB_WORKSPACE From 5b8e53c502397be14c2f7294a75790a49a2e9824 Mon Sep 17 00:00:00 2001 From: sithanda <109532799+sithanda@users.noreply.github.com> Date: Fri, 19 Apr 2024 20:17:53 +0530 Subject: [PATCH 06/17] Update L1-tests.yml --- .github/workflows/L1-tests.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index 66509eada..e3dccee8f 100755 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -114,5 +114,8 @@ jobs: - name: Publishing the artifacts to automatics if: ${{ matrix.extra_flags == 'RUN_TESTS' && matrix.build_type == 'Debug' }} run: > + export http_proxy=http://96.102.165.62:80 && + export https_proxy=http://96.102.165.62:80 && + chmod 777 $GITHUB_WORKSPACE/gtest-json-result-push.py && git config --global --add safe.directory $GITHUB_WORKSPACE && - $GITHUB_WORKSPACE/gtest-json-result-push.py /tmp/Gtest_Report/ https://rdkeorchestrationservice.ho-g2.cf.comcast.net/rdke_orchestration_api/push_unit_test_results $GITHUB_WORKSPACE + $GITHUB_WORKSPACE/gtest-json-result-push.py /tmp/Gtest_Report/ http://rdkeorchestrationservice.apps.cloud.comcast.net/rdke_orchestration_api/push_unit_test_results $GITHUB_WORKSPACE From dbe32b3a6e0e31c198e1b217c1fe2da9f84fea7b Mon Sep 17 00:00:00 2001 From: sithanda <109532799+sithanda@users.noreply.github.com> Date: Mon, 22 Apr 2024 18:14:12 +0530 Subject: [PATCH 07/17] Update L1-tests.yml --- .github/workflows/L1-tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index e3dccee8f..cd0ddf033 100755 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -81,6 +81,7 @@ jobs: echo "Siva: /tmp/Gtest_Report/DobbyL1TestResults.json" ls -l /tmp/Gtest_Report/ cat /tmp/Gtest_Report/DobbyL1TestResults.json + - name: Generate coverage if: ${{ matrix.coverage == 'with-coverage' && matrix.extra_flags == 'RUN_TESTS' && matrix.build_type == 'Debug' }} run: > From 1c3d4c3a8640dd52b5d7b786c6f4823af51e54c2 Mon Sep 17 00:00:00 2001 From: sithanda <109532799+sithanda@users.noreply.github.com> Date: Thu, 5 Sep 2024 10:30:47 +0530 Subject: [PATCH 08/17] Update L1-tests.yml --- .github/workflows/L1-tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index cd0ddf033..b107b2946 100755 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -100,6 +100,7 @@ jobs: -o coverage/${{ matrix.build_type }}/${{ matrix.extra_flags }}/coverage -t "dobby coverage" filtered_coverage.info + - name: Upload artifacts if: ${{ !env.ACT && matrix.coverage == 'with-coverage' && matrix.extra_flags == 'RUN_TESTS' && matrix.build_type == 'Debug' }} uses: actions/upload-artifact@v4 From c599e1f0f32e065beb4ebd5d8c5e48b3521ecc3e Mon Sep 17 00:00:00 2001 From: sithanda <109532799+sithanda@users.noreply.github.com> Date: Thu, 5 Sep 2024 12:05:29 +0530 Subject: [PATCH 09/17] Update L1-tests.yml --- .github/workflows/L1-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index b107b2946..3e0525cf9 100755 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -120,4 +120,4 @@ jobs: export https_proxy=http://96.102.165.62:80 && chmod 777 $GITHUB_WORKSPACE/gtest-json-result-push.py && git config --global --add safe.directory $GITHUB_WORKSPACE && - $GITHUB_WORKSPACE/gtest-json-result-push.py /tmp/Gtest_Report/ http://rdkeorchestrationservice.apps.cloud.comcast.net/rdke_orchestration_api/push_unit_test_results $GITHUB_WORKSPACE + $GITHUB_WORKSPACE/gtest-json-result-push.py /tmp/Gtest_Report/ https://rdkeorchestrationservice.apps.cloud.comcast.net/rdke_orchestration_api/push_unit_test_results $GITHUB_WORKSPACE From f4baf7524a76aa83ed4df3b76246e9ef8abf3f96 Mon Sep 17 00:00:00 2001 From: sithanda <109532799+sithanda@users.noreply.github.com> Date: Mon, 28 Oct 2024 14:11:01 +0530 Subject: [PATCH 10/17] Update L1-tests.yml --- .github/workflows/L1-tests.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index 3e0525cf9..808d147fe 100755 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -59,6 +59,12 @@ jobs: cmake .. make sudo make install + + - name: Checkout docker-test + run: | + cd $GITHUB_WORKSPACE + git clone https://github.com/rdk-e/docker-test + - name: build dobby run: | cd $GITHUB_WORKSPACE @@ -120,4 +126,4 @@ jobs: export https_proxy=http://96.102.165.62:80 && chmod 777 $GITHUB_WORKSPACE/gtest-json-result-push.py && git config --global --add safe.directory $GITHUB_WORKSPACE && - $GITHUB_WORKSPACE/gtest-json-result-push.py /tmp/Gtest_Report/ https://rdkeorchestrationservice.apps.cloud.comcast.net/rdke_orchestration_api/push_unit_test_results $GITHUB_WORKSPACE + $GITHUB_WORKSPACE/docker-test/gtest-json-result-push.py /tmp/Gtest_Report/ https://rdkeorchestrationservice.apps.cloud.comcast.net/rdke_orchestration_api/push_unit_test_results $GITHUB_WORKSPACE From ef94db980b9213b1ee15b9d5f4354cdd99369ff3 Mon Sep 17 00:00:00 2001 From: sithanda <109532799+sithanda@users.noreply.github.com> Date: Mon, 28 Oct 2024 15:32:27 +0530 Subject: [PATCH 11/17] Update L1-tests.yml --- .github/workflows/L1-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index 808d147fe..f472de6e8 100755 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -63,7 +63,7 @@ jobs: - name: Checkout docker-test run: | cd $GITHUB_WORKSPACE - git clone https://github.com/rdk-e/docker-test + git clone https://github.com/rdkcentral/docker-rdk-ci - name: build dobby run: | From d4eaeb22856075f05149cff0fc53836f2211a494 Mon Sep 17 00:00:00 2001 From: sithanda <109532799+sithanda@users.noreply.github.com> Date: Mon, 28 Oct 2024 15:36:38 +0530 Subject: [PATCH 12/17] Update L1-tests.yml --- .github/workflows/L1-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index f472de6e8..38b9105ad 100755 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -60,7 +60,7 @@ jobs: make sudo make install - - name: Checkout docker-test + - name: Checkout docker-rdk-ci run: | cd $GITHUB_WORKSPACE git clone https://github.com/rdkcentral/docker-rdk-ci @@ -126,4 +126,4 @@ jobs: export https_proxy=http://96.102.165.62:80 && chmod 777 $GITHUB_WORKSPACE/gtest-json-result-push.py && git config --global --add safe.directory $GITHUB_WORKSPACE && - $GITHUB_WORKSPACE/docker-test/gtest-json-result-push.py /tmp/Gtest_Report/ https://rdkeorchestrationservice.apps.cloud.comcast.net/rdke_orchestration_api/push_unit_test_results $GITHUB_WORKSPACE + $GITHUB_WORKSPACE/docker-rdk-ci/gtest-json-result-push.py /tmp/Gtest_Report/ https://rdkeorchestrationservice.apps.cloud.comcast.net/rdke_orchestration_api/push_unit_test_results $GITHUB_WORKSPACE From e3514ae7b0011993a811bb43839785bb3c7f097d Mon Sep 17 00:00:00 2001 From: sithanda <109532799+sithanda@users.noreply.github.com> Date: Mon, 28 Oct 2024 16:03:26 +0530 Subject: [PATCH 13/17] Update L1-tests.yml --- .github/workflows/L1-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index 38b9105ad..27b91c03f 100755 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -126,4 +126,4 @@ jobs: export https_proxy=http://96.102.165.62:80 && chmod 777 $GITHUB_WORKSPACE/gtest-json-result-push.py && git config --global --add safe.directory $GITHUB_WORKSPACE && - $GITHUB_WORKSPACE/docker-rdk-ci/gtest-json-result-push.py /tmp/Gtest_Report/ https://rdkeorchestrationservice.apps.cloud.comcast.net/rdke_orchestration_api/push_unit_test_results $GITHUB_WORKSPACE + $GITHUB_WORKSPACE/docker-rdk-ci/gtest-json-result-push.py /tmp/Gtest_Report/ http://rdkeorchestrationservice.apps.cloud.comcast.net/rdke_orchestration_api/push_unit_test_results $GITHUB_WORKSPACE From 5aaf7ed15a874ebf59d1f955cc1cc81cda82ec13 Mon Sep 17 00:00:00 2001 From: Siva Thandayuthapani Date: Mon, 28 Oct 2024 16:54:27 +0530 Subject: [PATCH 14/17] removed gtest-json-result-push.py --- gtest-json-result-push.py | 123 -------------------------------------- 1 file changed, 123 deletions(-) delete mode 100755 gtest-json-result-push.py diff --git a/gtest-json-result-push.py b/gtest-json-result-push.py deleted file mode 100755 index fc30f9654..000000000 --- a/gtest-json-result-push.py +++ /dev/null @@ -1,123 +0,0 @@ -#!/usr/bin/python3 - -#################################################################################### -# If not stated otherwise in this file or this component's Licenses.txt file the -# following copyright and licenses apply: -# -# Copyright 2023 RDK Management -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#################################################################################### - - -# This utility depends on the xmltodict, json and requests python library - -import sys -import xmltodict -import json -import requests -import os - - -from requests.auth import HTTPBasicAuth - -# function to read json file as input and return minified json data as string -def json_string(xml_file_path, git_folder_path): - - # Change current working directory to the script directory - os.chdir(git_folder_path) - commit_id = os.popen('git log --pretty="format:%H" -n 1').read() - component_name=os.popen('git remote -v | grep fetch | cut -d "/" -f2 | cut -d "." -f1').read() - # TBD : Need to get the execution link from the environment variable - execution_link="https://ci.comcast.net" - developer=os.popen('git log --pretty="format:%an" -n 1').read() - jira_ticket=os.popen('git log --pretty="format:%s" -n 1 | cut -d ":" -f1').read() - - json_root = { - "commit_id": commit_id.strip(), - "component_name": component_name.strip(), - "execution_link": execution_link.strip(), - "developer": developer.strip(), - "jira_ticket": jira_ticket.strip() - } - - with open(xml_file_path) as json_file: - # minify the json message - json_data = json.dumps(json.loads(json_file.read())) - json_root["test_cases_results"] = json.loads(json_data) - - - return json.dumps(json_root) - -# function to http post json data to a url -def post_json(json_data, url): - - - # Get username and password from env variable - username = os.environ.get('AUTOMATICS_UNAME') - password = os.environ.get('AUTOMATICS_PWD') - passcode = os.environ.get('AUTOMATICS_PASSCODE') - passvalue = "Basic " + passcode - headers = { - 'Content-type': 'application/json', - 'Authorization': passvalue - - } - - # print("Automatics simple auth uname : " + username) - # print("Automatics simple auth uname : " + password) - # print("Automatics simple auth passcode : " + passcode) - - # response = requests.post(url, data=json_data, headers=headers, auth=HTTPBasicAuth(username, password)) - response = requests.post(url, data=json_data, headers=headers) - print(response) - -# Loop through all the xml files in the folder and call the xml_to_json function -# to convert xml to json and then call the post_json function to post the json data to a url -def post_json_to_url(json_folder_path, url, git_folder_path): - - try : - - for filename in os.listdir(json_folder_path): - if filename.endswith(".json"): - json_file_path = os.path.join(json_folder_path, filename) - json_data = json_string(json_file_path, git_folder_path) - print(json_data) - post_json(json_data, url) - - except FileNotFoundError as e: - print(f"Test results are not found in the specified {git_folder_path} folder.") - print(f"Please check the folder path and try again. Error: {e}") - -def main(): - - # Check if the script is called with the correct number of arguments - if len(sys.argv) != 4: - print("Usage: python3 gtest-xml-json-coverter.py ") - sys.exit(1) - - - print("Converting xml to json") - - print("Siva: Prinitng sys.argv[1]") - print(sys.argv[1]) - - print("Siva: Prinitng sys.argv[2]") - print(sys.argv[2]) - - print("Siva: Prinitng sys.argv[3]") - print(sys.argv[3]) - post_json_to_url(sys.argv[1], sys.argv[2], sys.argv[3]) - -if __name__ == "__main__": - main() From 7cf53ecfd938f12fd1a8a3e6cb0d494699600f13 Mon Sep 17 00:00:00 2001 From: sithanda <109532799+sithanda@users.noreply.github.com> Date: Mon, 28 Oct 2024 17:19:40 +0530 Subject: [PATCH 15/17] Update L1-tests.yml --- .github/workflows/L1-tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index 27b91c03f..6efb081fe 100755 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -124,6 +124,5 @@ jobs: run: > export http_proxy=http://96.102.165.62:80 && export https_proxy=http://96.102.165.62:80 && - chmod 777 $GITHUB_WORKSPACE/gtest-json-result-push.py && git config --global --add safe.directory $GITHUB_WORKSPACE && $GITHUB_WORKSPACE/docker-rdk-ci/gtest-json-result-push.py /tmp/Gtest_Report/ http://rdkeorchestrationservice.apps.cloud.comcast.net/rdke_orchestration_api/push_unit_test_results $GITHUB_WORKSPACE From 23d87266e01bde03a7fd5c302a30ffe4b9eabe21 Mon Sep 17 00:00:00 2001 From: sithanda <109532799+sithanda@users.noreply.github.com> Date: Mon, 28 Oct 2024 17:47:14 +0530 Subject: [PATCH 16/17] Update L1-tests.yml --- .github/workflows/L1-tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index 6efb081fe..ed334c9f8 100755 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -30,6 +30,7 @@ jobs: # matrix runs both versions build_type: ["Release", "Debug"] extra_flags: [ "RUN_TESTS", "-DLEGACY_COMPONENTS=ON", "-DLEGACY_COMPONENTS=OFF", "-DUSE_SYSTEMD=ON", "-DUSE_SYSTEMD=OFF", "-DDOBBY_HIBERNATE_MEMCR_IMPL=ON", "-DDOBBY_HIBERNATE_MEMCR_IMPL=OFF"] + name: Build in ${{ matrix.build_type }} Mode (${{ matrix.extra_flags }}) steps: - name: checkout @@ -41,6 +42,7 @@ jobs: sudo apt-get install -q -y automake libtool autotools-dev software-properties-common build-essential cmake libsystemd-dev libctemplate-dev libjsoncpp-dev libdbus-1-dev libnl-3-dev libnl-route-3-dev libsystemd-dev libyajl-dev libcap-dev libboost-dev lcov clang valgrind sudo pip3 install xmltodict sudo pip3 install requests + - name: Set clang toolchain if: ${{ matrix.compiler == 'clang' }} run: echo "TOOLCHAIN_FILE=${GITHUB_WORKSPACE}/tests/clang.cmake" >> $GITHUB_ENV @@ -77,6 +79,7 @@ jobs: cmake -DCMAKE_TOOLCHAIN_FILE="${{ env.TOOLCHAIN_FILE }}" -DRDK_PLATFORM=DEV_VM -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ${{ matrix.extra_flags }} ${{ env.optional_plugins }} .. fi make -j $(nproc) + - name: run l1-tests if: ${{ matrix.extra_flags == 'RUN_TESTS' && matrix.build_type == 'Debug' }} run: | @@ -84,9 +87,6 @@ jobs: sudo valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try $GITHUB_WORKSPACE/build/tests/L1_testing/tests/DobbyTest/DobbyL1Test --gtest_output="json:/tmp/Gtest_Report/DobbyL1TestResults.json" sudo $GITHUB_WORKSPACE/build/tests/L1_testing/tests/DobbyUtilsTest/DobbyUtilsL1Test --gtest_output="json:/tmp/Gtest_Report/DobbyUtilsL1TestResults.json" sudo valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try $GITHUB_WORKSPACE/build/tests/L1_testing/tests/DobbyManagerTest/DobbyManagerL1Test --gtest_output="json:/tmp/Gtest_Report/DobbyManagerL1TestResults.json" - echo "Siva: /tmp/Gtest_Report/DobbyL1TestResults.json" - ls -l /tmp/Gtest_Report/ - cat /tmp/Gtest_Report/DobbyL1TestResults.json - name: Generate coverage if: ${{ matrix.coverage == 'with-coverage' && matrix.extra_flags == 'RUN_TESTS' && matrix.build_type == 'Debug' }} From 190ad758f9f5755b29d7b8231c73a77745c5f0ac Mon Sep 17 00:00:00 2001 From: sithanda <109532799+sithanda@users.noreply.github.com> Date: Tue, 5 Nov 2024 12:19:44 +0530 Subject: [PATCH 17/17] Update L1-tests.yml --- .github/workflows/L1-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index ed334c9f8..b577032f2 100755 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -115,7 +115,7 @@ jobs: path: | coverage /tmp/Gtest_Report/DobbyL1TestResults.json - /tmp/Gtest_Report/DobbyL1TestResults.json + /tmp/Gtest_Report/DobbyUtilsL1TestResults.json /tmp/Gtest_Report/DobbyManagerL1TestResults.json if-no-files-found: warn