From 2ff87b6364bc3de25b3c311f62c68aa21ffc8a55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=C5=9Alizak?= Date: Wed, 16 Feb 2022 12:27:31 +0100 Subject: [PATCH] Run all product tests if product tests changed --- .github/workflows/ci.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0afcaa8fc051..63b38e65cea2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -662,6 +662,17 @@ jobs: with: distribution: 'zulu' java-version: 11 + - uses: dorny/paths-filter@v2 + id: filter + with: + filters: | + product-tests: + - 'testing/trino-product-tests*/**' + - 'testing/trino-testing-services/**' + # run all tests when there are any changes in the trino-server Maven module + # because it uses Provisio to determine its dependencies + - 'core/trino-server/**' + - '.github/**' - name: Product tests artifact uses: actions/download-artifact@v2 with: @@ -669,7 +680,16 @@ jobs: - name: Fix artifact permissions run: | find . -type f -name \*-executable.jar -exec chmod 0777 {} \; - - name: Product Tests + - name: Product Tests (all) + if: steps.filter.outputs.product-tests == 'true' || contains(github.event.pull_request.labels.*.name, 'tests:all') || contains(github.event.pull_request.labels.*.name, 'tests:all-product') + run: | + testing/bin/ptl suite run \ + --suite ${{ matrix.suite }} \ + --config config-${{ matrix.config }} \ + --bind=off --logs-dir logs/ --timeout 2h \ + --trino-jdk-version zulu_${{ matrix.jdk }} + - name: Product Tests (impacted-features) + if: steps.filter.outputs.product-tests == 'false' && !contains(github.event.pull_request.labels.*.name, 'tests:all') && !contains(github.event.pull_request.labels.*.name, 'tests:all-product') run: | testing/bin/ptl suite run \ --suite ${{ matrix.suite }} \