-
Notifications
You must be signed in to change notification settings - Fork 185
Tests are run even when annotations are removed #1177
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
Comments
Are you're using our migration/bridge solution for v2-v3 migration? I also noticed that your utplsql v2 is installed in SYSTEM schema. Having that said, I'll try to reproduce it on my local machine and see what the cause is. One key question is: |
We haven't been using the migration tool but will evaluate it going forward, thanks. Yeah, we are planning to remove v2 after the migration and it seems like wasted effort to move it to a different schema now. v3 is installed in its own user as recommended ;) We have the DDL trigger installed |
I have a simplified test case:
Which produces:
I would expect the second run to have executed no tests as the package is not annotated as such. |
@jgebal I had a quick look and seems like procedure |
Describe the bug
Tests are not evicted from the caches when annotations are removed from packages.
Provide version info
oracle 19c
utplsql v3.1.10.3349
Information about client software
SQLDeveloper
To Reproduce
With utplsql2 and utplsql3 installed, run:
It produces the following error:
Expected behavior
Packages without annotations should not be run as utplsql3 tests.
Additional context
We've run in to this while migrating from utplsqlv2 to v3 and it's causing failures in our CI system.
We have been performing the migration in a feature branch. However, tests we've updated to use v3 annotations in the feature branch are now failing in
develop
as they're picked up byut.run()
(due to being added to the annotation/suite caches by the feature branch) but the test body is still utplsql2.Seems like
ut_annotation_manager.get_sources_to_annotate
should evict the objects to refresh if no sources are found.The text was updated successfully, but these errors were encountered: