chore: edition sample fix with increased timeout by harshachinta · Pull Request #1339 · googleapis/python-spanner · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

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

Merged
merged 1 commit into from
Apr 22, 2025

Conversation

harshachinta
Copy link
Contributor

No description provided.

Signed-off-by: Sri Harsha CH <sriharshach@google.com>
@harshachinta harshachinta requested review from a team as code owners April 22, 2025 06:50
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. api: spanner Issues related to the googleapis/python-spanner API. samples Issues that are directly related to samples. labels Apr 22, 2025
),
field_mask=field_mask_pb2.FieldMask(paths=["labels", "edition"]),
)

print("Waiting for operation to complete...")
operation.result(OPERATION_TIMEOUT_SECONDS)
operation.result(900)
Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

@harshachinta harshachinta requested review from rahul2393, sakthivelmanii and surbhigarg92 and removed request for balajismaniam April 22, 2025 06:51
@@ -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
Copy link
Contributor Author

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.

@harshachinta harshachinta enabled auto-merge (squash) April 22, 2025 07:18
@harshachinta harshachinta merged commit a8f38cd into googleapis:main Apr 22, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/python-spanner API. samples Issues that are directly related to samples. size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.