-
Notifications
You must be signed in to change notification settings - Fork 207
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
Tests: Remove shared subscriptions across parallel tests #669
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
product-auto-label
bot
added
size: l
Pull request size is large.
api: pubsub
Issues related to the googleapis/python-pubsub API.
labels
Apr 22, 2022
acocuzzo
changed the title
Samples tests deflake
Samples (tests) : Remove shared subscriptions across parallel tests
Apr 22, 2022
acocuzzo
changed the title
Samples (tests) : Remove shared subscriptions across parallel tests
Tests: Remove shared subscriptions across parallel tests
Apr 22, 2022
product-auto-label
bot
added
size: xl
Pull request size is extra large.
and removed
size: l
Pull request size is large.
labels
Apr 22, 2022
This reverts commit 7359447.
product-auto-label
bot
added
size: l
Pull request size is large.
and removed
size: xl
Pull request size is extra large.
labels
Apr 22, 2022
acocuzzo
added
the
kokoro:force-run
Add this label to force Kokoro to re-run the tests.
label
Apr 23, 2022
yoshi-kokoro
removed
the
kokoro:force-run
Add this label to force Kokoro to re-run the tests.
label
Apr 23, 2022
This reverts commit 6f384e2.
acocuzzo
added
the
kokoro:run
Add this label to force Kokoro to re-run the tests.
label
Apr 25, 2022
yoshi-kokoro
removed
the
kokoro:run
Add this label to force Kokoro to re-run the tests.
label
Apr 25, 2022
pradn
approved these changes
May 11, 2022
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.
Looks good, thanks!
acocuzzo
added
the
kokoro:force-run
Add this label to force Kokoro to re-run the tests.
label
May 11, 2022
yoshi-kokoro
removed
the
kokoro:force-run
Add this label to force Kokoro to re-run the tests.
label
May 11, 2022
acocuzzo
added
the
kokoro:force-run
Add this label to force Kokoro to re-run the tests.
label
May 12, 2022
yoshi-kokoro
removed
the
kokoro:force-run
Add this label to force Kokoro to re-run the tests.
label
May 12, 2022
acocuzzo
added
the
kokoro:force-run
Add this label to force Kokoro to re-run the tests.
label
May 12, 2022
yoshi-kokoro
removed
the
kokoro:force-run
Add this label to force Kokoro to re-run the tests.
label
May 12, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
In samples/snippets/noxfile.py, tests are run in parallel if pytest-parallel is installed.
This resulted in tests failing in CI that did not fail locally. Because of the use of shared subscription names across tests running in parallel, some tests were deleting a subscription, while others were attempting to receive messages.
This PR removes all subscription test fixtures that created and deleted subscriptions that were reused across tests in samples/snippets/subscriber_test.py, instead repeating the creation logic within each test, with a different subscription name per test, to allow tests to run in parallel without failures.
Also includes unrelated formatting changes due to linting changes.
Fixes #668🦕