deps: Bump com_github_zlib_ng_zlib_ng -> 2.0.5#18474
Merged
phlax merged 3 commits intoenvoyproxy:mainfrom Oct 8, 2021
Merged
Conversation
Signed-off-by: Ryan Northey <ryan@synca.io>
com_github_zlib_ng_zlib_ng -> 2.0.5com_github_zlib_ng_zlib_ng -> 2.0.5
Contributor
|
I'm trying to recall why but in order for this update to work you'll need to change the patch bazel/foreign_cc/zlib_ng.patch | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/bazel/foreign_cc/zlib_ng.patch b/bazel/foreign_cc/zlib_ng.patch
index 77b04ef09..a5843014f 100644
--- a/bazel/foreign_cc/zlib_ng.patch
+++ b/bazel/foreign_cc/zlib_ng.patch
@@ -1,13 +1,14 @@
+
# Add support for compiling to WebAssembly using Emscripten.
# https://github.com/zlib-ng/zlib-ng/pull/794
diff --git a/cmake/detect-arch.c b/cmake/detect-arch.c
-index 5715535..2137691 100644
+
--- a/cmake/detect-arch.c
+++ b/cmake/detect-arch.c
-@@ -93,6 +93,10 @@
- #elif defined(__THW_RS6000)
- #error archfound rs6000
-
+@@ -101,6 +101,10 @@
+ #error archfound riscv32
+ #endif
+
+// Emscripten (WebAssembly)
+#elif defined(__EMSCRIPTEN__)
+ #error archfound wasm32
@@ -16,16 +17,16 @@ index 5715535..2137691 100644
#else
#error archfound unrecognized
diff --git a/cmake/detect-arch.cmake b/cmake/detect-arch.cmake
-index b80d666..c6cc214 100644
+
--- a/cmake/detect-arch.cmake
+++ b/cmake/detect-arch.cmake
-@@ -85,6 +85,9 @@ elseif("${ARCH}" MATCHES "parisc")
+@@ -85,6 +85,9 @@
elseif("${ARCH}" MATCHES "rs6000")
set(BASEARCH "rs6000")
set(BASEARCH_RS6000_FOUND TRUE)
+elseif("${ARCH}" MATCHES "wasm32")
+ set(BASEARCH "wasm32")
+ set(BASEARCH_WASM32_FOUND TRUE)
- else()
- set(BASEARCH "x86")
- set(BASEARCH_X86_FOUND TRUE)
+ elseif("${ARCH}" MATCHES "riscv(32|64)")
+ set(BASEARCH "riscv")
+ set(BASEARCH_RISCV_FOUND TRUE) |
Member
Author
|
thanks ill update on the next go-round i marked any that failed as WIP, some fail due to patch issues, but some i think because they need to be updated concurrently |
Member
Author
|
i must have been looking at the wrong ci run, seems to be going through... |
com_github_zlib_ng_zlib_ng -> 2.0.5com_github_zlib_ng_zlib_ng -> 2.0.5
Member
Author
|
...and it fails the wasm un/compress tests in compile_time_options compress 2000 -> 23
unknown file: Failure
Unexpected mock function call - returning directly.
Function call: log_(0, "compress 2000 -> 23")
Google Mock tried the following 2 expectations, but none matched:
external/envoy/test/extensions/common/wasm/wasm_test.cc:573: tried expectation #0: EXPECT_CALL(*root_context, log_(spdlog::level::trace, Eq("compress 2000 -> 22")))...
Expected arg #1: is equal to 0x2d13e5 pointing to "compress 2000 -> 22"
Actual: "compress 2000 -> 23"
Expected: to be called once
Actual: never called - unsatisfied and active
external/envoy/test/extensions/common/wasm/wasm_test.cc:574: tried expectation #1: EXPECT_CALL(*root_context, log_(spdlog::level::debug, Eq("uncompress 22 -> 2000")))...
Expected arg #0: is equal to 1
Actual: 0
Expected arg #1: is equal to 0x38fa16 pointing to "uncompress 22 -> 2000"
Actual: "compress 2000 -> 23"
Expected: to be called once
Actual: never called - unsatisfied and active
Stack trace:
0x8574a24: testing::internal::GoogleTestFailureReporter::ReportFailure()
0x3211250: testing::internal::Expect()
0x8576fe9: testing::internal::UntypedFunctionMockerBase::UntypedInvokeWith()::$_1::operator()()
0x8576c3a: testing::internal::UntypedFunctionMockerBase::UntypedInvokeWith()
0x31a5952: testing::internal::FunctionMocker<>::Invoke()
0x31a585d: Envoy::Extensions::Common::Wasm::TestContext::log_()
0x319c771: Envoy::Extensions::Common::Wasm::TestContext::log()
0x61a2013: proxy_wasm::exports::log()
0x61c78cc: proxy_wasm::ConvertFunctionWordToUint32<>::convertFunctionWordToUint32()
0x327d4ee: std::__invoke_impl<>()
0x327d47c: std::__invoke<>()
0x327d3fc: std::__apply_impl<>()
0x327d382: std::apply<>()
0x327d15a: proxy_wasm::wamr::Wamr::registerHostFunctionImpl<>()::{lambda()#1}::operator()()
0x327cee5: proxy_wasm::wamr::Wamr::registerHostFunctionImpl<>()::{lambda()#1}::__invoke()
0x32a5390: wasm_runtime_invoke_c_api_native
0x32d344e: aot_invoke_native
0x40ef902b: (unknown)
uncompress 23 -> 2000
unknown file: Failure
|
Member
It seems the new version of the lib produces exactly the same compression ratio as the old zlib. Try to drop this condition: |
Member
|
/wait |
Signed-off-by: Ryan Northey <ryan@synca.io>
Member
Author
|
thanks, updated, lets see if it goes through... |
Contributor
|
/lgtm deps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Ryan Northey ryan@synca.io
Commit Message: deps: Bump
com_github_zlib_ng_zlib_ng-> 2.0.5Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue] Fix #18333
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]