GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [kms] fix flaky test by daniel-sanche · Pull Request #3268 · GoogleCloudPlatform/python-docs-samples

Conversation

@daniel-sanche

@daniel-sanche daniel-sanche commented Apr 2, 2020

Copy link
Copy Markdown
Member

fixes #2970

I added exponential backoff to the policy test, as recommended by the error message

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@daniel-sanche
added exponential backoff
456c5a1
@daniel-sanche
daniel-sanche requested a review from a team as a code owner April 2, 2020 23:58
@blunderbuss-gcf blunderbuss-gcf Bot assigned gguuss Apr 2, 2020
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 2, 2020
@daniel-sanche
daniel-sanche requested a review from leahecole April 2, 2020 23:59
@daniel-sanche
changed import order
3a3d313
tmatsuo
tmatsuo reviewed Apr 3, 2020
View reviewed changes
Comment thread kms/api-client/snippets_test.py Outdated
self.symId)
except Aborted:
# aborted by backend. Try again
try_number += 1

@tmatsuo tmatsuo Apr 3, 2020

Copy link
Copy Markdown
Contributor

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.

Maybe you want to use @eventually_consistent.call?

An example commit:
c6254e4

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@leahecole leahecole Apr 3, 2020

Copy link
Copy Markdown
Collaborator

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.

+1 to using eventually consistent if you can

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@daniel-sanche daniel-sanche Apr 3, 2020

Copy link
Copy Markdown
Member Author

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 didn't know about @eventually_consistent, that's much cleaner!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
leahecole
leahecole requested changes Apr 3, 2020
View reviewed changes
Comment thread kms/api-client/snippets_test.py Outdated
self.symId)
except Aborted:
# aborted by backend. Try again
try_number += 1

@leahecole leahecole Apr 3, 2020

Copy link
Copy Markdown
Collaborator

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.

+1 to using eventually consistent if you can

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
daniel-sanche and others added 5 commits April 3, 2020 14:50
@daniel-sanche
use eventually consistent
c6fda93
@daniel-sanche
added devreltools to requirements-test
9f11406
@daniel-sanche
added missing dependency
0b3821b
@daniel-sanche
fixed eventually_consistent usage
48f645e
@daniel-sanche
Merge branch 'master' into kms-flaky-fix
139b893
leahecole
leahecole approved these changes Apr 6, 2020
View reviewed changes
tmatsuo
tmatsuo approved these changes Apr 6, 2020
View reviewed changes
Comment thread kms/api-client/snippets_test.py
if b.role == self.role and self.member in b.members:
found = True
assert found
eventually_consistent.call(check_policy,

@tmatsuo tmatsuo Apr 6, 2020

Copy link
Copy Markdown
Contributor

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.

Unfortunately the decorator form doesn't work with the current 0.0.15 release.
See: GoogleCloudPlatform/python-repo-tools#25

I'm trying to make a new release of the above module.

I'm fine with the current form :)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
gguuss
gguuss approved these changes Apr 7, 2020
View reviewed changes

@gguuss gguuss left a comment

Copy link
Copy Markdown
Contributor

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.

LGTM, just some minor nits.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread kms/api-client/snippets_test.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread kms/api-client/snippets_test.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

tmatsuo
tmatsuo reviewed Apr 7, 2020
View reviewed changes
Comment thread kms/api-client/snippets_test.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread kms/api-client/snippets_test.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

tmatsuo
tmatsuo suggested changes Apr 7, 2020
View reviewed changes

@tmatsuo tmatsuo left a comment

Copy link
Copy Markdown
Contributor

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.

Please see my comment about exceptions tuple.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
daniel-sanche and others added 5 commits April 7, 2020 10:28
@daniel-sanche
use tuple instead of list
5145ef0
@daniel-sanche
snake case
077e34c
@daniel-sanche
removed hanging indents
7ab5197
@daniel-sanche
Merge branch 'kms-flaky-fix' of github.com:GoogleCloudPlatform/python…
39ab1cb
…-docs-samples into kms-flaky-fix
@daniel-sanche
Merge branch 'master' into kms-flaky-fix
b70f98d
tmatsuo
tmatsuo approved these changes Apr 7, 2020
View reviewed changes

@tmatsuo tmatsuo left a comment

Copy link
Copy Markdown
Contributor

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.

Thanks! Ship it!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
daniel-sanche and others added 4 commits April 7, 2020 10:53
@daniel-sanche
fixed indents
34a6261
@daniel-sanche
Merge branch 'kms-flaky-fix' of github.com:GoogleCloudPlatform/python…
969a806
…-docs-samples into kms-flaky-fix
Takashi Matsuo
Merge branch 'master' into kms-flaky-fix
245e13f
Takashi Matsuo
Merge branch 'master' into kms-flaky-fix
ea8654e
@tmatsuo

tmatsuo commented Apr 7, 2020

Copy link
Copy Markdown
Contributor

@dansanche Sorry for "hot" repo issue ;) I needed to rebase multiple times, but it's good to see the tests are more stable :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@daniel-sanche
daniel-sanche merged commit 5b5599f into master Apr 7, 2020
busunkim96 pushed a commit to googleapis/python-kms that referenced this pull request Jun 4, 2020
@daniel-sanche @busunkim96
[kms] fix flaky test [(#3268)](GoogleCloudPlatform/python-docs-sample…
2d25fdf
…s#3268)
@anguillanneuf
anguillanneuf deleted the kms-flaky-fix branch November 3, 2021 21:01
@rsamborski rsamborski mentioned this pull request Nov 8, 2022
migrate code from googleapis/python-kms #8470
Merged
6 of 8 tasks
rsamborski pushed a commit that referenced this pull request Nov 8, 2022
@daniel-sanche @rsamborski
[kms] fix flaky test [(#3268)](#3268)
c8af3e8
rsamborski pushed a commit that referenced this pull request Nov 11, 2022
@daniel-sanche @rsamborski
[kms] fix flaky test [(#3268)](#3268)
03ed691
rsamborski pushed a commit that referenced this pull request Nov 14, 2022
@daniel-sanche @rsamborski
[kms] fix flaky test [(#3268)](#3268)
6f8f31d
dandhlee pushed a commit that referenced this pull request Nov 14, 2022
@daniel-sanche @dandhlee
[kms] fix flaky test [(#3268)](#3268)
f1dc60c
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Oct 21, 2023
@daniel-sanche @busunkim96
[kms] fix flaky test [(#3268)](GoogleCloudPlatform/python-docs-sample…
82c6aa4
…s#3268)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@leahecole leahecole leahecole approved these changes
+2 more reviewers
@tmatsuo tmatsuo tmatsuo approved these changes
@gguuss gguuss gguuss approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@gguuss gguuss

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

kms.api-client.snippets_test.TestKMSSnippets: test_key_policy failed

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@daniel-sanche @tmatsuo @gguuss @leahecole @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.