Tags: AltimateAI/datapilot-cli
Tags
fix: [AI-7435] accept dbt 2.0 `reused` run status in run_results v6 p… …arser (#106) * fix: [AI-7435] accept dbt 2.0 `reused` run status in run_results v6 parser dbt 2.0 emits `status="reused"` for unchanged models. The `run_results` v6 `Status` enum only knew `success`/`error`/`skipped`/`partial_success`, so `Result` validation raised `ValidationError` and the ingestion worker silently dropped the entire `run_results.json` — run status/timing never persisted while the UI still showed a clean successful sync. - Add `reused` to `Status` and make it a `str, Enum`. - Add `Status._missing_` so future unknown dbt statuses surface as real members instead of failing validation (forward-compatibility). - Reorder `Result.status` union to `Union[Status1, Status2, Status]` so the now permissive run `Status` is tried last, keeping test/freshness statuses (`pass`/`fail`/`warn`/`runtime error`) resolving via the strict enums. - Add regression tests covering `reused`, known statuses, unknown-future status, test/freshness statuses, and full-file `parse_run_results`. - Bump version to `0.3.2` (`0.3.1` already released without this fix). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix: [AI-7435] coordinate version bump to `0.3.2` across all bumpversion files Kilo Code review flagged that `.bumpversion.cfg` and `docs/conf.py` still reported `0.3.1`. Bump both to `0.3.2` so all files `bumpversion` tracks (`setup.py`, `docs/conf.py`, `src/datapilot/__init__.py`, `current_version`) stay coordinated — prevents Sphinx publishing a stale version and a future `bumpversion` `VersionNotFoundError`. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * chore: [AI-7435] split test imports to satisfy ruff `I001` Project isort config uses force-single-line; split the combined `Result, Status` import onto separate lines. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
PreviousNext