waterWang opened a new pull request, #39778: URL: https://github.com/apache/beam/pull/39778
The Clean Up GCP Resources workflow (`beam_CleanUpGCPResources.yml`) fails over 80% of the time. Root cause: **`PubSubSubscriptionCleaner._delete_resource()`** calls `subscription_path(project_id, resource_name)` on a resource name that is **already a fully-qualified path** from `list_subscriptions()`. This produces `projects/<project>/subscriptions/projects/<project>/subscriptions/<sub-id>` which GCP rejects with `InvalidArgument: 400 Invalid resource name given`. `PubSubTopicCleaner._delete_resource()` correctly passes the full path directly to `delete_topic()`. This fix mirrors that pattern. Fixes #39772 -- 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]
