Skip to content

Development branch: Enforce 80% Minimum Code Coverage Threshold in CI Pipeline [#76]#78

Open
akshaylg0314 wants to merge 1 commit into
eclipse-timpani:development_0.5from
akshaylg0314:development_0.5
Open

Development branch: Enforce 80% Minimum Code Coverage Threshold in CI Pipeline [#76]#78
akshaylg0314 wants to merge 1 commit into
eclipse-timpani:development_0.5from
akshaylg0314:development_0.5

Conversation

@akshaylg0314
Copy link
Copy Markdown
Contributor

📝 PR Description
Enforce 80% Minimum Code Coverage Threshold in CI Pipeline [https://github.com//issues/76]
This is for Development branch

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 akshaylg0314 changed the title Enforce 80% Minimum Code Coverage Threshold in CI Pipeline [#76] Development branch: Enforce 80% Minimum Code Coverage Threshold in CI Pipeline [#76] May 21, 2026
@akshaylg0314
Copy link
Copy Markdown
Contributor Author

CI Pipeline is passed as code coverage is more than 80%, please merge it
thanks!!

@akshaylg0314 akshaylg0314 requested a review from basheerFZ May 21, 2026 12:07
@akshaylg0314 akshaylg0314 self-assigned this May 21, 2026
@akshaylg0314 akshaylg0314 added the enhancement New feature or request label May 21, 2026
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