-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Remove invalid chunk validation #2992
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
@dhermes Can you glance at this one? I lack sufficient context. |
@@ -366,8 +366,6 @@ def _validate_chunk_row_in_progress(self, chunk): | |||
"""Helper for :meth:`_validate_chunk`""" | |||
assert self.state == self.ROW_IN_PROGRESS | |||
self._validate_chunk_status(chunk) | |||
if not chunk.HasField('commit_row') and not chunk.reset_row: | |||
_raise_if(not chunk.timestamp_micros or not chunk.value) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@dhermes Update on the |
I restarted the CircleCI build: https://circleci.com/gh/GoogleCloudPlatform/google-cloud-python/865 Hopefully it works? |
Can someone help me finish this off? The test failures don't really seem related. Getting this fix pushed and released will unblock a number of users. |
@garye Just re-started the CircleCI build: https://circleci.com/gh/GoogleCloudPlatform/google-cloud-python/876 Hopefully the bad imports are fully resolved. I'll follow-up if not. |
@garye So we've got a unit test failing that is actually caused by this PR:
ISTM the right move is just to delete this test case since it no longer applies? |
yeah, i think that's an invalid test case |
Ping me when this PR is updated with the test case removed? You can ignore the speech test failures. It looks like the underlying protobuf libraries are (now correctly) using single instead of double precision for message fields with single precision |
Will do, thanks
…On Mon, Feb 13, 2017, 1:25 PM Danny Hermes ***@***.***> wrote:
Ping me when this PR is updated with the test case removed? You can ignore
the speech test failures. It looks like the underlying protobuf libraries
are (now correctly) using single instead of double precision for message
fields with single precision
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2992 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACTr3aTAOjGxQ5hgBk6h-nz-2JJq70Pks5rcKAcgaJpZM4L8Ql5>
.
|
bigtable/unit_tests/test_row_data.py
Outdated
with self.assertRaises(InvalidChunk): | ||
prd.consume_next() | ||
|
||
|
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Yeah, thanks I noticed that and (hopefully) pushed a fix. |
@garye Ugh, you need to be able to run bigtable/unit_tests/test_row_data.py:419:1: W293 blank line contains whitespace |
Ugh, OK. That will take a bit of time to set up.
…On Mon, Feb 13, 2017, 4:11 PM Tres Seaver ***@***.***> wrote:
@garye <https://github.com/garye> Ugh, you need to be able to run tox -e
lint locally:
bigtable/unit_tests/test_row_data.py:419:1: W293 blank line contains whitespace
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2992 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACTr05fXHOLT3PHG9DwvC9OaiCJnV7Gks5rcMbkgaJpZM4L8Ql5>
.
|
I think it should just work to run $ export GOOGLE_CLOUD_TESTING_REMOTE=upstream # the name of the remote for this repo
$ export GOOGLE_CLOUD_TESTING_BRANCH=master
$ tox -e lint |
LGTM |
Thanks guys! |
@garye We hope to cut a release in the next 2-3 days as well |
Remove invalid chunk validation
Fixes #2980