Repository navigation
v1.19.0
Dex Telemetry
Dex 1.19.0 is here, and so is "Dex Telemetry".
This release lets your agent read your project's own run history: which tests
have been failing, since which run, and why. It reads the history your
warehouse already keeps, in your warehouse. Dex still sends nothing to Exmergo.
This builds on the Elementary work shipped in 1.18.x: Dex working correctly
in projects that install the package, the tests and monitors it renders from
declarations, and the incident engine that landed in 1.18.5.
dex maintain incidents returns the incidents the run history holds for
your models' tests. It reads Elementary's tables (dbt_invocations and
elementary_test_results) where the package is installed, and dbt's
run_results.json beside them. Each incident is open, closed or
no_longer_observed, with the run where it was first observed. A run nobody
observed (dbt did not run, the hooks were off, retention removed the rows) is
never read as a pass. The read is bounded by a number of runs, not days, and is
priced as one handshake before any statement is sent. No row value comes back:
only ids, statuses, counts and times.
dex maintain diagnose takes each open incident to a cause. It bounds the
onset between the last observed pass and the first failure, names the commits
in that window, and checks each candidate cause with a check Dex already has.
It also names the semantic models and metrics that read the column that broke.
It answers cause, several or no_cause, and never guesses the likeliest
one. In this release it confirms one cause kind: a uniqueness test failing
because the loader delivered a key twice. The other kinds are listed as
not_checked. A confirmed cause is handed to transform as a reviewable plan,
never written for you.
You can try the whole path with no warehouse and no credentials: dex demo now
writes a small dbt project, seven weeks of Elementary history, and a semantic
layer, and the agent procedure sends an agent to dex maintain incidents first
when a test fails or a model is wrong.
We've also made declarations write more of Elementary's monitors: a declared
population filter becomes each monitor's where_expression, a small-domain
dimension gets a dimension_anomalies, and the columns Dex flags as personal
data are tagged so Elementary keeps no sample of them. Cube --local queries
now run on ClickHouse and Trino. The details are below.
What's Changed
Downstream-visible
Dex Telemetry
- feat(maintain): dex maintain incidents returns incidents within a bounded, priced read by @catincloudlabs in #1572
- feat(maintain): diagnose an incident to a cause, with or without a snapshot series by @catincloudlabs in #1574
- feat(maintain): name the semantic-layer objects that read an incident's column by @catincloudlabs in #1598
- docs(procedure): route an agent to incidents first when a test fails or a model is wrong by @catincloudlabs in #1597
dex demo
- feat(demo): seed a dbt project and its run results so dex demo shows an incident by @catincloudlabs in #1587
- feat(demo): seed Elementary's tables so dex demo shows when its incident began by @catincloudlabs in #1588
- feat(demo): give dex demo a semantic layer on the seeded incident's column by @catincloudlabs in #1600
Elementary monitors from declarations
- feat(transform): write a declared population filter as the where_expression of a model's monitors by @catincloudlabs in #1571
- feat(transform): write small-domain dimension columns as dimension_anomalies (#1484) by @marcociav-exmergo in #1609
- feat(transform): tag the columns Dex flags as PII so Elementary keeps no sample of them by @catincloudlabs in #1576
Other
- feat(explore): run Cube --local on ClickHouse and Trino (#1410) by @hskl18 in #1573
- chore(config): spell each connector's dev namespace as dev, beside prod (#1541) by @Alhibb in #1569
Bug fixes
- fix(maintain): leave out the no-known-start note when Elementary dates the run by @catincloudlabs in #1593
- fix(transform): name a time-column grain's entity apart from its dimension (#1416) by @stmr in #1439
- fix(plans): scope stored plan IDs to the dbt project (#1547) by @Alhibb in #1566
- fix(scripts): keep sync_procedure.py from rewriting the procedure copies as CRLF on Windows by @costajohnt in #1602
Maintenance
- refactor(transform): hold what makes a plan global in one module by @catincloudlabs in #1594
- test(maintain): show whether an Elementary package upgrade reads as drift in maintain check by @catincloudlabs in #1575
- test(ci): add the 0.20.0 boundary to the Elementary fixture and a rule for each new release by @catincloudlabs in #1582
- fix(tests): run the Elementary fixture dbt with the CI orchestrator variables cleared by @catincloudlabs in #1585
- ci(integration): give the Elementary DuckDB job 45 minutes as its fixture grows by @catincloudlabs in #1578
- test(maintain): isolate commit-order Git fixtures by @snehaapratap in #1583
- ci: run the tests that call git on Ubuntu 24.04's packaged git (#1579) by @costajohnt in #1589
New Contributors
- @stmr made their first contribution in #1439
- @snehaapratap made their first contribution in #1583
Full Changelog: v1.18.5...v1.19.0