RDK-53686 Analytics: Fix SystemTime deadlock #13
This file contains 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
name: L2-PersistentStore | |
on: | |
push: | |
paths: | |
- PersistentStore/** | |
- .github/workflows/*PersistentStore*.yml | |
pull_request: | |
paths: | |
- PersistentStore/** | |
- .github/workflows/*PersistentStore*.yml | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: ${{github.repository}} | |
- name: Install cmake, sqlite | |
run: | | |
sudo apt update | |
sudo apt install -y cmake libsqlite3-dev | |
- name: Build Thunder | |
working-directory: ${{github.workspace}} | |
run: sh +x ${GITHUB_REPOSITORY}/.github/workflows/BuildThunder.sh | |
- name: Build | |
working-directory: ${{github.workspace}} | |
run: | | |
cmake -S ${GITHUB_REPOSITORY}/PersistentStore -B build/PersistentStore -DCMAKE_INSTALL_PREFIX="install" -DCMAKE_CXX_FLAGS="-Wall -Werror" -DPLUGIN_PERSISTENTSTORE_PATH="/tmp/persistentstore/l2test/test" -DPLUGIN_PERSISTENTSTORE_MODE=Local | |
cmake --build build/PersistentStore --target install | |
# Usage: | |
# PATH=${PWD}/install/bin:${PATH} LD_LIBRARY_PATH=${PWD}/install/lib:${LD_LIBRARY_PATH} valgrind --tool=memcheck --log-file=valgrind_log --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try Thunder -f -c ${PWD}/install/etc/Thunder/config.json | |
# (to stop press q & enter) | |
# curl -d '{"jsonrpc":"2.0","id":0,"method":"org.rdk.PersistentStore.setValue","params":{"namespace":"test","key":"key1","value":"1","ttl":100}}' http://localhost:55555/jsonrpc |