Skip to content

GH-46134: [CI][C++] Explicit conversion of possible absl::string_view on protobuf methods to std::string - #46136

Merged
kou merged 3 commits into
apache:mainfrom
raulcd:GH-46134-2
Apr 14, 2025
Merged

kou merged 3 commits into
apache:mainfrom
raulcd:GH-46134-2

Conversation

@raulcd

@raulcd raulcd commented Apr 14, 2025 •

Copy link
Copy Markdown
Member

Rationale for this change

Protobuf v30.2 uses absl::string_view instead of const char* as seen here:
protocolbuffers/protobuf@a9ad51f
This is breaking on our CI.

What changes are included in this PR?

Explicitly convert google::protobuf::EnumValueDescriptor::name() and google::protobuf::Message::descriptor()->full_name() from absl::string_view to std::string

Are these changes tested?

Via CI, MinGW CI jobs use protobuf v30.2 and those are fixed with this change.

Are there any user-facing changes?

No

@github-actions

Copy link
Copy Markdown

⚠️ GitHub issue #46134 has been automatically assigned in GitHub to PR creator.

@raulcd raulcd changed the title GH-46134: [CI][C++] Explicit conversion of google::protobuf::EnumValueDescriptor::name() to std::string GH-46134: [CI][C++] Explicit conversion of possbile absl::string_view to std::string Apr 14, 2025
@raulcd
raulcd marked this pull request as ready for review April 14, 2025 16:37
@raulcd
raulcd requested a review from westonpace as a code owner April 14, 2025 16:37
@raulcd
raulcd requested a review from kou April 14, 2025 16:37
@raulcd raulcd changed the title GH-46134: [CI][C++] Explicit conversion of possbile absl::string_view to std::string GH-46134: [CI][C++] Explicit conversion of possible absl::string_view on protobuf methods to std::string Apr 14, 2025

@kou kou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1

@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 9848d4d.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 33 possible false positives for unstable benchmarks that are known to sometimes produce them.

@raulcd
raulcd deleted the GH-46134-2 branch April 15, 2025 08:12
assignUser pushed a commit that referenced this pull request Apr 15, 2025
…w` on protobuf methods to `std::string` (#46136)

### Rationale for this change

Protobuf v30.2 uses `absl::string_view` instead of `const char*` as seen here:
protocolbuffers/protobuf@a9ad51f
This is breaking on our CI.

### What changes are included in this PR?

Explicitly convert `google::protobuf::EnumValueDescriptor::name()` and `google::protobuf::Message::descriptor()->full_name()` from `absl::string_view` to `std::string`

### Are these changes tested?

Via CI, MinGW CI jobs use protobuf v30.2 and those are fixed with this change.

### Are there any user-facing changes?

No

* GitHub Issue: #46134

Authored-by: Raúl Cumplido <raulcumplido@gmail.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
zanmato1984 pushed a commit to zanmato1984/arrow that referenced this pull request Apr 15, 2025
…ng_view` on protobuf methods to `std::string` (apache#46136)

### Rationale for this change

Protobuf v30.2 uses `absl::string_view` instead of `const char*` as seen here:
protocolbuffers/protobuf@a9ad51f
This is breaking on our CI.

### What changes are included in this PR?

Explicitly convert `google::protobuf::EnumValueDescriptor::name()` and `google::protobuf::Message::descriptor()->full_name()` from `absl::string_view` to `std::string`

### Are these changes tested?

Via CI, MinGW CI jobs use protobuf v30.2 and those are fixed with this change.

### Are there any user-facing changes?

No

* GitHub Issue: apache#46134

Authored-by: Raúl Cumplido <raulcumplido@gmail.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants