[GSoC-273] Feat: Integrate TestPubsubContext to prevent Pub/Sub resource leaks and expand stale cleaner scope - #39826
Open
HansMarcus01 wants to merge 4 commits into
Open
Conversation
…yond just creating Pub/Sub resources, and preventing resource leaks in the GCP environment. - Deletion redundancy was increased by adding subscription prefixes to `stale_clener.py` that might have remained active had `TestPubSubManager` failed.
Contributor
|
Assigning reviewers: R: @claudevdm for label python. Note: If you would like to opt out of this review, comment Available commands:
The PR bot will only process comments in the main thread (not review comments). |
…ache-beam-testing tests
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #39826 +/- ##
============================================
+ Coverage 57.10% 57.19% +0.08%
Complexity 3643 3643
============================================
Files 1191 1193 +2
Lines 192542 192979 +437
Branches 3816 3816
============================================
+ Hits 109957 110378 +421
- Misses 79027 79043 +16
Partials 3558 3558
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Overview
This pull request improves the lifecycle management of Pub/Sub resources in our integration tests to actively reduce GCP consumption. It replaces manual teardown methods with the robust TestPubsubContext manager and expands the automated garbage collector's scope to catch previously untracked test prefixes.
Key Changes
pubsub_integration_test.py,streaming_wordcount_it_test.py,streaming_wordcount_debugging_it_test.py):test_utils.cleanup_subscriptionsandtest_utils.cleanup_topics) with the TestPubsubContext monitor..test-infra/tools/stale_cleaner.py):wc_topic_*,psit_*,leader_board_*).