Skip to content

Conversation

@parthea
Copy link
Contributor

@parthea parthea commented Oct 20, 2025

This PR fixes the following stack trace which caused the build to fail for google-cloud-org-policy in librarian generate PR #14776

Traceback (most recent call last):
  File "/app/./cli.py", line 1043, in handle_build
    _verify_library_namespace(library_id, repo)
  File "/app/./cli.py", line 992, in _verify_library_namespace
    raise ValueError(
ValueError: The namespace `google.cloud.orgpolicy` for `google-cloud-org-policy` must be one of ['google', 'google.ads', 'google.ai', 'google.analytics', 'google.apps', 'google.cloud', 'google.geo', 'google.maps', 'google.shopping', 'grafeas', 'google.area120', 'google.api', 'google.apps.script', 'google.apps.script.type', 'google.cloud.alloydb', 'google.cloud.billing', 'google.cloud.devtools', 'google.cloud.gkeconnect', 'google.cloud.gkehub_v1', 'google.cloud.orchestration.airflow', 'google.cloud.security', 'google.cloud.video', 'google.cloud.workflows', 'google.iam', 'google.gapic', 'google.identity.accesscontextmanager', 'google.logging', 'google.monitoring', 'google.rpc'].

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/app/./cli.py", line 1482, in <module>
    args.func(librarian=args.librarian, repo=args.repo)
  File "/app/./cli.py", line 1047, in handle_build
    raise ValueError("Build failed.") from e
ValueError: Build failed.

@parthea parthea requested review from a team as code owners October 20, 2025 14:39
@parthea parthea merged commit b0ce064 into main Oct 20, 2025
27 checks passed
@parthea parthea deleted the add-exception-google-cloud-org-policy branch October 20, 2025 15:55
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.

2 participants