Add disablement flag for uploading test results
The test results upload happens on an on-run-end. Users should have a way to disable it in a specific run using a var.
+1 There should be a way to temporarily disable elementary on-run-start and on-run-end hook using a var.
For example by modifying dbt_project.yml (thats our current hack):
on-run-start:
- "{%- if var('use_elementary', default=false) -%} {{ elementary.create_elementary_tests_schema() if flags.WHICH in ['test', 'build'] }} {%- endif -%}"
on-run-end:
- "{%- if var('use_elementary', default=false) -%} {{ elementary.handle_tests_results(results) if flags.WHICH in ['test', 'build'] }} {%- endif -%}"
- "{%- if var('use_elementary', default=false) -%} {{ elementary.upload_run_results(results) }} {%- endif -%}"
Introduced a var called disable_tests_results.
Is there anything like this that would be model-specific? For instance if we wanted not to upload particularly wide models from uploading the test_results_query, would this be possible for said models?
Hi @DakotaMichael, could you perhaps elaborate a bit on the use-case or the problem you're trying to solve? Thanks.