Skip to content

ci: publish per-service coverage table with a 40% floor - #2663

Merged
paruff merged 2 commits into
mainfrom
ci/coverage-services
Dec 5, 2026
Merged

paruff merged 2 commits into
mainfrom
ci/coverage-services

Conversation

@paruff

@paruff paruff commented Dec 5, 2026

Copy link
Copy Markdown
Owner

What

New python-service-coverage job in code-quality.yml. Runs scripts/coverage-services.sh (each service's own tests, Python 3.13) and publishes one coverage row per service to the job summary plus a service-coverage artifact. FAIL_UNDER=40 is a per-service floor: the lowest service today is smart-alerting at 42%, so it passes now and stops regressions. A service whose tests cannot run fails the job.

Why: the existing 80% gate runs pytest --cov=. tests/unit/, which measures 9 statements, so it says little about the product.

Stacked on #2662

This branch includes the #2662 commit (script pinned to Python 3.13, experimentation httpx pin). Merge #2662 first; the diff here then reduces to the workflow change.

Layers

.github/workflows/code-quality.yml only (maintainer-approved). uv is installed with an exact pip pin (uv==0.11.23, ADR-034) instead of a new third-party action.

Test plan

Follow-ups

Raise FAIL_UNDER as services improve; add the job to quality-summary once stable.

AI-generated; human review requested.

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

📊 Code Quality Report

Check Status
Python Quality failure
Python BDD Acceptance success
Python Integration Collect success
TypeScript Quality skipped
Go Quality skipped
Shell Quality success
Shell Tests (BATS) success
YAML Quality success
Security Integration success
Security Scanning success

📈 Quality Gates

✅ Passed: All checks completed successfully
⚠️ Warning: Some checks have warnings
❌ Failed: Critical issues found

🔧 How to Fix

Run locally before pushing:

make pre-commit-setup  # Install pre-commit hooks
make lint              # Run all linters
make test-bats         # Run shell script tests
pytest --cov=. --cov-report=term-missing  # Check coverage

See Code Quality Standards for more details.

paruff and others added 2 commits December 5, 2026 08:42
…ttpx

Nine services had no coverage result: eight ran on an unsupported interpreter, one had conflicting dependency pins. See docs/ai-sdlc/coverage-services-python/plan.md.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
New python-service-coverage job in code-quality.yml. Stacked on the Python 3.13 fix for scripts/coverage-services.sh.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@paruff
paruff force-pushed the ci/coverage-services branch from 1162847 to 2213ec4 Compare December 5, 2026 08:42
@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Coverage report

This PR does not seem to contain any modification to coverable code.

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

📊 Code Quality Report

Check Status
Python Quality success
Python BDD Acceptance success
Python Integration Collect success
TypeScript Quality skipped
Go Quality skipped
Shell Quality success
Shell Tests (BATS) success
YAML Quality success
Security Integration success
Security Scanning success

📈 Quality Gates

✅ Passed: All checks completed successfully
⚠️ Warning: Some checks have warnings
❌ Failed: Critical issues found

🔧 How to Fix

Run locally before pushing:

make pre-commit-setup  # Install pre-commit hooks
make lint              # Run all linters
make test-bats         # Run shell script tests
pytest --cov=. --cov-report=term-missing  # Check coverage

See Code Quality Standards for more details.

@paruff
paruff merged commit 1f18c54 into main Dec 5, 2026
40 checks passed
@paruff
paruff deleted the ci/coverage-services branch December 5, 2026 08:51
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.

1 participant