Skip to content

Commit

Permalink
Merge branch 'master' into mauro/update-valijson
Browse files Browse the repository at this point in the history
  • Loading branch information
Molter73 authored Nov 5, 2024
2 parents e46a1c8 + 02604b7 commit c73db4c
Show file tree
Hide file tree
Showing 15 changed files with 88 additions and 37 deletions.
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,7 @@
path = builder/third_party/c-ares
url = https://github.com/c-ares/c-ares.git
branch = main
[submodule "builder/third_party/tbb"]
path = builder/third_party/tbb
url = https://github.com/oneapi-src/oneTBB.git
branch = master
31 changes: 31 additions & 0 deletions .tekton/collector-component-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ spec:
- name: kind
value: task
resolver: bundles
workspaces:
- name: git-basic-auth
workspace: git-auth

- name: build-container-amd64
params:
Expand Down Expand Up @@ -394,6 +397,8 @@ spec:
- $(tasks.build-container-s390x.results.IMAGE_REF)
- $(tasks.build-container-ppc64le.results.IMAGE_REF)
- $(tasks.build-container-arm64.results.IMAGE_REF)
- name: IMAGE_EXPIRES_AFTER
value: $(params.image-expires-after)
taskRef:
params:
- name: name
Expand Down Expand Up @@ -425,6 +430,8 @@ spec:
- $(tasks.build-container-s390x.results.IMAGE_REF)
- $(tasks.build-container-ppc64le.results.IMAGE_REF)
- $(tasks.build-container-arm64.results.IMAGE_REF)
- name: IMAGE_EXPIRES_AFTER
value: $(params.image-expires-after)
taskRef:
params:
- name: name
Expand Down Expand Up @@ -526,6 +533,8 @@ spec:
params:
- name: SOURCE_ARTIFACT
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
- name: CACHI2_ARTIFACT
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
- name: image-digest
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
- name: image-url
Expand Down Expand Up @@ -583,3 +592,25 @@ spec:
- input: $(params.skip-checks)
operator: in
values: ["false"]

- name: push-dockerfile
params:
- name: IMAGE
value: $(tasks.build-image-index.results.IMAGE_URL)
- name: IMAGE_DIGEST
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
- name: DOCKERFILE
value: $(params.dockerfile)
- name: CONTEXT
value: $(params.path-context)
- name: SOURCE_ARTIFACT
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
taskRef:
params:
- name: name
value: push-dockerfile-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-push-dockerfile-oci-ta:0.1@sha256:a28f33b69b270c4e8def293ff6d19ecc9789e1fee5a5929f1250a2e6cbabed81
- name: kind
value: task
resolver: bundles
13 changes: 12 additions & 1 deletion .tekton/determine-image-tag-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,15 @@ spec:
dnf -y install git make
.konflux/scripts/fail-build-if-git-is-dirty.sh
echo -n "$(make --quiet --no-print-directory tag)$(params.TAG_SUFFIX)" | tee "$(results.IMAGE_TAG.path)"
# First, try take git tag if it's a tagged commit.
tag="$(git tag --points-at)"
if [[ -z "$tag" ]]; then
# If not, use make target's output.
tag="$(make --quiet --no-print-directory tag)"
elif [[ "$(wc -l <<< "$tag")" -gt 1 ]]; then
>&2 echo -e "Error: the HEAD commit has multiple tags, don't know which one to choose:\n$tag"
exit 5
fi
echo -n "${tag}$(params.TAG_SUFFIX)" | tee "$(results.IMAGE_TAG.path)"
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ ifneq ($(BUILD_BUILDER_IMAGE), false)
-t quay.io/stackrox-io/collector-builder:$(COLLECTOR_BUILDER_TAG) \
-f "$(CURDIR)/builder/Dockerfile" \
"$(CURDIR)/builder"
else
docker pull --platform ${PLATFORM} \
quay.io/stackrox-io/collector-builder:$(COLLECTOR_BUILDER_TAG)
endif

collector: check-builder
Expand Down Expand Up @@ -82,7 +85,7 @@ endif
start-builder: builder teardown-builder
docker run -d \
--name $(COLLECTOR_BUILDER_NAME) \
--pull missing \
--pull never \
--platform ${PLATFORM} \
-v $(CURDIR):$(CURDIR) \
$(if $(LOCAL_SSH_PORT),-p $(LOCAL_SSH_PORT):22 )\
Expand Down
9 changes: 8 additions & 1 deletion builder/install/40-civetweb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,12 @@ cp LICENSE.md "${LICENSE_DIR}/CivetWeb-${CIVETWEB_VERSION}"

mkdir cmake-build
cd cmake-build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DCIVETWEB_ENABLE_CXX=ON -DBUILD_SHARED_LIBS:BOOL=NO -DCIVETWEB_BUILD_TESTING=NO ..
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DCIVETWEB_ENABLE_CXX=ON \
-DBUILD_SHARED_LIBS:BOOL=NO \
-DCIVETWEB_BUILD_TESTING=NO \
-DCIVETWEB_ENABLE_IPV6=NO \
-DCIVETWEB_ENABLE_SERVER_EXECUTABLE=NO \
..
cmake --build . --target install ${NPROCS:+-j ${NPROCS}}
9 changes: 8 additions & 1 deletion builder/install/60-jsoncpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,12 @@ cp LICENSE "${LICENSE_DIR}/jsoncpp-${JSONCPP_REVISION}"

mkdir cmake-build
cd cmake-build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=-fPIC ..
cmake -DCMAKE_INSTALL_PREFIX=/usr/local \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS=-fPIC \
-DJSONCPP_WITH_TESTS=OFF \
-DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_OBJECT_LIBS=OFF \
..
cmake --build . --target install ${NPROCS:+-j ${NPROCS}}
16 changes: 9 additions & 7 deletions builder/install/60-tbb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ if [ -n "${WITH_RHEL_RPMS}" ]; then
exit 0
fi

git clone --branch "$TBB_VERSION" --depth 1 https://github.com/intel/tbb
cd tbb
cp LICENSE "${LICENSE_DIR}/tbb-${TBB_VERSION}"
make ${NPROCS:+-j ${NPROCS}} tbb_build_dir=./build tbb_build_prefix=lib extra_inc=big_iron.inc
mkdir -p /usr/local/include
cp -r ./include/tbb /usr/local/include/
cp ./build/lib_release/libtbb.a /usr/local/lib/
cd third_party/tbb
cp LICENSE.txt "${LICENSE_DIR}/tbb-${TBB_VERSION}"
cmake -B cmake-build -S . \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DBUILD_SHARED_LIBS=OFF \
-DTBB_TEST=OFF \
-DTBBMALLOC_BUILD=OFF
cmake --build cmake-build --target install ${NPROCS:+-j ${NPROCS}}
16 changes: 0 additions & 16 deletions builder/install/99-strip-binaries.sh

This file was deleted.

11 changes: 6 additions & 5 deletions builder/install/versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ export B64_VERSION=1.2.1
export CARES_VERSION=1.34.2
export GOOGLETEST_REVISION=release-1.10.0
export GRPC_REVISION=v1.67.0
export JSONCPP_REVISION=0.10.7
export PROMETHEUS_CPP_REVISION=v0.9.0
export JSONCPP_REVISION=1.9.6
export PROMETHEUS_CPP_REVISION=v1.2.4
export PROTOBUF_VERSION=v28.3
export TBB_VERSION=2018_U5
export CIVETWEB_VERSION=v1.15
export TBB_VERSION=2022.0.0
export CIVETWEB_VERSION=v1.16
export ABSEIL_VERSION=20240722.0
export VALIJSON_VERSION=1.0.3
export RE2_VERSION=2022-06-01
export RE2_VERSION=2024-07-02
export GPERFTOOLS_VERSION=2.16
export UTHASH_VERSION=v1.9.8
export YAMLCPP_VERSION=0.8.0
export LIBBPF_VERSION=v1.3.4
2 changes: 1 addition & 1 deletion builder/third_party/civetweb
Submodule civetweb updated 99 files
+25 −0 .github/workflows/cifuzz.yml
+42 −69 .travis.yml
+41 −2 CMakeLists.txt
+25 −2 CREDITS.md
+4 −0 LICENSE.md
+8 −12 Makefile
+43 −59 README.md
+33 −3 RELEASE_NOTES.md
+10 −1 SECURITY.md
+4 −2 VisualStudio/civetweb_lua/civetweb_lua.vcxproj
+3 −1 VisualStudio/civetweb_lua/civetweb_lua.vcxproj.filters
+2 −0 VisualStudio/lua_lib/lua_lib.vcxproj
+7 −1 VisualStudio/lua_lib/lua_lib.vcxproj.filters
+1 −1 VisualStudio/unit_test/unit_test.vcxproj
+1 −22 appveyor.yml
+1 −1 build
+3 −3 build.cmd
+5 −4 cmake/AddCCompilerFlag.cmake
+4 −4 cmake/AddCXXCompilerFlag.cmake
+11 −1 cmake/FindWinSock.cmake
+0 −31 cmake/check/c82fe8888aacfe784476112edd3878256d2e30bc.patch
+0 −27 cmake/check/check_run.patch
+0 −12 cmake/check/patch.cmake
+7 −0 cmake/civetweb-config.cmake.in
+12 −0 cmake/civetweb-cpp.pc.in
+13 −0 cmake/civetweb.pc.in
+0 −82 conan/build.py
+0 −11 conan/test_package/CMakeLists.txt
+0 −19 conan/test_package/conanfile.py
+0 −102 conan/test_package/test_package.cpp
+0 −14 conan/travis/build.sh
+0 −22 conan/travis/install.sh
+0 −89 conanfile.py
+3 −1 docs/Building.md
+1 −1 docs/Contribution.md
+10 −3 docs/Embedding.md
+1 −1 docs/Installing.md
+1 −1 docs/README.md
+33 −12 docs/UserManual.md
+36 −0 docs/api/mg_base64_X.md
+23 −36 docs/api/mg_callbacks.md
+1 −1 docs/api/mg_check_feature.md
+13 −2 docs/api/mg_error_data.md
+2 −1 docs/api/mg_exit_library.md
+1 −1 docs/api/mg_get_user_connection_data.md
+19 −13 docs/api/mg_init_library.md
+63 −0 docs/api/mg_match.md
+1 −1 docs/api/mg_md5.md
+1 −1 docs/api/mg_modify_passwords_file.md
+9 −0 docs/api/mg_set_auth_handler.md
+1 −1 docs/yaSSL.md
+5 −0 examples/README.md
+32 −0 examples/client/Makefile
+116 −0 examples/client/client.c
+10 −0 examples/embed_certificate/build.sh
+368 −0 examples/embed_certificate/ec_example.c
+2 −3 examples/embedded_c/embedded_c.c
+24 −0 examples/linux_ws_server_cpp/CMakeLists.txt
+17 −0 examples/linux_ws_server_cpp/README.md
+150 −0 examples/linux_ws_server_cpp/main.cc
+6 −6 examples/rest/Makefile
+3 −3 examples/rest/cJSON/cJSON.c
+2 −2 examples/rest/cJSON/cJSON.h
+99 −65 examples/rest/rest.c
+4 −0 examples/ws_server/build.sh
+192 −0 examples/ws_server/ws_server.c
+6 −1 format.bat
+7 −7 include/CivetServer.h
+129 −8 include/civetweb.h
+1 −1 resources/Makefile.in-duktape
+13 −2 resources/Makefile.in-lua
+9 −5 resources/cert/make_certs.sh
+1 −1 resources/check_defines.lua
+2 −1 resources/coverity_check.sh
+39 −10 src/CivetServer.cpp
+1,839 −795 src/civetweb.c
+1 −1 src/handle_form.inl
+52 −20 src/http2.inl
+70 −180 src/main.c
+262 −0 src/match.inl
+2 −1 src/md5.inl
+59 −29 src/mod_lua.inl
+19 −1 src/mod_mbedtls.inl
+1 −1 src/mod_zlib.inl
+22 −6 src/response.inl
+48 −0 src/sort.inl
+427 −0 src/third_party/lua_struct.c
+1 −0 test/access/.htpasswd
+16 −0 test/flush.php
+1 −1 test/lua_backbround_script_logging.lua
+1 −1 test/page.lp
+1 −1 test/page.lua
+2 −0 test/page2.lua
+7 −20 unittest/CMakeLists.txt
+1 −3 unittest/civetweb_check.h
+0 −3 unittest/main.c
+399 −84 unittest/private.c
+95 −1 unittest/public_func.c
+49 −157 unittest/public_server.c
2 changes: 1 addition & 1 deletion builder/third_party/jsoncpp
Submodule jsoncpp updated 234 files
2 changes: 1 addition & 1 deletion builder/third_party/libbpf
Submodule libbpf updated 4 files
+1 −1 src/Makefile
+2 −1 src/btf.c
+120 −93 src/libbpf.c
+4 −0 src/linker.c
2 changes: 1 addition & 1 deletion builder/third_party/prometheus-cpp
Submodule prometheus-cpp updated 92 files
+2 −0 .bazelrc
+1 −0 .clang-format
+4 −0 .github/renovate.json5
+15 −10 .github/workflows/bazel-ci.yml
+4 −4 .github/workflows/cmake-ci.yml
+1 −1 .github/workflows/coverage.yml
+3 −8 .github/workflows/linting.yml
+1 −1 3rdparty/civetweb
+3 −2 CMakeLists.txt
+19 −0 MODULE.bazel
+1,851 −0 MODULE.bazel.lock
+4 −6 README.md
+2 −0 WORKSPACE.bzlmod
+42 −21 bazel/civetweb.BUILD
+7 −19 bazel/curl.BUILD
+5 −24 bazel/curl.bzl
+47 −23 bazel/repositories.bzl
+7 −1 bazel/zlib.BUILD
+1 −0 cmake/googletest.imp
+1 −3 cmake/project-import-cmake/CMakeLists.txt
+1 −1 cmake/project-import-pkgconfig/CMakeLists.txt
+6 −0 core/CMakeLists.txt
+1 −0 core/benchmarks/CMakeLists.txt
+1 −1 core/benchmarks/histogram_bench.cc
+20 −0 core/benchmarks/info_bench.cc
+3 −1 core/include/prometheus/check_names.h
+11 −4 core/include/prometheus/client_metric.h
+3 −0 core/include/prometheus/counter.h
+3 −2 core/include/prometheus/family.h
+2 −2 core/include/prometheus/gauge.h
+13 −4 core/include/prometheus/histogram.h
+68 −0 core/include/prometheus/info.h
+3 −0 core/include/prometheus/labels.h
+1 −0 core/include/prometheus/metric_type.h
+3 −1 core/include/prometheus/registry.h
+11 −6 core/include/prometheus/summary.h
+7 −1 core/src/check_names.cc
+2 −0 core/src/counter.cc
+3 −0 core/src/detail/builder.cc
+5 −16 core/src/detail/hash.h
+5 −4 core/src/family.cc
+6 −1 core/src/gauge.cc
+17 −1 core/src/histogram.cc
+11 −0 core/src/info.cc
+32 −19 core/src/registry.cc
+1 −1 core/src/serializer.cc
+5 −2 core/src/summary.cc
+15 −0 core/src/text_serializer.cc
+2 −1 core/tests/CMakeLists.txt
+10 −1 core/tests/builder_test.cc
+53 −0 core/tests/check_label_name_test.cc
+25 −0 core/tests/check_metric_name_test.cc
+0 −34 core/tests/check_names_test.cc
+10 −0 core/tests/counter_test.cc
+28 −2 core/tests/family_test.cc
+20 −0 core/tests/histogram_test.cc
+2 −2 core/tests/raii_locale.h
+16 −0 core/tests/registry_test.cc
+9 −0 core/tests/text_serializer_test.cc
+1 −1 core/tests/utils_test.cc
+2 −1 pull/BUILD.bazel
+6 −2 pull/CMakeLists.txt
+1 −2 pull/include/prometheus/exposer.h
+1 −1 pull/src/basic_auth.cc
+1 −11 pull/src/endpoint.cc
+6 −0 pull/src/handler.cc
+0 −1 pull/tests/CMakeLists.txt
+104 −48 pull/tests/integration/integration_test.cc
+7 −1 pull/tests/integration/sample_server.cc
+0 −14 pull/tests/internal/CMakeLists.txt
+0 −49 pull/tests/internal/base64_test.cc
+14 −0 push/BUILD.bazel
+16 −2 push/CMakeLists.txt
+10 −1 push/include/prometheus/gateway.h
+21 −6 push/src/detail/curl_wrapper.cc
+3 −1 push/src/detail/curl_wrapper.h
+42 −0 push/src/detail/label_encoder.cc
+14 −0 push/src/detail/label_encoder.h
+21 −11 push/src/gateway.cc
+1 −0 push/tests/CMakeLists.txt
+1 −0 push/tests/integration/CMakeLists.txt
+3 −0 push/tests/integration/sample_client.cc
+1 −1 push/tests/internal/BUILD.bazel
+14 −0 push/tests/internal/CMakeLists.txt
+43 −0 push/tests/internal/label_encoder_test.cc
+12 −0 util/BUILD.bazel
+25 −0 util/CMakeLists.txt
+54 −3 util/include/prometheus/detail/base64.h
+1 −0 util/tests/CMakeLists.txt
+13 −0 util/tests/unit/BUILD.bazel
+15 −0 util/tests/unit/CMakeLists.txt
+78 −0 util/tests/unit/base64_test.cc
2 changes: 1 addition & 1 deletion builder/third_party/re2
Submodule re2 updated 130 files
1 change: 1 addition & 0 deletions builder/third_party/tbb
Submodule tbb added at 0c0ff1

0 comments on commit c73db4c

Please sign in to comment.