Skip to content

Commit

Permalink
Docs: Log running test stages
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Apr 29, 2024
1 parent 6dc574f commit 48ef5e8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ jobs:
push: false

build_wheels:
name: Build Python ${{ matrix.python-version }} for ${{ matrix.os }}
name: Build Python Wheels
runs-on: ${{ matrix.os }}
needs: [test_ubuntu_gcc, test_ubuntu_clang, test_macos, test_windows]
strategy:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
force: True

create_linux_deb_package:
name: Create Debian Package for ${{ matrix.arch }}
name: Create Debian Package
runs-on: ubuntu-22.04
needs: versioning
env:
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
update_latest_release: true

create_windows_dll_library:
name: Create Dll Library for Windows ${{ matrix.arch }}
name: Create Dll Library for Windows
runs-on: windows-2022
needs: versioning
strategy:
Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:
update_latest_release: true

create_macos_dylib_library:
name: Create Library for MacOS ${{ matrix.arch }}
name: Create Library for MacOS
runs-on: macos-12
needs: versioning
strategy:
Expand Down Expand Up @@ -244,7 +244,7 @@ jobs:
update_latest_release: true

create_wasm_library:
name: WASM builds for C libraries on ${{ matrix.os }}
name: WASM builds for C libraries
runs-on: ${{ matrix.os }}
needs: versioning
strategy:
Expand Down Expand Up @@ -396,7 +396,7 @@ jobs:
* ${{ steps.hashes.outputs.asset_name_15 }} : `${{ steps.hashes.outputs.asset_hash_15 }}`
build_wheels:
name: Build Python ${{ matrix.python-version }} for ${{ matrix.os }}
name: Build Python Wheels
runs-on: ${{ matrix.os }}
needs: versioning
strategy:
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ If there build mode is not specified, the default is `Release`.

```sh
cmake -DUSEARCH_BUILD_TEST_CPP=1 -B ./build_release
cmake --build ./build_release --config Debug
cmake --build ./build_release --config Release
./build_release/test_cpp
```

Expand Down
4 changes: 4 additions & 0 deletions cpp/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -633,13 +633,15 @@ int main(int, char**) {

// Exact search without constructing indexes.
// Great for validating the distance functions.
std::printf("Testing exact search\n");
for (std::size_t dataset_count : {10, 100})
for (std::size_t queries_count : {1, 10})
for (std::size_t wanted_count : {1, 5})
test_exact_search(dataset_count, queries_count, wanted_count);

// Make sure the initializers and the algorithms can work with inadequately small values.
// Be warned - this combinatorial explosion of tests produces close to __500'000__ tests!
std::printf("Testing absurd index configs\n");
for (std::size_t connectivity : {0, 1, 2, 3})
for (std::size_t dimensions : {1, 2, 3}) // TODO: Add zero?
for (std::size_t expansion_add : {0, 1, 2, 3})
Expand All @@ -659,11 +661,13 @@ int main(int, char**) {
}

// Test with binaty vectors
std::printf("Testing binary vectors\n");
for (std::size_t connectivity : {3, 13, 50})
for (std::size_t dimensions : {97, 256})
test_tanimoto<std::int64_t, std::uint32_t>(dimensions, connectivity);

// Beyond dense equi-dimensional vectors - integer sets
std::printf("Testing sparse vectors, strings, and sets\n");
for (std::size_t set_size : {1, 100, 1000})
test_sets<std::int64_t, std::uint32_t>(set_size, 20, 30);
test_strings<std::int64_t, std::uint32_t>();
Expand Down

0 comments on commit 48ef5e8

Please sign in to comment.