Skip to content

Commit 2036aef

Browse files
committed
Upgrade protobuf to 5.29.5
Signed-off-by: Lacewell, Chaunte W <[email protected]>
1 parent 460b557 commit 2036aef

File tree

8 files changed

+80
-84
lines changed

8 files changed

+80
-84
lines changed

.github/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ MarkupSafe==3.0.2
1414
numpy==1.26.4
1515
opencv-python-headless==4.11.0.86
1616
pillow==11.1.0
17-
protobuf==4.25.8
17+
protobuf==5.29.5
1818
pycparser==2.22
1919
Pygments==2.19.1
2020
pyzmq==26.4.0

.github/scripts/Dockerfile.checkin

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ENV DEBIAN_FRONTEND=noninteractive
2121
ENV DEBCONF_NOWARNINGS="yes"
2222
ENV PYTHON_BASE="3.12"
2323
ENV PYTHON_VERSION="${PYTHON_BASE}.3"
24-
ENV PROTOBUF_VERSION="25.8"
24+
ENV PROTOBUF_VERSION="29.5"
2525
ENV NUMPY_MIN_VERSION="1.26.0"
2626
ENV VIRTUAL_ENV=/opt/venv
2727

@@ -77,6 +77,7 @@ ENV AUTOCONF_VERSION="2.71" \
7777
AWS_SDK_VERSION="1.11.336" \
7878
CMAKE_VERSION="v3.28.5" \
7979
FAISS_VERSION="v1.9.0" \
80+
GOOGLETEST_VERSION="v1.17.0" \
8081
LIBEDIT_VERSION="20230828-3.1" \
8182
OPENCV_VERSION="4.9.0" \
8283
PEG_VERSION="0.1.19" \
@@ -89,27 +90,24 @@ RUN git clone --branch ${CMAKE_VERSION} https://github.com/Kitware/CMake.git /de
8990
cd /dependencies/CMake && ./bootstrap && make ${BUILD_THREADS} && \
9091
make install DESTDIR=/opt/dist && make install
9192

93+
# GOOGLETEST
94+
# hadolint ignore=DL3003,SC2086
95+
RUN git clone -b "${GOOGLETEST_VERSION}" https://github.com/google/googletest.git /dependencies/googletest && \
96+
cd /dependencies/googletest && mkdir build && cd build/ && \
97+
cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release \
98+
-DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/opt/dist/usr/local \
99+
-DBUILD_GMOCK=ON -DCMAKE_CXX_STANDARD=17 .. && \
100+
make ${BUILD_THREADS} && make install
101+
92102
# PROTOBUF & ITS DEPENDENCIES
93103
# hadolint ignore=DL3003,SC2086
94104
RUN git clone -b "v${PROTOBUF_VERSION}" --recurse-submodules https://github.com/protocolbuffers/protobuf.git /dependencies/protobuf && \
95-
cd /dependencies/protobuf/third_party/googletest && mkdir build && cd build/ && \
96-
cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release \
97-
-DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/opt/dist/usr/local \
98-
-DBUILD_GMOCK=ON -DCMAKE_CXX_STANDARD=17 .. && \
99-
make ${BUILD_THREADS} && make install && \
100-
cd /dependencies/protobuf/third_party/abseil-cpp && mkdir build && cd build && \
101-
cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_SHARED_LIBS=ON \
102-
-DCMAKE_INSTALL_PREFIX=/opt/dist/usr/local -DABSL_BUILD_TESTING=ON \
103-
-DABSL_USE_EXTERNAL_GOOGLETEST=ON \
104-
-DABSL_FIND_GOOGLETEST=ON -DCMAKE_CXX_STANDARD=17 .. && \
105-
make ${BUILD_THREADS} && make install && ldconfig /opt/dist/usr/local/lib && \
106105
cd /dependencies/protobuf && \
107-
cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_PREFIX=/opt/dist/usr/local \
108-
-DCMAKE_CXX_STANDARD=17 -Dprotobuf_BUILD_SHARED_LIBS=ON \
109-
-Dprotobuf_ABSL_PROVIDER=package \
110-
-Dprotobuf_BUILD_TESTS=ON \
111-
-Dabsl_DIR=/opt/dist/usr/local/lib/cmake/absl . && \
112-
make ${BUILD_THREADS} && make install
106+
cmake -Dprotobuf_FORCE_FETCH_DEPENDENCIES=ON \
107+
-DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_PREFIX=/opt/dist/usr/local \
108+
-DCMAKE_CXX_STANDARD=17 -Dprotobuf_BUILD_SHARED_LIBS=ON \
109+
-Dprotobuf_BUILD_TESTS=ON . && \
110+
make ${BUILD_THREADS} && make install
113111

114112
# OPENCV
115113
# hadolint ignore=DL3003,SC2086
@@ -253,7 +251,7 @@ RUN apt-get update -y && apt-get upgrade -y && \
253251
apt-get --purge remove -y python3.11 && apt-get autoremove -y && \
254252
apt-get clean && rm -rf /var/lib/apt/lists/* && \
255253
echo "/usr/local/lib" >> /etc/ld.so.conf.d/all-libs.conf && ldconfig && \
256-
python3 -m pip install --no-cache-dir "numpy>=${NUMPY_MIN_VERSION},<2.0.0" "protobuf==4.${PROTOBUF_VERSION}" \
254+
python3 -m pip install --no-cache-dir "numpy>=${NUMPY_MIN_VERSION},<2.0.0" "protobuf==5.${PROTOBUF_VERSION}" \
257255
"coverage>=7.3.1" "cryptography>=44.0.1"
258256

259257
# COVERAGE TESTING

.github/scripts/setup_vdms.sh

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export PATH="$VIRTUAL_ENV/bin:$PATH"
176176
177177
if [ "${BUILD_COVERAGE}" = "ON" ]; then
178178
apt-get install -y --no-install-suggests --no-install-recommends gdb
179-
python -m pip install --no-cache-dir "gcovr>=7.0"
179+
python -m pip install --no-cache-dir "gcovr==8.4"
180180
curl -L -o ${WORKSPACE}/minio https://dl.min.io/server/minio/release/linux-amd64/minio
181181
chmod +x ${WORKSPACE}/minio
182182
mkdir -p ${WORKSPACE}/minio_files/minio-bucket
@@ -194,11 +194,12 @@ AUTOCONF_VERSION="2.71"
194194
AWS_SDK_VERSION="1.11.336"
195195
CMAKE_VERSION="v3.28.5"
196196
FAISS_VERSION="v1.9.0"
197+
GOOGLETEST_VERSION="v1.17.0"
197198
LIBEDIT_VERSION="20230828-3.1"
198199
NUMPY_MIN_VERSION="1.26.0"
199200
OPENCV_VERSION="4.9.0"
200201
PEG_VERSION="0.1.19"
201-
PROTOBUF_VERSION="25.8"
202+
PROTOBUF_VERSION="29.5"
202203
TILEDB_VERSION="2.14.1"
203204
VALIJSON_VERSION="v0.6"
204205
@@ -213,32 +214,24 @@ make ${BUILD_THREADS}
213214
make install
214215
215216
216-
# INSTALL PROTOBUF & ITS DEPENDENCIES
217-
git clone -b "v${PROTOBUF_VERSION}" --recurse-submodules https://github.com/protocolbuffers/protobuf.git $VDMS_DEP_DIR/protobuf
218-
cd $VDMS_DEP_DIR/protobuf/third_party/googletest
217+
# GOOGLETEST
218+
git clone -b "${GOOGLETEST_VERSION}" https://github.com/google/googletest.git $VDMS_DEP_DIR/googletest
219+
cd $VDMS_DEP_DIR/googletest
219220
mkdir build && cd build/
220221
cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release \
221222
-DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr/local \
222223
-DBUILD_GMOCK=ON -DCMAKE_CXX_STANDARD=17 ..
223224
make ${BUILD_THREADS}
224225
make install
225226
226-
cd $VDMS_DEP_DIR/protobuf/third_party/abseil-cpp
227-
mkdir build && cd build
228-
cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_SHARED_LIBS=ON \
229-
-DCMAKE_INSTALL_PREFIX=/usr/local -DABSL_BUILD_TESTING=ON \
230-
-DABSL_USE_EXTERNAL_GOOGLETEST=ON \
231-
-DABSL_FIND_GOOGLETEST=ON -DCMAKE_CXX_STANDARD=17 ..
232-
make ${BUILD_THREADS}
233-
make install
234-
ldconfig /usr/local/lib
235227
228+
# INSTALL PROTOBUF & ITS DEPENDENCIES
229+
git clone -b "v${PROTOBUF_VERSION}" --recurse-submodules https://github.com/protocolbuffers/protobuf.git $VDMS_DEP_DIR/protobuf
236230
cd $VDMS_DEP_DIR/protobuf
237-
cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_PREFIX=/usr/local \
231+
cmake -Dprotobuf_FORCE_FETCH_DEPENDENCIES=ON \
232+
-DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_PREFIX=/usr/local \
238233
-DCMAKE_CXX_STANDARD=17 -Dprotobuf_BUILD_SHARED_LIBS=ON \
239-
-Dprotobuf_ABSL_PROVIDER=package \
240-
-Dprotobuf_BUILD_TESTS=ON \
241-
-Dabsl_DIR=/usr/local/lib/cmake/absl .
234+
-Dprotobuf_BUILD_TESTS=ON .
242235
make ${BUILD_THREADS}
243236
make install
244237
@@ -255,7 +248,7 @@ make install
255248
256249
# INSTALL PYTHON PACKAGES
257250
python -m pip install --no-cache-dir "numpy>=${NUMPY_MIN_VERSION},<2.0.0" "coverage>=7.3.1" \
258-
"protobuf==4.${PROTOBUF_VERSION}" "cryptography>=44.0.1"
251+
"protobuf==5.${PROTOBUF_VERSION}" "cryptography>=44.0.1"
259252
260253
261254
# INSTALL VALIJSON

client/python/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
setuptools.setup(
77
name="vdms",
8-
version="0.0.21",
8+
version="0.0.22",
99
author="Chaunté W. Lacewell",
1010
author_email="[email protected]",
1111
description="VDMS Client Module",
12-
install_requires=["protobuf==4.25.8"],
12+
install_requires=["protobuf==5.29.5"],
1313
long_description=long_description,
1414
long_description_content_type="text/markdown",
1515
url="https://github.com/IntelLabs/vdms",

client/python/vdms/queryMessage_pb2.py

Lines changed: 13 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker/base/Dockerfile

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ENV DEBIAN_FRONTEND=noninteractive
2121
ENV DEBCONF_NOWARNINGS="yes"
2222
ENV PYTHON_BASE="3.12"
2323
ENV PYTHON_VERSION="${PYTHON_BASE}.3"
24-
ENV PROTOBUF_VERSION="25.8"
24+
ENV PROTOBUF_VERSION="29.5"
2525
ENV NUMPY_MIN_VERSION="1.26.0"
2626
ENV VIRTUAL_ENV=/opt/venv
2727

@@ -77,6 +77,7 @@ ENV AUTOCONF_VERSION="2.71" \
7777
AWS_SDK_VERSION="1.11.336" \
7878
CMAKE_VERSION="v3.28.5" \
7979
FAISS_VERSION="v1.9.0" \
80+
GOOGLETEST_VERSION="v1.17.0" \
8081
LIBEDIT_VERSION="20230828-3.1" \
8182
OPENCV_VERSION="4.9.0" \
8283
PEG_VERSION="0.1.19" \
@@ -89,27 +90,24 @@ RUN git clone --branch ${CMAKE_VERSION} https://github.com/Kitware/CMake.git /de
8990
cd /dependencies/CMake && ./bootstrap && make ${BUILD_THREADS} && \
9091
make install DESTDIR=/opt/dist && make install
9192

93+
# GOOGLETEST
94+
# hadolint ignore=DL3003,SC2086
95+
RUN git clone -b "${GOOGLETEST_VERSION}" https://github.com/google/googletest.git /dependencies/googletest && \
96+
cd /dependencies/googletest && mkdir build && cd build/ && \
97+
cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release \
98+
-DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/opt/dist/usr/local \
99+
-DBUILD_GMOCK=ON -DCMAKE_CXX_STANDARD=17 .. && \
100+
make ${BUILD_THREADS} && make install
101+
92102
# PROTOBUF & ITS DEPENDENCIES
93103
# hadolint ignore=DL3003,SC2086
94104
RUN git clone -b "v${PROTOBUF_VERSION}" --recurse-submodules https://github.com/protocolbuffers/protobuf.git /dependencies/protobuf && \
95-
cd /dependencies/protobuf/third_party/googletest && mkdir build && cd build/ && \
96-
cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release \
97-
-DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/opt/dist/usr/local \
98-
-DBUILD_GMOCK=ON -DCMAKE_CXX_STANDARD=17 .. && \
99-
make ${BUILD_THREADS} && make install && \
100-
cd /dependencies/protobuf/third_party/abseil-cpp && mkdir build && cd build && \
101-
cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_SHARED_LIBS=ON \
102-
-DCMAKE_INSTALL_PREFIX=/opt/dist/usr/local -DABSL_BUILD_TESTING=ON \
103-
-DABSL_USE_EXTERNAL_GOOGLETEST=ON \
104-
-DABSL_FIND_GOOGLETEST=ON -DCMAKE_CXX_STANDARD=17 .. && \
105-
make ${BUILD_THREADS} && make install && ldconfig /opt/dist/usr/local/lib && \
106105
cd /dependencies/protobuf && \
107-
cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_PREFIX=/opt/dist/usr/local \
108-
-DCMAKE_CXX_STANDARD=17 -Dprotobuf_BUILD_SHARED_LIBS=ON \
109-
-Dprotobuf_ABSL_PROVIDER=package \
110-
-Dprotobuf_BUILD_TESTS=ON \
111-
-Dabsl_DIR=/opt/dist/usr/local/lib/cmake/absl . && \
112-
make ${BUILD_THREADS} && make install
106+
cmake -Dprotobuf_FORCE_FETCH_DEPENDENCIES=ON \
107+
-DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_PREFIX=/opt/dist/usr/local \
108+
-DCMAKE_CXX_STANDARD=17 -Dprotobuf_BUILD_SHARED_LIBS=ON \
109+
-Dprotobuf_BUILD_TESTS=ON . && \
110+
make ${BUILD_THREADS} && make install
113111

114112
# OPENCV
115113
# hadolint ignore=DL3003,SC2086
@@ -227,7 +225,7 @@ RUN apt-get update -y && apt-get upgrade -y && \
227225
apt-get --purge remove -y python3.11 && apt-get autoremove -y && \
228226
apt-get clean && rm -rf /var/lib/apt/lists/* && \
229227
echo "/usr/local/lib" >> /etc/ld.so.conf.d/all-libs.conf && ldconfig && \
230-
python3 -m pip install --no-cache-dir "numpy>=${NUMPY_MIN_VERSION},<2.0.0" "protobuf==4.${PROTOBUF_VERSION}" \
228+
python3 -m pip install --no-cache-dir "numpy>=${NUMPY_MIN_VERSION},<2.0.0" "protobuf==5.${PROTOBUF_VERSION}" \
231229
"coverage>=7.3.1" "cryptography>=44.0.1"
232230

233231
# VDMS

docs/Install.md

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -105,38 +105,33 @@ sudo make install
105105
```
106106
<br>
107107

108-
#### **Protobuf v25.8 (4.25.8)**
109-
Install Protobuf (C++ and Python) which requires GoogleTest and Abseil C++ as dependencies.
108+
#### **GoogleTest v1.17.0**
109+
Install GoogleTest v1.17.0:
110110
```bash
111-
PROTOBUF_VERSION="25.8"
112-
python3 -m pip install --no-cache-dir "protobuf==4.${PROTOBUF_VERSION}"
113-
114-
git clone -b v${PROTOBUF_VERSION} --recurse-submodules https://github.com/protocolbuffers/protobuf.git $VDMS_DEP_DIR/protobuf
115-
116-
cd $VDMS_DEP_DIR/protobuf/third_party/googletest
117-
mkdir build && cd build
111+
GOOGLETEST_VERSION="v1.17.0"
112+
git clone -b "${GOOGLETEST_VERSION}" https://github.com/google/googletest.git $VDMS_DEP_DIR/googletest && \
113+
cd $VDMS_DEP_DIR/googletest
114+
mkdir build && cd build/
118115
cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release \
119116
-DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr/local \
120117
-DBUILD_GMOCK=ON -DCMAKE_CXX_STANDARD=17 ..
121118
make ${BUILD_THREADS}
122119
sudo make install
120+
```
121+
<br>
123122

124-
cd $VDMS_DEP_DIR/protobuf/third_party/abseil-cpp
125-
mkdir build && cd build
126-
cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_SHARED_LIBS=ON \
127-
-DCMAKE_INSTALL_PREFIX=/usr/local -DABSL_BUILD_TESTING=ON \
128-
-DABSL_USE_EXTERNAL_GOOGLETEST=ON \
129-
-DABSL_FIND_GOOGLETEST=ON -DCMAKE_CXX_STANDARD=17 ..
130-
make ${BUILD_THREADS}
131-
sudo make install
132-
sudo ldconfig /usr/local/lib
123+
#### **Protobuf v29.5 (5.29.5)**
124+
Install Protobuf (C++ and Python) with its dependencies.
125+
```bash
126+
PROTOBUF_VERSION="29.5"
127+
python3 -m pip install --no-cache-dir "protobuf==4.${PROTOBUF_VERSION}"
133128

129+
git clone -b v${PROTOBUF_VERSION} --recurse-submodules https://github.com/protocolbuffers/protobuf.git $VDMS_DEP_DIR/protobuf
134130
cd $VDMS_DEP_DIR/protobuf
135-
cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_PREFIX=/usr/local \
131+
cmake -Dprotobuf_FORCE_FETCH_DEPENDENCIES=ON \
132+
-DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_PREFIX=/usr/local \
136133
-DCMAKE_CXX_STANDARD=17 -Dprotobuf_BUILD_SHARED_LIBS=ON \
137-
-Dprotobuf_ABSL_PROVIDER=package \
138-
-Dprotobuf_BUILD_TESTS=ON \
139-
-Dabsl_DIR=/usr/local/lib/cmake/absl .
134+
-Dprotobuf_BUILD_TESTS=ON .
140135
make ${BUILD_THREADS}
141136
sudo make install
142137
```

tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,6 @@ target_link_libraries(unit_tests
9393
${OpenCV_LIBS}
9494
${AWSSDK_LINK_LIBRARIES}
9595
neo4j-client
96+
-lgtest
9697
)
9798

0 commit comments

Comments
 (0)