Skip to content

Commit fe36894

Browse files
authored
Skip unstable tests in contrib too. (#106)
1 parent 06cfb1a commit fe36894

11 files changed

+472
-438
lines changed

.github/workflows/OCV-Contrib-PR-4.x-ARM64.yaml

Lines changed: 48 additions & 45 deletions
Large diffs are not rendered by default.

.github/workflows/OCV-Contrib-PR-4.x-U20-Cuda.yaml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ jobs:
5151
timeout-minutes: 60
5252
if: ${{ github.event.repository.name == 'ci-gha-workflow' }}
5353
run: echo "TARGET_BRANCH_NAME=4.x" >> $GITHUB_ENV
54+
- name: Setup test environment
55+
if: ${{ github.event.repository.name != 'ci-gha-workflow' }}
56+
run: echo "EXTRA_GTEST_OPTIONS=--skip_unstable=1" >> $GITHUB_ENV
5457
- name: PR info
5558
timeout-minutes: 60
5659
run: |
@@ -117,57 +120,57 @@ jobs:
117120
# - name: Accuracy:cudaarithm
118121
# timeout-minutes: 60
119122
# if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
120-
# run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudaarithm --test_threads=${{ env.PARALLEL_JOBS }}
123+
# run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudaarithm --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
121124
- name: Accuracy:cudabgsegm
122125
timeout-minutes: 60
123126
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
124-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudabgsegm --test_threads=${{ env.PARALLEL_JOBS }}
127+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudabgsegm --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
125128
- name: Accuracy:cudacodec
126129
timeout-minutes: 60
127130
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
128-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudacodec --test_threads=${{ env.PARALLEL_JOBS }} --gtest_filter=${{ env.GTEST_FILTER_STRING }}
131+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudacodec --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }} --gtest_filter=${{ env.GTEST_FILTER_STRING }}
129132
env:
130133
GTEST_FILTER_STRING: '-CUDA_Codec/CheckKeyFrame.Reader/8:CUDA_Codec/CheckKeyFrame.Reader/9:CUDA_Codec/Video.Reader/8:CUDA_Codec/Video.Reader/9'
131134
- name: Accuracy:cudafeatures2d
132135
timeout-minutes: 60
133136
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
134-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudafeatures2d --test_threads=${{ env.PARALLEL_JOBS }}
137+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudafeatures2d --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
135138
- name: Accuracy:cudafilters
136139
timeout-minutes: 60
137140
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
138-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudafilters --test_threads=${{ env.PARALLEL_JOBS }}
141+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudafilters --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
139142
- name: Accuracy:cudaimgproc
140143
timeout-minutes: 60
141144
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
142-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudaimgproc --test_threads=${{ env.PARALLEL_JOBS }} --gtest_filter=${{ env.GTEST_FILTER_STRING }}
145+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudaimgproc --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }} --gtest_filter=${{ env.GTEST_FILTER_STRING }}
143146
env:
144147
GTEST_FILTER_STRING: '-CUDA_ImgProc/HoughLinesProbabilistic.Accuracy/1:CUDA_ImgProc/HoughLinesProbabilistic.Accuracy/2:CUDA_ImgProc/HoughLinesProbabilistic.Accuracy/3:CUDA_ImgProc/HoughCircles.Accuracy/0'
145148
- name: Accuracy:cudalegacy
146149
timeout-minutes: 60
147150
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
148-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudalegacy --test_threads=${{ env.PARALLEL_JOBS }}
151+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudalegacy --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
149152
- name: Accuracy:cudaobjdetect
150153
timeout-minutes: 60
151154
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
152-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudaobjdetect --test_threads=${{ env.PARALLEL_JOBS }}
155+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudaobjdetect --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
153156
- name: Accuracy:cudaoptflow
154157
timeout-minutes: 60
155158
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
156-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudaoptflow --test_threads=${{ env.PARALLEL_JOBS }} --gtest_filter=${{ env.GTEST_FILTER_STRING }}
159+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudaoptflow --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }} --gtest_filter=${{ env.GTEST_FILTER_STRING }}
157160
env:
158161
GTEST_FILTER_STRING: '-CUDA_OptFlow/NvidiaOpticalFlow_1_0.Regression/0:CUDA_OptFlow/NvidiaOpticalFlow_1_0.OpticalFlowNan/0:CUDA_OptFlow/NvidiaOpticalFlow_2_0.Regression/0:CUDA_OptFlow/NvidiaOpticalFlow_2_0.OpticalFlowNan/0'
159162
- name: Accuracy:cudastereo
160163
timeout-minutes: 60
161164
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
162-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudastereo --test_threads=${{ env.PARALLEL_JOBS }}
165+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudastereo --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
163166
- name: Accuracy:cudawarping
164167
timeout-minutes: 60
165168
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
166-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudawarping --test_threads=${{ env.PARALLEL_JOBS }}
169+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudawarping --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
167170
- name: Accuracy:cudev
168171
timeout-minutes: 60
169172
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}
170-
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudev --test_threads=${{ env.PARALLEL_JOBS }}
173+
run: cd $HOME/build && xvfb-run -a bin/opencv_test_cudev --test_threads=${{ env.PARALLEL_JOBS }} ${{ env.EXTRA_GTEST_OPTIONS }}
171174
- name: Performance:cudaarithm
172175
timeout-minutes: 60
173176
if: ${{ always() && steps.build-opencv-contrib.outcome == 'success' }}

0 commit comments

Comments
 (0)