From cdb94b228e5d9d583f4a5858dc57e7ed472f85e6 Mon Sep 17 00:00:00 2001 From: gargsaumya Date: Tue, 16 Dec 2025 09:47:13 +0530 Subject: [PATCH 1/7] testing code coverage failure --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 2f8cf28c..f7404ffb 100644 --- a/main.py +++ b/main.py @@ -4,7 +4,8 @@ # Clean one-liner: set level and output mode together setup_logging(output="both") - +print("Logging is set up.") +print("This is a test PR for mssql-python.") conn_str = os.getenv("DB_CONNECTION_STRING") conn = connect(conn_str) cursor = conn.cursor() @@ -15,4 +16,4 @@ print(f"Database ID: {row[0]}, Name: {row[1]}") cursor.close() -conn.close() \ No newline at end of file +conn.close() From b2a1ac60480609367234def90702f5db48ff7d6e Mon Sep 17 00:00:00 2001 From: gargsaumya Date: Tue, 16 Dec 2025 12:00:21 +0530 Subject: [PATCH 2/7] testing --- .github/workflows/post-coverage-comment.yml | 136 ++++++++++++++++++++ .github/workflows/pr-code-coverage.yml | 26 ++++ 2 files changed, 162 insertions(+) create mode 100644 .github/workflows/post-coverage-comment.yml diff --git a/.github/workflows/post-coverage-comment.yml b/.github/workflows/post-coverage-comment.yml new file mode 100644 index 00000000..2f2f6c89 --- /dev/null +++ b/.github/workflows/post-coverage-comment.yml @@ -0,0 +1,136 @@ +name: Post Coverage Comment + +on: + workflow_run: + workflows: ["PR Code Coverage"] + types: + - completed + +jobs: + post-comment: + runs-on: ubuntu-latest + if: > + github.event.workflow_run.event == 'pull_request' && + github.event.workflow_run.conclusion == 'success' + permissions: + pull-requests: write + contents: read + + steps: + - name: Download coverage data + uses: actions/download-artifact@v4 + with: + name: coverage-comment-data + github-token: ${{ secrets.GITHUB_TOKEN }} + run-id: ${{ github.event.workflow_run.id }} + + - name: Read coverage data + id: coverage + run: | + if [[ ! -f pr-info.json ]]; then + echo "❌ pr-info.json not found" + exit 1 + fi + + cat pr-info.json + + # Extract values from JSON + PR_NUMBER=$(jq -r '.pr_number' pr-info.json) + COVERAGE_PCT=$(jq -r '.coverage_percentage' pr-info.json) + COVERED_LINES=$(jq -r '.covered_lines' pr-info.json) + TOTAL_LINES=$(jq -r '.total_lines' pr-info.json) + PATCH_PCT=$(jq -r '.patch_coverage_pct' pr-info.json) + LOW_COV_FILES=$(jq -r '.low_coverage_files' pr-info.json) + PATCH_SUMMARY=$(jq -r '.patch_coverage_summary' pr-info.json) + ADO_URL=$(jq -r '.ado_url' pr-info.json) + + # Export to env for next step + echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV + echo "COVERAGE_PERCENTAGE=$COVERAGE_PCT" >> $GITHUB_ENV + echo "COVERED_LINES=$COVERED_LINES" >> $GITHUB_ENV + echo "TOTAL_LINES=$TOTAL_LINES" >> $GITHUB_ENV + echo "PATCH_COVERAGE_PCT=$PATCH_PCT" >> $GITHUB_ENV + echo "ADO_URL=$ADO_URL" >> $GITHUB_ENV + + # Handle multiline values + echo "LOW_COVERAGE_FILES<> $GITHUB_ENV + echo "$LOW_COV_FILES" >> $GITHUB_ENV + echo "EOF" >> $GITHUB_ENV + + echo "PATCH_COVERAGE_SUMMARY<> $GITHUB_ENV + echo "$PATCH_SUMMARY" >> $GITHUB_ENV + echo "EOF" >> $GITHUB_ENV + + - name: Comment coverage summary on PR + uses: marocchino/sticky-pull-request-comment@v2 + with: + number: ${{ env.PR_NUMBER }} + header: Code Coverage Report + message: | + # 📊 Code Coverage Report + + + + + + + +
+ + ### 🔥 Diff Coverage + ### **${{ env.PATCH_COVERAGE_PCT }}** +
+
+ + ### 🎯 Overall Coverage + ### **${{ env.COVERAGE_PERCENTAGE }}** +
+
+ + **📈 Total Lines Covered:** `${{ env.COVERED_LINES }}` out of `${{ env.TOTAL_LINES }}` + **📁 Project:** `mssql-python` + +
+ + --- + + ${{ env.PATCH_COVERAGE_SUMMARY }} + + --- + ### 📋 Files Needing Attention + +
+ 📉 Files with overall lowest coverage (click to expand) +
+ + ```diff + ${{ env.LOW_COVERAGE_FILES }} + ``` + +
+ + --- + ### 🔗 Quick Links + + + + + + + + + + +
+ ⚙️ Build Summary + + 📋 Coverage Details +
+ + [View Azure DevOps Build](${{ env.ADO_URL }}) + + + + [Browse Full Coverage Report](${{ env.ADO_URL }}&view=codecoverage-tab) + +
diff --git a/.github/workflows/pr-code-coverage.yml b/.github/workflows/pr-code-coverage.yml index d00666b9..03a8ec69 100644 --- a/.github/workflows/pr-code-coverage.yml +++ b/.github/workflows/pr-code-coverage.yml @@ -417,7 +417,33 @@ jobs: echo "PATCH_COVERAGE_SUMMARY=Patch coverage report could not be generated." >> $GITHUB_ENV fi + - name: Save coverage data for comment + run: | + mkdir -p coverage-comment-data + cat > coverage-comment-data/pr-info.json << EOF + { + "pr_number": "${{ github.event.pull_request.number }}", + "coverage_percentage": "${{ env.COVERAGE_PERCENTAGE }}", + "covered_lines": "${{ env.COVERED_LINES }}", + "total_lines": "${{ env.TOTAL_LINES }}", + "patch_coverage_pct": "${{ env.PATCH_COVERAGE_PCT }}", + "low_coverage_files": $(jq -Rs . <<< "${{ env.LOW_COVERAGE_FILES }}"), + "patch_coverage_summary": $(jq -Rs . <<< "${{ env.PATCH_COVERAGE_SUMMARY }}"), + "ado_url": "${{ env.ADO_URL }}" + } + EOF + cat coverage-comment-data/pr-info.json + + - name: Upload coverage comment data + uses: actions/upload-artifact@v4 + with: + name: coverage-comment-data + path: coverage-comment-data/ + retention-days: 1 + - name: Comment coverage summary on PR + # Skip for forked PRs due to token permission restrictions + if: github.event.pull_request.head.repo.full_name == github.repository uses: marocchino/sticky-pull-request-comment@v2 with: header: Code Coverage Report From 7e50a980a1af9f0b0e4784651e6ef80bb412a137 Mon Sep 17 00:00:00 2001 From: gargsaumya Date: Wed, 17 Dec 2025 16:18:27 +0530 Subject: [PATCH 3/7] testing --- .github/workflows/post-coverage-comment.yml | 61 +++++++++++---------- .github/workflows/pr-code-coverage.yml | 38 +++++++++---- 2 files changed, 60 insertions(+), 39 deletions(-) diff --git a/.github/workflows/post-coverage-comment.yml b/.github/workflows/post-coverage-comment.yml index 2f2f6c89..70d927a2 100644 --- a/.github/workflows/post-coverage-comment.yml +++ b/.github/workflows/post-coverage-comment.yml @@ -18,11 +18,12 @@ jobs: steps: - name: Download coverage data - uses: actions/download-artifact@v4 - with: - name: coverage-comment-data - github-token: ${{ secrets.GITHUB_TOKEN }} - run-id: ${{ github.event.workflow_run.id }} + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh run download ${{ github.event.workflow_run.id }} \ + --repo ${{ github.repository }} \ + --name coverage-comment-data - name: Read coverage data id: coverage @@ -34,32 +35,36 @@ jobs: cat pr-info.json - # Extract values from JSON - PR_NUMBER=$(jq -r '.pr_number' pr-info.json) - COVERAGE_PCT=$(jq -r '.coverage_percentage' pr-info.json) - COVERED_LINES=$(jq -r '.covered_lines' pr-info.json) - TOTAL_LINES=$(jq -r '.total_lines' pr-info.json) - PATCH_PCT=$(jq -r '.patch_coverage_pct' pr-info.json) - LOW_COV_FILES=$(jq -r '.low_coverage_files' pr-info.json) - PATCH_SUMMARY=$(jq -r '.patch_coverage_summary' pr-info.json) - ADO_URL=$(jq -r '.ado_url' pr-info.json) + # Extract values from JSON with proper quoting + PR_NUMBER="$(jq -r '.pr_number' pr-info.json)" + COVERAGE_PCT="$(jq -r '.coverage_percentage' pr-info.json)" + COVERED_LINES="$(jq -r '.covered_lines' pr-info.json)" + TOTAL_LINES="$(jq -r '.total_lines' pr-info.json)" + PATCH_PCT="$(jq -r '.patch_coverage_pct' pr-info.json)" + LOW_COV_FILES="$(jq -r '.low_coverage_files' pr-info.json)" + PATCH_SUMMARY="$(jq -r '.patch_coverage_summary' pr-info.json)" + ADO_URL="$(jq -r '.ado_url' pr-info.json)" - # Export to env for next step - echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV - echo "COVERAGE_PERCENTAGE=$COVERAGE_PCT" >> $GITHUB_ENV - echo "COVERED_LINES=$COVERED_LINES" >> $GITHUB_ENV - echo "TOTAL_LINES=$TOTAL_LINES" >> $GITHUB_ENV - echo "PATCH_COVERAGE_PCT=$PATCH_PCT" >> $GITHUB_ENV - echo "ADO_URL=$ADO_URL" >> $GITHUB_ENV + # Export to env for next step (single-line values) + echo "PR_NUMBER=${PR_NUMBER}" >> $GITHUB_ENV + echo "COVERAGE_PERCENTAGE=${COVERAGE_PCT}" >> $GITHUB_ENV + echo "COVERED_LINES=${COVERED_LINES}" >> $GITHUB_ENV + echo "TOTAL_LINES=${TOTAL_LINES}" >> $GITHUB_ENV + echo "PATCH_COVERAGE_PCT=${PATCH_PCT}" >> $GITHUB_ENV + echo "ADO_URL=${ADO_URL}" >> $GITHUB_ENV - # Handle multiline values - echo "LOW_COVERAGE_FILES<> $GITHUB_ENV - echo "$LOW_COV_FILES" >> $GITHUB_ENV - echo "EOF" >> $GITHUB_ENV + # Handle multiline values with proper quoting + { + echo "LOW_COVERAGE_FILES<> $GITHUB_ENV - echo "PATCH_COVERAGE_SUMMARY<> $GITHUB_ENV - echo "$PATCH_SUMMARY" >> $GITHUB_ENV - echo "EOF" >> $GITHUB_ENV + { + echo "PATCH_COVERAGE_SUMMARY<> $GITHUB_ENV - name: Comment coverage summary on PR uses: marocchino/sticky-pull-request-comment@v2 diff --git a/.github/workflows/pr-code-coverage.yml b/.github/workflows/pr-code-coverage.yml index 03a8ec69..54e36b6d 100644 --- a/.github/workflows/pr-code-coverage.yml +++ b/.github/workflows/pr-code-coverage.yml @@ -420,18 +420,34 @@ jobs: - name: Save coverage data for comment run: | mkdir -p coverage-comment-data - cat > coverage-comment-data/pr-info.json << EOF - { - "pr_number": "${{ github.event.pull_request.number }}", - "coverage_percentage": "${{ env.COVERAGE_PERCENTAGE }}", - "covered_lines": "${{ env.COVERED_LINES }}", - "total_lines": "${{ env.TOTAL_LINES }}", - "patch_coverage_pct": "${{ env.PATCH_COVERAGE_PCT }}", - "low_coverage_files": $(jq -Rs . <<< "${{ env.LOW_COVERAGE_FILES }}"), - "patch_coverage_summary": $(jq -Rs . <<< "${{ env.PATCH_COVERAGE_SUMMARY }}"), - "ado_url": "${{ env.ADO_URL }}" + jq -n \ + --arg pr_number "${{ github.event.pull_request.number }}" \ + --arg coverage_percentage "${{ env.COVERAGE_PERCENTAGE }}" \ + --arg covered_lines "${{ env.COVERED_LINES }}" \ + --arg total_lines "${{ env.TOTAL_LINES }}" \ + --arg patch_coverage_pct "${{ env.PATCH_COVERAGE_PCT }}" \ + --arg low_coverage_files "${{ env.LOW_COVERAGE_FILES }}" \ + --arg patch_coverage_summary "${{ env.PATCH_COVERAGE_SUMMARY }}" \ + --arg ado_url "${{ env.ADO_URL }}" \ + '{ + pr_number: $pr_number, + coverage_percentage: $coverage_percentage, + covered_lines: $covered_lines, + total_lines: $total_lines, + patch_coverage_pct: $patch_coverage_pct, + low_coverage_files: $low_coverage_files, + patch_coverage_summary: $patch_coverage_summary, + ado_url: $ado_url + }' > coverage-comment-data/pr-info.json + + # Validate JSON before uploading + echo "Validating generated JSON..." + jq . coverage-comment-data/pr-info.json > /dev/null || { + echo "❌ Invalid JSON generated" + cat coverage-comment-data/pr-info.json + exit 1 } - EOF + echo "✅ JSON validation successful" cat coverage-comment-data/pr-info.json - name: Upload coverage comment data From 50023f7e4e995a3fe316c539ea9e4eca7241e5df Mon Sep 17 00:00:00 2001 From: gargsaumya Date: Tue, 23 Dec 2025 13:08:15 +0530 Subject: [PATCH 4/7] addressed review comments --- ...ent.yml => forked-pr-coverage-comment.yml} | 33 +++++++++++++++++-- .github/workflows/pr-code-coverage.yml | 5 ++- main.py | 3 +- 3 files changed, 36 insertions(+), 5 deletions(-) rename .github/workflows/{post-coverage-comment.yml => forked-pr-coverage-comment.yml} (73%) diff --git a/.github/workflows/post-coverage-comment.yml b/.github/workflows/forked-pr-coverage-comment.yml similarity index 73% rename from .github/workflows/post-coverage-comment.yml rename to .github/workflows/forked-pr-coverage-comment.yml index 70d927a2..8a5edc0e 100644 --- a/.github/workflows/post-coverage-comment.yml +++ b/.github/workflows/forked-pr-coverage-comment.yml @@ -1,5 +1,21 @@ name: Post Coverage Comment +# This workflow handles posting coverage comments for FORKED PRs. +# +# Why a separate workflow? +# - Forked PRs have restricted GITHUB_TOKEN permissions for security +# - They cannot write comments directly to the base repository's PRs +# - workflow_run triggers run in the BASE repository context with full permissions +# - This allows us to safely post comments on forked PRs +# +# How it works: +# 1. PR Code Coverage workflow uploads coverage data as an artifact (forked PRs only) +# 2. This workflow triggers when PR Code Coverage completes successfully +# 3. Downloads the artifact and posts the comment with full write permissions +# +# Same-repo PRs post comments directly in pr-code-coverage.yml (faster) +# Forked PRs use this workflow (required for permissions) + on: workflow_run: workflows: ["PR Code Coverage"] @@ -21,9 +37,22 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - gh run download ${{ github.event.workflow_run.id }} \ + # Download artifact with error handling for non-existent artifacts + if ! gh run download ${{ github.event.workflow_run.id }} \ --repo ${{ github.repository }} \ - --name coverage-comment-data + --name coverage-comment-data 2>&1; then + echo "⚠️ No coverage-comment-data artifact found" + echo "This is expected for same-repo PRs (they post comments directly)" + echo "Exiting gracefully..." + exit 0 + fi + + # Verify artifact was downloaded + if [[ ! -f pr-info.json ]]; then + echo "⚠️ Artifact downloaded but pr-info.json not found" + echo "This may indicate an issue with artifact upload" + exit 1 + fi - name: Read coverage data id: coverage diff --git a/.github/workflows/pr-code-coverage.yml b/.github/workflows/pr-code-coverage.yml index 54e36b6d..be1cd0ff 100644 --- a/.github/workflows/pr-code-coverage.yml +++ b/.github/workflows/pr-code-coverage.yml @@ -451,11 +451,14 @@ jobs: cat coverage-comment-data/pr-info.json - name: Upload coverage comment data + # Only upload artifact for forked PRs since same-repo PRs post comment directly + # This prevents unnecessary workflow_run triggers for same-repo PRs + if: github.event.pull_request.head.repo.full_name != github.repository uses: actions/upload-artifact@v4 with: name: coverage-comment-data path: coverage-comment-data/ - retention-days: 1 + retention-days: 7 - name: Comment coverage summary on PR # Skip for forked PRs due to token permission restrictions diff --git a/main.py b/main.py index f7404ffb..7e56b2fe 100644 --- a/main.py +++ b/main.py @@ -4,8 +4,7 @@ # Clean one-liner: set level and output mode together setup_logging(output="both") -print("Logging is set up.") -print("This is a test PR for mssql-python.") + conn_str = os.getenv("DB_CONNECTION_STRING") conn = connect(conn_str) cursor = conn.cursor() From ad54413c5cfda49dbe64ae8eb183ce4c371a27f9 Mon Sep 17 00:00:00 2001 From: gargsaumya Date: Wed, 24 Dec 2025 12:57:22 +0530 Subject: [PATCH 5/7] adding std action for posting cov comment --- .../actions/post-coverage-comment/action.yml | 105 ++++++++++++++++++ ...age-comment.yml => forked-pr-coverage.yml} | 63 ++--------- .github/workflows/pr-code-coverage.yml | 79 ++----------- 3 files changed, 126 insertions(+), 121 deletions(-) create mode 100644 .github/actions/post-coverage-comment/action.yml rename .github/workflows/{forked-pr-coverage-comment.yml => forked-pr-coverage.yml} (74%) diff --git a/.github/actions/post-coverage-comment/action.yml b/.github/actions/post-coverage-comment/action.yml new file mode 100644 index 00000000..0f3a862a --- /dev/null +++ b/.github/actions/post-coverage-comment/action.yml @@ -0,0 +1,105 @@ +name: Post Coverage Comment +description: Posts a standardized code coverage comment on a pull request + +inputs: + pr_number: + description: 'Pull request number' + required: true + coverage_percentage: + description: 'Overall coverage percentage' + required: true + covered_lines: + description: 'Number of covered lines' + required: true + total_lines: + description: 'Total number of lines' + required: true + patch_coverage_pct: + description: 'Patch/diff coverage percentage' + required: true + low_coverage_files: + description: 'Files with lowest coverage (multiline)' + required: true + patch_coverage_summary: + description: 'Patch coverage summary markdown (multiline)' + required: true + ado_url: + description: 'Azure DevOps build URL' + required: true + +runs: + using: composite + steps: + - name: Post coverage comment + uses: marocchino/sticky-pull-request-comment@v2 + with: + header: Code Coverage Report + number: ${{ inputs.pr_number }} + message: | + # 📊 Code Coverage Report + + + + + + + +
+ + ### 🔥 Diff Coverage + ### **${{ inputs.patch_coverage_pct }}** +
+
+ + ### 🎯 Overall Coverage + ### **${{ inputs.coverage_percentage }}** +
+
+ + **📈 Total Lines Covered:** `${{ inputs.covered_lines }}` out of `${{ inputs.total_lines }}` + **📁 Project:** `mssql-python` + +
+ + --- + + ${{ inputs.patch_coverage_summary }} + + --- + ### 📋 Files Needing Attention + +
+ 📉 Files with overall lowest coverage (click to expand) +
+ + ```diff + ${{ inputs.low_coverage_files }} + ``` + +
+ + --- + ### 🔗 Quick Links + + + + + + + + + + +
+ ⚙️ Build Summary + + 📋 Coverage Details +
+ + [View Azure DevOps Build](${{ inputs.ado_url }}) + + + + [Browse Full Coverage Report](${{ inputs.ado_url }}&view=codecoverage-tab) + +
diff --git a/.github/workflows/forked-pr-coverage-comment.yml b/.github/workflows/forked-pr-coverage.yml similarity index 74% rename from .github/workflows/forked-pr-coverage-comment.yml rename to .github/workflows/forked-pr-coverage.yml index 8a5edc0e..1120a470 100644 --- a/.github/workflows/forked-pr-coverage-comment.yml +++ b/.github/workflows/forked-pr-coverage.yml @@ -33,6 +33,9 @@ jobs: contents: read steps: + - name: Checkout repo + uses: actions/checkout@v4 + - name: Download coverage data env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -96,58 +99,16 @@ jobs: } >> $GITHUB_ENV - name: Comment coverage summary on PR - uses: marocchino/sticky-pull-request-comment@v2 + uses: ./.github/actions/post-coverage-comment with: - number: ${{ env.PR_NUMBER }} - header: Code Coverage Report - message: | - # 📊 Code Coverage Report - - - - - - - -
- - ### 🔥 Diff Coverage - ### **${{ env.PATCH_COVERAGE_PCT }}** -
-
- - ### 🎯 Overall Coverage - ### **${{ env.COVERAGE_PERCENTAGE }}** -
-
- - **📈 Total Lines Covered:** `${{ env.COVERED_LINES }}` out of `${{ env.TOTAL_LINES }}` - **📁 Project:** `mssql-python` - -
- - --- - - ${{ env.PATCH_COVERAGE_SUMMARY }} - - --- - ### 📋 Files Needing Attention - -
- 📉 Files with overall lowest coverage (click to expand) -
- - ```diff - ${{ env.LOW_COVERAGE_FILES }} - ``` - -
- - --- - ### 🔗 Quick Links - - - + pr_number: ${{ env.PR_NUMBER }} + coverage_percentage: ${{ env.COVERAGE_PERCENTAGE }} + covered_lines: ${{ env.COVERED_LINES }} + total_lines: ${{ env.TOTAL_LINES }} + patch_coverage_pct: ${{ env.PATCH_COVERAGE_PCT }} + low_coverage_files: ${{ env.LOW_COVERAGE_FILES }} + patch_coverage_summary: ${{ env.PATCH_COVERAGE_SUMMARY }} + ado_url: ${{ env.ADO_URL }} diff --git a/.github/workflows/pr-code-coverage.yml b/.github/workflows/pr-code-coverage.yml index be1cd0ff..f2f1aad9 100644 --- a/.github/workflows/pr-code-coverage.yml +++ b/.github/workflows/pr-code-coverage.yml @@ -463,74 +463,13 @@ jobs: - name: Comment coverage summary on PR # Skip for forked PRs due to token permission restrictions if: github.event.pull_request.head.repo.full_name == github.repository - uses: marocchino/sticky-pull-request-comment@v2 + uses: ./.github/actions/post-coverage-comment with: - header: Code Coverage Report - message: | - # 📊 Code Coverage Report - -
⚙️ Build Summary
- - - - - -
- - ### 🔥 Diff Coverage - ### **${{ env.PATCH_COVERAGE_PCT }}** -
-
- - ### 🎯 Overall Coverage - ### **${{ env.COVERAGE_PERCENTAGE }}** -
-
- - **📈 Total Lines Covered:** `${{ env.COVERED_LINES }}` out of `${{ env.TOTAL_LINES }}` - **📁 Project:** `mssql-python` - -
- - --- - - ${{ env.PATCH_COVERAGE_SUMMARY }} - - --- - ### 📋 Files Needing Attention - -
- 📉 Files with overall lowest coverage (click to expand) -
- - ```diff - ${{ env.LOW_COVERAGE_FILES }} - ``` - -
- - --- - ### 🔗 Quick Links - - - - - - - - - - -
- ⚙️ Build Summary - - 📋 Coverage Details -
- - [View Azure DevOps Build](${{ env.ADO_URL }}) - - - - [Browse Full Coverage Report](${{ env.ADO_URL }}&view=codecoverage-tab) - -
\ No newline at end of file + pr_number: ${{ github.event.pull_request.number }} + coverage_percentage: ${{ env.COVERAGE_PERCENTAGE }} + covered_lines: ${{ env.COVERED_LINES }} + total_lines: ${{ env.TOTAL_LINES }} + patch_coverage_pct: ${{ env.PATCH_COVERAGE_PCT }} + low_coverage_files: ${{ env.LOW_COVERAGE_FILES }} + patch_coverage_summary: ${{ env.PATCH_COVERAGE_SUMMARY }} + ado_url: ${{ env.ADO_URL }} \ No newline at end of file From 6aaf839ef812efca05a11e19358077efa35978d8 Mon Sep 17 00:00:00 2001 From: gargsaumya Date: Wed, 24 Dec 2025 14:02:23 +0530 Subject: [PATCH 6/7] cleanup --- .github/workflows/forked-pr-coverage.yml | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/.github/workflows/forked-pr-coverage.yml b/.github/workflows/forked-pr-coverage.yml index 1120a470..e616e884 100644 --- a/.github/workflows/forked-pr-coverage.yml +++ b/.github/workflows/forked-pr-coverage.yml @@ -109,23 +109,3 @@ jobs: low_coverage_files: ${{ env.LOW_COVERAGE_FILES }} patch_coverage_summary: ${{ env.PATCH_COVERAGE_SUMMARY }} ado_url: ${{ env.ADO_URL }} - - ⚙️ Build Summary - - - 📋 Coverage Details - - - - - - [View Azure DevOps Build](${{ env.ADO_URL }}) - - - - - [Browse Full Coverage Report](${{ env.ADO_URL }}&view=codecoverage-tab) - - - - From 2f4efea90b8ba23770bade0f19d37e59ac0e9970 Mon Sep 17 00:00:00 2001 From: gargsaumya Date: Wed, 24 Dec 2025 14:04:34 +0530 Subject: [PATCH 7/7] same main.py --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 7e56b2fe..2f8cf28c 100644 --- a/main.py +++ b/main.py @@ -15,4 +15,4 @@ print(f"Database ID: {row[0]}, Name: {row[1]}") cursor.close() -conn.close() +conn.close() \ No newline at end of file