Skip to content

Conversation

@mtsokol
Copy link
Contributor

@mtsokol mtsokol commented Aug 4, 2025

Hi @dryman,

This cleanup can replace #168. I upgrade protobuf to the exact TF version here. I'd need an opinion on Beam deps update here - there are no tests for Beam module.

Copy link
Contributor

@dryman dryman left a comment

Choose a reason for hiding this comment

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

LGTM.
I'm creating an internal PR without the std::optional -> absl::optional changes.

// Default: `absl::nullopt`.
Options& set_window_log(std::optional<int> window_log) {
Options& set_window_log(absl::optional<int> window_log) {
compressor_options_.set_window_log(window_log);
Copy link
Contributor

Choose a reason for hiding this comment

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

The upstream riegeli package uses std::optional instead of absl::optional.
https://github.com/google/riegeli/blob/0895cfaf4787a03afeed86ddacba3dc9a8beae52/riegeli/brotli/brotli_writer.h#L87

So I prefer to use the same convention.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure! I did it because for some reason on my local macos arm setup this was causing a compilation error.

Copy link
Contributor

Choose a reason for hiding this comment

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

This may due to two reasons (either or, or both)

  1. The compiler didn't recognize c++17 (I think this is less likely because we already specify --cxxopt=std=c++17)
  2. Linking incorrect stdlib (in some platforms, there are separated libstdc++)

You might find you installed libstdc++ on your platform which didn't support c++17, but the binary linked to it.

@dryman
Copy link
Contributor

dryman commented Aug 6, 2025

FYI, Ihor is out of office. While this PR LGTM, I need to sync with him to know when we can merge so that we don't break the pygrain and TF ecosystem.

@mtsokol
Copy link
Contributor Author

mtsokol commented Aug 13, 2025

@iindyk @dryman I think it landed - can we close it and cut a v0.8.0a2?

@mtsokol mtsokol changed the title Upgrade protobuf to match with TF 2.20.0rc0 Upgrade protobuf to match with tf-nightly Aug 22, 2025
@mtsokol
Copy link
Contributor Author

mtsokol commented Aug 22, 2025

Now we use the released TF, rather than tf-nightly so closing it.

@mtsokol mtsokol closed this Aug 22, 2025
@mtsokol mtsokol deleted the upgrade-protobuf branch August 22, 2025 11:16
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