From d3250e2c840d9abd424141f500cc0ede0cd5ef19 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 10:46:46 +0530 Subject: [PATCH 01/56] test --- .github/workflows/PRComment.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/PRComment.yml diff --git a/.github/workflows/PRComment.yml b/.github/workflows/PRComment.yml new file mode 100644 index 0000000..1755a43 --- /dev/null +++ b/.github/workflows/PRComment.yml @@ -0,0 +1,19 @@ +name: PR Comment + +on: + pull_request: + types: [opened, synchronize] + +jobs: + comment: + runs-on: ubuntu-latest + steps: + - name: Post a comment on the PR + uses: peter-evans/create-or-update-comment@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ github.event.pull_request.number }} + body: | + ๐Ÿ‘‹ Hello! This is an automated comment from GitHub Actions. + Let me know if you need help with anything! + From 99a3f5adff9c8b55495572ecac06fdc7bd8468d2 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 11:08:58 +0530 Subject: [PATCH 02/56] test --- .github/workflows/L1-tests.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index 5379edf..2e02dd3 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -126,4 +126,18 @@ jobs: uses: actions/upload-artifact@v4 with: name: coverage-report - path: /tmp/coverage_report + path: /tmp/coverage_report + + - name: Extract coverage summary + if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} + id: coverage + run: | + COVERAGE=$(grep -m1 'lines-covered' coverage.info | awk '{print $2}') + TOTAL=$(grep -m1 'lines-valid' coverage.info | awk '{print $2}') + PERCENT=$(echo "scale=2; $COVERAGE / $TOTAL * 100" | bc) + echo "body<> $GITHUB_OUTPUT + echo "๐Ÿงช **Code Coverage Report for @${{ github.event.pull_request.user.login }}**" >> $GITHUB_OUTPUT + echo "" >> $GITHUB_OUTPUT + echo "โœ… Line coverage: ${PERCENT}%." >> $GITHUB_OUTPUT + echo "EOF" >> $GITHUB_OUTPUT + From c4387ac6bc82ccea2c3dbb739a5b225c25219f2a Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 11:58:24 +0530 Subject: [PATCH 03/56] test --- .github/workflows/L1-tests.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index 2e02dd3..01fd345 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -132,12 +132,10 @@ jobs: if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} id: coverage run: | - COVERAGE=$(grep -m1 'lines-covered' coverage.info | awk '{print $2}') - TOTAL=$(grep -m1 'lines-valid' coverage.info | awk '{print $2}') - PERCENT=$(echo "scale=2; $COVERAGE / $TOTAL * 100" | bc) + COVERAGE=$(grep -m1 "lines" coverage.info | awk '{print $2}') echo "body<> $GITHUB_OUTPUT echo "๐Ÿงช **Code Coverage Report for @${{ github.event.pull_request.user.login }}**" >> $GITHUB_OUTPUT echo "" >> $GITHUB_OUTPUT - echo "โœ… Line coverage: ${PERCENT}%." >> $GITHUB_OUTPUT + echo "โœ… Line coverage: ${COVERAGE}." >> $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT From d5e80af78d41c1b1b4e2a158af9700953ecd198d Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 12:14:39 +0530 Subject: [PATCH 04/56] test --- .github/workflows/L1-tests.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index 01fd345..a2c08a0 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -128,14 +128,33 @@ jobs: name: coverage-report path: /tmp/coverage_report + # - name: Extract coverage summary + # if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} + # id: coverage + #run: | + #COVERAGE=$(grep -m1 "lines" coverage.info | awk '{print $2}') + #echo "body<> $GITHUB_OUTPUT + # echo "๐Ÿงช **Code Coverage Report for @${{ github.event.pull_request.user.login }}**" >> $GITHUB_OUTPUT + #echo "" >> $GITHUB_OUTPUT + #echo "โœ… Line coverage: ${COVERAGE}." >> $GITHUB_OUTPUT + #echo "EOF" >> $GITHUB_OUTPUT - name: Extract coverage summary if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} id: coverage run: | - COVERAGE=$(grep -m1 "lines" coverage.info | awk '{print $2}') echo "body<> $GITHUB_OUTPUT echo "๐Ÿงช **Code Coverage Report for @${{ github.event.pull_request.user.login }}**" >> $GITHUB_OUTPUT echo "" >> $GITHUB_OUTPUT - echo "โœ… Line coverage: ${COVERAGE}." >> $GITHUB_OUTPUT + echo "```\nOverall coverage rate:" >> $GITHUB_OUTPUT + echo " lines......: 80.8% (497 of 615 lines)" >> $GITHUB_OUTPUT + echo " functions..: 87.5% (42 of 48 functions)\n```" >> $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT + + - name: Post coverage comment on PR + if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} + uses: peter-evans/create-or-update-comment@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ github.event.pull_request.number }} + body: ${{ steps.coverage.outputs.body }} From 21b3840d30a6984a00265ff22828f95f26c38f83 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 12:22:27 +0530 Subject: [PATCH 05/56] test --- .github/workflows/L1-tests.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index a2c08a0..5dcd9a9 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -143,11 +143,7 @@ jobs: id: coverage run: | echo "body<> $GITHUB_OUTPUT - echo "๐Ÿงช **Code Coverage Report for @${{ github.event.pull_request.user.login }}**" >> $GITHUB_OUTPUT - echo "" >> $GITHUB_OUTPUT - echo "```\nOverall coverage rate:" >> $GITHUB_OUTPUT echo " lines......: 80.8% (497 of 615 lines)" >> $GITHUB_OUTPUT - echo " functions..: 87.5% (42 of 48 functions)\n```" >> $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT - name: Post coverage comment on PR From e7ef54bb9a88b6b25615064e8cefcd38fc43f30c Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 12:38:21 +0530 Subject: [PATCH 06/56] test --- .github/workflows/L1-tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index 5dcd9a9..14b4f49 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -143,7 +143,8 @@ jobs: id: coverage run: | echo "body<> $GITHUB_OUTPUT - echo " lines......: 80.8% (497 of 615 lines)" >> $GITHUB_OUTPUT + COVERAGE=$(grep -m1 "lines" coverage.info | awk '{print $2}') + echo "โœ… Line coverage: ${COVERAGE}." >> $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT - name: Post coverage comment on PR From 0f570302299765d8e24f98ba2a1e20f6af87be95 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 12:45:18 +0530 Subject: [PATCH 07/56] test --- .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 14b4f49..19d04ed 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -144,7 +144,7 @@ jobs: run: | echo "body<> $GITHUB_OUTPUT COVERAGE=$(grep -m1 "lines" coverage.info | awk '{print $2}') - echo "โœ… Line coverage: ${COVERAGE}." >> $GITHUB_OUTPUT + echo "${COVERAGE}." >> $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT - name: Post coverage comment on PR From 6081efd9e83976ccfac443210972803d20f0f25c Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 12:55:41 +0530 Subject: [PATCH 08/56] test --- .github/workflows/L1-tests.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index 19d04ed..9232283 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -144,7 +144,9 @@ jobs: run: | echo "body<> $GITHUB_OUTPUT COVERAGE=$(grep -m1 "lines" coverage.info | awk '{print $2}') - echo "${COVERAGE}." >> $GITHUB_OUTPUT + echo "Extracted coverage: '${COVERAGE}'" >>GITHUB_OUTPUT + #echo "${COVERAGE}" >> $GITHUB_OUTPUT + cat $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT - name: Post coverage comment on PR From 14c0a1cd47ed360e96db430333083c8b5e897ab5 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 13:31:52 +0530 Subject: [PATCH 09/56] test --- .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 9232283..5f246db 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -144,8 +144,8 @@ jobs: run: | echo "body<> $GITHUB_OUTPUT COVERAGE=$(grep -m1 "lines" coverage.info | awk '{print $2}') - echo "Extracted coverage: '${COVERAGE}'" >>GITHUB_OUTPUT - #echo "${COVERAGE}" >> $GITHUB_OUTPUT + # echo "Extracted coverage: '${COVERAGE}'" >>GITHUB_OUTPUT + echo "line coverage : '${COVERAGE}'" >> $GITHUB_OUTPUT cat $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT From 14f1f103e13c8ddcc0b4221a79bdd80eadc14e57 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 13:34:44 +0530 Subject: [PATCH 10/56] test --- .github/workflows/L1-tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index 5f246db..c0a1c28 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -155,5 +155,6 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ github.event.pull_request.number }} - body: ${{ steps.coverage.outputs.body }} + body: | + "line coverage : ${COVERAGE} " From 5363c759e58137046b18b1441ae221f1086fb58b Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 13:48:43 +0530 Subject: [PATCH 11/56] test --- .github/workflows/L1-tests.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index c0a1c28..4094628 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -145,7 +145,7 @@ jobs: echo "body<> $GITHUB_OUTPUT COVERAGE=$(grep -m1 "lines" coverage.info | awk '{print $2}') # echo "Extracted coverage: '${COVERAGE}'" >>GITHUB_OUTPUT - echo "line coverage : '${COVERAGE}'" >> $GITHUB_OUTPUT + echo "line coverage : $COVERAGE" >> $GITHUB_OUTPUT cat $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT @@ -155,6 +155,5 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ github.event.pull_request.number }} - body: | - "line coverage : ${COVERAGE} " + body: ${{ steps.coverage.outputs.body }} From 84740f490ebb288423b7af2876ccd0595f61e54b Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 13:55:47 +0530 Subject: [PATCH 12/56] test --- .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 4094628..9da51d8 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -145,7 +145,7 @@ jobs: echo "body<> $GITHUB_OUTPUT COVERAGE=$(grep -m1 "lines" coverage.info | awk '{print $2}') # echo "Extracted coverage: '${COVERAGE}'" >>GITHUB_OUTPUT - echo "line coverage : $COVERAGE" >> $GITHUB_OUTPUT + echo "line coverage : $COVERAGE" >> "$GITHUB_OUTPUT" cat $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT From 1cebe50419b4accb3f3f0af1cd6df4ff21b86512 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 14:16:01 +0530 Subject: [PATCH 13/56] test --- .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 9da51d8..c81a6f1 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -146,7 +146,7 @@ jobs: COVERAGE=$(grep -m1 "lines" coverage.info | awk '{print $2}') # echo "Extracted coverage: '${COVERAGE}'" >>GITHUB_OUTPUT echo "line coverage : $COVERAGE" >> "$GITHUB_OUTPUT" - cat $GITHUB_OUTPUT + cat "$GITHUB_OUTPUT" echo "EOF" >> $GITHUB_OUTPUT - name: Post coverage comment on PR From bfa0dc1c158a8a4894e5ff97e30957092a4e0b86 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 14:21:16 +0530 Subject: [PATCH 14/56] test --- .github/workflows/L1-tests.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index c81a6f1..56f1899 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -142,12 +142,8 @@ jobs: if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} id: coverage run: | - echo "body<> $GITHUB_OUTPUT COVERAGE=$(grep -m1 "lines" coverage.info | awk '{print $2}') - # echo "Extracted coverage: '${COVERAGE}'" >>GITHUB_OUTPUT - echo "line coverage : $COVERAGE" >> "$GITHUB_OUTPUT" - cat "$GITHUB_OUTPUT" - echo "EOF" >> $GITHUB_OUTPUT + echo "body=Line coverage: ${COVERAGE}" >> $GITHUB_OUTPUT - name: Post coverage comment on PR if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} From 727eb84822c8099055b0e030c9ec87b2a6bd3072 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 14:31:06 +0530 Subject: [PATCH 15/56] test --- .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 56f1899..1ff8064 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -144,7 +144,7 @@ jobs: run: | COVERAGE=$(grep -m1 "lines" coverage.info | awk '{print $2}') echo "body=Line coverage: ${COVERAGE}" >> $GITHUB_OUTPUT - + echo "Check: Extracted for output: Line coverage: ${COVERAGE}" - name: Post coverage comment on PR if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} uses: peter-evans/create-or-update-comment@v3 From f57f179890ca18cc0f555ad4f4b92fb09c79c260 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 14:39:14 +0530 Subject: [PATCH 16/56] test --- .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 1ff8064..c21951d 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -144,7 +144,7 @@ jobs: run: | COVERAGE=$(grep -m1 "lines" coverage.info | awk '{print $2}') echo "body=Line coverage: ${COVERAGE}" >> $GITHUB_OUTPUT - echo "Check: Extracted for output: Line coverage: ${COVERAGE}" + echo "Check: Extracted for output: Line coverage: $COVERAGE" - name: Post coverage comment on PR if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} uses: peter-evans/create-or-update-comment@v3 From c8887021082ff552854daa82023da38889339243 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 14:45:46 +0530 Subject: [PATCH 17/56] test --- .github/workflows/L1-tests.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index c21951d..c06fa41 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -142,6 +142,8 @@ jobs: if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} id: coverage run: | + cd /tmp/coverage_report + ls -lt COVERAGE=$(grep -m1 "lines" coverage.info | awk '{print $2}') echo "body=Line coverage: ${COVERAGE}" >> $GITHUB_OUTPUT echo "Check: Extracted for output: Line coverage: $COVERAGE" From a4478a64463cc35fec5e04f469474bff5619471e Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 14:48:49 +0530 Subject: [PATCH 18/56] test --- .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 c06fa41..ea14729 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -142,7 +142,7 @@ jobs: if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} id: coverage run: | - cd /tmp/coverage_report + ls -lt COVERAGE=$(grep -m1 "lines" coverage.info | awk '{print $2}') echo "body=Line coverage: ${COVERAGE}" >> $GITHUB_OUTPUT From 92ad41095e3ab7ef05236350c6c43bcd6ea9fbfa Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 14:52:04 +0530 Subject: [PATCH 19/56] test --- .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 ea14729..784e3d3 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -142,8 +142,8 @@ jobs: if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} id: coverage run: | - ls -lt + cat coverage.info COVERAGE=$(grep -m1 "lines" coverage.info | awk '{print $2}') echo "body=Line coverage: ${COVERAGE}" >> $GITHUB_OUTPUT echo "Check: Extracted for output: Line coverage: $COVERAGE" From 50109f7f7c05517809440b43153a5cd9dcd7cd7d Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 14:52:38 +0530 Subject: [PATCH 20/56] test --- .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 784e3d3..c7334a0 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -143,7 +143,7 @@ jobs: id: coverage run: | ls -lt - cat coverage.info + grep -m1 "lines" coverage.info | awk '{print $2}' COVERAGE=$(grep -m1 "lines" coverage.info | awk '{print $2}') echo "body=Line coverage: ${COVERAGE}" >> $GITHUB_OUTPUT echo "Check: Extracted for output: Line coverage: $COVERAGE" From 25d7a4e6505eb82ae469e780c76e4fa3990f65cf Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 14:56:11 +0530 Subject: [PATCH 21/56] test --- .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 c7334a0..aa398dc 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -142,7 +142,7 @@ jobs: if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} id: coverage run: | - ls -lt + cat coverage.info grep -m1 "lines" coverage.info | awk '{print $2}' COVERAGE=$(grep -m1 "lines" coverage.info | awk '{print $2}') echo "body=Line coverage: ${COVERAGE}" >> $GITHUB_OUTPUT From 14885b1d3cee24f1e96fea0f8b87326b1a6f4ed5 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 15:32:50 +0530 Subject: [PATCH 22/56] test --- .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 aa398dc..7b1fa53 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -143,6 +143,7 @@ jobs: id: coverage run: | cat coverage.info + lcov --list coverage.info grep -m1 "lines" coverage.info | awk '{print $2}' COVERAGE=$(grep -m1 "lines" coverage.info | awk '{print $2}') echo "body=Line coverage: ${COVERAGE}" >> $GITHUB_OUTPUT From 2ad63463a5c7c55ad934fc00d31b3e2ea1d9f340 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 15:40:16 +0530 Subject: [PATCH 23/56] test --- .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 7b1fa53..44ea1ba 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -142,10 +142,10 @@ jobs: if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} id: coverage run: | - cat coverage.info lcov --list coverage.info - grep -m1 "lines" coverage.info | awk '{print $2}' - COVERAGE=$(grep -m1 "lines" coverage.info | awk '{print $2}') + lcov --summary coverage.info >>log.txt + cat log.txt + COVERAGE=$(grep -m1 "lines" log.txt | awk '{print $2}') echo "body=Line coverage: ${COVERAGE}" >> $GITHUB_OUTPUT echo "Check: Extracted for output: Line coverage: $COVERAGE" - name: Post coverage comment on PR From 2baa47e8808ddde6b8e45abe7e993d2c6d2f5943 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 15:47:13 +0530 Subject: [PATCH 24/56] test --- .github/workflows/L1-tests.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index 44ea1ba..a1aeccc 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -145,9 +145,12 @@ jobs: lcov --list coverage.info lcov --summary coverage.info >>log.txt cat log.txt - COVERAGE=$(grep -m1 "lines" log.txt | awk '{print $2}') - echo "body=Line coverage: ${COVERAGE}" >> $GITHUB_OUTPUT - echo "Check: Extracted for output: Line coverage: $COVERAGE" + LINE_COVERAGE=$(grep -m1 "lines" log.txt | awk '{print $2}') + echo "body=Line coverage: ${LINE_COVERAGE}" >> $GITHUB_OUTPUT + FUNCTION_COVERAGE=$(grep -m1 "functions" log.txt | awk '{print $2}') + echo "body=Line coverage: ${FUNCTION_COVERAGE}" >> $GITHUB_OUTPUT + echo "Check: Extracted for output: Line coverage: $LINE_COVERAGE" + echo "Check: Extracted for output: Function coverage: $FUNCTION_COVERAGE" - name: Post coverage comment on PR if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} uses: peter-evans/create-or-update-comment@v3 From cd59cabd9dfff8cb132d1df442e6acc90ef911a2 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 15:52:11 +0530 Subject: [PATCH 25/56] test --- .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 a1aeccc..9aaf0d2 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -146,9 +146,9 @@ jobs: lcov --summary coverage.info >>log.txt cat log.txt LINE_COVERAGE=$(grep -m1 "lines" log.txt | awk '{print $2}') - echo "body=Line coverage: ${LINE_COVERAGE}" >> $GITHUB_OUTPUT FUNCTION_COVERAGE=$(grep -m1 "functions" log.txt | awk '{print $2}') - echo "body=Line coverage: ${FUNCTION_COVERAGE}" >> $GITHUB_OUTPUT + echo "body=Line coverage: ${LINE_COVERAGE} Function coverage:${FUNCTION_COVERAGE}" >> $GITHUB_OUTPUT + #echo "body=Line coverage: ${FUNCTION_COVERAGE}" >> $GITHUB_OUTPUT echo "Check: Extracted for output: Line coverage: $LINE_COVERAGE" echo "Check: Extracted for output: Function coverage: $FUNCTION_COVERAGE" - name: Post coverage comment on PR From 7ad09f759859b37a25166ae9e7358bed2b4ce205 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Wed, 5 Nov 2025 15:57:56 +0530 Subject: [PATCH 26/56] test --- .github/workflows/L1-tests.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index 9aaf0d2..a326357 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -147,15 +147,21 @@ jobs: cat log.txt LINE_COVERAGE=$(grep -m1 "lines" log.txt | awk '{print $2}') FUNCTION_COVERAGE=$(grep -m1 "functions" log.txt | awk '{print $2}') - echo "body=Line coverage: ${LINE_COVERAGE} Function coverage:${FUNCTION_COVERAGE}" >> $GITHUB_OUTPUT - #echo "body=Line coverage: ${FUNCTION_COVERAGE}" >> $GITHUB_OUTPUT + #echo "body=Line coverage: ${LINE_COVERAGE} Function coverage:${FUNCTION_COVERAGE}" >> $GITHUB_OUTPUT + #echo "body=Line coverage: ${FUNCTION_COVERAGE}" >> $GITHUB_OUTPUT + echo "line_coverage=${LINE_COVERAGE}" >> $GITHUB_OUTPUT + echo "function_coverage=${FUNCTION_COVERAGE}" >> $GITHUB_OUTPUT echo "Check: Extracted for output: Line coverage: $LINE_COVERAGE" echo "Check: Extracted for output: Function coverage: $FUNCTION_COVERAGE" + - name: Post coverage comment on PR if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} uses: peter-evans/create-or-update-comment@v3 with: token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ github.event.pull_request.number }} - body: ${{ steps.coverage.outputs.body }} + body: | + Newly added lines compared to develop: ${{ steps.lines_added.outputs.added_lines }} + Function coverage: ${{ steps.coverage.outputs.function_coverage }} + #${{ steps.coverage.outputs.body }} From 7b6e2b18ff86c7fef9740a190b9c86682aa8fc57 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 09:12:03 +0530 Subject: [PATCH 27/56] test --- .github/workflows/L1-tests.yml | 11 +++++++++++ .github/workflows/test.yml | 18 ++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index a326357..e6c36dc 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -154,6 +154,17 @@ jobs: echo "Check: Extracted for output: Line coverage: $LINE_COVERAGE" echo "Check: Extracted for output: Function coverage: $FUNCTION_COVERAGE" + - name: Calculate newly added lines compared to develop + if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} + id: lines_added + run: | + ls -lt + git fetch origin develop + # Count lines starting with "+" (excluding diff headers) + ADDED_LINES=$(git diff --unified=0 origin/develop...HEAD | grep '^+' | grep -v '^+++' | wc -l) + echo "added_lines=${ADDED_LINES}" >> $GITHUB_OUTPUT + echo "check : added_lines " $ADDED_LINES" + - name: Post coverage comment on PR if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} uses: peter-evans/create-or-update-comment@v3 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..4a35407 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,18 @@ + comment-added-lines: + name: Comment added lines in PR + runs-on: ubuntu-22.04 + if: github.event_name == 'pull_request' + needs: l1-tests + steps: + - name: Checkout PR branch + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Calculate added lines + id: added_lines + run: | + # Find the diff against the base branch + ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }}...HEAD | grep '^+' | grep -v '^+++' | wc -l) + echo "ADDED_LINES=$ADDED_LINES" >> $GITHUB_OUTPUT + From 01c80163a3d37394e015b61c6cdda433660b3644 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 09:19:05 +0530 Subject: [PATCH 28/56] test --- .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 e6c36dc..98fd91f 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -158,6 +158,7 @@ jobs: if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} id: lines_added run: | + cd ${{github.workspace}} ls -lt git fetch origin develop # Count lines starting with "+" (excluding diff headers) From 418bdf7325d72e33366e7524472e98cd1ce8238b Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 09:24:33 +0530 Subject: [PATCH 29/56] test --- .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 98fd91f..ccc06e0 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -158,7 +158,7 @@ jobs: if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} id: lines_added run: | - cd ${{github.workspace}} + cd "$(dirname "${{ github.workspace }}")" ls -lt git fetch origin develop # Count lines starting with "+" (excluding diff headers) From 439ad1670722cbb5f2e760757fb4fdffd27fa4e8 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 09:46:35 +0530 Subject: [PATCH 30/56] test --- .github/workflows/PRComment.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/PRComment.yml b/.github/workflows/PRComment.yml index 1755a43..2ed4f21 100644 --- a/.github/workflows/PRComment.yml +++ b/.github/workflows/PRComment.yml @@ -8,6 +8,16 @@ jobs: comment: runs-on: ubuntu-latest steps: + - name: Get number of newly added lines with GitHub CLI + if: ${{ github.event_name == 'pull_request' }} + id: lines_added + run: | + gh pr diff ${{ github.event.pull_request.number }} --stat > pr_stat.txt + # Parse added lines from the stats output + ADDED_LINES=$(grep -Eo '[0-9]+ insertion' pr_stat.txt | awk '{print $1}' | paste -sd+ - | bc) + echo "added_lines=$ADDED_LINES" >> $GITHUB_OUTPUT + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Post a comment on the PR uses: peter-evans/create-or-update-comment@v3 with: From 940120c21a527105caf75afd3f22838f495a2364 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 09:50:02 +0530 Subject: [PATCH 31/56] test --- .github/workflows/PRComment.yml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/PRComment.yml b/.github/workflows/PRComment.yml index 2ed4f21..77b7d00 100644 --- a/.github/workflows/PRComment.yml +++ b/.github/workflows/PRComment.yml @@ -8,16 +8,22 @@ jobs: comment: runs-on: ubuntu-latest steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up GitHub CLI + uses: cli/gh-action@v2 + - name: Get number of newly added lines with GitHub CLI - if: ${{ github.event_name == 'pull_request' }} - id: lines_added - run: | - gh pr diff ${{ github.event.pull_request.number }} --stat > pr_stat.txt - # Parse added lines from the stats output - ADDED_LINES=$(grep -Eo '[0-9]+ insertion' pr_stat.txt | awk '{print $1}' | paste -sd+ - | bc) - echo "added_lines=$ADDED_LINES" >> $GITHUB_OUTPUT - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + id: lines_added + run: | + gh pr diff ${{ github.event.pull_request.number }} --stat > pr_stat.txt + # Parse added lines from the stats output + ADDED_LINES=$(grep -Eo '[0-9]+ insertion' pr_stat.txt | awk '{print $1}' | paste -sd+ - | bc) + echo "added_lines=$ADDED_LINES" >> $GITHUB_OUTPUT + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Post a comment on the PR uses: peter-evans/create-or-update-comment@v3 with: @@ -25,5 +31,5 @@ jobs: issue-number: ${{ github.event.pull_request.number }} body: | ๐Ÿ‘‹ Hello! This is an automated comment from GitHub Actions. + ๐Ÿ”ข Number of newly added lines in this PR: ${{ steps.lines_added.outputs.added_lines }} Let me know if you need help with anything! - From ac2b5012e7f2137801c1a2d2d84f3cd29194e181 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 10:00:09 +0530 Subject: [PATCH 32/56] test --- .github/workflows/PRComment.yml | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/.github/workflows/PRComment.yml b/.github/workflows/PRComment.yml index 77b7d00..d2e6818 100644 --- a/.github/workflows/PRComment.yml +++ b/.github/workflows/PRComment.yml @@ -8,22 +8,12 @@ jobs: comment: runs-on: ubuntu-latest steps: - - name: Checkout code + - name: Checkout PR uses: actions/checkout@v3 - - - name: Set up GitHub CLI - uses: cli/gh-action@v2 - - - name: Get number of newly added lines with GitHub CLI - id: lines_added - run: | - gh pr diff ${{ github.event.pull_request.number }} --stat > pr_stat.txt - # Parse added lines from the stats output - ADDED_LINES=$(grep -Eo '[0-9]+ insertion' pr_stat.txt | awk '{print $1}' | paste -sd+ - | bc) - echo "added_lines=$ADDED_LINES" >> $GITHUB_OUTPUT - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - + - name: Run git fetch + run : | + cd ${{ github.workspace }} + git fetch origin ${{ github.event.pull_request.base.ref }} - name: Post a comment on the PR uses: peter-evans/create-or-update-comment@v3 with: @@ -31,5 +21,5 @@ jobs: issue-number: ${{ github.event.pull_request.number }} body: | ๐Ÿ‘‹ Hello! This is an automated comment from GitHub Actions. - ๐Ÿ”ข Number of newly added lines in this PR: ${{ steps.lines_added.outputs.added_lines }} Let me know if you need help with anything! + From 8f8953f38236ec11f32e941230a3724e5ccecb6a Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 10:03:41 +0530 Subject: [PATCH 33/56] test --- .github/workflows/PRComment.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/PRComment.yml b/.github/workflows/PRComment.yml index d2e6818..297e436 100644 --- a/.github/workflows/PRComment.yml +++ b/.github/workflows/PRComment.yml @@ -13,7 +13,8 @@ jobs: - name: Run git fetch run : | cd ${{ github.workspace }} - git fetch origin ${{ github.event.pull_request.base.ref }} + #git fetch origin ${{ github.event.pull_request.base.ref }} + git fetch origin develop - name: Post a comment on the PR uses: peter-evans/create-or-update-comment@v3 with: From 3631d5abc97e98429137d8e3c9700c2ff7607215 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 10:07:41 +0530 Subject: [PATCH 34/56] test --- .github/workflows/PRComment.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/PRComment.yml b/.github/workflows/PRComment.yml index 297e436..0e2bd87 100644 --- a/.github/workflows/PRComment.yml +++ b/.github/workflows/PRComment.yml @@ -13,8 +13,11 @@ jobs: - name: Run git fetch run : | cd ${{ github.workspace }} - #git fetch origin ${{ github.event.pull_request.base.ref }} - git fetch origin develop + git fetch origin ${{ github.event.pull_request.base.ref }} + ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }}...HEAD | grep '^+' | grep -v '^+++' | wc -l) + echo "added_lines=${ADDED_LINES}" >> $GITHUB_OUTPUT + echo "check : added_lines " $ADDED_LINES" + #git fetch origin develop - name: Post a comment on the PR uses: peter-evans/create-or-update-comment@v3 with: From 6367f0c6a3a368dd7563b0a0a72d003b7a5b7772 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 10:12:30 +0530 Subject: [PATCH 35/56] test --- .github/workflows/PRComment.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/PRComment.yml b/.github/workflows/PRComment.yml index 0e2bd87..dcd07be 100644 --- a/.github/workflows/PRComment.yml +++ b/.github/workflows/PRComment.yml @@ -14,7 +14,8 @@ jobs: run : | cd ${{ github.workspace }} git fetch origin ${{ github.event.pull_request.base.ref }} - ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }}...HEAD | grep '^+' | grep -v '^+++' | wc -l) + git fetch origin ${{ github.event.pull_request.head.ref }} + ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }}...origin/${{ github.event.pull_request.head.ref }} | grep '^+' | grep -v '^+++' | wc -l) echo "added_lines=${ADDED_LINES}" >> $GITHUB_OUTPUT echo "check : added_lines " $ADDED_LINES" #git fetch origin develop From b7282cab6281c16a5cbc2b64596ebb1d0e917e88 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 10:16:18 +0530 Subject: [PATCH 36/56] test --- .github/workflows/PRComment.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/PRComment.yml b/.github/workflows/PRComment.yml index dcd07be..3245d80 100644 --- a/.github/workflows/PRComment.yml +++ b/.github/workflows/PRComment.yml @@ -16,7 +16,6 @@ jobs: git fetch origin ${{ github.event.pull_request.base.ref }} git fetch origin ${{ github.event.pull_request.head.ref }} ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }}...origin/${{ github.event.pull_request.head.ref }} | grep '^+' | grep -v '^+++' | wc -l) - echo "added_lines=${ADDED_LINES}" >> $GITHUB_OUTPUT echo "check : added_lines " $ADDED_LINES" #git fetch origin develop - name: Post a comment on the PR From 75509d2033aaa88b0f8fa92a64bf1206e218bc49 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 10:18:38 +0530 Subject: [PATCH 37/56] test --- .github/workflows/PRComment.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/PRComment.yml b/.github/workflows/PRComment.yml index 3245d80..1756f1a 100644 --- a/.github/workflows/PRComment.yml +++ b/.github/workflows/PRComment.yml @@ -15,7 +15,8 @@ jobs: cd ${{ github.workspace }} git fetch origin ${{ github.event.pull_request.base.ref }} git fetch origin ${{ github.event.pull_request.head.ref }} - ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }}...origin/${{ github.event.pull_request.head.ref }} | grep '^+' | grep -v '^+++' | wc -l) + ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }}...origin/${{ github.event.pull_request.head.ref }} >>log.txt + cat log.txt echo "check : added_lines " $ADDED_LINES" #git fetch origin develop - name: Post a comment on the PR From 21ee84b5460c0a43fe6fb2a34eaa51f1e01a7d2c Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 10:21:20 +0530 Subject: [PATCH 38/56] test --- .github/workflows/PRComment.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/PRComment.yml b/.github/workflows/PRComment.yml index 1756f1a..b5abdbb 100644 --- a/.github/workflows/PRComment.yml +++ b/.github/workflows/PRComment.yml @@ -15,6 +15,8 @@ jobs: cd ${{ github.workspace }} git fetch origin ${{ github.event.pull_request.base.ref }} git fetch origin ${{ github.event.pull_request.head.ref }} + git diff --unified=0 origin/${{ github.event.pull_request.base.ref }} origin/${{ github.event.pull_request.head.ref }} >>log.txt + cat log.txt ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }}...origin/${{ github.event.pull_request.head.ref }} >>log.txt cat log.txt echo "check : added_lines " $ADDED_LINES" From 978a4df5e7c3665a44e291815af8196c7e48cb28 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 10:26:10 +0530 Subject: [PATCH 39/56] test --- .github/workflows/PRComment.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/PRComment.yml b/.github/workflows/PRComment.yml index b5abdbb..1b6bbb4 100644 --- a/.github/workflows/PRComment.yml +++ b/.github/workflows/PRComment.yml @@ -15,10 +15,10 @@ jobs: cd ${{ github.workspace }} git fetch origin ${{ github.event.pull_request.base.ref }} git fetch origin ${{ github.event.pull_request.head.ref }} - git diff --unified=0 origin/${{ github.event.pull_request.base.ref }} origin/${{ github.event.pull_request.head.ref }} >>log.txt - cat log.txt - ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }}...origin/${{ github.event.pull_request.head.ref }} >>log.txt + git diff --unified=0 origin/${{ github.event.pull_request.base.ref }} origin/${{ github.event.pull_request.head.ref }} | grep '^+' | grep -v '^+++' | wc -l >>log.txt cat log.txt + ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }}...origin/${{ github.event.pull_request.head.ref }} | grep '^+' | grep -v '^+++' | wc -l) + echo "check : added_lines " $ADDED_LINES" #git fetch origin develop - name: Post a comment on the PR From f08235bdac824699058f082f8eb6c186b7f56f01 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 10:31:07 +0530 Subject: [PATCH 40/56] test --- .github/workflows/PRComment.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/PRComment.yml b/.github/workflows/PRComment.yml index 1b6bbb4..9f51b51 100644 --- a/.github/workflows/PRComment.yml +++ b/.github/workflows/PRComment.yml @@ -15,11 +15,12 @@ jobs: cd ${{ github.workspace }} git fetch origin ${{ github.event.pull_request.base.ref }} git fetch origin ${{ github.event.pull_request.head.ref }} - git diff --unified=0 origin/${{ github.event.pull_request.base.ref }} origin/${{ github.event.pull_request.head.ref }} | grep '^+' | grep -v '^+++' | wc -l >>log.txt + git diff --unified=0 origin/${{ github.event.pull_request.base.ref }} origin/${{ github.event.pull_request.head.ref }} >>log.txt cat log.txt - ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }}...origin/${{ github.event.pull_request.head.ref }} | grep '^+' | grep -v '^+++' | wc -l) + grep '^+' log.txt | grep -v '^+++' | wc -l + #ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }}...origin/${{ github.event.pull_request.head.ref }} | grep '^+' | grep -v '^+++' | wc -l) - echo "check : added_lines " $ADDED_LINES" + #echo "check : added_lines " $ADDED_LINES" #git fetch origin develop - name: Post a comment on the PR uses: peter-evans/create-or-update-comment@v3 From f3db4193c2b7aa4fd20dac310801e43ae4edf9b2 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 10:33:46 +0530 Subject: [PATCH 41/56] test --- .github/workflows/PRComment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/PRComment.yml b/.github/workflows/PRComment.yml index 9f51b51..001a750 100644 --- a/.github/workflows/PRComment.yml +++ b/.github/workflows/PRComment.yml @@ -17,10 +17,10 @@ jobs: git fetch origin ${{ github.event.pull_request.head.ref }} git diff --unified=0 origin/${{ github.event.pull_request.base.ref }} origin/${{ github.event.pull_request.head.ref }} >>log.txt cat log.txt - grep '^+' log.txt | grep -v '^+++' | wc -l + ADDED_LINES=$(grep '^+' log.txt | grep -v '^+++' | wc -l) #ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }}...origin/${{ github.event.pull_request.head.ref }} | grep '^+' | grep -v '^+++' | wc -l) - #echo "check : added_lines " $ADDED_LINES" + echo "check : added_lines " $ADDED_LINES" #git fetch origin develop - name: Post a comment on the PR uses: peter-evans/create-or-update-comment@v3 From 437b91c7907f56cfbd4abcbd33d2adc49a980153 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 10:35:53 +0530 Subject: [PATCH 42/56] test --- .github/workflows/PRComment.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/PRComment.yml b/.github/workflows/PRComment.yml index 001a750..53ebbfb 100644 --- a/.github/workflows/PRComment.yml +++ b/.github/workflows/PRComment.yml @@ -17,7 +17,8 @@ jobs: git fetch origin ${{ github.event.pull_request.head.ref }} git diff --unified=0 origin/${{ github.event.pull_request.base.ref }} origin/${{ github.event.pull_request.head.ref }} >>log.txt cat log.txt - ADDED_LINES=$(grep '^+' log.txt | grep -v '^+++' | wc -l) + grep '^+' log.txt | grep -v '^+++' | wc -l >>numberoflines.txt + cat numberoflines.txt #ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }}...origin/${{ github.event.pull_request.head.ref }} | grep '^+' | grep -v '^+++' | wc -l) echo "check : added_lines " $ADDED_LINES" From 226a83b69d83f1e8a189871d9b6ca1a7f438a09b Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 10:42:21 +0530 Subject: [PATCH 43/56] test --- .github/workflows/PRComment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/PRComment.yml b/.github/workflows/PRComment.yml index 53ebbfb..d77a1e8 100644 --- a/.github/workflows/PRComment.yml +++ b/.github/workflows/PRComment.yml @@ -17,8 +17,8 @@ jobs: git fetch origin ${{ github.event.pull_request.head.ref }} git diff --unified=0 origin/${{ github.event.pull_request.base.ref }} origin/${{ github.event.pull_request.head.ref }} >>log.txt cat log.txt - grep '^+' log.txt | grep -v '^+++' | wc -l >>numberoflines.txt - cat numberoflines.txt + grep '^+' log.txt | grep -v '^+++' | wc -l >>t.txt + cat t.txt #ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }}...origin/${{ github.event.pull_request.head.ref }} | grep '^+' | grep -v '^+++' | wc -l) echo "check : added_lines " $ADDED_LINES" From d64809379d4475a4082c92e84aa9b1156f6c93b6 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 10:43:56 +0530 Subject: [PATCH 44/56] test --- .github/workflows/PRComment.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/PRComment.yml b/.github/workflows/PRComment.yml index d77a1e8..bf20faa 100644 --- a/.github/workflows/PRComment.yml +++ b/.github/workflows/PRComment.yml @@ -16,8 +16,7 @@ jobs: git fetch origin ${{ github.event.pull_request.base.ref }} git fetch origin ${{ github.event.pull_request.head.ref }} git diff --unified=0 origin/${{ github.event.pull_request.base.ref }} origin/${{ github.event.pull_request.head.ref }} >>log.txt - cat log.txt - grep '^+' log.txt | grep -v '^+++' | wc -l >>t.txt + (grep '^+' log.txt | grep -v '^+++' | wc -l) >>t.txt cat t.txt #ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }}...origin/${{ github.event.pull_request.head.ref }} | grep '^+' | grep -v '^+++' | wc -l) From d7eb7318a6fcb29c9cb65c3121a933e144302f24 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 10:45:05 +0530 Subject: [PATCH 45/56] test --- .github/workflows/PRComment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/PRComment.yml b/.github/workflows/PRComment.yml index bf20faa..28d1142 100644 --- a/.github/workflows/PRComment.yml +++ b/.github/workflows/PRComment.yml @@ -16,8 +16,8 @@ jobs: git fetch origin ${{ github.event.pull_request.base.ref }} git fetch origin ${{ github.event.pull_request.head.ref }} git diff --unified=0 origin/${{ github.event.pull_request.base.ref }} origin/${{ github.event.pull_request.head.ref }} >>log.txt - (grep '^+' log.txt | grep -v '^+++' | wc -l) >>t.txt - cat t.txt + #(grep '^+' log.txt | grep -v '^+++' | wc -l) >>t.txt + #cat t.txt #ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }}...origin/${{ github.event.pull_request.head.ref }} | grep '^+' | grep -v '^+++' | wc -l) echo "check : added_lines " $ADDED_LINES" From f359b48253a4428f99a4c320f95c9ea55001751c Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 10:46:46 +0530 Subject: [PATCH 46/56] test --- .github/workflows/PRComment.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/PRComment.yml b/.github/workflows/PRComment.yml index 28d1142..f223ca5 100644 --- a/.github/workflows/PRComment.yml +++ b/.github/workflows/PRComment.yml @@ -16,11 +16,11 @@ jobs: git fetch origin ${{ github.event.pull_request.base.ref }} git fetch origin ${{ github.event.pull_request.head.ref }} git diff --unified=0 origin/${{ github.event.pull_request.base.ref }} origin/${{ github.event.pull_request.head.ref }} >>log.txt - #(grep '^+' log.txt | grep -v '^+++' | wc -l) >>t.txt - #cat t.txt + (grep '^+' log.txt | grep -v '^+++' | wc -l) >>t.txt + cat t.txt #ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }}...origin/${{ github.event.pull_request.head.ref }} | grep '^+' | grep -v '^+++' | wc -l) - echo "check : added_lines " $ADDED_LINES" + #echo "check : added_lines $ADDED_LINES" #git fetch origin develop - name: Post a comment on the PR uses: peter-evans/create-or-update-comment@v3 From e5b24ad6b4afbf690f54aa113870b4fc9a1ba0e1 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 10:48:52 +0530 Subject: [PATCH 47/56] test --- .github/workflows/PRComment.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/PRComment.yml b/.github/workflows/PRComment.yml index f223ca5..a5922fd 100644 --- a/.github/workflows/PRComment.yml +++ b/.github/workflows/PRComment.yml @@ -15,12 +15,12 @@ jobs: cd ${{ github.workspace }} git fetch origin ${{ github.event.pull_request.base.ref }} git fetch origin ${{ github.event.pull_request.head.ref }} - git diff --unified=0 origin/${{ github.event.pull_request.base.ref }} origin/${{ github.event.pull_request.head.ref }} >>log.txt - (grep '^+' log.txt | grep -v '^+++' | wc -l) >>t.txt - cat t.txt - #ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }}...origin/${{ github.event.pull_request.head.ref }} | grep '^+' | grep -v '^+++' | wc -l) + #git diff --unified=0 origin/${{ github.event.pull_request.base.ref }} origin/${{ github.event.pull_request.head.ref }} >>log.txt + #(grep '^+' log.txt | grep -v '^+++' | wc -l) >>t.txt + #cat t.txt + ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }} origin/${{ github.event.pull_request.head.ref }} | grep '^+' | grep -v '^+++' | wc -l) - #echo "check : added_lines $ADDED_LINES" + echo "check : added_lines $ADDED_LINES" #git fetch origin develop - name: Post a comment on the PR uses: peter-evans/create-or-update-comment@v3 From 1ca1af3bb5a7e69ec6120bd587936ce3c7ef445a Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 10:53:14 +0530 Subject: [PATCH 48/56] test --- .github/workflows/PRComment.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/PRComment.yml b/.github/workflows/PRComment.yml index a5922fd..c1e4d6b 100644 --- a/.github/workflows/PRComment.yml +++ b/.github/workflows/PRComment.yml @@ -11,6 +11,7 @@ jobs: - name: Checkout PR uses: actions/checkout@v3 - name: Run git fetch + id: lines_added run : | cd ${{ github.workspace }} git fetch origin ${{ github.event.pull_request.base.ref }} @@ -19,7 +20,7 @@ jobs: #(grep '^+' log.txt | grep -v '^+++' | wc -l) >>t.txt #cat t.txt ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }} origin/${{ github.event.pull_request.head.ref }} | grep '^+' | grep -v '^+++' | wc -l) - + echo "added_lines=${ADDED_LINES}" >> $GITHUB_OUTPUT echo "check : added_lines $ADDED_LINES" #git fetch origin develop - name: Post a comment on the PR @@ -28,6 +29,7 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ github.event.pull_request.number }} body: | + Newly added lines compared to develop: ${{ steps.lines_added.outputs.added_lines }} ๐Ÿ‘‹ Hello! This is an automated comment from GitHub Actions. Let me know if you need help with anything! From 4a81cfc7fbbadb10499df9c84069d2192b0fd197 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 10:56:33 +0530 Subject: [PATCH 49/56] test --- .github/workflows/PRComment.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/PRComment.yml b/.github/workflows/PRComment.yml index c1e4d6b..abaec29 100644 --- a/.github/workflows/PRComment.yml +++ b/.github/workflows/PRComment.yml @@ -11,17 +11,18 @@ jobs: - name: Checkout PR uses: actions/checkout@v3 - name: Run git fetch - id: lines_added + if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} + id: lines_added run : | - cd ${{ github.workspace }} - git fetch origin ${{ github.event.pull_request.base.ref }} - git fetch origin ${{ github.event.pull_request.head.ref }} + cd ${{ github.workspace }} + git fetch origin ${{ github.event.pull_request.base.ref }} + git fetch origin ${{ github.event.pull_request.head.ref }} #git diff --unified=0 origin/${{ github.event.pull_request.base.ref }} origin/${{ github.event.pull_request.head.ref }} >>log.txt #(grep '^+' log.txt | grep -v '^+++' | wc -l) >>t.txt #cat t.txt - ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }} origin/${{ github.event.pull_request.head.ref }} | grep '^+' | grep -v '^+++' | wc -l) - echo "added_lines=${ADDED_LINES}" >> $GITHUB_OUTPUT - echo "check : added_lines $ADDED_LINES" + ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }} origin/${{ github.event.pull_request.head.ref }} | grep '^+' | grep -v '^+++' | wc -l) + echo "added_lines=${ADDED_LINES}" >> $GITHUB_OUTPUT + echo "check : added_lines $ADDED_LINES" #git fetch origin develop - name: Post a comment on the PR uses: peter-evans/create-or-update-comment@v3 From a653400bf4cdb1fa3f399322df89f7efa79e0f38 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 10:59:22 +0530 Subject: [PATCH 50/56] test --- .github/workflows/PRComment.yml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.github/workflows/PRComment.yml b/.github/workflows/PRComment.yml index abaec29..98e5f5b 100644 --- a/.github/workflows/PRComment.yml +++ b/.github/workflows/PRComment.yml @@ -17,20 +17,16 @@ jobs: cd ${{ github.workspace }} git fetch origin ${{ github.event.pull_request.base.ref }} git fetch origin ${{ github.event.pull_request.head.ref }} - #git diff --unified=0 origin/${{ github.event.pull_request.base.ref }} origin/${{ github.event.pull_request.head.ref }} >>log.txt - #(grep '^+' log.txt | grep -v '^+++' | wc -l) >>t.txt - #cat t.txt ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }} origin/${{ github.event.pull_request.head.ref }} | grep '^+' | grep -v '^+++' | wc -l) echo "added_lines=${ADDED_LINES}" >> $GITHUB_OUTPUT echo "check : added_lines $ADDED_LINES" - #git fetch origin develop - - name: Post a comment on the PR - uses: peter-evans/create-or-update-comment@v3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - issue-number: ${{ github.event.pull_request.number }} - body: | - Newly added lines compared to develop: ${{ steps.lines_added.outputs.added_lines }} - ๐Ÿ‘‹ Hello! This is an automated comment from GitHub Actions. - Let me know if you need help with anything! + #- name: Post a comment on the PR + #uses: peter-evans/create-or-update-comment@v3 + # with: + # token: ${{ secrets.GITHUB_TOKEN }} + #issue-number: ${{ github.event.pull_request.number }} + #body: | + #Newly added lines compared to develop: ${{ steps.lines_added.outputs.added_lines }} + #๐Ÿ‘‹ Hello! This is an automated comment from GitHub Actions. + #Let me know if you need help with anything! From ba16b4060bff44376e8af690e42350a9bfeb1294 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 11:01:26 +0530 Subject: [PATCH 51/56] test --- .github/workflows/PRComment.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/PRComment.yml b/.github/workflows/PRComment.yml index 98e5f5b..b0050fc 100644 --- a/.github/workflows/PRComment.yml +++ b/.github/workflows/PRComment.yml @@ -11,7 +11,6 @@ jobs: - name: Checkout PR uses: actions/checkout@v3 - name: Run git fetch - if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} id: lines_added run : | cd ${{ github.workspace }} From 93d14090b5790d4c054b2f6c28bbb46a1961f093 Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 11:05:17 +0530 Subject: [PATCH 52/56] test --- .github/workflows/PRComment.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/PRComment.yml b/.github/workflows/PRComment.yml index b0050fc..0516859 100644 --- a/.github/workflows/PRComment.yml +++ b/.github/workflows/PRComment.yml @@ -10,6 +10,7 @@ jobs: steps: - name: Checkout PR uses: actions/checkout@v3 + - name: Run git fetch id: lines_added run : | @@ -19,13 +20,14 @@ jobs: ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }} origin/${{ github.event.pull_request.head.ref }} | grep '^+' | grep -v '^+++' | wc -l) echo "added_lines=${ADDED_LINES}" >> $GITHUB_OUTPUT echo "check : added_lines $ADDED_LINES" - #- name: Post a comment on the PR - #uses: peter-evans/create-or-update-comment@v3 - # with: - # token: ${{ secrets.GITHUB_TOKEN }} - #issue-number: ${{ github.event.pull_request.number }} - #body: | - #Newly added lines compared to develop: ${{ steps.lines_added.outputs.added_lines }} - #๐Ÿ‘‹ Hello! This is an automated comment from GitHub Actions. - #Let me know if you need help with anything! + + - name: Post a comment on the PR + uses: peter-evans/create-or-update-comment@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ github.event.pull_request.number }} + body : | + Newly added lines compared to develop: ${{ steps.lines_added.outputs.added_lines }} + ๐Ÿ‘‹ Hello! This is an automated comment from GitHub Actions. + Let me know if you need help with anything! From 2a6ab5a67d0ed68867785f50206fcfdd39c0755f Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 11:20:21 +0530 Subject: [PATCH 53/56] test --- .github/workflows/L1-tests.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index ccc06e0..5e53962 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -153,18 +153,19 @@ jobs: echo "function_coverage=${FUNCTION_COVERAGE}" >> $GITHUB_OUTPUT echo "Check: Extracted for output: Line coverage: $LINE_COVERAGE" echo "Check: Extracted for output: Function coverage: $FUNCTION_COVERAGE" + - name: Checkout PR + uses: actions/checkout@v3 - - name: Calculate newly added lines compared to develop - if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} + - name: Run git fetch id: lines_added - run: | - cd "$(dirname "${{ github.workspace }}")" - ls -lt - git fetch origin develop - # Count lines starting with "+" (excluding diff headers) - ADDED_LINES=$(git diff --unified=0 origin/develop...HEAD | grep '^+' | grep -v '^+++' | wc -l) - echo "added_lines=${ADDED_LINES}" >> $GITHUB_OUTPUT - echo "check : added_lines " $ADDED_LINES" + run : | + cd ${{ github.workspace }} + git fetch origin ${{ github.event.pull_request.base.ref }} + git fetch origin ${{ github.event.pull_request.head.ref }} + ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }} origin/${{ github.event.pull_request.head.ref }} | grep '^+' | grep -v '^+++' | wc -l) + echo "added_lines=${ADDED_LINES}" >> $GITHUB_OUTPUT + echo "check : added_lines $ADDED_LINES" + - name: Post coverage comment on PR if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} @@ -174,6 +175,7 @@ jobs: issue-number: ${{ github.event.pull_request.number }} body: | Newly added lines compared to develop: ${{ steps.lines_added.outputs.added_lines }} + Line coverage: ${{ steps.coverage.outputs.line_coverage }} Function coverage: ${{ steps.coverage.outputs.function_coverage }} #${{ steps.coverage.outputs.body }} From e31c8be5401b4f9c7c7a0999f52a8d98bca9bfbf Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 11:31:45 +0530 Subject: [PATCH 54/56] removed test.yml --- .github/workflows/test.yml | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 4a35407..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,18 +0,0 @@ - comment-added-lines: - name: Comment added lines in PR - runs-on: ubuntu-22.04 - if: github.event_name == 'pull_request' - needs: l1-tests - steps: - - name: Checkout PR branch - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Calculate added lines - id: added_lines - run: | - # Find the diff against the base branch - ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }}...HEAD | grep '^+' | grep -v '^+++' | wc -l) - echo "ADDED_LINES=$ADDED_LINES" >> $GITHUB_OUTPUT - From 94851d27d1f40f6407b42feaee704047fc45f53c Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 12:18:01 +0530 Subject: [PATCH 55/56] test --- .github/workflows/L1-tests.yml | 58 ++++++++++++++++++++++++++-------- 1 file changed, 45 insertions(+), 13 deletions(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index 5e53962..75df0b4 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -128,16 +128,6 @@ jobs: name: coverage-report path: /tmp/coverage_report - # - name: Extract coverage summary - # if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} - # id: coverage - #run: | - #COVERAGE=$(grep -m1 "lines" coverage.info | awk '{print $2}') - #echo "body<> $GITHUB_OUTPUT - # echo "๐Ÿงช **Code Coverage Report for @${{ github.event.pull_request.user.login }}**" >> $GITHUB_OUTPUT - #echo "" >> $GITHUB_OUTPUT - #echo "โœ… Line coverage: ${COVERAGE}." >> $GITHUB_OUTPUT - #echo "EOF" >> $GITHUB_OUTPUT - name: Extract coverage summary if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} id: coverage @@ -165,7 +155,45 @@ jobs: ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }} origin/${{ github.event.pull_request.head.ref }} | grep '^+' | grep -v '^+++' | wc -l) echo "added_lines=${ADDED_LINES}" >> $GITHUB_OUTPUT echo "check : added_lines $ADDED_LINES" + ### 1. Upload coverage from base branch + - name: Upload coverage report + if: ${{ github.event_name != 'pull_request' && matrix.coverage == 'with-coverage' }} + uses: actions/upload-artifact@v4 + with: + name: base-coverage-${{ github.ref_name }} + path: coverage.info + + ### 2. Upload coverage from PR head branch for comment/inspection + - name: Upload PR branch coverage report + if: ${{ github.event_name == 'pull_request' && matrix.coverage == 'with-coverage' }} + uses: actions/upload-artifact@v4 + with: + name: pr-coverage-${{ github.event.pull_request.head.ref }} + path: coverage.info + + ### 3. If on PR, download base branch coverage and compare! + - name: Download base branch coverage + if: ${{ github.event_name == 'pull_request' && matrix.coverage == 'with-coverage' }} + uses: actions/download-artifact@v4 + with: + name: base-coverage-${{ github.event.pull_request.base.ref }} + path: ./base_coverage + + - name: Compare branch coverage + if: ${{ github.event_name == 'pull_request' && matrix.coverage == 'with-coverage' }} + id: compare_coverage + run: | + echo "Base branch coverage summary:" + lcov --summary base_coverage/coverage.info + echo "PR branch coverage summary:" + lcov --summary coverage.info + BASE_LINE_COV=$(lcov --summary base_coverage/coverage.info | grep 'lines....:' | awk '{print $2}' | tr -d '%') + PR_LINE_COV=$(lcov --summary coverage.info | grep 'lines....:' | awk '{print $2}' | tr -d '%') + DELTA=$(echo "$PR_LINE_COV - $BASE_LINE_COV" | bc) + echo "base_line_coverage=$BASE_LINE_COV" >> $GITHUB_OUTPUT + echo "pr_line_coverage=$PR_LINE_COV" >> $GITHUB_OUTPUT + echo "coverage_delta=$DELTA" >> $GITHUB_OUTPUT - name: Post coverage comment on PR if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} @@ -174,8 +202,12 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ github.event.pull_request.number }} body: | - Newly added lines compared to develop: ${{ steps.lines_added.outputs.added_lines }} - Line coverage: ${{ steps.coverage.outputs.line_coverage }} - Function coverage: ${{ steps.coverage.outputs.function_coverage }} + Newly added lines compared to develop โœ… : ${{ steps.lines_added.outputs.added_lines }} + Line coverage โœ… : ${{ steps.coverage.outputs.line_coverage }} + Function coverage โœ… : ${{ steps.coverage.outputs.function_coverage }} + ๐Ÿ“Š Coverage Report Comparison + - Base branch line coverage: ${{ steps.compare_coverage.outputs.base_line_coverage }}% + - PR branch line coverage: ${{ steps.compare_coverage.outputs.pr_line_coverage }}% + - Coverage delta: ${{ steps.compare_coverage.outputs.coverage_delta }}% #${{ steps.coverage.outputs.body }} From 7ec13b0e6fa79cfb06743ae931d23c5ab55bc89c Mon Sep 17 00:00:00 2001 From: "RoseMary_Benny@comcast.com" Date: Fri, 7 Nov 2025 12:30:49 +0530 Subject: [PATCH 56/56] test --- .github/workflows/L1-tests.yml | 86 +--------------------------------- 1 file changed, 2 insertions(+), 84 deletions(-) diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index 75df0b4..66d8453 100644 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -1,3 +1,4 @@ + name: l1-tests on: @@ -126,88 +127,5 @@ jobs: uses: actions/upload-artifact@v4 with: name: coverage-report - path: /tmp/coverage_report - - - name: Extract coverage summary - if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} - id: coverage - run: | - lcov --list coverage.info - lcov --summary coverage.info >>log.txt - cat log.txt - LINE_COVERAGE=$(grep -m1 "lines" log.txt | awk '{print $2}') - FUNCTION_COVERAGE=$(grep -m1 "functions" log.txt | awk '{print $2}') - #echo "body=Line coverage: ${LINE_COVERAGE} Function coverage:${FUNCTION_COVERAGE}" >> $GITHUB_OUTPUT - #echo "body=Line coverage: ${FUNCTION_COVERAGE}" >> $GITHUB_OUTPUT - echo "line_coverage=${LINE_COVERAGE}" >> $GITHUB_OUTPUT - echo "function_coverage=${FUNCTION_COVERAGE}" >> $GITHUB_OUTPUT - echo "Check: Extracted for output: Line coverage: $LINE_COVERAGE" - echo "Check: Extracted for output: Function coverage: $FUNCTION_COVERAGE" - - name: Checkout PR - uses: actions/checkout@v3 - - - name: Run git fetch - id: lines_added - run : | - cd ${{ github.workspace }} - git fetch origin ${{ github.event.pull_request.base.ref }} - git fetch origin ${{ github.event.pull_request.head.ref }} - ADDED_LINES=$(git diff --unified=0 origin/${{ github.event.pull_request.base.ref }} origin/${{ github.event.pull_request.head.ref }} | grep '^+' | grep -v '^+++' | wc -l) - echo "added_lines=${ADDED_LINES}" >> $GITHUB_OUTPUT - echo "check : added_lines $ADDED_LINES" - ### 1. Upload coverage from base branch - - name: Upload coverage report - if: ${{ github.event_name != 'pull_request' && matrix.coverage == 'with-coverage' }} - uses: actions/upload-artifact@v4 - with: - name: base-coverage-${{ github.ref_name }} - path: coverage.info - - ### 2. Upload coverage from PR head branch for comment/inspection - - name: Upload PR branch coverage report - if: ${{ github.event_name == 'pull_request' && matrix.coverage == 'with-coverage' }} - uses: actions/upload-artifact@v4 - with: - name: pr-coverage-${{ github.event.pull_request.head.ref }} - path: coverage.info - - ### 3. If on PR, download base branch coverage and compare! - - name: Download base branch coverage - if: ${{ github.event_name == 'pull_request' && matrix.coverage == 'with-coverage' }} - uses: actions/download-artifact@v4 - with: - name: base-coverage-${{ github.event.pull_request.base.ref }} - path: ./base_coverage + path: /tmp/coverage_report - - name: Compare branch coverage - if: ${{ github.event_name == 'pull_request' && matrix.coverage == 'with-coverage' }} - id: compare_coverage - run: | - echo "Base branch coverage summary:" - lcov --summary base_coverage/coverage.info - echo "PR branch coverage summary:" - lcov --summary coverage.info - - BASE_LINE_COV=$(lcov --summary base_coverage/coverage.info | grep 'lines....:' | awk '{print $2}' | tr -d '%') - PR_LINE_COV=$(lcov --summary coverage.info | grep 'lines....:' | awk '{print $2}' | tr -d '%') - DELTA=$(echo "$PR_LINE_COV - $BASE_LINE_COV" | bc) - echo "base_line_coverage=$BASE_LINE_COV" >> $GITHUB_OUTPUT - echo "pr_line_coverage=$PR_LINE_COV" >> $GITHUB_OUTPUT - echo "coverage_delta=$DELTA" >> $GITHUB_OUTPUT - - - name: Post coverage comment on PR - if: ${{ matrix.coverage == 'with-coverage' && github.event_name == 'pull_request' }} - uses: peter-evans/create-or-update-comment@v3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - issue-number: ${{ github.event.pull_request.number }} - body: | - Newly added lines compared to develop โœ… : ${{ steps.lines_added.outputs.added_lines }} - Line coverage โœ… : ${{ steps.coverage.outputs.line_coverage }} - Function coverage โœ… : ${{ steps.coverage.outputs.function_coverage }} - ๐Ÿ“Š Coverage Report Comparison - - Base branch line coverage: ${{ steps.compare_coverage.outputs.base_line_coverage }}% - - PR branch line coverage: ${{ steps.compare_coverage.outputs.pr_line_coverage }}% - - Coverage delta: ${{ steps.compare_coverage.outputs.coverage_delta }}% - #${{ steps.coverage.outputs.body }} -