From 2a276796d932830acbb843bc308bf86287fc25a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Test=C3=A9?= Date: Thu, 16 May 2024 16:51:56 +0200 Subject: [PATCH] WIP: simple change to test ifs refacto --- .github/workflows/aws_tfhe_tests.yml | 39 ++++++++++++++-------------- tfhe/src/boolean/mod.rs | 2 +- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/.github/workflows/aws_tfhe_tests.yml b/.github/workflows/aws_tfhe_tests.yml index 0f669c6326..70b775ee89 100644 --- a/.github/workflows/aws_tfhe_tests.yml +++ b/.github/workflows/aws_tfhe_tests.yml @@ -109,7 +109,7 @@ jobs: cpu-tests: name: CPU tests - if: ((always() && github.event_name != 'pull_request') || + if: ((!cancelled() && github.event_name != 'pull_request') || (github.event_name == 'pull_request' && needs.setup-instance.result != 'skipped')) needs: [ file-change, setup-instance ] concurrency: @@ -129,27 +129,26 @@ jobs: with: toolchain: stable - - name: Run concrete-csprng tests - if: needs.file-change.outputs.csprng_test == 'true' || - needs.file-change.result == 'skipped' - run: | - make test_concrete_csprng - - - name: Run tfhe-zk-pok tests - if: needs.file-change.outputs.zk_pok_test == 'true' || - needs.file-change.result == 'skipped' - run: | - make test_zk_pok - - - name: Run core tests - if: needs.file-change.outputs.core_crypto_test == 'true' || - needs.file-change.result == 'skipped' - run: | - AVX512_SUPPORT=ON make test_core_crypto +# - name: Run concrete-csprng tests +# if: needs.file-change.outputs.csprng_test == 'true' || +# needs.file-change.result == 'skipped' +# run: | +# make test_concrete_csprng +# +# - name: Run tfhe-zk-pok tests +# if: needs.file-change.outputs.zk_pok_test == 'true' || +# needs.file-change.result == 'skipped' +# run: | +# make test_zk_pok +# +# - name: Run core tests +# if: needs.file-change.outputs.core_crypto_test == 'true' || +# needs.file-change.result == 'skipped' +# run: | +# AVX512_SUPPORT=ON make test_core_crypto - name: Run boolean tests - if: needs.file-change.outputs.boolean_test == 'true' || - needs.file-change.result == 'skipped' + if: needs.file-change.outputs.boolean_test == 'true' run: | make test_boolean diff --git a/tfhe/src/boolean/mod.rs b/tfhe/src/boolean/mod.rs index 69812fe88b..b801f1f597 100644 --- a/tfhe/src/boolean/mod.rs +++ b/tfhe/src/boolean/mod.rs @@ -98,7 +98,7 @@ pub(crate) fn random_integer() -> u32 { // generate a random u32 rng.gen::() } - +// Simple change to test triggering /// Generate a couple of client and server keys with the default cryptographic parameters: /// `DEFAULT_PARAMETERS`. /// The client is the one generating both keys.