chore(ci): reduce number of test-threads

Reduce number of test-threads being spawned
to reduce propability if tests getting killed due
to out of memory
This commit is contained in:
tmontaigu
2023-05-16 15:01:53 +00:00
parent 9f6c7e9139
commit c20ca07cd3

View File

@@ -63,13 +63,15 @@ else
'and not test(/.*test_wopbs_bivariate_crt_wopbs_param_message_[34]_carry_[34]$/)'\
'and not test(/.*test_integer_smart_mul_param_message_4_carry_4$/)'
num_cpu_threads="$(${nproc_bin})"
num_threads=$((num_cpu_threads * 2 / 3))
cargo ${1:+"${1}"} nextest run \
--tests \
--release \
--package tfhe \
--profile ci \
--features="${ARCH_FEATURE}",integer,internal-keycache \
--test-threads "$(${nproc_bin})" \
--test-threads $num_threads \
-E "$filter_expression"
cargo ${1:+"${1}"} test \