Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

samples(test): flaky sync pull test#434

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
plamut merged 2 commits intomasterfromsamples-sync-pull
Jun 23, 2021
Merged

Conversation

@anguillanneuf
Copy link
Contributor

@anguillanneufanguillanneuf commentedJun 23, 2021
edited
Loading

Fixes#341 🦕

The stream sometimes gets removed (UNKNOWN errors) before the subscriber can successfully pull messages. Pausing to give the subscriber some time to reconnect since this subscription (subscription_sync) is used in two different synchronous pull samples:

  • test_receive_synchronously_with_lease
  • test_receive_synchronously

If this doesn't fix the flaky test, I will consider using two different subscriptions for the two different sync pull samples tests.

The delete schema sample test failure is unrelated. It's known and is flaky due to backend issues.

@anguillanneufanguillanneuf requested a review froma team as acode ownerJune 23, 2021 15:53
@anguillanneufanguillanneuf requested review fromdandhlee and removed request fora teamJune 23, 2021 15:53
@product-auto-labelproduct-auto-labelbot added api: pubsubIssues related to the googleapis/python-pubsub API. samplesIssues that are directly related to samples. labelsJun 23, 2021
@google-clagoogle-clabot added the cla: yesThis human has signed the Contributor License Agreement. labelJun 23, 2021
defrun_sample():
_publish_messages(publisher_client,topic,message_num=3)
_publish_messages(publisher_client,topic,message_num=10)
time.sleep(10)
Copy link
Contributor

@plamutplamutJun 23, 2021
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Maybe add a comment why this is needed?

Waiting for a fixed amount of time is of course far from ideal, but if it resolves or at least significantly mitigates the flakiness, it's fine to have it, as flakiness has really been getting into the way recently.

Edit: Whoa, samples tests passed on the first attempt. Could be a coincidence, of course, but it's a good start nevertheless. 🙂

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Added a comment. Please take a look now to see if it's sufficient.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Looks good, thanks!

Copy link
Contributor

@plamutplamut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM and the samples tests seem to be passing without retries.

@plamutplamut merged commit86f1f68 intomasterJun 23, 2021
@plamutplamut deleted the samples-sync-pull branchJune 23, 2021 16:43
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@dandhleedandhleeAwaiting requested review from dandhlee

1 more reviewer

@plamutplamutplamut approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

api: pubsubIssues related to the googleapis/python-pubsub API.cla: yesThis human has signed the Contributor License Agreement.samplesIssues that are directly related to samples.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

samples.snippets.subscriber_test: test_receive_synchronously_with_lease failed

2 participants

@anguillanneuf@plamut

[8]ページ先頭

©2009-2025 Movatter.jp