Skip to content

Add coverage-report.json and enable report update via CI#246

Merged
ssagarverma merged 15 commits into
mainfrom
feature/add_coverage_file
Jul 2, 2026
Merged

Add coverage-report.json and enable report update via CI#246
ssagarverma merged 15 commits into
mainfrom
feature/add_coverage_file

Conversation

@mohanmanikanta2299

Copy link
Copy Markdown
Collaborator

🛠️ Description

  • Add Coverage file(coverage-report.json) which contains data to display coverage metrics on dashboard.
  • Add steps in CI workflow to compute the metrics needed in coverage-report.json and commit the file in the main branch on each push.

🔗 External Links

N/A

👍 Definition of Done

  • New functionality works?
  • Tests added?

🤔 Can be merged upon approval?

PCI review checklist

  • I have documented a clear reason for, and description of, the change I am making.

  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.

  • If applicable, I've documented the impact of any changes to security controls.

    Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.

@mohanmanikanta2299 mohanmanikanta2299 requested a review from a team as a code owner July 1, 2026 10:37
Copilot AI review requested due to automatic review settings July 1, 2026 10:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a repo-level JSON coverage summary intended for dashboard consumption, and updates the existing CI workflow to generate and commit that summary after test runs on main.

Changes:

  • Introduces coverage-report.json as a committed coverage-metrics artifact.
  • Extends .github/workflows/golangci.yml to compute coverage metrics from coverage.out and commit coverage-report.json back to the branch on push.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
coverage-report.json Adds a new JSON report file containing coverage and run metadata.
.github/workflows/golangci.yml Generates coverage-report.json in CI from Go coverage output and commits it on pushes.

Comment thread .github/workflows/golangci.yml Outdated
Comment thread .github/workflows/golangci.yml Outdated
Comment thread coverage-report.json
@mohanmanikanta2299 mohanmanikanta2299 changed the title Feature/add coverage file Add coverage-report.json and enable report update via CI Jul 1, 2026
Comment thread .github/workflows/golangci.yml Outdated
Comment thread .github/workflows/golangci.yml Outdated
Comment thread .github/workflows/golangci.yml
Comment thread .github/workflows/golangci.yml Outdated

@ssagarverma ssagarverma left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Added minor nit comments

Comment thread .github/workflows/golangci.yml Outdated
Comment thread .github/workflows/golangci.yml
@ssagarverma ssagarverma merged commit 3865a1d into main Jul 2, 2026
6 checks passed
@ssagarverma ssagarverma deleted the feature/add_coverage_file branch July 2, 2026 04:34
@ssagarverma ssagarverma restored the feature/add_coverage_file branch July 2, 2026 06:33
@ssagarverma ssagarverma deleted the feature/add_coverage_file branch July 2, 2026 06:36
ssagarverma added a commit that referenced this pull request Jul 2, 2026
* Revert "chore: update coverage report (#249)"

This reverts commit d190619.

* Revert "Add coverage-report.json and enable report update via CI (#246)"

This reverts commit 3865a1d.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants