-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ADAP-1167: Add table format telemetry reporting to Athena adapter #403
base: main
Are you sure you want to change the base?
Changes from all commits
6948977
4d77a53
f3a23f4
8808fee
13de64e
da003bd
36b245f
592f255
c1f9b89
705e11c
2474f38
2bc8856
c1c0d5a
8dbdf7c
b0309a9
1fb668f
09ea593
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,6 +60,10 @@ | |
seeds__expected_target_post = "id,status\n" + "\n".join([f"{i},{i}" for i in range(PARALLELISM)]) | ||
|
||
|
||
@pytest.mark.flaky | ||
@pytest.mark.skip( | ||
reason="Unreliable test in practice. No apparent reliable way to trigger a retry, which causes the test to fail. Disabled until we get a resolution here https://github.com/dbt-labs/dbt-athena/pull/657/files#r1922043351" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This test seems to fail randomly, irrespective of my changes. E.g. https://github.com/dbt-labs/dbt-athena/actions/runs/12756721311/job/35555467442#step:6:595 |
||
) | ||
class TestIcebergRetriesDisabled: | ||
@pytest.fixture(scope="class") | ||
def dbt_profile_target(self): | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from unittest import mock | ||
|
||
import dbt.adapters.athena.__version__ | ||
|
||
from dbt.adapters.athena.impl import AthenaAdapter | ||
from dbt.adapters.base.relation import AdapterTrackingRelationInfo | ||
|
||
|
||
def test_telemetry_with_athena_details(): | ||
mock_model_config = mock.MagicMock() | ||
mock_model_config._extra = mock.MagicMock() | ||
mock_model_config._extra = { | ||
"adapter_type": "athena", | ||
"table_type": "iceberg", | ||
} | ||
|
||
res = AthenaAdapter.get_adapter_run_info(mock_model_config) | ||
|
||
assert res.adapter_name == "athena" | ||
assert res.base_adapter_version == dbt.adapters.__about__.version | ||
assert res.adapter_version == dbt.adapters.athena.__version__.version | ||
|
||
assert res.model_adapter_details == { | ||
"adapter_type": "athena", | ||
"table_format": "iceberg", | ||
} | ||
|
||
assert type(res) is AdapterTrackingRelationInfo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did these workflow changes so that
TestIcebergRetriesDisabled
is isolated in a separate job and so that it's forced to run in series. This is to rule out that parallel test runs write to the same place, causing the test to fail.However, I ended up disabling that test (see comment below). I think it's debatable whether to still keep the workflow changes here (as scaffolding). I'm leaning towards yes, but happy to remove this stuff, in case you disagree.