-
Notifications
You must be signed in to change notification settings - Fork 29
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
test: enable tests to run on kokoro #134
Conversation
@larkee or @IlyaFaer I'm trying to get the tests running on Kokoro. But as you can see above, the run fails with errors like:
But you can see in the logs that @larkee I don't have permission on that project to see the instances. Any help from either of you is appreciated. Then we can get rid of CircleCI which has been pretty flaky anyway. |
@skuruppu, oh, I think I see where's the problem. When we're running tests, we're actually creating a new instance and rewriting a config file, see: python-spanner-sqlalchemy/create_test_database.py Lines 75 to 79 in 1c3ff7d
But this PR forces tests to be executed on |
Ah thanks a lot @IlyaFaer. That explains it. So it was working fine for the migration tests which were reading |
@skuruppu, that's quite strange. Some methods are using Taking a closer look |
Okay, I've investigated it further. Looks like we need some small changes to throw a warning instead of an exception, 'cause we can't omit those methods and we can't support I've also tried to set dialect requirements to say And some not very meaningful (but still |
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.
LGTM, we just need to wait for the other PR to be merged - it'll fix the failing tests
…erty (#628) See for more context: googleapis/python-spanner-sqlalchemy#134
@skuruppu, looks like I can't restart Kokoro tests. Could you? |
@IlyaFaer thanks a lot, the tests pass \o/ |
@skuruppu, I guess now we need to make |
"spanner:///projects/appdev-soda-spanner-staging/instances/" | ||
"sqlalchemy-dialect-test/databases/compliance-test" | ||
) | ||
self._engine = create_engine(get_db_url()) |
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.
An argument could be made to make a base test class that sets up the engine and metadata that these other test classes inherit but I don't think it's necessary for this PR
…erty (googleapis#628) See for more context: googleapis/python-spanner-sqlalchemy#134
No description provided.