Skip to content

[fix] make GCP client pagination iterative#2338

Open
drwicid wants to merge 1 commit intosomeengineering:mainfrom
drwicid:fix/gcp-client-pagination
Open

[fix] make GCP client pagination iterative#2338
drwicid wants to merge 1 commit intosomeengineering:mainfrom
drwicid:fix/gcp-client-pagination

Conversation

@drwicid
Copy link

@drwicid drwicid commented Mar 10, 2026

Description

This PR replaces recursive pagination in the GCP client with an iterative loop. Fixes #2337

The previous implementation called itself for each list_next() response, which made the client vulnerable to recursion depth failures on large collections. The new implementation preserves the same page parsing logic but advances through pages iteratively.

Files Changed

  • plugins/gcp/fix_plugin_gcp/gcp_client.py
  • plugins/gcp/test/test_gcp_client.py

Validation

  • I have created tests for any new or updated functionality.
  • I ran tox successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GCP client pagination should be iterative to avoid recursion depth failures

1 participant