Uh oh!
There was an error while loading. Please reload this page.
Adding system test to exercise all possible Spanner types. - #3384
Conversation
dhermes
commented
May 8, 2017
Just created this branch on the GCP remote so that we'd get a build with system tests |
vkedia
commented
May 8, 2017
@dhermes It has to be |
| def _list_instances(): | ||
| return list(Config.CLIENT.list_instances()) | ||
| instances = retry(_list_instances)() |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| for found, expected in zip(row_data, self.ROW_DATA): | ||
| def _assert_timestamp(self, value, nano_value): | ||
| self.assertIsInstance(value, datetime.datetime) | ||
| self.assertIn(value.tzinfo, (None, UTC)) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| self.assertEqual(value.minute, nano_value.minute) | ||
| self.assertEqual(value.second, nano_value.second) | ||
| self.assertEqual(value.microsecond, nano_value.microsecond) | ||
| if isinstance(value, TimestampWithNanoseconds): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| yield [index, 'First%09d' % (index,), 'Last09%d' % (index), | ||
| 'test-%09d@example.com' % (index,)] | ||
| keyset = KeySet(all_=True) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
dhermes
commented
May 8, 2017
@vkedia I realize that now (made the necessary change in this PR). I'm suggesting that you also accept |
tseaver
commented
May 8, 2017
@dhermes The principle you were trying to name in today's call is Postel's Law:
|
dhermes
commented
May 9, 2017
@tseaver We good to merge this? |
tseaver
commented
May 9, 2017
Ugh, I screwed up merging mine first. |
dhermes
commented
May 9, 2017
I'll fix it. |
googlebot
commented
May 9, 2017
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored by someone other than the pull request submitter. We need to confirm that they're okay with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
tseaver
commented
May 9, 2017
I just tweaked it here. Feel free to back out my change. |
Also used our GrpcRendezvous alias for _Rendezvous and making some "conditionally defined" functions into a module-level function and a test case staticmethod.
tseaver
commented
May 9, 2017
And merge when green. |
In the process, changing how +/- Infinity are sent to the backend (this was a bug). Fixesgoogleapis#3016.
googlebot
commented
May 9, 2017
CLAs look good, thanks! |
dhermes
commented
May 9, 2017
Ah sorry, just did a force push before seeing your comment. |
tseaver
commented
May 9, 2017
No worries. |
dhermes
commented
May 9, 2017
Will wait on build on the GCP remote: https://circleci.com/gh/GoogleCloudPlatform/google-cloud-python/1785 |
tseaver
commented
May 9, 2017
Green on CircleCI. |
* Spanner test hygiene: move fixtures out of distro. Also used our GrpcRendezvous alias for _Rendezvous and making some "conditionally defined" functions into a module-level function and a test case staticmethod. * Adding system test to exercise all possible Spanner types. In the process, changing how +/- Infinity are sent to the backend (this was a bug). Fixes#3016.
In the process, changing how +/- Infinity are sent to the backend (this was a bug).
Fixes#3016.
/cc @vkedia It's worth noting that
Value(string_value='inf')/Value(string_value='+inf')/Value(string_value='-inf')are being rejected, but should probably be accepted whenType.code == FLOAT64.