-
Notifications
You must be signed in to change notification settings - Fork 98
chore: edition sample fix with increased timeout #1339
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
chore: edition sample fix with increased timeout #1339
Conversation
Signed-off-by: Sri Harsha CH <sriharshach@google.com>
), | ||
field_mask=field_mask_pb2.FieldMask(paths=["labels", "edition"]), | ||
) | ||
|
||
print("Waiting for operation to complete...") | ||
operation.result(OPERATION_TIMEOUT_SECONDS) | ||
operation.result(900) |
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.
With the current timeout of 240 seconds, the sample is failing. When we increase it to 900 seconds it works.
Raised the issue to the editions team. Meanwhile to unblock PR merges and prevent samples failure this PR will help.
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.
Confirmed with editions team that is expected behaviour.
Yes, this is expected. Previously we weren't waiting for galaxy and spanfe caches to be populated with the modified edition. Now we are. This takes approximately 10 min.
@@ -91,13 +91,13 @@ def update_instance(instance_id): | |||
labels={ | |||
"sample_name": "snippets-update_instance-explicit", | |||
}, | |||
edition=spanner_instance_admin.Instance.Edition.STANDARD, # Optional | |||
edition=spanner_instance_admin.Instance.Edition.ENTERPRISE, # Optional |
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.
In order to merge split API sample I had to change this to STANDARD in that PR so that the tests pass.
Reverting back that change in this PR.
No description provided.