ktx/codecov.yml

110 lines
2.4 KiB
YAML
Raw Normal View History

codecov:
branch: main
require_ci_to_pass: true
notify:
after_n_builds: 2
coverage:
precision: 2
round: down
range: "70...100"
status:
project:
default:
target: auto
threshold: 1%
if_ci_failed: error
typescript:
target: auto
threshold: 1%
flags:
- typescript
if_ci_failed: error
python:
target: auto
threshold: 1%
flags:
- python
if_ci_failed: error
patch:
default:
target: 75%
threshold: 5%
if_ci_failed: error
informational: true
comment:
layout: "header, diff, flags, components, files"
behavior: default
require_changes: false
require_base: false
require_head: true
flags:
typescript:
paths:
- packages/
carryforward: false
python:
paths:
- python/
carryforward: false
component_management:
individual_components:
- component_id: pkg_cli
name: CLI
paths:
- packages/cli/src/**
- component_id: pkg_context
name: Context engine
paths:
- packages/context/src/**
- component_id: pkg_llm
name: LLM
paths:
- packages/llm/src/**
- component_id: connector_bigquery
name: BigQuery connector
paths:
- packages/connector-bigquery/src/**
- component_id: connector_clickhouse
name: ClickHouse connector
paths:
- packages/connector-clickhouse/src/**
- component_id: connector_mysql
name: MySQL connector
paths:
- packages/connector-mysql/src/**
- component_id: connector_postgres
name: Postgres connector
paths:
- packages/connector-postgres/src/**
- component_id: connector_snowflake
name: Snowflake connector
paths:
- packages/connector-snowflake/src/**
- component_id: connector_sqlite
name: SQLite connector
paths:
- packages/connector-sqlite/src/**
- component_id: connector_sqlserver
name: SQL Server connector
paths:
- packages/connector-sqlserver/src/**
- component_id: py_semantic_layer
name: Python semantic layer
paths:
- python/ktx-sl/semantic_layer/**
- component_id: py_daemon
refactor(release): drop release-policy.json runtime dep and next branch (#180) * chore: standardize daemon naming on "KTX daemon" Replace inconsistent names ("KTX Python daemon", "KTX local embeddings daemon", "KTX managed daemon", "Python daemon") with the single name "KTX daemon" in CLI output, errors, command descriptions, test assertions, smoke scripts, docs, AGENTS.md, issue templates, and codecov flags. The daemon is a portable compute server with endpoints for SQL analysis, semantic layer, LookML, database introspection, and embeddings; the previous labels misrepresented it as embeddings-only or exposed implementation details ("Python", "managed"). The "KTX Python runtime" concept (installed interpreter + packages) is deliberately left as-is — it is a separate concept from the daemon process. * refactor(release): drop release-policy.json runtime dep and next branch Strips the release-policy.json fallback from release-version.ts so the CLI reads its version straight from packages/cli/package.json. dev → 0.0.0-private, installed @kaelio/ktx → the real semver baked into the published package.json. KtxCliPackageInfo collapses to { name, version, contextPackageName }; /health no longer depends on version files surviving past a CI run. Replaces the dual-branch (main + next) semantic-release model with a single- branch model on main. rcs and stables interleave on the same branch via { name: 'main', prerelease: 'rc', channel: 'next' } / ['main']. Drops @semantic-release/git and @semantic-release/changelog (nothing is committed back to the repo on any channel) and the workflow's "Prepare next prerelease branch" step plus the KTX_PRERELEASE_BRANCH plumbing. The git tag plus the published npm artifact carry the version forward. Updates docs/release.md, removes the two now-unused devDeps, regenerates pnpm-lock.yaml. 611/611 @ktx/cli tests, 173/173 script tests, type-check, biome, knip all clean. * fix(release): don't throw on non-main branches at config-load time knip loads .releaserc.cjs on every PR run, where GITHUB_REF_NAME is the merge ref (e.g. 180/merge). The previous version of releaseBranches threw immediately when the branch wasn't main, which made knip fail to evaluate the config and then mis-flag @semantic-release/exec as an unused dep. semantic-release already refuses to publish when the current branch doesn't match a configured release branch, so the explicit throw was redundant. Drop it (and the unused currentBranch helper) and replace the "rejects releases from non-main" assertion with one that exercises a CI- shaped GITHUB_REF_NAME and confirms the config loads.
2026-05-20 13:53:14 +02:00
name: KTX daemon
paths:
- python/ktx-daemon/src/ktx_daemon/**
ignore:
- docs-site/**
- examples/**
- packages/*/coverage/**
- packages/*/dist/**
- python/ktx-sl/demos/**