Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/OCV-PR-5.x-ARM64-Debug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,25 @@ env:
PARALLEL_JOBS: 16

jobs:
# --- priority gate: hold this platform's run until the scheduler releases it ---
priority-gate:
runs-on: ${{ vars.PRIORITY_GATE_RUNNER || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
with:
repository: opencv/ci-gha-workflow
ref: ${{ github.job_workflow_sha || github.sha }}
- name: Wait for priority release
uses: ./priority-gate
with:
platform: "Ubuntu2404-ARM64-Debug"
pool: "opencv-cn-lin-arm64"
max-concurrent: "2" # opencv-cn-lin-arm64: 4 runners / 2 jobs
store-repo: opencv/ci-gha-workflow
token: ${{ secrets.CI_PRIORITY_PAT || github.token }}

BuildAndTest:
needs: priority-gate
runs-on: opencv-cn-lin-arm64
defaults:
run:
Expand Down Expand Up @@ -207,6 +225,7 @@ jobs:
path: /home/ci/build/java_test/testResults/junit-noframes.html

BuildContrib:
needs: priority-gate
runs-on: opencv-cn-lin-arm64
defaults:
run:
Expand Down Expand Up @@ -274,3 +293,31 @@ jobs:
- name: Warnings check
timeout-minutes: 60
run: cd $HOME/build && python3 $HOME/scripts/warnings-handling.py

# --- release this platform's priority slot for the next waiting run ---
release-priority-slot:
needs: [BuildAndTest, BuildContrib]
if: ${{ always() }}
runs-on: ${{ vars.PRIORITY_GATE_RUNNER || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
with:
repository: opencv/ci-gha-workflow
ref: ${{ github.job_workflow_sha || github.sha }}
- name: Release priority slot
env:
INPUT_TOKEN: ${{ secrets.CI_PRIORITY_PAT }}
FALLBACK_TOKEN: ${{ github.token }}
CI_PRIORITY_REPO: opencv/ci-gha-workflow
run: |
export GITHUB_TOKEN="${INPUT_TOKEN:-${CI_PRIORITY_TOKEN:-$FALLBACK_TOKEN}}"
concl=success
for r in "${{ needs.BuildAndTest.result }}" "${{ needs.BuildContrib.result }}"; do
case "$r" in
failure) concl=failure ;;
cancelled) [ "$concl" = failure ] || concl=cancelled ;;
esac
done
python3 -m ci_priority.scheduler.gate release \
--run-id "${{ github.run_id }}" --platform "Ubuntu2404-ARM64-Debug" --pool "opencv-cn-lin-arm64" \
--branch "${{ github.head_ref }}" --conclusion "$concl"
47 changes: 47 additions & 0 deletions .github/workflows/OCV-PR-5.x-ARM64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,25 @@ env:
PARALLEL_JOBS: 16

jobs:
# --- priority gate: hold this platform's run until the scheduler releases it ---
priority-gate:
runs-on: ${{ vars.PRIORITY_GATE_RUNNER || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
with:
repository: opencv/ci-gha-workflow
ref: ${{ github.job_workflow_sha || github.sha }}
- name: Wait for priority release
uses: ./priority-gate
with:
platform: "Ubuntu2404-ARM64"
pool: "opencv-cn-lin-arm64"
max-concurrent: "2" # opencv-cn-lin-arm64: 4 runners / 2 jobs
store-repo: opencv/ci-gha-workflow
token: ${{ secrets.CI_PRIORITY_PAT || github.token }}

BuildAndTest:
needs: priority-gate
runs-on: opencv-cn-lin-arm64
defaults:
run:
Expand Down Expand Up @@ -273,6 +291,7 @@ jobs:
path: /home/ci/build/java_test/testResults/junit-noframes.html

BuildContrib:
needs: priority-gate
runs-on: opencv-cn-lin-arm64
defaults:
run:
Expand Down Expand Up @@ -340,3 +359,31 @@ jobs:
- name: Warnings check
timeout-minutes: 60
run: cd $HOME/build && python3 $HOME/scripts/warnings-handling.py

# --- release this platform's priority slot for the next waiting run ---
release-priority-slot:
needs: [BuildAndTest, BuildContrib]
if: ${{ always() }}
runs-on: ${{ vars.PRIORITY_GATE_RUNNER || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
with:
repository: opencv/ci-gha-workflow
ref: ${{ github.job_workflow_sha || github.sha }}
- name: Release priority slot
env:
INPUT_TOKEN: ${{ secrets.CI_PRIORITY_PAT }}
FALLBACK_TOKEN: ${{ github.token }}
CI_PRIORITY_REPO: opencv/ci-gha-workflow
run: |
export GITHUB_TOKEN="${INPUT_TOKEN:-${CI_PRIORITY_TOKEN:-$FALLBACK_TOKEN}}"
concl=success
for r in "${{ needs.BuildAndTest.result }}" "${{ needs.BuildContrib.result }}"; do
case "$r" in
failure) concl=failure ;;
cancelled) [ "$concl" = failure ] || concl=cancelled ;;
esac
done
python3 -m ci_priority.scheduler.gate release \
--run-id "${{ github.run_id }}" --platform "Ubuntu2404-ARM64" --pool "opencv-cn-lin-arm64" \
--branch "${{ github.head_ref }}" --conclusion "$concl"
46 changes: 46 additions & 0 deletions .github/workflows/OCV-PR-5.x-Android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,25 @@ env:
OPENCV_GRADLE_VERBOSE_OPTIONS: '--offline -i'

jobs:
# --- priority gate: hold this platform's run until the scheduler releases it ---
priority-gate:
runs-on: ${{ vars.PRIORITY_GATE_RUNNER || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
with:
repository: opencv/ci-gha-workflow
ref: ${{ github.job_workflow_sha || github.sha }}
- name: Wait for priority release
uses: ./priority-gate
with:
platform: "Android"
pool: "opencv-cn-lin-x86-64-android"
max-concurrent: "1" # opencv-cn-lin-x86-64-android: 1 runner
store-repo: opencv/ci-gha-workflow
token: ${{ secrets.CI_PRIORITY_PAT || github.token }}

BuildAndTestSDK:
needs: priority-gate
runs-on: opencv-cn-lin-x86-64-android
defaults:
run:
Expand Down Expand Up @@ -127,3 +145,31 @@ jobs:
path: |
/home/ci/build/OpenCV4Android.zip
/home/ci/build/outputs/python-maven-repo.zip

# --- release this platform's priority slot for the next waiting run ---
release-priority-slot:
needs: [BuildAndTestSDK]
if: ${{ always() }}
runs-on: ${{ vars.PRIORITY_GATE_RUNNER || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
with:
repository: opencv/ci-gha-workflow
ref: ${{ github.job_workflow_sha || github.sha }}
- name: Release priority slot
env:
INPUT_TOKEN: ${{ secrets.CI_PRIORITY_PAT }}
FALLBACK_TOKEN: ${{ github.token }}
CI_PRIORITY_REPO: opencv/ci-gha-workflow
run: |
export GITHUB_TOKEN="${INPUT_TOKEN:-${CI_PRIORITY_TOKEN:-$FALLBACK_TOKEN}}"
concl=success
for r in "${{ needs.BuildAndTestSDK.result }}"; do
case "$r" in
failure) concl=failure ;;
cancelled) [ "$concl" = failure ] || concl=cancelled ;;
esac
done
python3 -m ci_priority.scheduler.gate release \
--run-id "${{ github.run_id }}" --platform "Android" --pool "opencv-cn-lin-x86-64-android" \
--branch "${{ github.head_ref }}" --conclusion "$concl"
47 changes: 47 additions & 0 deletions .github/workflows/OCV-PR-5.x-RISCV.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,25 @@ env:
GIT_COMMITTER_EMAIL: 'noemail'

jobs:
# --- priority gate: hold this platform's run until the scheduler releases it ---
priority-gate:
runs-on: ${{ vars.PRIORITY_GATE_RUNNER || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
with:
repository: opencv/ci-gha-workflow
ref: ${{ github.job_workflow_sha || github.sha }}
- name: Wait for priority release
uses: ./priority-gate
with:
platform: "Linux-RISC-V-Clang"
pool: "opencv-ru-lin-riscv"
max-concurrent: "1" # opencv-ru-lin-riscv: 3 runners / 2 jobs
store-repo: opencv/ci-gha-workflow
token: ${{ secrets.CI_PRIORITY_PAT || github.token }}

BuildAndTest:
needs: priority-gate
runs-on: opencv-ru-lin-riscv
defaults:
run:
Expand Down Expand Up @@ -146,6 +164,7 @@ jobs:
--gtest_filter=*

BuildContrib:
needs: priority-gate
runs-on: opencv-ru-lin-riscv
defaults:
run:
Expand Down Expand Up @@ -230,3 +249,31 @@ jobs:
- name: Warnings check
timeout-minutes: 60
run: cd $HOME/build && python3 $HOME/scripts/warnings-handling.py

# --- release this platform's priority slot for the next waiting run ---
release-priority-slot:
needs: [BuildAndTest, BuildContrib]
if: ${{ always() }}
runs-on: ${{ vars.PRIORITY_GATE_RUNNER || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
with:
repository: opencv/ci-gha-workflow
ref: ${{ github.job_workflow_sha || github.sha }}
- name: Release priority slot
env:
INPUT_TOKEN: ${{ secrets.CI_PRIORITY_PAT }}
FALLBACK_TOKEN: ${{ github.token }}
CI_PRIORITY_REPO: opencv/ci-gha-workflow
run: |
export GITHUB_TOKEN="${INPUT_TOKEN:-${CI_PRIORITY_TOKEN:-$FALLBACK_TOKEN}}"
concl=success
for r in "${{ needs.BuildAndTest.result }}" "${{ needs.BuildContrib.result }}"; do
case "$r" in
failure) concl=failure ;;
cancelled) [ "$concl" = failure ] || concl=cancelled ;;
esac
done
python3 -m ci_priority.scheduler.gate release \
--run-id "${{ github.run_id }}" --platform "Linux-RISC-V-Clang" --pool "opencv-ru-lin-riscv" \
--branch "${{ github.head_ref }}" --conclusion "$concl"
46 changes: 46 additions & 0 deletions .github/workflows/OCV-PR-5.x-U20-Cuda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,25 @@ env:
GTEST_FILTER_STRING: '-Test_Model.TextRecognition/0:Test_Model.TextRecognition/1:Test_Model.TextRecognitionWithCTCPrefixBeamSearch/0:Test_Model.TextRecognitionWithCTCPrefixBeamSearch/1:Test_ONNX_layers.LSTM_Activations/0:Test_ONNX_nets.Resnet34_kinetics/1:Test_TensorFlow_layers.Convolution3D/1:Test_TensorFlow_layers.concat_3d/1'

jobs:
# --- priority gate: hold this platform's run until the scheduler releases it ---
priority-gate:
runs-on: ${{ vars.PRIORITY_GATE_RUNNER || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
with:
repository: opencv/ci-gha-workflow
ref: ${{ github.job_workflow_sha || github.sha }}
- name: Wait for priority release
uses: ./priority-gate
with:
platform: "Ubuntu2004-x64-CUDA"
pool: "opencv-linux-cuda"
max-concurrent: "3" # opencv-linux-cuda: 3 GPU runners / 1 job (subset of lin-x86-64)
store-repo: opencv/ci-gha-workflow
token: ${{ secrets.CI_PRIORITY_PAT || github.token }}

BuildAndTest:
needs: priority-gate
runs-on: opencv-linux-cuda
defaults:
run:
Expand Down Expand Up @@ -167,3 +185,31 @@ jobs:
timeout-minutes: 60
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
run: python3 ${{ env.OPENCV_DOCKER_WORKDIR }}/modules/python/test/test_cuda.py --repo ${{ env.OPENCV_DOCKER_WORKDIR }} -v

# --- release this platform's priority slot for the next waiting run ---
release-priority-slot:
needs: [BuildAndTest]
if: ${{ always() }}
runs-on: ${{ vars.PRIORITY_GATE_RUNNER || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
with:
repository: opencv/ci-gha-workflow
ref: ${{ github.job_workflow_sha || github.sha }}
- name: Release priority slot
env:
INPUT_TOKEN: ${{ secrets.CI_PRIORITY_PAT }}
FALLBACK_TOKEN: ${{ github.token }}
CI_PRIORITY_REPO: opencv/ci-gha-workflow
run: |
export GITHUB_TOKEN="${INPUT_TOKEN:-${CI_PRIORITY_TOKEN:-$FALLBACK_TOKEN}}"
concl=success
for r in "${{ needs.BuildAndTest.result }}"; do
case "$r" in
failure) concl=failure ;;
cancelled) [ "$concl" = failure ] || concl=cancelled ;;
esac
done
python3 -m ci_priority.scheduler.gate release \
--run-id "${{ github.run_id }}" --platform "Ubuntu2004-x64-CUDA" --pool "opencv-linux-cuda" \
--branch "${{ github.head_ref }}" --conclusion "$concl"
46 changes: 46 additions & 0 deletions .github/workflows/OCV-PR-5.x-U20-OpenVINO.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,25 @@ env:
PARALLEL_JOBS: 8

jobs:
# --- priority gate: hold this platform's run until the scheduler releases it ---
priority-gate:
runs-on: ${{ vars.PRIORITY_GATE_RUNNER || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
with:
repository: opencv/ci-gha-workflow
ref: ${{ github.job_workflow_sha || github.sha }}
- name: Wait for priority release
uses: ./priority-gate
with:
platform: "Ubuntu2004-x64-OpenVINO"
pool: "opencv-cn-lin-x86-64"
max-concurrent: "4" # opencv-cn-lin-x86-64: 4 runners / 1 job
store-repo: opencv/ci-gha-workflow
token: ${{ secrets.CI_PRIORITY_PAT || github.token }}

BuildAndTest:
needs: priority-gate
runs-on: opencv-cn-lin-x86-64
defaults:
run:
Expand Down Expand Up @@ -138,3 +156,31 @@ jobs:
run: |
cd $HOME/build
python3 $HOME/opencv/modules/python/test/test.py --repo $HOME/opencv -v

# --- release this platform's priority slot for the next waiting run ---
release-priority-slot:
needs: [BuildAndTest]
if: ${{ always() }}
runs-on: ${{ vars.PRIORITY_GATE_RUNNER || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
with:
repository: opencv/ci-gha-workflow
ref: ${{ github.job_workflow_sha || github.sha }}
- name: Release priority slot
env:
INPUT_TOKEN: ${{ secrets.CI_PRIORITY_PAT }}
FALLBACK_TOKEN: ${{ github.token }}
CI_PRIORITY_REPO: opencv/ci-gha-workflow
run: |
export GITHUB_TOKEN="${INPUT_TOKEN:-${CI_PRIORITY_TOKEN:-$FALLBACK_TOKEN}}"
concl=success
for r in "${{ needs.BuildAndTest.result }}"; do
case "$r" in
failure) concl=failure ;;
cancelled) [ "$concl" = failure ] || concl=cancelled ;;
esac
done
python3 -m ci_priority.scheduler.gate release \
--run-id "${{ github.run_id }}" --platform "Ubuntu2004-x64-OpenVINO" --pool "opencv-cn-lin-x86-64" \
--branch "${{ github.head_ref }}" --conclusion "$concl"
Loading