:exclamation: :exclamation: :exclamation: *Importa...
# general
i
❗ ❗ ❗ Important notice regarding dbt 1.8❗ ❗ ❗ Hey <!channel>, TL;DR - Immediate action item required if you're upgrading to dbt 1.8: • Please upgrade Elementary package and CLI to version 0.15.1. • For test samples and failed row count to continue to work, please add the following configuration to your `dbt_project.yml`:
Copy code
flags:
  require_explicit_package_overrides_for_builtin_materializations: false
Details: Starting from dbt 1.8, dbt requires an explicit configuration from users to allow packages to override materializations (more details here). Elementary utilizes this ability to provide additional features to test reporting - specifically the ability to collect failed row samples and the number of failed rows within each test. Please follow the instructions above to ensure Elementary functionality keeps working correctly for you. Notes: • Please upgrade Elementary regardless of whether or not you're using the above features, to ensure other functionality won't break. • Note that setting the flag above will cause a deprecation warning to show - this is a temporary situation and we're working with the dbt team on a longer term solution, but otherwise you can safely ignore this warning for now. This warning may also appear if you upgraded to the latest
1.6.x/1.7.x
version and likewise you can safely ignore it for now.
🙏🏼 1
👍 9
👌🏼 1
👌 20
drop shocked 6
announcement 5
🙏 7
👍🏼 1
h
@Mohamed Fadl
👀 1
p
We recently took the upgrade and when I run
edr report --env prod
I get this stack trace
Copy code
2024-05-23 23:36:34 — ERROR — Could not generate the report - Error: Failed to run dbt command.
Please reach out to our community for help with this issue.
Traceback (most recent call last):
  File "/workspaces/ci-dbt/.venv/lib/python3.10/site-packages/elementary/clients/dbt/dbt_runner.py", line 88, in _run_command
    result = subprocess.run(
  File "/usr/local/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['dbt', '--log-format', 'json', 'run-operation', 'elementary.log_macro_results', '--args', '{"macro_name": "elementary_cli.get_test_results", "macro_args": {"days_back": 7, "invocations_per_test": 720, "disable_passed_test_metrics": false}}', '--project-dir', '/workspaces/ci-dbt/.venv/lib/python3.10/site-packages/elementary/monitor/dbt_project']' died with <Signals.SIGKILL: 9>.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspaces/ci-dbt/.venv/lib/python3.10/site-packages/elementary/monitor/api/report/report.py", line 50, in get_report_data
    tests_api = TestsAPI(
  File "/workspaces/ci-dbt/.venv/lib/python3.10/site-packages/elementary/monitor/api/tests/tests.py", line 43, in __init__
    self.test_results_db_rows = self._get_test_results_db_rows(
  File "/workspaces/ci-dbt/.venv/lib/python3.10/site-packages/elementary/monitor/api/tests/tests.py", line 55, in _get_test_results_db_rows
    return self.tests_fetcher.get_all_test_results_db_rows(
  File "/workspaces/ci-dbt/.venv/lib/python3.10/site-packages/elementary/monitor/fetchers/tests/tests.py", line 25, in get_all_test_results_db_rows
    run_operation_response = self.dbt_runner.run_operation(
  File "/workspaces/ci-dbt/.venv/lib/python3.10/site-packages/elementary/clients/dbt/dbt_runner.py", line 160, in run_operation
    success, command_output = self._run_command(
  File "/workspaces/ci-dbt/.venv/lib/python3.10/site-packages/elementary/clients/dbt/dbt_runner.py", line 99, in _run_command
    raise DbtCommandError(err, command_args, logs=logs)
elementary.exceptions.exceptions.DbtCommandError: Failed to run dbt command.
make: *** [/workspaces/ci-dbt/tools/makefiles/dbt.mk:134: edr-report-prod] Error 1
ci-dbt(ci-dbt) vscode ➜ /workspaces/ci-dbt (master) $
output of the log says to post here which is why Im adding this context in this thread
Please reach out to our community for help with this issue.
I have this flag set in the dbt project
Copy code
flags:
  require_explicit_package_overrides_for_builtin_materializations: false
l
"Failed row count" it is regarding freshness?
k
cc @Bhavya Kalra
👀 1