-
Notifications
You must be signed in to change notification settings - Fork 65
tests: System/compatibility tests for testing shim compatiblity #1218
Changes from 6 commits
807ae39
e86899a
0426ce2
cca6ccd
1bd0230
b3ce1cd
e06550e
4499e4b
a895bc2
a16360c
533dba1
68a91be
72cc5bb
0327d4f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # Format: //devtools/kokoro/config/proto/build.proto | ||
|
|
||
| # Only run this nox session. | ||
| env_vars: { | ||
| key: "NOX_SESSION" | ||
| value: "system-3.12" | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -227,7 +227,7 @@ def _on_error(self, exc): | |
| retry_request = self._create_retry_request() | ||
|
|
||
| self._row_merger = _RowMerger(self._row_merger.last_seen_row_key) | ||
| self.response_iterator = self.read_method(retry_request) | ||
| self.response_iterator = self.read_method(retry_request, retry=self.retry) | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why was this change needed?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change was needed because the For example, if a retriable
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm a bit torn, because this does feel like a very real bug. But the code here is also very complex, so I'm hesitant to make changes to the retry policy in case there are side-effects we're not considering But I guess this is coming in the context of adding more system tests. Do you think the tests we have now are sufficient to catch any errors?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, on second thought, this is a PR into the v3_staging branch, not main. We will be doing much more extensive changes here as part of the shim, before cutting a release. So I think adding this fix makes sense |
||
| def _read_next(self): | ||
| """Helper for :meth:`__iter__`.""" | ||
|
|
||
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.
I pulled in
main, so this shouldn't be necessary anymore