dbt-labs / dbt-core

dbt enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications.
https://getdbt.com
Apache License 2.0
9.25k stars 1.53k forks source link

Mark test_metric_type_params_satisfies_protocol test as skipped #10348

Closed emmyoop closed 1 week ago

emmyoop commented 1 week ago

Problem

Tests in tests/unit/test_semantic_layer_nodes_satisfy_protocols.py are a safety check. They mean that in some way, core is not satisfying the protocols that DSI provides. Unfortunately it's a bit harder to write a test to identify whether the failure to satisfy the protocol is breaking or not. Looking at this failure, it seems that we are not providing an optional key/value which is okay (not breaking).

Solution

Mark the failing test as skipped until we can come up with a more stable approach for these tests to not fail when the protocol doesn't match optional fields.

Checklist

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 88.75%. Comparing base (9a796aa) to head (dd578bf).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #10348 +/- ## ========================================== + Coverage 86.01% 88.75% +2.73% ========================================== Files 180 180 Lines 22486 22486 ========================================== + Hits 19341 19957 +616 + Misses 3145 2529 -616 ``` | [Flag](https://app.codecov.io/gh/dbt-labs/dbt-core/pull/10348/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dbt-labs) | Coverage Δ | | |---|---|---| | [integration](https://app.codecov.io/gh/dbt-labs/dbt-core/pull/10348/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dbt-labs) | `86.01% <ø> (ø)` | | | [unit](https://app.codecov.io/gh/dbt-labs/dbt-core/pull/10348/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dbt-labs) | `62.19% <ø> (?)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dbt-labs#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.