Skip to content

Update protobuf to v25.1#58020

Merged
rschu1ze merged 7 commits intoClickHouse:masterfrom
mkmkme:mkmkme/protobuf-25.1
Apr 15, 2024
Merged

Update protobuf to v25.1#58020
rschu1ze merged 7 commits intoClickHouse:masterfrom
mkmkme:mkmkme/protobuf-25.1

Conversation

@mkmkme
Copy link
Copy Markdown
Contributor

@mkmkme mkmkme commented Dec 19, 2023

Protobuf v25.1 deprecates syntax() and makes it inaccessible. Instead, the attributes corresponding to a feature should be used. This commit addresses this.

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

@mkmkme

This comment was marked as outdated.

@rschu1ze rschu1ze self-assigned this Dec 19, 2023
@rschu1ze

This comment was marked as outdated.

@rschu1ze rschu1ze added the can be tested Allows running workflows for external contributors label Dec 19, 2023
@robot-ch-test-poll robot-ch-test-poll added pr-not-for-changelog This PR should not be mentioned in the changelog submodule changed At least one submodule changed in this PR. labels Dec 19, 2023
@robot-ch-test-poll
Copy link
Copy Markdown
Contributor

robot-ch-test-poll commented Dec 19, 2023

This is an automated comment for commit 3c35f14 with description of existing statuses. It's updated for the latest CI running

❌ Click here to open a full report in a separate page

Check nameDescriptionStatus
CI runningA meta-check that indicates the running CI. Normally, it's in success or pending state. The failed status indicates some problems with the PR⏳ pending
Mergeable CheckChecks if all other necessary checks are successful❌ failure
Stateless testsRuns stateless functional tests for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc❌ failure
Stress testRuns stateless functional tests concurrently from several clients to detect concurrency-related errors❌ failure
Successful checks
Check nameDescriptionStatus
A SyncThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
AST fuzzerRuns randomly generated queries to catch program errors. The build type is optionally given in parenthesis. If it fails, ask a maintainer for help✅ success
ClickBenchRuns [ClickBench](https://github.com/ClickHouse/ClickBench/) with instant-attach table✅ success
ClickHouse build checkBuilds ClickHouse in various configurations for use in further steps. You have to fix the builds that fail. Build logs often has enough information to fix the error, but you might have to reproduce the failure locally. The cmake options can be found in the build log, grepping for cmake. Use these options and follow the general build process✅ success
Compatibility checkChecks that clickhouse binary runs on distributions with old libc versions. If it fails, ask a maintainer for help✅ success
Docker keeper imageThe check to build and optionally push the mentioned image to docker hub✅ success
Docker server imageThe check to build and optionally push the mentioned image to docker hub✅ success
Docs checkBuilds and tests the documentation✅ success
Fast testNormally this is the first check that is ran for a PR. It builds ClickHouse and runs most of stateless functional tests, omitting some. If it fails, further checks are not started until it is fixed. Look at the report to see which tests fail, then reproduce the failure locally as described here✅ success
Flaky testsChecks if new added or modified tests are flaky by running them repeatedly, in parallel, with more randomization. Functional tests are run 100 times with address sanitizer, and additional randomization of thread scheduling. Integrational tests are run up to 10 times. If at least once a new test has failed, or was too long, this check will be red. We don't allow flaky tests, read the doc✅ success
Install packagesChecks that the built packages are installable in a clear environment✅ success
Integration testsThe integration tests report. In parenthesis the package type is given, and in square brackets are the optional part/total tests✅ success
PR CheckThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Performance ComparisonMeasure changes in query performance. The performance test report is described in detail here. In square brackets are the optional part/total tests✅ success
Push to DockerhubThe check for building and pushing the CI related docker images to docker hub✅ success
Stateful testsRuns stateful functional tests for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc✅ success
Style checkRuns a set of checks to keep the code style clean. If some of tests failed, see the related log from the report✅ success
Unit testsRuns the unit tests for different release types✅ success
Upgrade checkRuns stress tests on server version from last release and then tries to upgrade it to the version from the PR. It checks if the new server can successfully startup without any errors, crashes or sanitizer asserts✅ success

@mkmkme

This comment was marked as outdated.

@rschu1ze

This comment was marked as outdated.

@mkmkme

This comment was marked as outdated.

@rschu1ze

This comment was marked as outdated.

@mkmkme

This comment was marked as outdated.

@rschu1ze

This comment was marked as outdated.

@mkmkme

This comment was marked as outdated.

@mkmkme

This comment was marked as outdated.

The new version deprecates `syntax()` and makes it inaccessible. Instead, the
attributes corresponding to a feature should be used. This commit addresses
this.
@Algunenano

This comment was marked as outdated.

@mkmkme

This comment was marked as outdated.

@clickhouse-ci clickhouse-ci bot added the manual approve Manual approve required to run CI label Mar 1, 2024
@mkmkme mkmkme force-pushed the mkmkme/protobuf-25.1 branch 2 times, most recently from df4c475 to 11371e8 Compare March 1, 2024 15:34
@mkmkme

This comment was marked as outdated.

Copy link
Copy Markdown
Member

@rschu1ze rschu1ze left a comment

Choose a reason for hiding this comment

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

One additional question: There are lots of .proto files in the repository (e.g. under tests/). Should we migrate them from syntax v2/v3 to editions - basically to make everything future-proof?

if (google_wrappers_special_treatment && isGoogleWrapperField(field_descriptor))
return false;
return field_descriptor.message_type() || (field_descriptor.file()->syntax() == google::protobuf::FileDescriptor::SYNTAX_PROTO3);
return field_descriptor.message_type() || !field_descriptor.has_presence();
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.

(I don't really understand the change but that's okay)

@mkmkme
Copy link
Copy Markdown
Contributor Author

mkmkme commented Mar 6, 2024

One additional question: There are lots of .proto files in the repository (e.g. under tests/). Should we migrate them from syntax v2/v3 to editions - basically to make everything future-proof?

We can. But I would also keep the files with explicit syntax for now to check that backwards compatibility is not broken. WDYT?

@rschu1ze
Copy link
Copy Markdown
Member

rschu1ze commented Mar 7, 2024

Yes, let's keep the v2 and v3 tests for backwards compatibility (forget about my previous idea of converting them all to editions).

There are actually not that many tests for protobuf. Many of them test with the same protobuf file in v2 and v3 syntaxes. Maybe it is possible to add tests with protobuf file as editions=2023 for them?

@mkmkme
Copy link
Copy Markdown
Contributor Author

mkmkme commented Mar 7, 2024

Sure, I can add them!

Copy link
Copy Markdown
Member

@rschu1ze rschu1ze left a comment

Choose a reason for hiding this comment

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

Lgtm, thanks! (please just fix the style check)

@mkmkme

This comment was marked as outdated.

@rschu1ze

This comment was marked as outdated.

@mkmkme

This comment was marked as outdated.

@rschu1ze rschu1ze enabled auto-merge April 15, 2024 15:59
@rschu1ze rschu1ze added this pull request to the merge queue Apr 15, 2024
Merged via the queue into ClickHouse:master with commit 2bf3bb1 Apr 15, 2024
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Apr 15, 2024
@mkmkme mkmkme deleted the mkmkme/protobuf-25.1 branch April 16, 2024 06:23
yokofly pushed a commit to timeplus-io/proton that referenced this pull request Mar 1, 2025
* Bump protobuf to v3.18.x (ref: ClickHouse/ClickHouse#50400)

* Bump protobuf to v3.19.6 (ref: ClickHouse/ClickHouse#55963)

* Bump protobuf to v3.19.6 (ref: ClickHouse/ClickHouse#50920)

* Update contribe/orc (ref: ClickHouse/ClickHouse#53324)

* Bump protobuf to v21.9 (ref: ClickHouse/ClickHouse#56014)

* Removed unused code in google-protobuf-cmake/CMakeLists.txt (ref: ClickHouse/ClickHouse#56102)

* Bump gRPC to v1.55.4 and protobuf to v22.5 (ref: ClickHouse/ClickHouse#56664)

* Bump gRPC to v1.59 and protobuf to v24.4 (ref: ClickHouse/ClickHouse#56853)

* enable functions in readonly mode (ref: ClickHouse/ClickHouse#42708)

* Introduce more fields for in-source function documentation (ref: ClickHouse/ClickHouse#49300)

* Add ability to convert timeplusd table structure to CapnProto/Protobuf format schema (ref: ClickHouse/ClickHouse#52278)

* Well known protos (ref: ClickHouse/ClickHouse#56741)

* Update protobuf to v25.1 (ref: ClickHouse/ClickHouse#58020)

* fixed unit_tests_dbms build

* Avoid ignoring errors of execute_process() (set COMMAND_ERROR_IS_FATAL=ANY) (ref: ClickHouse/ClickHouse#68267)

* fixed reigsterFunction

* fixed error after rebase
yokofly added a commit to timeplus-io/proton that referenced this pull request Mar 1, 2025
* Bump protobuf to v3.18.x (ref: ClickHouse/ClickHouse#50400)

* Bump protobuf to v3.19.6 (ref: ClickHouse/ClickHouse#55963)

* Bump protobuf to v3.19.6 (ref: ClickHouse/ClickHouse#50920)

* Update contribe/orc (ref: ClickHouse/ClickHouse#53324)

* Bump protobuf to v21.9 (ref: ClickHouse/ClickHouse#56014)

* Removed unused code in google-protobuf-cmake/CMakeLists.txt (ref: ClickHouse/ClickHouse#56102)

* Bump gRPC to v1.55.4 and protobuf to v22.5 (ref: ClickHouse/ClickHouse#56664)

* Bump gRPC to v1.59 and protobuf to v24.4 (ref: ClickHouse/ClickHouse#56853)

* enable functions in readonly mode (ref: ClickHouse/ClickHouse#42708)

* Introduce more fields for in-source function documentation (ref: ClickHouse/ClickHouse#49300)

* Add ability to convert timeplusd table structure to CapnProto/Protobuf format schema (ref: ClickHouse/ClickHouse#52278)

* Well known protos (ref: ClickHouse/ClickHouse#56741)

* Update protobuf to v25.1 (ref: ClickHouse/ClickHouse#58020)

* fixed unit_tests_dbms build

* Avoid ignoring errors of execute_process() (set COMMAND_ERROR_IS_FATAL=ANY) (ref: ClickHouse/ClickHouse#68267)

* fixed reigsterFunction

* fixed error after rebase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors manual approve Manual approve required to run CI pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo submodule changed At least one submodule changed in this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants