-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Bump grpc from 1.26.0 to 1.31.1 #12226
Conversation
Fixes having external dependencies without checksum - boringssl (each download was timestamped, but otherwise stable) - bazel_skylark was overriden to be master (sic!) There doesn't seem to be many breaking/big changes up to grpc 1.31.1 - removal of xds-experimental URI scheme - removal of MAX_EPOLL_EVENTS_HANDLED_EACH_POLL_CALL - enable TLS 1.3 in the C-core and all wrapped languages - some of bazel-related patches got merged in https://github.com/grpc/grpc/releases How to check whether certain dependency has a checksum bazel query //external:bazel_skylib --output build bazel query //external:boringssl --output build How to find (almost?) all problematic dependencies compare output of bazel query 'kind(http_archive, //external:all) + kind(http_file, //external:all) + kind(distdir_tar, //external:all)' --output xml | xq '.query.rule[] | ."@name"' vs bazel query 'kind(http_archive, //external:all) + kind(http_file, //external:all) + kind(distdir_tar, //external:all)' --output xml | xq '.query.rule[] | select (.string[]."@name" | contains("sha256")) | ."@name"' Note that it looks for string sha256 and misses dict sha256 for distdir_tar rules - those are false positive currently.
Note: didn't older version have to be declared too?
Thanks, will look into that. Do you have more details on what could break with a single PR? As I see there are bootstrapping and other tests in CI |
Yeah, basically I meant the presubmit tests should pass. If it's green, we are fine. |
I will probably have to add grpc version suffix to |
Ah, nice, so all is good with the current state of PR? :) |
I think the grpc java compiler version doesn't have to exactly match the grpc cpp version. So you probably don't have to do that. It's just the grpc_1.26.0.patch file has to match the version defined in WORKSPACE.
|
… it came from" Actually, embedded_tools_src patch comes from 22d7e77: Make it possible to do `bazel query @bazel_tools//...` without errors. It just patched third_party/grpc/BUILD without updating third_party/grpc/bazel.patch Now patch is made up to date. Note: it could be that PR check doesn't test the `bazel query @bazel_tools//...` case This reverts commit 3f11beb.
PART 1: prepare third_party/grpc files for new version Composed PR: bazelbuild#12226 Note: generate_cc.bzl and protobuf.bzl are modified in place and already affect the build. But the change seems to be harmless (adding explicit ProtoInfo load from @rules_proto). Fixes having external dependencies without checksum - boringssl (each download was timestamped, but otherwise stable) - bazel_skylark was overriden to be master (sic!) There doesn't seem to be many breaking/big changes up to grpc 1.31.1 - removal of xds-experimental URI scheme - removal of MAX_EPOLL_EVENTS_HANDLED_EACH_POLL_CALL - enable TLS 1.3 in the C-core and all wrapped languages - some of bazel-related patches got merged in https://github.com/grpc/grpc/releases How to check whether certain dependency has a checksum bazel query //external:bazel_skylib --output build bazel query //external:boringssl --output build How to find (almost?) all problematic dependencies compare output of bazel query 'kind(http_archive, //external:all) + kind(http_file, //external:all) + kind(distdir_tar, //external:all)' --output xml | xq '.query.rule[] | ."@name"' vs bazel query 'kind(http_archive, //external:all) + kind(http_file, //external:all) + kind(distdir_tar, //external:all)' --output xml | xq '.query.rule[] | select (.string[]."@name" | contains("sha256")) | ."@name"' Note that it looks for string sha256 and misses dict sha256 for distdir_tar rules - those are false positive currently.
PART 2: switch to grpc 1.31.1 Composed PR: bazelbuild#12226 Fixes having external dependencies without checksum - boringssl (each download was timestamped, but otherwise stable) - bazel_skylark was overriden to be master (sic!) There doesn't seem to be many breaking/big changes up to grpc 1.31.1 - removal of xds-experimental URI scheme - removal of MAX_EPOLL_EVENTS_HANDLED_EACH_POLL_CALL - enable TLS 1.3 in the C-core and all wrapped languages - some of bazel-related patches got merged in https://github.com/grpc/grpc/releases How to check whether certain dependency has a checksum bazel query //external:bazel_skylib --output build bazel query //external:boringssl --output build How to find (almost?) all problematic dependencies compare output of bazel query 'kind(http_archive, //external:all) + kind(http_file, //external:all) + kind(distdir_tar, //external:all)' --output xml | xq '.query.rule[] | ."@name"' vs bazel query 'kind(http_archive, //external:all) + kind(http_file, //external:all) + kind(distdir_tar, //external:all)' --output xml | xq '.query.rule[] | select (.string[]."@name" | contains("sha256")) | ."@name"' Note that it looks for string sha256 and misses dict sha256 for distdir_tar rules - those are false positive currently.
PART 3: remove grpc 1.26.0 from third_party/grpc Composed PR: bazelbuild#12226 Note: bootstrap jars & java_plugin remain to be 1.26.0 though Fixes having external dependencies without checksum - boringssl (each download was timestamped, but otherwise stable) - bazel_skylark was overriden to be master (sic!) There doesn't seem to be many breaking/big changes up to grpc 1.31.1 - removal of xds-experimental URI scheme - removal of MAX_EPOLL_EVENTS_HANDLED_EACH_POLL_CALL - enable TLS 1.3 in the C-core and all wrapped languages - some of bazel-related patches got merged in https://github.com/grpc/grpc/releases How to check whether certain dependency has a checksum bazel query //external:bazel_skylib --output build bazel query //external:boringssl --output build How to find (almost?) all problematic dependencies compare output of bazel query 'kind(http_archive, //external:all) + kind(http_file, //external:all) + kind(distdir_tar, //external:all)' --output xml | xq '.query.rule[] | ."@name"' vs bazel query 'kind(http_archive, //external:all) + kind(http_file, //external:all) + kind(distdir_tar, //external:all)' --output xml | xq '.query.rule[] | select (.string[]."@name" | contains("sha256")) | ."@name"' Note that it looks for string sha256 and misses dict sha256 for distdir_tar rules - those are false positive currently.
|
Thanks, do you plan to upgrade the jars later? |
PART 1: prepare third_party/grpc files for new version Composed PR: #12226 Note: generate_cc.bzl and protobuf.bzl are modified in place and already affect the build. But the change seems to be harmless (adding explicit ProtoInfo load from @rules_proto). Fixes having external dependencies without checksum - boringssl (each download was timestamped, but otherwise stable) - bazel_skylark was overriden to be master (sic!) There doesn't seem to be many breaking/big changes up to grpc 1.31.1 - removal of xds-experimental URI scheme - removal of MAX_EPOLL_EVENTS_HANDLED_EACH_POLL_CALL - enable TLS 1.3 in the C-core and all wrapped languages - some of bazel-related patches got merged in https://github.com/grpc/grpc/releases How to check whether certain dependency has a checksum bazel query //external:bazel_skylib --output build bazel query //external:boringssl --output build How to find (almost?) all problematic dependencies compare output of bazel query 'kind(http_archive, //external:all) + kind(http_file, //external:all) + kind(distdir_tar, //external:all)' --output xml | xq '.query.rule[] | ."@name"' vs bazel query 'kind(http_archive, //external:all) + kind(http_file, //external:all) + kind(distdir_tar, //external:all)' --output xml | xq '.query.rule[] | select (.string[]."@name" | contains("sha256")) | ."@name"' Note that it looks for string sha256 and misses dict sha256 for distdir_tar rules - those are false positive currently. Closes #12235
Bootstrap jars seem to have a good amount of bugfixes, so would be good to bump them https://github.com/grpc/grpc-java/releases |
PART 2: switch to grpc 1.31.1 Composed PR: bazelbuild#12226 Fixes having external dependencies without checksum - boringssl (each download was timestamped, but otherwise stable) - bazel_skylark was overriden to be master (sic!) There doesn't seem to be many breaking/big changes up to grpc 1.31.1 - removal of xds-experimental URI scheme - removal of MAX_EPOLL_EVENTS_HANDLED_EACH_POLL_CALL - enable TLS 1.3 in the C-core and all wrapped languages - some of bazel-related patches got merged in https://github.com/grpc/grpc/releases How to check whether certain dependency has a checksum bazel query //external:bazel_skylib --output build bazel query //external:boringssl --output build How to find (almost?) all problematic dependencies compare output of bazel query 'kind(http_archive, //external:all) + kind(http_file, //external:all) + kind(distdir_tar, //external:all)' --output xml | xq '.query.rule[] | ."@name"' vs bazel query 'kind(http_archive, //external:all) + kind(http_file, //external:all) + kind(distdir_tar, //external:all)' --output xml | xq '.query.rule[] | select (.string[]."@name" | contains("sha256")) | ."@name"' Note that it looks for string sha256 and misses dict sha256 for distdir_tar rules - those are false positive currently.
Sounds great! |
PART 3: remove grpc 1.26.0 from third_party/grpc Composed PR: #12226 Note: bootstrap jars & java_plugin remain to be 1.26.0 though Fixes having external dependencies without checksum - boringssl (each download was timestamped, but otherwise stable) - bazel_skylark was overriden to be master (sic!) There doesn't seem to be many breaking/big changes up to grpc 1.31.1 - removal of xds-experimental URI scheme - removal of MAX_EPOLL_EVENTS_HANDLED_EACH_POLL_CALL - enable TLS 1.3 in the C-core and all wrapped languages - some of bazel-related patches got merged in https://github.com/grpc/grpc/releases How to check whether certain dependency has a checksum bazel query //external:bazel_skylib --output build bazel query //external:boringssl --output build How to find (almost?) all problematic dependencies compare output of bazel query 'kind(http_archive, //external:all) + kind(http_file, //external:all) + kind(distdir_tar, //external:all)' --output xml | xq '.query.rule[] | ."@name"' vs bazel query 'kind(http_archive, //external:all) + kind(http_file, //external:all) + kind(distdir_tar, //external:all)' --output xml | xq '.query.rule[] | select (.string[]."@name" | contains("sha256")) | ."@name"' Note that it looks for string sha256 and misses dict sha256 for distdir_tar rules - those are false positive currently. Closes #12237
PART 1: prepare third_party/grpc files for new version Composed PR: bazelbuild#12226 Note: generate_cc.bzl and protobuf.bzl are modified in place and already affect the build. But the change seems to be harmless (adding explicit ProtoInfo load from @rules_proto). Fixes having external dependencies without checksum - boringssl (each download was timestamped, but otherwise stable) - bazel_skylark was overriden to be master (sic!) There doesn't seem to be many breaking/big changes up to grpc 1.31.1 - removal of xds-experimental URI scheme - removal of MAX_EPOLL_EVENTS_HANDLED_EACH_POLL_CALL - enable TLS 1.3 in the C-core and all wrapped languages - some of bazel-related patches got merged in https://github.com/grpc/grpc/releases How to check whether certain dependency has a checksum bazel query //external:bazel_skylib --output build bazel query //external:boringssl --output build How to find (almost?) all problematic dependencies compare output of bazel query 'kind(http_archive, //external:all) + kind(http_file, //external:all) + kind(distdir_tar, //external:all)' --output xml | xq '.query.rule[] | ."@name"' vs bazel query 'kind(http_archive, //external:all) + kind(http_file, //external:all) + kind(distdir_tar, //external:all)' --output xml | xq '.query.rule[] | select (.string[]."@name" | contains("sha256")) | ."@name"' Note that it looks for string sha256 and misses dict sha256 for distdir_tar rules - those are false positive currently. Closes bazelbuild#12235
PART 3: remove grpc 1.26.0 from third_party/grpc Composed PR: bazelbuild#12226 Note: bootstrap jars & java_plugin remain to be 1.26.0 though Fixes having external dependencies without checksum - boringssl (each download was timestamped, but otherwise stable) - bazel_skylark was overriden to be master (sic!) There doesn't seem to be many breaking/big changes up to grpc 1.31.1 - removal of xds-experimental URI scheme - removal of MAX_EPOLL_EVENTS_HANDLED_EACH_POLL_CALL - enable TLS 1.3 in the C-core and all wrapped languages - some of bazel-related patches got merged in https://github.com/grpc/grpc/releases How to check whether certain dependency has a checksum bazel query //external:bazel_skylib --output build bazel query //external:boringssl --output build How to find (almost?) all problematic dependencies compare output of bazel query 'kind(http_archive, //external:all) + kind(http_file, //external:all) + kind(distdir_tar, //external:all)' --output xml | xq '.query.rule[] | ."@name"' vs bazel query 'kind(http_archive, //external:all) + kind(http_file, //external:all) + kind(distdir_tar, //external:all)' --output xml | xq '.query.rule[] | select (.string[]."@name" | contains("sha256")) | ."@name"' Note that it looks for string sha256 and misses dict sha256 for distdir_tar rules - those are false positive currently. Closes bazelbuild#12237
PART 1: prepare third_party/grpc files for new version Composed PR: bazelbuild#12226 Note: generate_cc.bzl and protobuf.bzl are modified in place and already affect the build. But the change seems to be harmless (adding explicit ProtoInfo load from @rules_proto). Fixes having external dependencies without checksum - boringssl (each download was timestamped, but otherwise stable) - bazel_skylark was overriden to be master (sic!) There doesn't seem to be many breaking/big changes up to grpc 1.31.1 - removal of xds-experimental URI scheme - removal of MAX_EPOLL_EVENTS_HANDLED_EACH_POLL_CALL - enable TLS 1.3 in the C-core and all wrapped languages - some of bazel-related patches got merged in https://github.com/grpc/grpc/releases How to check whether certain dependency has a checksum bazel query //external:bazel_skylib --output build bazel query //external:boringssl --output build How to find (almost?) all problematic dependencies compare output of bazel query 'kind(http_archive, //external:all) + kind(http_file, //external:all) + kind(distdir_tar, //external:all)' --output xml | xq '.query.rule[] | ."@name"' vs bazel query 'kind(http_archive, //external:all) + kind(http_file, //external:all) + kind(distdir_tar, //external:all)' --output xml | xq '.query.rule[] | select (.string[]."@name" | contains("sha256")) | ."@name"' Note that it looks for string sha256 and misses dict sha256 for distdir_tar rules - those are false positive currently. Closes bazelbuild#12235
PART 3: remove grpc 1.26.0 from third_party/grpc Composed PR: bazelbuild#12226 Note: bootstrap jars & java_plugin remain to be 1.26.0 though Fixes having external dependencies without checksum - boringssl (each download was timestamped, but otherwise stable) - bazel_skylark was overriden to be master (sic!) There doesn't seem to be many breaking/big changes up to grpc 1.31.1 - removal of xds-experimental URI scheme - removal of MAX_EPOLL_EVENTS_HANDLED_EACH_POLL_CALL - enable TLS 1.3 in the C-core and all wrapped languages - some of bazel-related patches got merged in https://github.com/grpc/grpc/releases How to check whether certain dependency has a checksum bazel query //external:bazel_skylib --output build bazel query //external:boringssl --output build How to find (almost?) all problematic dependencies compare output of bazel query 'kind(http_archive, //external:all) + kind(http_file, //external:all) + kind(distdir_tar, //external:all)' --output xml | xq '.query.rule[] | ."@name"' vs bazel query 'kind(http_archive, //external:all) + kind(http_file, //external:all) + kind(distdir_tar, //external:all)' --output xml | xq '.query.rule[] | select (.string[]."@name" | contains("sha256")) | ."@name"' Note that it looks for string sha256 and misses dict sha256 for distdir_tar rules - those are false positive currently. Closes bazelbuild#12237
Fixes having external dependencies without checksum
There doesn't seem to be many breaking/big changes up to grpc 1.31.1
https://github.com/grpc/grpc/releases
How to check whether certain dependency has a checksum
bazel query //external:bazel_skylib --output build
bazel query //external:boringssl --output build
How to find (almost?) all problematic dependencies
compare output of
bazel query 'kind(http_archive, //external:all) + kind(http_file, //external:all) + kind(distdir_tar, //external:all)' --output xml | xq '.query.rule[] | ."@name"'
vs
bazel query 'kind(http_archive, //external:all) + kind(http_file, //external:all) + kind(distdir_tar, //external:all)' --output xml | xq '.query.rule[] | select (.string[]."@name" | contains("sha256")) | ."@name"'
Note that it looks for string sha256 and misses dict sha256 for
distdir_tar rules - those are false positive currently.