-
Notifications
You must be signed in to change notification settings - Fork 10
Unit Tests Failures on various databases #202
Comments
Confirmed that this is an issue with MySQL 5.6, as well. |
On Oracle, I believe some of the NCLOB errors are related to this issue that I posted about earlier: https://groups.google.com/d/msg/harveststack/wGFKO5okdQ8/9o5IpLekifIJ On the one particular view I was hitting it on, I had experimentally hacked around it with the code in the second link above, but didn't make any progress past that. https://docs.djangoproject.com/en/1.6/ref/databases/#textfield-limitations |
I created a branch for this ticket that now integrates testing mysql and postgres in the Travis builds. You can see the first (failed) build here: https://travis-ci.org/cbmi/avocado/builds/22293081 |
Awesome thanks! I noticed this is tagged for version 2.4, when is that roughly scheduled for? If there is anything I can do (especially for the Oracle stuff) that would help resolve this sometime in April let me know. |
Here is a quick assessment of the issues:
|
The "sort related failure" is due to difference in how databases sort null values: https://code.djangoproject.com/ticket/13312 |
After revisting the tests, I can confirm the Oracle NCLOB issue is due to the issue I linked above, in that Oracle doesn't support distinct queries on NCLOB fields. The "description" TextField of DataField (inherited from Base in avocado/core/models ) causes the database column to be NCLOB. After first I tried to go through and put defers on any distinct queries, but that became difficult quickly to reach some of the 3rd party modules causing distinct queries. For now I have just modified Base.description to be CharField and will be sure to keep my descriptions to a reasonable limit. I need to post to the django list about this, and I'm not sure if there is a better way to fix this for Oracle. Ideally, I'd like some django switch for oracle that will automatically defer any TextFields from a query using distinct. I will keep an Oracle branch in the meantime with that change, as making that field change fixes all the NCLOB test cases. |
Running the unit tests on Avocado master from March 26th (d66d1ea), I am getting the following failures on MySQL and Oracle. Tests pass fine on SQLite.
Using memcached. I see one error in MySQL about unsupported version. I'm using 5.5.35.
MySQL:
FAILED (failures=14, errors=26, expected failures=2)
MySQL Output: https://gist.github.com/sgithens/9808928
Oracle:
FAILED (failures=14, errors=37, expected failures=1, unexpected successes=1)
Oracle Output: https://gist.github.com/sgithens/9808954
The text was updated successfully, but these errors were encountered: