Uh oh!
There was an error while loading. Please reload this page.
Add systests for read/query w/ concurrent updates. - #3632
Conversation
dhermes
left a comment
There was a problem hiding this comment.
LGTM pending green CI (should you push a branch to the GCP remote so we can see the system tests?)
| self._check_row_data(rows) | ||
| def _transaction_concurrency_helper(self, unit_of_work, pkey): | ||
| import threading |
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.
| [[pkey, INITIAL_VALUE]]) | ||
| # We don't want to run the threads' transactions in the current | ||
| # session, which would fail. |
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(len(rows), 1) | ||
| pkey, value = rows[0] | ||
| transaction.update( | ||
| self.COUNTERS_TABLE, |
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.
tseaver
commented
Jul 19, 2017
Test failures look unrelated to our code :< |
theacodes
commented
Jul 19, 2017
@tseaver I'm working on it, it's a problem in our base image. |
| retry = RetryInstanceState(_has_all_ddl) | ||
| retry(self._db.reload)() | ||
| class TestException(Exception): |
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.
| with session.batch() as batch: | ||
| batch.delete(self.TABLE, self.ALL) | ||
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.
theacodes
commented
Jul 19, 2017
Base image fixed, any test failures are no longer my fault. :) |
| rows = list(transaction.read(self.TABLE, self.COLUMNS, self.ALL)) | ||
| self.assertEqual(len(rows), 0) | ||
| transaction.insert(self.TABLE, self.COLUMNS, self.ROW_DATA) | ||
| raise TestException() |
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
Jul 19, 2017
@tseaver I presume https://circleci.com/gh/GoogleCloudPlatform/google-cloud-python/2453 is the build in the GCP remote? |
dhermes
commented
Jul 19, 2017
@tseaver Rename your custom exception? |
tseaver
commented
Jul 19, 2017
Ugh, failures are now due to BQ system test flakiness, Why are we running tests for the other APIs again? |
dhermes
commented
Jul 19, 2017
Because no on (you or I included) has written tooling to make the build aware of what it should be building. The relevant code is here https://github.com/GoogleCloudPlatform/google-cloud-python/blob/3d9461b91963fcc6e6a864f6f0eacad3d92bbf2d/test_utils/scripts/get_target_packages.py but IMO it's not worth it since we're breaking up the monorepo soon. |
tseaver
commented
Jul 19, 2017
Breaking up the monorepo doesn't seem to be high up on anybody's priority list ATM. |
* Also add systest for user exception aborting transaction.
* Also add systest for user exception aborting transaction.
* Also add systest for user exception aborting transaction.
* Also add systest for user exception aborting transaction.
No description provided.