Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
176 changes: 88 additions & 88 deletions .librarian/state.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ libraries:
source_roots:
- packages/google-cloud-dlp
preserve_regex:
- packages/google-cloud-dlp/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
- samples/snippets/README.rst
- tests/system
- ^packages/google-cloud-dlp/CHANGELOG.md
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd anchor the end as well as the start, just in case there are leading substrings. (And make it clear where that's intentional.)

It feels possibly over the top, but does avoid any ambiguity.

- ^packages/google-cloud-dlp/docs/CHANGELOG.md
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: all of the dots in here might be worth escaping. It's unlikely that there'll be a file called packages/google-cloud-dlp/docs/CHANGELOGxmd but at the moment that would match...

- ^packages/google-cloud-dlp/docs/README.rst
- ^packages/google-cloud-dlp/samples/README.txt
- ^packages/google-cloud-dlp/tar.gz
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this right? Wouldn't it be dlp.tar.gz or similar? (It's not clear to me what purpose these files serve, mind you.)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good call out. This could be fixed but instead I opted to just remove tar.gz from the preserve_regex list. The only reason it was preserved was to reduce the diff however the diff will be minimal if we allow this file to be deleted. This tar file was created by bazel. We're no longer using bazel, so we will only see a diff at the next generation and at onboarding of libraries.

See related fix googleapis/synthtool#2098

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. For go, we're making a few one-off changes as part of migration (i.e. at the time of introducing the library into the state file) so that the diff itself from Librarian will be closer to zero. Just something to consider as a migration step - it makes no odds in the long run of course.

Copy link
Copy Markdown
Contributor Author

@parthea parthea Sep 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sense. I will open a separate PR to remove the existing tar.gz files so that the diff will remain 0

- ^packages/google-cloud-dlp/.*/gapic_version.py
Comment thread
parthea marked this conversation as resolved.
- ^packages/google-cloud-dlp/samples/generated_samples/snippet_metadata_
- ^packages/google-cloud-dlp/scripts/client-post-processing
- ^packages/google-cloud-dlp/samples/snippets/README.rst
- ^packages/google-cloud-dlp/tests/system
remove_regex:
- packages/google-cloud-dlp
- ^packages/google-cloud-dlp
tag_format: '{id}-v{version}'
- id: google-cloud-eventarc
version: 1.15.3
Expand All @@ -30,18 +30,18 @@ libraries:
source_roots:
- packages/google-cloud-eventarc
preserve_regex:
- packages/google-cloud-eventarc/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
- samples/snippets/README.rst
- tests/system
- ^packages/google-cloud-eventarc/CHANGELOG.md
- ^packages/google-cloud-eventarc/docs/CHANGELOG.md
- ^packages/google-cloud-eventarc/docs/README.rst
- ^packages/google-cloud-eventarc/samples/README.txt
- ^packages/google-cloud-eventarc/tar.gz
- ^packages/google-cloud-eventarc/.*/gapic_version.py
- ^packages/google-cloud-eventarc/samples/generated_samples/snippet_metadata_
- ^packages/google-cloud-eventarc/scripts/client-post-processing
- ^packages/google-cloud-eventarc/samples/snippets/README.rst
- ^packages/google-cloud-eventarc/tests/system
remove_regex:
- packages/google-cloud-eventarc
- ^packages/google-cloud-eventarc
tag_format: '{id}-v{version}'
- id: google-cloud-video-live-stream
version: 1.12.0
Expand All @@ -51,18 +51,18 @@ libraries:
source_roots:
- packages/google-cloud-video-live-stream
preserve_regex:
- packages/google-cloud-video-live-stream/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
- samples/snippets/README.rst
- tests/system
- ^packages/google-cloud-video-live-stream/CHANGELOG.md
- ^packages/google-cloud-video-live-stream/docs/CHANGELOG.md
- ^packages/google-cloud-video-live-stream/docs/README.rst
- ^packages/google-cloud-video-live-stream/samples/README.txt
- ^packages/google-cloud-video-live-stream/tar.gz
- ^packages/google-cloud-video-live-stream/.*/gapic_version.py
- ^packages/google-cloud-video-live-stream/samples/generated_samples/snippet_metadata_
- ^packages/google-cloud-video-live-stream/scripts/client-post-processing
- ^packages/google-cloud-video-live-stream/samples/snippets/README.rst
- ^packages/google-cloud-video-live-stream/tests/system
remove_regex:
- packages/google-cloud-video-live-stream
- ^packages/google-cloud-video-live-stream
tag_format: '{id}-v{version}'
- id: google-ads-marketingplatform-admin
version: 0.1.6
Expand All @@ -72,18 +72,18 @@ libraries:
source_roots:
- packages/google-ads-marketingplatform-admin
preserve_regex:
- packages/google-ads-marketingplatform-admin/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
- samples/snippets/README.rst
- tests/system
- ^packages/google-ads-marketingplatform-admin/CHANGELOG.md
- ^packages/google-ads-marketingplatform-admin/docs/CHANGELOG.md
- ^packages/google-ads-marketingplatform-admin/docs/README.rst
- ^packages/google-ads-marketingplatform-admin/samples/README.txt
- ^packages/google-ads-marketingplatform-admin/tar.gz
- ^packages/google-ads-marketingplatform-admin/.*/gapic_version.py
- ^packages/google-ads-marketingplatform-admin/samples/generated_samples/snippet_metadata_
- ^packages/google-ads-marketingplatform-admin/scripts/client-post-processing
- ^packages/google-ads-marketingplatform-admin/samples/snippets/README.rst
- ^packages/google-ads-marketingplatform-admin/tests/system
remove_regex:
- packages/google-ads-marketingplatform-admin
- ^packages/google-ads-marketingplatform-admin
tag_format: '{id}-v{version}'
- id: google-ai-generativelanguage
version: 0.7.0
Expand All @@ -97,18 +97,18 @@ libraries:
source_roots:
- packages/google-ai-generativelanguage
preserve_regex:
- packages/google-ai-generativelanguage/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
- samples/snippets/README.rst
- tests/system
- ^packages/google-ai-generativelanguage/CHANGELOG.md
- ^packages/google-ai-generativelanguage/docs/CHANGELOG.md
- ^packages/google-ai-generativelanguage/docs/README.rst
- ^packages/google-ai-generativelanguage/samples/README.txt
- ^packages/google-ai-generativelanguage/tar.gz
- ^packages/google-ai-generativelanguage/.*/gapic_version.py
- ^packages/google-ai-generativelanguage/samples/generated_samples/snippet_metadata_
- ^packages/google-ai-generativelanguage/scripts/client-post-processing
- ^packages/google-ai-generativelanguage/samples/snippets/README.rst
- ^packages/google-ai-generativelanguage/tests/system
remove_regex:
- packages/google-ai-generativelanguage
- ^packages/google-ai-generativelanguage
tag_format: '{id}-v{version}'
- id: google-analytics-admin
version: 0.25.0
Expand All @@ -119,18 +119,18 @@ libraries:
source_roots:
- packages/google-analytics-admin
preserve_regex:
- packages/google-analytics-admin/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
- samples/snippets/README.rst
- tests/system
- ^packages/google-analytics-admin/CHANGELOG.md
- ^packages/google-analytics-admin/docs/CHANGELOG.md
- ^packages/google-analytics-admin/docs/README.rst
- ^packages/google-analytics-admin/samples/README.txt
- ^packages/google-analytics-admin/tar.gz
- ^packages/google-analytics-admin/.*/gapic_version.py
- ^packages/google-analytics-admin/samples/generated_samples/snippet_metadata_
- ^packages/google-analytics-admin/scripts/client-post-processing
- ^packages/google-analytics-admin/samples/snippets/README.rst
- ^packages/google-analytics-admin/tests/system
remove_regex:
- packages/google-analytics-admin
- ^packages/google-analytics-admin
tag_format: '{id}-v{version}'
- id: google-analytics-data
version: 0.18.19
Expand All @@ -141,18 +141,18 @@ libraries:
source_roots:
- packages/google-analytics-data
preserve_regex:
- packages/google-analytics-data/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
- samples/snippets/README.rst
- tests/system
- ^packages/google-analytics-data/CHANGELOG.md
- ^packages/google-analytics-data/docs/CHANGELOG.md
- ^packages/google-analytics-data/docs/README.rst
- ^packages/google-analytics-data/samples/README.txt
- ^packages/google-analytics-data/tar.gz
- ^packages/google-analytics-data/.*/gapic_version.py
- ^packages/google-analytics-data/samples/generated_samples/snippet_metadata_
- ^packages/google-analytics-data/scripts/client-post-processing
- ^packages/google-analytics-data/samples/snippets/README.rst
- ^packages/google-analytics-data/tests/system
remove_regex:
- packages/google-analytics-data
- ^packages/google-analytics-data
tag_format: '{id}-v{version}'
- id: google-ads-admanager
version: 0.3.0
Expand All @@ -162,16 +162,16 @@ libraries:
source_roots:
- packages/google-ads-admanager
preserve_regex:
- packages/google-ads-admanager/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
- samples/snippets/README.rst
- tests/system
- ^packages/google-ads-admanager/CHANGELOG.md
- ^packages/google-ads-admanager/docs/CHANGELOG.md
- ^packages/google-ads-admanager/docs/README.rst
- ^packages/google-ads-admanager/samples/README.txt
- ^packages/google-ads-admanager/tar.gz
- ^packages/google-ads-admanager/.*/gapic_version.py
- ^packages/google-ads-admanager/samples/generated_samples/snippet_metadata_
- ^packages/google-ads-admanager/scripts/client-post-processing
- ^packages/google-ads-admanager/samples/snippets/README.rst
- ^packages/google-ads-admanager/tests/system
remove_regex:
- packages/google-ads-admanager
- ^packages/google-ads-admanager
tag_format: '{id}-v{version}'
22 changes: 11 additions & 11 deletions scripts/configure_state_yaml/configure_state_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,18 @@ def configure_state_yaml() -> None:
"source_roots": [f"packages/{package_path.name}"],
"preserve_regex": [
# Use the full path to avoid ambiguity with the root CHANGELOG.md
f"packages/{package_path.name}/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",
"samples/snippets/README.rst",
"tests/system",
f"^packages/{package_path.name}/CHANGELOG.md",
f"^packages/{package_path.name}/docs/CHANGELOG.md",
f"^packages/{package_path.name}/docs/README.rst",
f"^packages/{package_path.name}/samples/README.txt",
f"^packages/{package_path.name}/tar.gz",
f"^packages/{package_path.name}/.*/gapic_version.py",
f"^packages/{package_path.name}/samples/generated_samples/snippet_metadata_",
f"^packages/{package_path.name}/scripts/client-post-processing",
f"^packages/{package_path.name}/samples/snippets/README.rst",
f"^packages/{package_path.name}/tests/system",
],
"remove_regex": [f"packages/{package_path.name}"],
"remove_regex": [f"^packages/{package_path.name}"],
"tag_format": "{id}-v{version}",
}
)
Expand Down
Loading