Repository navigation
feat: update API sources and regenerate - #9849
Open
JoeWang1127 wants to merge 4 commits into
Open
JoeWang1127 wants to merge 4 commits into
JoeWang1127 wants to merge 4 commits into
Conversation
JoeWang1127
marked this pull request as ready for review
November 10, 2026 16:24
JoeWang1127
enabled auto-merge (squash)
November 10, 2026 22:08
bshaffer
reviewed
Nov 16, 2026
Comment on lines
+36
to
+39
| backstory_proto_src = src / "backstory/proto/src" | ||
| if backstory_proto_src.is_dir(): | ||
| s.move([backstory_proto_src / "Google/Backstory"], dest / "src/Backstory") | ||
| s.move([backstory_proto_src / "GPBMetadata/Backstory"], dest / "metadata/Backstory") |
Contributor
There was a problem hiding this comment.
We do this occasionally when we don't feel like it is necessary to create a new package (and incur all the overhead involved with maintaining it). As these are unversioned, they would be similar to the "CommonProtos" that we have for other components (CloudCommonProtos, CommonProtos, GeoCommonProtos, ShoppingCommonProtos). So I'd say what we have here is FINE as long as we don't expect to have other components using Backstory. If we DO, then I'd say we should split this into a new package (such as ChronicleCommonProtos`).
The good news is, with composer magic, we can always consolidate today and split this out into a separate package later on, without breaking anybody.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update googleapis sources to a74d0502444d12c07abc7ed95f90ebb52950e918 and regenerate all libraries.
Why Chronicle was updated with Backstory protos
The updated googleapis sources introduce new dependencies in the Chronicle API (
google.cloud.chronicle.v1), where protos (e.g.WatchlistandEntityServiceClient) reference unversioned Backstory protos (backstory/entity.protoand associated UDM proto definitions).Because PHP does not maintain a standalone
google/backstoryclient package, thebackstoryproto definitions are generated and bundled directly within the Chronicle component (google/cloud-chronicle):additional_protos: [path: backstory]inlibrarian.yamlfor Chronicle.Chronicle/owlbot.pyto copy generatedbackstoryprotos intoChronicle/src/BackstoryandChronicle/metadata/Backstory.Google\Backstory\andGPBMetadata\Backstory\inChronicle/composer.jsonand the rootcomposer.jsonto avoidClass "GPBMetadata\Backstory\Entity" not founderrors during runtime and test execution.Chronicle/src/Backstoryfromphpcs-ruleset.xmland.php-cs-fixer.dist.phpto align with the repository's rules for generated unversioned proto code.Debug Info
System Details
Commands Executed
librarian update sources.googleapislibrarian installlibrarian generate --alllibrarian tidygit add .git commit -m "feat: update API sources and regenerate"