-
Notifications
You must be signed in to change notification settings - Fork 185
Adding cache and restructuring annotations #492
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
Conversation
…notation text can be different depending on use case and it's not parsers responsibility to support all use-cases for annotation text. Added standalone/separated function `parse_annotation_params` that takes care of annotation text parsing.
…is covered with new tests.
…ations directory.
…n as output results. Reworked `ut_suite_manager` to operate on sorted collection for building ut_suite and it's tests. Adjusted `test_annotation_parser` to cover the refactoring.
Changed the way schema is scanned, so that all annotations/sources are scanned with single execution of a query. TODO - change the way annotations are parsed, so that we can scan for "floating" annotations. Annotations that are on top of suite, but associated with procedure, are not valid suite-level annotations. This is why the package `old_tests/helpers/test_reporters` was updated.
Added-back public procedure `ut_suite_manager.config_package` for testing purposes (example with huge ut package)
Added filtering of dba_source by test containing annotations. Added cardinality hint with scaling. Removed public procedure `config_package` - used only for one unit test. Fixed naming of procedures. Performance improvements on collections.
To test wrapped package we need to have an annotation-like text in it. This way the exception handler `when ex_package_is_wrapped` gets tested after adding source filters
Removed unused code from ut_meta_data. Improved code comments.
…ons_restructuring
8d87e96
to
8e26ed0
Compare
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.
Great performance improvement!
# Conflicts: # source/core/ut_utils.pkb # source/core/ut_utils.pks
…ons_restructuring
I see now that it's missing unit tests. |
Could you add a |
@Pazus I'm working on it now. Also refactoring the code a bit - better modularity and segregation of responsibility. |
* Added ability to build cache in `ut_annotation_manager.rebuild_annotation_cache` * Added ability to purge cache in `ut_annotation_cache_manager.purge_cache`
Added wrapper procedure `purge_cache` in `ut_annotation_manager` Changed tests to use wrapper procedure.
…ons_restructuring # Conflicts: # examples/demo_of_expectations/demo_equal_matcher.sql
Added wrapper procedures `purge_cache`, `rebuild_annotation_cache` in `ut_runner` Added tests for wrappers. Updated documentation for annotation cache calls.
@Pazus |
# Conflicts: # old_tests/ut_annotations/ut_annotations.parse_package_annotations.ParseAnnotationParamsWithBrackets.sql
old_tests
for ut_annotations - the functionality is covered with new tests.ut_suite_manager
to operate on sorted collection for building ut_suite and it's tests.ut_annotation_parser
.old_tests/helpers/test_reporters
was updated).Resolves #458