Skip to content

librarian: potential bug when generating multiple libraries #1774

@parthea

Description

@parthea

Using this state.yaml

image: python-librarian-generator:latest
libraries:
- id: google-cloud-language
  version: 2.17.2
  last_generated_commit: 97a83d76a09a7f6dcab43675c87bdfeb5bcf1cb5
  apis:
  - path: google/cloud/language/v1beta2
  - path: google/cloud/language/v2
  - path: google/cloud/language/v1
  source_roots:
  - ^packages/google-cloud-language
  preserve_regex:
  - .OwlBot.yaml
  - CHANGELOG.md
  - docs/CHANGELOG.md
  - docs/README.rst
  - samples/README.txt
  - tar.gz
  - gapic_version.py
  - samples/generated_samples/snippet_metadata_
  - scripts/client-post-processing
  remove_regex:
  - ^packages/google-cloud-language
- id: google-ads-marketingplatform-admin
  version: 0.1.6
  last_generated_commit: 97a83d76a09a7f6dcab43675c87bdfeb5bcf1cb5
  apis:
  - path: google/marketingplatform/admin/v1alpha
  source_roots:
  - ^packages/google-ads-marketingplatform-admin
  preserve_regex:
  - .OwlBot.yaml
  - CHANGELOG.md
  - docs/CHANGELOG.md
  - docs/README.rst
  - samples/README.txt
  - tar.gz
  - gapic_version.py
  - samples/generated_samples/snippet_metadata_
  - scripts/client-post-processing
  remove_regex:
  - ^packages/google-ads-marketingplatform-admin

I see the following error when I run librarian generate

2025/08/18 20:19:38 ERROR failed to generate library id=google-ads-marketingplatform-admin err="open /usr/local/google/home/partheniou/git/google-cloud-python/packages/google-cloud-language/.coveragerc: file exists"

It seems strange that google-ads-marketingplatform-admin failed to generate because of an issue with a different library google-cloud-language

To re-create this issue, run librarian generate using this branch: https://github.com/googleapis/google-cloud-python/tree/test-2-libs-librarian

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions