Skip to content

Commit

Permalink
Test xdist in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
javitonino committed Jul 9, 2024
1 parent d0da060 commit c095a1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ jobs:
max_attempts: 2
retry_on: error
timeout_minutes: 10
command: source .venv/bin/activate && make -C nucliadb test-cov-nucliadb pytest_extra_flags="--shard-id=${{ matrix.shard }} --num-shards=3"
command: source .venv/bin/activate && make -C nucliadb test-cov-nucliadb pytest_extra_flags="--shard-id=${{ matrix.shard }} --num-shards=3 -n 4" || make -C nucliadb test-cov-nucliadb pytest_extra_flags="--shard-id=${{ matrix.shard }} --num-shards=3 --lf"

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
Expand Down
1 change: 1 addition & 0 deletions nucliadb_vectors/src/data_point_provider/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ impl Reader {
} => dimension == query.len(),
};
if !valid_dims {
println!("Inconsistent dimension, stored {:?}, query {}", self.config, query.len());
return Err(VectorErr::InconsistentDimensions);
}

Expand Down

0 comments on commit c095a1f

Please sign in to comment.