Skip to content

test(pubsub): refactor sample integration tests for robustness#4654

Merged
haphungw merged 3 commits intogoogleapis:mainfrom
haphungw:refactor-pubsub-integration-tests
Feb 11, 2026
Merged

test(pubsub): refactor sample integration tests for robustness#4654
haphungw merged 3 commits intogoogleapis:mainfrom
haphungw:refactor-pubsub-integration-tests

Conversation

@haphungw
Copy link
Contributor

Refactor the tests into 2 primary workflows: topics() and subscriptions().
The subscription workflow now creates a single test topic once and reuses it across multiple samples, reducing the time spent waiting for resource provisioning.

Fixes #4652

@product-auto-label product-auto-label bot added api: pubsub Issues related to the Pub/Sub API. samples Issues that are directly related to samples. labels Feb 10, 2026
@codecov
Copy link

codecov bot commented Feb 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.00%. Comparing base (baf4159) to head (5e23661).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4654   +/-   ##
=======================================
  Coverage   95.00%   95.00%           
=======================================
  Files         196      196           
  Lines        7525     7525           
=======================================
  Hits         7149     7149           
  Misses        376      376           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@haphungw haphungw marked this pull request as ready for review February 10, 2026 23:50
@haphungw haphungw requested a review from a team as a code owner February 10, 2026 23:50
Copy link
Member

@dbolduc dbolduc left a comment

Choose a reason for hiding this comment

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

Thanks. Could be a bit simpler

@haphungw haphungw marked this pull request as draft February 11, 2026 17:32
@haphungw haphungw force-pushed the refactor-pubsub-integration-tests branch from 5c866a1 to 5e23661 Compare February 11, 2026 17:33
@haphungw haphungw marked this pull request as ready for review February 11, 2026 17:34
@haphungw haphungw enabled auto-merge (squash) February 11, 2026 17:45
@haphungw haphungw merged commit 69fc2c1 into googleapis:main Feb 11, 2026
34 checks passed
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 Pub/Sub API. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor pubsub sample integration tests

2 participants

Comments