-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new output format for cquery
--output=streamed_proto
.
* The current state of the output formats of cquery has a few forms now: - (UNCHANGED) `cquery --output=proto|jsonproto|textproto --proto:include_configurations`: A single CqueryResult of the specified `--output` format. - (NEW) `cquery --output=streamed_proto --proto:include_configurations`: Multiple length-delimited `CqueryResult` protos each containing a single `ConfiguredTarget` or `Configuration`. - (UNCHANGED) `cquery --output=proto|jsonproto|textproto --noproto:include_configurations`: A single `QueryResult` containing the corresponding `Target`(s) in the specified format. - (NEW) `cquery --output=streamed_proto --noproto:include_configurations`: Multiple length-delimited `Target` protos. * Reworked the callback to write directly to a stream (instead of a `CqueryResult.Builder`) when processing a set of `ConfiguredTarget` results (instead of writing only at the end on `close()`). Fixes #17743. RELNOTES: Added a new output format for cquery --output=streamed_proto that writes multiple length-delimited CqueryResult protos, each containing a single ConfiguredTarget or Configuration. This allows us to "bypass" the hard limit of 2GB on the size of protocol buffers by splitting it up into multiple. PiperOrigin-RevId: 540814164 Change-Id: Ia880218e67fdd86876ee56581634e5eabbc899c6
- Loading branch information
1 parent
69d2991
commit 607d0f7
Showing
5 changed files
with
173 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.