Skip to content

code review #69

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

Merged
merged 1 commit into from
Jul 4, 2024
Merged

Conversation

mhordynski
Copy link
Member

No description provided.

@mhordynski mhordynski merged commit 30ef6ee into lk/global_event_handlers Jul 4, 2024
Copy link

github-actions bot commented Jul 4, 2024

badge

Code Coverage Summary

Filename                                                  Stmts    Miss  Cover    Missing
------------------------------------------------------  -------  ------  -------  ---------------------------------------------------------------------
dbally/_main.py                                              13       1  92.31%   10
dbally/_types.py                                              8       1  87.50%   24
dbally/exceptions.py                                          1       0  100.00%
dbally/assistants/base.py                                    24       0  100.00%
dbally/assistants/openai.py                                  59       2  96.61%   59-76
dbally/audit/event_tracker.py                                36       8  77.78%   38-40, 53, 64, 74, 91, 97
dbally/audit/events.py                                       28       0  100.00%
dbally/audit/spans.py                                         7       0  100.00%
dbally/audit/event_handlers/base.py                          15       0  100.00%
dbally/audit/event_handlers/buffer_event_handler.py           8       8  0.00%    1-27
dbally/audit/event_handlers/cli_event_handler.py             55      36  34.55%   11-13, 43-44, 47-55, 64-66, 79-91, 108-115, 126-130
dbally/audit/event_handlers/langsmith_event_handler.py       29      25  13.79%   6-106
dbally/collection/collection.py                              85       0  100.00%
dbally/collection/exceptions.py                              13       0  100.00%
dbally/collection/results.py                                 14       0  100.00%
dbally/embeddings/base.py                                     5       0  100.00%
dbally/embeddings/exceptions.py                              15       6  60.00%   10-11, 20, 29-30, 39
dbally/embeddings/litellm.py                                 28      12  57.14%   7-8, 44, 68-84
dbally/gradio/gradio_interface.py                           111     111  0.00%    1-300
dbally/iql/_exceptions.py                                    25       1  96.00%   35
dbally/iql/_processor.py                                     80       7  91.25%   16, 47, 64, 70, 76, 85, 91
dbally/iql/_query.py                                         13       1  92.31%   8
dbally/iql/_type_validators.py                               39       2  94.87%   24, 28
dbally/iql/syntax.py                                         36       9  75.00%   6-9, 27, 36, 60, 63-66
dbally/iql_generator/iql_generator.py                        31       0  100.00%
dbally/iql_generator/iql_prompt_template.py                  13       1  92.31%   45
dbally/llms/base.py                                          32       1  96.88%   35
dbally/llms/litellm.py                                       24      10  58.33%   8-9, 48-54, 61, 79
dbally/llms/clients/base.py                                  24       2  91.67%   46-47
dbally/llms/clients/exceptions.py                            15       6  60.00%   10-11, 20, 29-30, 39
dbally/llms/clients/litellm.py                               44      20  54.55%   8-9, 65-71, 97-118
dbally/nl_responder/nl_responder.py                          29       4  86.21%   75-84
dbally/nl_responder/nl_responder_prompt_template.py           7       0  100.00%
dbally/nl_responder/query_explainer_prompt_template.py        7       0  100.00%
dbally/prompts/common_validation_utils.py                    16       0  100.00%
dbally/prompts/prompt_template.py                            28       2  92.86%   27, 35
dbally/similarity/chroma_store.py                            37       0  100.00%
dbally/similarity/elastic_vector_search.py                   19      16  15.79%   5-102
dbally/similarity/elasticsearch_store.py                     22      19  13.64%   5-107
dbally/similarity/faiss_store.py                             38      35  7.90%    5-103
dbally/similarity/fetcher.py                                  5       0  100.00%
dbally/similarity/index.py                                   26       0  100.00%
dbally/similarity/sqlalchemy_base.py                         44      19  56.82%   35-37, 46, 68, 77, 86-89, 99-105, 123-126
dbally/similarity/store.py                                    7       0  100.00%
dbally/view_selection/base.py                                 7       0  100.00%
dbally/view_selection/llm_view_selector.py                   20       0  100.00%
dbally/view_selection/random_view_selector.py                10      10  0.00%    1-36
dbally/view_selection/view_selector_prompt_template.py       11       2  81.82%   32-33
dbally/views/base.py                                         13       1  92.31%   51
dbally/views/decorators.py                                    6       0  100.00%
dbally/views/exposed_functions.py                            33       1  96.97%   24
dbally/views/methods_base.py                                 34       2  94.12%   75, 83
dbally/views/pandas_base.py                                  33       1  96.97%   64
dbally/views/sqlalchemy_base.py                              37       7  81.08%   48, 63-65, 83-87
dbally/views/structured.py                                   45       0  100.00%
dbally/views/freeform/text2sql/config.py                     21       1  95.24%   47
dbally/views/freeform/text2sql/exceptions.py                  7       3  57.14%   12-14
dbally/views/freeform/text2sql/view.py                       95      22  76.84%   69, 72, 75, 78, 81, 93, 163, 167-170, 173, 205, 217-218, 232, 245-250
dbally_cli/main.py                                            5       5  0.00%    1-13
dbally_cli/text2sql.py                                       96      96  0.00%    1-248
dbally_codegen/autodiscovery.py                             106      12  88.68%   193-195, 216-229, 232-235, 304-305, 401-406
dbally_codegen/generator.py                                 180       7  96.11%   81, 91, 314, 342, 360, 374, 420
TOTAL                                                      1974     535  72.90%

Diff against main

Filename                                                  Stmts    Miss  Cover
------------------------------------------------------  -------  ------  --------
dbally/_main.py                                              +1      +1  -7.69%
dbally/audit/event_tracker.py                                +2      +2  -4.57%
dbally/audit/event_handlers/buffer_event_handler.py          +8      +8  +100.00%
dbally/audit/event_handlers/cli_event_handler.py             -1      +1  -2.95%
dbally/collection/collection.py                              -1      -1  +1.16%
dbally/gradio/gradio_interface.py                            +6      +6  +100.00%
dbally/iql/_processor.py                                     +1       0  +0.11%
dbally/iql/_query.py                                         -4       0  -1.81%
dbally/iql/_type_validators.py                               +1       0  +0.13%
dbally/iql_generator/iql_generator.py                        +6       0  +100.00%
dbally/iql_generator/iql_prompt_template.py                 +13      +1  +92.31%
dbally/llms/base.py                                          +4       0  +0.45%
dbally/llms/clients/base.py                                  +1       0  +0.37%
dbally/llms/clients/litellm.py                                0      -1  +2.28%
dbally/nl_responder/nl_responder.py                          +5       0  +2.88%
dbally/nl_responder/nl_responder_prompt_template.py          +7       0  +100.00%
dbally/nl_responder/query_explainer_prompt_template.py       +7       0  +100.00%
dbally/prompts/common_validation_utils.py                   +16       0  +100.00%
dbally/prompts/prompt_template.py                           +28      +2  +92.86%
dbally/view_selection/llm_view_selector.py                   +3       0  +100.00%
dbally/view_selection/view_selector_prompt_template.py      +11      +2  +81.82%
dbally/views/base.py                                         -3       0  -1.44%
dbally/views/structured.py                                   +7       0  +100.00%
dbally/views/freeform/text2sql/view.py                       +2       0  +0.50%
dbally_cli/text2sql.py                                       +2      +2  +100.00%
dbally_codegen/autodiscovery.py                             -16      -6  +3.43%
dbally_codegen/generator.py                                  +5       0  +0.11%
TOTAL                                                      +111     +17  +1.17%

Results for commit: 2178a33

Minimum allowed coverage is 60%

♻️ This comment has been updated with latest results

Copy link

github-actions bot commented Jul 4, 2024

Trivy scanning results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant