[Test] Fix protobuf-at-head test (#36332)

When updating protobuf, ensure upb and utf8_range versions match the updated protobuf version.

Internal b/332754839

Closes #36332

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36332 from veblush:fix-protobuf-at-head e13e7bc57a
PiperOrigin-RevId: 623878964
pull/36335/head
Esun Kim 12 months ago committed by Copybara-Service
parent cd30592193
commit 381125a3a9
  1. 14
      tools/internal_ci/linux/grpc_build_submodule_at_head.sh

@ -69,9 +69,21 @@ then
src/abseil-cpp/preprocessed_builds.yaml.gen.py
fi
if [ "${SUBMODULE_NAME}" == "protobuf" ]
then
# update upb
rm -rf third_party/upb/upb
cp -r third_party/protobuf/upb third_party/upb
tools/codegen/core/gen_upb_api.sh
# update utf8_range
rm -rf third_party/utf8_range
cp -r third_party/protobuf/third_party/utf8_range third_party/utf8_range/
fi
tools/buildgen/generate_projects.sh
# commit so that changes are passed to Docker
git -c user.name='foo' -c user.email='foo@google.com' commit -a -m 'Update submodule' --allow-empty
git add -A
git -c user.name='foo' -c user.email='foo@google.com' commit -m 'Update submodule' --allow-empty
tools/run_tests/run_tests_matrix.py -f linux --exclude c sanity basictests_arm64 openssl dbg --inner_jobs 16 -j 2 --internal_ci --build_only

Loading…
Cancel
Save