Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PUBLIC: [P4-Constraints] Remove usages of DebugString. #127

Closed
wants to merge 1 commit into from

Conversation

smolkaj
Copy link
Member

@smolkaj smolkaj commented Jan 19, 2024

PUBLIC: [P4-Constraints] Remove usages of DebugString.

LSC: C++ DebugString to AbslStringify

In this LSC, we replace calls to C++ Protobuf DebugString APIs with implicit AbslStringify conversions or absl::StrCat. This makes debug information incompatible with TextFormat parsers (go/explicit-debug-string), redacts Datapol-annotated SPII values (go/redact-debug-string), and introduces per-process-randomized syntax.

Background:
DebugString callers should not rely on DebugString output (go/no-more-debugstring). proto2::Message DebugString APIs will be deprecated by Protobuf's AbslStringify in order to support SPII redaction. We are incrementally migrating DebugString calls to the new API whenever we are confident it is safe to do so. If this CL causes breakage, please roll back and notify us (orrery-debug-string@).

LSC proposal: go/cpp-debug-string-to-absl-stringify
ISE LSC checklist: go/cpp-debugstring-to-stringify-checklist

Tested:
TAP --sample ran all affected tests and none failed
http://test/OCL:598320964:BASE:598306044:1705214817104:33c3a758

@jonathan-dilorenzo jonathan-dilorenzo self-requested a review January 19, 2024 19:51
@jonathan-dilorenzo jonathan-dilorenzo force-pushed the cl/599891641 branch 6 times, most recently from 5493cb0 to 494cca8 Compare January 19, 2024 21:28
Copy link
Collaborator

@jonathan-dilorenzo jonathan-dilorenzo left a comment

Choose a reason for hiding this comment

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

Approved. Updated the dependencies, which should hopefully fix previous issue.

LSC: C++ DebugString to AbslStringify

In this LSC, we replace calls to C++ Protobuf DebugString APIs with implicit AbslStringify conversions or absl::StrCat. This makes debug information incompatible with TextFormat parsers (go/explicit-debug-string), redacts Datapol-annotated SPII values (go/redact-debug-string), and introduces per-process-randomized syntax.

Background:
DebugString callers should not rely on DebugString output (go/no-more-debugstring). proto2::Message DebugString APIs will be deprecated by Protobuf's AbslStringify in order to support SPII redaction. We are incrementally migrating DebugString calls to the new API whenever we are confident it is safe to do so. If this CL causes breakage, please roll back and notify us (orrery-debug-string@).

LSC proposal: go/cpp-debug-string-to-absl-stringify
ISE LSC checklist: go/cpp-debugstring-to-stringify-checklist

Tested:
    TAP --sample ran all affected tests and none failed
    http://test/OCL:598320964:BASE:598306044:1705214817104:33c3a758
PiperOrigin-RevId: 599891641
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