HansMarcus01 opened a new pull request, #39826:
URL: https://github.com/apache/beam/pull/39826

   # 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
   
   * Integration Test Refactoring (`pubsub_integration_test.py`, 
`streaming_wordcount_it_test.py`, `streaming_wordcount_debugging_it_test.py`):
   
   - * Replaced manual and error-prone teardown logic 
(`test_utils.cleanup_subscriptions` and `test_utils.cleanup_topics`) with the 
TestPubsubContext monitor. 
   - * Explicitly registered temporary test topics and subscriptions (including 
ordering topics) to ensure guaranteed, graceful teardown on test completion.
   
   * **Stale Resource Cleaner Expansion** 
(`.test-infra/tools/stale_cleaner.py`):
   - * Appended missing test prefixes to the cleanup tracking list (e.g.,` 
wc_topic_*`,` psit_*`, `leader_board_*`).
   - * Ensures any orphaned resources that slip through the cracks during local 
or CI test failures are properly detected and deleted by the automated stale 
cleaner.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to