mirror of
https://github.com/emqx/neuron.git
synced 2026-10-17 04:40:42 +08:00
kafka:add libzstd & libsasl2
This commit is contained in:
@@ -209,6 +209,20 @@ jobs:
|
||||
name: neuron-build
|
||||
path: ./build
|
||||
|
||||
- name: debug kafka plugin deps
|
||||
run: |
|
||||
echo "=== libs in staging prefix ==="
|
||||
ls -la /home/neuron/main/libs/x86_64-linux-gnu/lib/librdkafka* || echo "no librdkafka"
|
||||
ls -la /home/neuron/main/libs/x86_64-linux-gnu/lib/libzstd* || echo "no libzstd"
|
||||
ls -la /home/neuron/main/libs/x86_64-linux-gnu/lib/libsasl2* || echo "no libsasl2"
|
||||
echo "=== libs in /usr/local/lib ==="
|
||||
ls -la /usr/local/lib/librdkafka* /usr/local/lib/libzstd* /usr/local/lib/libsasl2* 2>/dev/null || echo "none yet"
|
||||
echo "=== ldd librdkafka from staging ==="
|
||||
ldd /home/neuron/main/libs/x86_64-linux-gnu/lib/librdkafka.so.1 || true
|
||||
echo "=== ldd plugin-kafka from build ==="
|
||||
chmod -R +x ./build/ 2>/dev/null || true
|
||||
ldd ./build/plugins/libplugin-kafka.so || true
|
||||
|
||||
- name: function test
|
||||
env:
|
||||
KAFKA_BROKER: kafka:9092
|
||||
@@ -218,6 +232,11 @@ jobs:
|
||||
cmake -DUSE_GCOV=1 .. -DCMAKE_TOOLCHAIN_FILE=../cmake/x86_64-linux-gnu.cmake
|
||||
cd ..
|
||||
ldconfig
|
||||
echo "=== post-ldconfig ldd check ==="
|
||||
ldd ./build/plugins/libplugin-kafka.so || true
|
||||
ldd /usr/local/lib/librdkafka.so.1 || true
|
||||
echo "=== try manual dlopen ==="
|
||||
python3 -c "import ctypes; ctypes.CDLL('./build/plugins/libplugin-kafka.so')" 2>&1 || true
|
||||
pytest -s -v tests/ft/app/test_kafka.py
|
||||
|
||||
- name: create cov report
|
||||
|
||||
Reference in New Issue
Block a user