Skip to content

Enforce 80% Minimum Code Coverage Threshold in CI Pipeline [#76]#77

Open
akshaylg0314 wants to merge 1 commit into
eclipse-timpani:mainfrom
akshaylg0314:main
Open

Enforce 80% Minimum Code Coverage Threshold in CI Pipeline [#76]#77
akshaylg0314 wants to merge 1 commit into
eclipse-timpani:mainfrom
akshaylg0314:main

Conversation

@akshaylg0314
Copy link
Copy Markdown
Contributor

📝 PR Description
Enforce 80% Minimum Code Coverage Threshold in CI Pipeline [#76]

Changes Implemented

Script updated: scripts/test_coverage.sh: installs cargo-tarpaulin if missing, fixes PROJECT_ROOT resolution so the script runs locally and in CI, captures tarpaulin output, parses the coverage percentage, and enforces a threshold via COVERAGE_THRESHOLD=80. On failure the script emits GitHub Actions error annotations and exits non-zero, causing the CI step to fail.

Targeted packages: Replaced the previous --workspace invocation with --packages timpani-n timpani-o so test-tools is excluded from coverage measurement.
Robust invocation: Adjusted tarpaulin command capture to work correctly with set -euo pipefail and to reliably surface tarpaulin failures in the CI log.

🧪 Test Method
Workflow Validation

✅ All workflow files validated with actionlint — no errors found

@akshaylg0314
Copy link
Copy Markdown
Contributor Author

Hey @basheerFZ please review and merge
thanks!!

@akshaylg0314 akshaylg0314 requested a review from basheerFZ May 21, 2026 12:08
@akshaylg0314 akshaylg0314 self-assigned this May 21, 2026
@akshaylg0314 akshaylg0314 added the enhancement New feature or request label May 21, 2026
@akshaylg0314
Copy link
Copy Markdown
Contributor Author

akshaylg0314 commented May 21, 2026

CI pipeline is Failed as Code coverage is less then 80% , please merge this check change in CI pipeline
thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants