From f916bd4d53fca643bd6c646e89a8696bc1792554 Mon Sep 17 00:00:00 2001 From: Dmitry Kurtaev Date: Sat, 20 Sep 2025 19:15:07 +0300 Subject: [PATCH 1/3] Run basic CUDA tests on 4.x/5.x PR --- .github/workflows/OCV-PR-4.x-U20-Cuda.yaml | 10 ++++++++++ .github/workflows/OCV-PR-5.x-U20-Cuda.yaml | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/.github/workflows/OCV-PR-4.x-U20-Cuda.yaml b/.github/workflows/OCV-PR-4.x-U20-Cuda.yaml index 150da799..7ab17f44 100644 --- a/.github/workflows/OCV-PR-4.x-U20-Cuda.yaml +++ b/.github/workflows/OCV-PR-4.x-U20-Cuda.yaml @@ -136,6 +136,16 @@ jobs: run: | cd $HOME/build ninja -j ${{ env.PARALLEL_JOBS }} | tee $HOME/build/build-log.txt + - name: Accuracy:cudev + timeout-minutes: 60 + if: ${{ always() && steps.build-opencv.outcome == 'success' }} + run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudev --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }} + - name: Accuracy:core + timeout-minutes: 60 + if: ${{ always() && steps.build-opencv.outcome == 'success' }} + run: cd $HOME/build && xvfb-run -a bin/opencv_test_core --test_threads=${{ env.PARALLEL_JOBS }} --gtest_filter=${{ env.GTEST_FILTER_STRING }} ${{ env.EXTRA_GTEST_OPTIONS }} + env: + GTEST_FILTER_STRING: '*GPU*:*Gpu*:*CUDA*' - name: Accuracy:dnn timeout-minutes: 60 if: ${{ always() && steps.build-opencv.outcome == 'success' }} diff --git a/.github/workflows/OCV-PR-5.x-U20-Cuda.yaml b/.github/workflows/OCV-PR-5.x-U20-Cuda.yaml index ceb6f391..038a8e70 100644 --- a/.github/workflows/OCV-PR-5.x-U20-Cuda.yaml +++ b/.github/workflows/OCV-PR-5.x-U20-Cuda.yaml @@ -137,6 +137,16 @@ jobs: run: | cd $HOME/build ninja -j ${{ env.PARALLEL_JOBS }} | tee $HOME/build/build-log.txt + - name: Accuracy:cudev + timeout-minutes: 60 + if: ${{ always() && steps.build-opencv.outcome == 'success' }} + run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudev --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }} + - name: Accuracy:core + timeout-minutes: 60 + if: ${{ always() && steps.build-opencv.outcome == 'success' }} + run: cd $HOME/build && xvfb-run -a bin/opencv_test_core --test_threads=${{ env.PARALLEL_JOBS }} --gtest_filter=${{ env.GTEST_FILTER_STRING }} ${{ env.EXTRA_GTEST_OPTIONS }} + env: + GTEST_FILTER_STRING: '*GPU*:*Gpu*:*CUDA*' - name: Accuracy:DNN_AUTO timeout-minutes: 60 if: ${{ always() && steps.build-opencv.outcome == 'success' }} From 3fd1580981fdb6f02211860e4fa995e1182317c5 Mon Sep 17 00:00:00 2001 From: Dmitry Kurtaev Date: Sat, 20 Sep 2025 21:08:24 +0300 Subject: [PATCH 2/3] Skip WarpPerspective.Rotation --- .github/workflows/OCV-PR-4.x-U20-Cuda.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/OCV-PR-4.x-U20-Cuda.yaml b/.github/workflows/OCV-PR-4.x-U20-Cuda.yaml index 7ab17f44..74c1e4f8 100644 --- a/.github/workflows/OCV-PR-4.x-U20-Cuda.yaml +++ b/.github/workflows/OCV-PR-4.x-U20-Cuda.yaml @@ -139,7 +139,9 @@ jobs: - name: Accuracy:cudev timeout-minutes: 60 if: ${{ always() && steps.build-opencv.outcome == 'success' }} - run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudev --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }} + run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudev --test_threads=${{ env.PARALLEL_JOBS }} --gtest_filter=${{ env.GTEST_FILTER_STRING }} ${{ env.EXTRA_GTEST_OPTIONS }} + env: + GTEST_FILTER_STRING: '-WarpPerspective.Rotation' - name: Accuracy:core timeout-minutes: 60 if: ${{ always() && steps.build-opencv.outcome == 'success' }} From 7525a4ff76ab20ecc9f9ea09afa60b0e058f0c09 Mon Sep 17 00:00:00 2001 From: Dmitry Kurtaev Date: Mon, 22 Sep 2025 21:50:12 +0300 Subject: [PATCH 3/3] revert test skip --- .github/workflows/OCV-PR-4.x-U20-Cuda.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/OCV-PR-4.x-U20-Cuda.yaml b/.github/workflows/OCV-PR-4.x-U20-Cuda.yaml index 74c1e4f8..7ab17f44 100644 --- a/.github/workflows/OCV-PR-4.x-U20-Cuda.yaml +++ b/.github/workflows/OCV-PR-4.x-U20-Cuda.yaml @@ -139,9 +139,7 @@ jobs: - name: Accuracy:cudev timeout-minutes: 60 if: ${{ always() && steps.build-opencv.outcome == 'success' }} - run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudev --test_threads=${{ env.PARALLEL_JOBS }} --gtest_filter=${{ env.GTEST_FILTER_STRING }} ${{ env.EXTRA_GTEST_OPTIONS }} - env: - GTEST_FILTER_STRING: '-WarpPerspective.Rotation' + run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudev --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }} - name: Accuracy:core timeout-minutes: 60 if: ${{ always() && steps.build-opencv.outcome == 'success' }}