Skip to content
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

test: Fix flaky tests #2221

Merged
merged 11 commits into from
Oct 8, 2024
Merged

Conversation

michaelpri10
Copy link
Contributor

@michaelpri10 michaelpri10 commented Oct 8, 2024

Fixes a flaky test for the EOD subscription sample. Currently, the test creates and deletes subscriptions before and after every test, but I believe this is causing flaky results. This only runs setUp and tearDown before and after the whole test suite.

This also fixes the GCS ingestion topic, by ensuring the minimum object create time is properly found in the topic definition.

Lastly, this fixes a flaky OpenTelemetry test by ensuring that the publisher is shutdown and all spans are ended.

@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. api: pubsub Issues related to the googleapis/java-pubsub API. samples Issues that are directly related to samples. labels Oct 8, 2024
@michaelpri10 michaelpri10 changed the title test: Check that subscription is created in subscriber samples test test: Fix flaky subscriber samples test Oct 8, 2024
@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: xs Pull request size is extra small. labels Oct 8, 2024
@michaelpri10 michaelpri10 changed the title test: Fix flaky subscriber samples test test: Fix flaky samples tests Oct 8, 2024
@michaelpri10 michaelpri10 requested a review from a team as a code owner October 8, 2024 05:37
@michaelpri10 michaelpri10 changed the title test: Fix flaky samples tests test: Fix flaky tests Oct 8, 2024
@michaelpri10 michaelpri10 merged commit 30542e6 into googleapis:main Oct 8, 2024
22 checks passed
@michaelpri10 michaelpri10 deleted the flaky-eod-test branch October 8, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the googleapis/java-pubsub API. samples Issues that are directly related to samples. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants