Skip to content

Commit

Permalink
Merge pull request #414 from unum-cloud/release-pre-release-correctio…
Browse files Browse the repository at this point in the history
…ns-builds-tests-warnings-docs
  • Loading branch information
ashvardanian authored Aug 8, 2023
2 parents e3b24bd + 2b85a0a commit fec4932
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 13 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:


build_ustore:
name: Build ustore
name: Build UStore
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Prepare CMake, Conan and PyArrow
run: python -m pip install --force-reinstall numpy pyarrow cmake conan==1.60.1

- name: Install ustore dependencies using conan
- name: Install UStore dependencies using conan
run: |
wget -q https://github.com/unum-cloud/ustore-deps/releases/download/v0.1.3/ustore_deps_x86_linux.tar.gz
conan profile new --detect default
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:


test_ustore:
name: Test ustore
name: Test UStore
runs-on: ubuntu-latest
needs: build_ustore
steps:
Expand All @@ -84,8 +84,17 @@ jobs:
- name: Change Permissions
run: chmod +x /home/runner/work/ustore/ustore/*

- name: Run Tests
run: for test in $(ls /home/runner/work/ustore/ustore/*test_units*); do echo -e "------ \e[93mRunning $test\e[0m ------"; timeout -v --kill-after=5 300 $test; done
- name: Run Embeded servers unit tests
run: |
mkdir -p ./tmp/ustore/
export USTORE_TEST_PATH="./tmp/"
for test in $(ls /home/runner/work/ustore/ustore/*test_units_ustore_embedded*); do
echo -e "------ \e[93mRunning $test\e[0m ------"
timeout -v --kill-after=5 300 $test
done
- name: Run flight client test
run: /home/runner/work/ustore/ustore/test_units_ustore_flight_client


build_test_wheel:
Expand Down Expand Up @@ -121,9 +130,11 @@ jobs:
run: python -m pip install --force-reinstall numpy pyarrow cmake conan==1.60.1

- name: Install default jdk
run: sudo apt install default-jdk -y
run: |
sudo apt update
sudo apt install default-jdk -y
- name: Install ustore dependencies using conan
- name: Install UStore dependencies using conan
run: |
wget -q https://github.com/unum-cloud/ustore-deps/releases/download/v0.1.3/ustore_deps_x86_linux.tar.gz
conan profile new --detect default
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ jobs:
- name: Prepare CMake, Conan and PyArrow
run: python -m pip install --force-reinstall numpy pyarrow cmake conan==1.60.1

- name: Install ustore dependencies using conan
- name: Install UStore dependencies using conan
run: |
wget -q https://github.com/unum-cloud/ustore-deps/releases/download/v0.1.3/ustore_deps_x86_linux.tar.gz
conan profile new --detect default
Expand All @@ -140,7 +140,9 @@ jobs:
rm -rf ./ustore_deps_x86_linux.tar.gz
- name: Install default jdk
run: sudo apt install default-jdk -y
run: |
sudo apt update
sudo apt install default-jdk -y
- name: Build and test java
run: |
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ before-build = [
"conan profile update settings.compiler.version=11 default",
"conan profile update settings.compiler.libcxx=libstdc++11 default",

"wget -q https://github.com/unum-cloud/ustore-deps/releases/download/v0.1.3/ustore_deps_x86_linux.tar.gz",
"tar -xzvf {project}/ustore_deps_x86_linux.tar.gz -C ~/.conan",
"conan install ustore_deps/0.12.1@unum/x86_linux -g cmake",
"wget -q https://github.com/unum-cloud/ustore-deps/releases/download/v0.1.4/ustore_deps_x86_linux.tar.gz",
"tar -xzf {project}/ustore_deps_x86_linux.tar.gz -C ~/.conan",
"conan install ustore_deps/0.13.2@unum/x86_linux -g cmake",
"rm -rf {project}/ustore_deps_x86_linux.tar.gz",

"echo \"-DCMAKE_BUILD_TYPE=Release -DPYARROW_DIR=${PYST}/pyarrow/\" > ${CMAKE_ARGS_F}",
Expand Down
3 changes: 2 additions & 1 deletion tests/test_units.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2280,7 +2280,8 @@ int main(int argc, char** argv) {
auto srv_id = fork();
if (srv_id == 0) {
usleep(1); // TODO Any statement is required to be run for successful `execl` run...
execl(srv_path.c_str(), srv_path.c_str(), "--quiet", (char*)(NULL));
std::string cli_args = fmt::format("--quiet --config {}", path());
execl(srv_path.c_str(), srv_path.c_str(), cli_args, (char*)(NULL));
exit(0);
}
usleep(1000000); // 1 sec
Expand Down

0 comments on commit fec4932

Please sign in to comment.