Files
promptfoo--promptfoo/codecov.yml
T
wehub-resource-sync 0d3cb498a3
Deploy local.promptfoo.app / Deploy to Cloudflare Pages (push) Waiting to run
Test and Publish Multi-arch Docker Image / test (push) Waiting to run
Test and Publish Multi-arch Docker Image / build-docker-and-push-digests (map[digest-suffix:linux-amd64 platform:linux/amd64 runner:ubuntu-latest]) (push) Blocked by required conditions
Test and Publish Multi-arch Docker Image / build-docker-and-push-digests (map[digest-suffix:linux-arm64 platform:linux/arm64 runner:ubuntu-24.04-arm]) (push) Blocked by required conditions
Test and Publish Multi-arch Docker Image / merge-docker-digests (push) Blocked by required conditions
Test and Publish Multi-arch Docker Image / Attest Multi-arch Image (push) Blocked by required conditions
Validate Renovate Config / Validate Renovate Configuration (push) Waiting to run
CI / Shell Format Check (push) Has been cancelled
CI / Check Ruby (3.4) (push) Has been cancelled
CI / CI Config (push) Has been cancelled
CI / Test on Node ${{ matrix.node }} and ${{ matrix.os }}${{ matrix.shard && format(' (shard {0}/3)', matrix.shard) || '' }} (push) Has been cancelled
CI / Build on Node ${{ matrix.node }} (push) Has been cancelled
CI / Style Check (push) Has been cancelled
CI / Generate Assets (push) Has been cancelled
CI / Check Python (3.14) (push) Has been cancelled
CI / Check Python (3.9) (push) Has been cancelled
CI / Build Docs (push) Has been cancelled
CI / Code Scan Action (push) Has been cancelled
CI / Site tests (push) Has been cancelled
CI / webui tests (push) Has been cancelled
CI / Run Integration Tests (push) Has been cancelled
CI / Run Smoke Tests (push) Has been cancelled
CI / Go Tests (push) Has been cancelled
CI / Share Test (push) Has been cancelled
CI / Redteam (Production API) (push) Has been cancelled
CI / Redteam (Staging API) (push) Has been cancelled
CI / GitHub Actions Lint (push) Has been cancelled
CI / Check Ruby (3.0) (push) Has been cancelled
release-please / release-please (push) Has been cancelled
release-please / build (push) Has been cancelled
release-please / publish-npm (push) Has been cancelled
release-please / publish-npm-backfill (push) Has been cancelled
release-please / docker (push) Has been cancelled
release-please / publish-code-scan-action (push) Has been cancelled
release-please / attest-code-scan-action (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:24:08 +08:00

73 lines
2.1 KiB
YAML

# Codecov configuration for promptfoo
# https://docs.codecov.com/docs/codecov-yaml
coverage:
status:
project:
default:
# Backend (`src/`) and frontend (`src/app/src/`) coverage are gated
# in-repo by the coverage ratchet (`npm run test:coverage:ratchet`, run
# in CI as the "Check Backend/Frontend Coverage Ratchets" steps), not by
# Codecov. (The `site` flag has no ratchet, so it is informational-only
# — no in-repo gate.) Keep this status informational so Codecov
# measurement noise — carryforward flags, sharded/partial uploads —
# can't fail PRs that don't change source (e.g. a dependency bump
# reporting a spurious -0.01%). codecov/project is not a required check.
target: auto
threshold: 0%
informational: true
patch:
default:
# Require new code in PRs to have reasonable coverage
target: 50%
threshold: 0%
informational: false
comment:
layout: 'header, diff, flags, components'
behavior: default
require_changes: false
# Ignore generated files and test files in coverage reports
ignore:
- 'dist/**/*'
- 'coverage/**/*'
- 'node_modules/**/*'
- '**/*.test.ts'
- '**/*.test.tsx'
- '**/*.d.ts'
- 'src/app/**/*' # Frontend has separate coverage
- 'examples/**/*'
- 'drizzle/**/*'
- 'scripts/**/*'
# Component flags for separate coverage tracking
flag_management:
default_rules:
carryforward: true
statuses:
# Per-flag project status is informational. The backend and frontend
# flags are gated in-repo by the coverage ratchet, so a blocking Codecov
# status would be redundant; the site flag has no ratchet, so we accept it
# as informational-only rather than block PRs on Codecov measurement noise.
- type: project
target: auto
threshold: 0%
informational: true
- type: patch
target: 50%
flags:
backend:
paths:
- src/
carryforward: true
frontend:
paths:
- src/app/src/
carryforward: true
site:
paths:
- site/src/
carryforward: true