From 8ad4b5ebd579d31ae8a292a90588d84c11769447 Mon Sep 17 00:00:00 2001 From: Ferran Llamas Date: Wed, 3 Jan 2024 14:41:30 +0100 Subject: [PATCH] send if node modified (#1701) --- .github/workflows/nucliadb_performance.yml | 22 +++++++++++++++++++++- Cargo.lock | 2 +- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nucliadb_performance.yml b/.github/workflows/nucliadb_performance.yml index c6267234e8..581acf935e 100644 --- a/.github/workflows/nucliadb_performance.yml +++ b/.github/workflows/nucliadb_performance.yml @@ -17,13 +17,33 @@ jobs: name: Trigger Internal Performance Tests runs-on: ubuntu-latest steps: + + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Compute if node was modified + uses: dorny/paths-filter@v2 + id: filter + with: + filters: | + node_modified: + - 'nucliadb_core/**' + - 'nucliadb_node/src/**' + - 'nucliadb_paragraphs/**' + - 'nucliadb_procs/**' + - 'nucliadb_relations/**' + - 'nucliadb_relations2/**' + - 'nucliadb_telemetry/**' + - 'nucliadb_texts/**' + - 'nucliadb_vectors/**' + - name: Repository Dispatch uses: peter-evans/repository-dispatch@v2 with: token: ${{ secrets.GH_CICD_PUBLIC }} repository: nuclia/nucliadb_deploy event-type: performance-tests - client-payload: '{"nucliadb_checkout_id": "${{ github.sha }}"}' + client-payload: '{"nucliadb_checkout_id": "${{ github.sha }}", "build_node_bindings": ${{ steps.filter.outputs.node_modified }}}' check-perf-main-nightly: if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' diff --git a/Cargo.lock b/Cargo.lock index cc4cba1df9..35bb0bccfa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1765,7 +1765,7 @@ dependencies = [ [[package]] name = "nucliadb_node_binding" -version = "2.26.0" +version = "2.37.0" dependencies = [ "bincode", "cargo-llvm-cov",