OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[CI] Run C++20 build checks daily instead of in pre-commit (#39540)
Mikhail Ryzhov152520467d03
diff --git a/.github/workflows/ubuntu_22.yml b/.github/workflows/ubuntu_22.ymlindex 8db61626c03..c1b204169ee 100644--- a/.github/workflows/ubuntu_22.yml+++ b/.github/workflows/ubuntu_22.yml@@ -1,11 +1,13 @@name: Linux (Ubuntu 22.04, Python 3.11)-run-name: ${{ github.event_name == 'schedule' && (github.event.schedule == '0 0 * * 3,6' && 'Linux (Ubuntu 22.04, Python 3.11) - Nightly (with latest OneDNN)' || 'Linux (Ubuntu 22.04, Python 3.11) - Nightly (without latest OneDNN)') || 'Linux (Ubuntu 22.04, Python 3.11)' }}+run-name: ${{ github.event_name == 'schedule' && (github.event.schedule == '0 2 * * *' && 'Linux (Ubuntu 22.04, Python 3.11) - Nightly (C++20 build only)' || github.event.schedule == '0 0 * * 3,6' && 'Linux (Ubuntu 22.04, Python 3.11) - Nightly (with latest OneDNN)' || 'Linux (Ubuntu 22.04, Python 3.11) - Nightly (without latest OneDNN)') || 'Linux (Ubuntu 22.04, Python 3.11)' }}on:schedule:# at 00:00 on Wednesday and Saturday (with latest OneDNN)- cron: '0 0 * * 3,6'# at 00:00 on Tuesday and Thursday (without latest OneDNN)- cron: '0 0 * * 2,4'+ # at 02:00 every day: C++20 build without the regular build and tests+ - cron: '0 2 * * *'workflow_dispatch:inputs:target-branch:@@ -138,7 +140,8 @@ jobs:Build:needs: [Docker, Smart_CI]- if: "!needs.smart_ci.outputs.skip_workflow"+ # Skip the regular build and its dependent build/test jobs on the daily C++20 schedule.+ if: ${{ !needs.smart_ci.outputs.skip_workflow && github.event.schedule != '0 2 * * *' }}uses: ./.github/workflows/job_build_linux.ymlwith:runner: 'aks-linux-16-cores-32gb'@@ -168,11 +171,16 @@ jobs:-DENABLE_WHEEL=ON-DCMAKE_COMPILE_WARNING_AS_ERROR=ON- # Non-blocking C++20 compile check (CVS-189849): promote to a required check when done.+ # Non-blocking C++20 compile check (CVS-189849): daily, dispatched, or re-run workflows.+ # Promote to a required pre-commit check once stable.Build_CPP20:name: Build (C++20, non-blocking)needs: [Docker, Smart_CI]- if: "!needs.smart_ci.outputs.skip_workflow"+ if: >-+ ${{+ !needs.smart_ci.outputs.skip_workflow &&+ (github.event.schedule == '0 2 * * *' || github.event_name == 'workflow_dispatch' || github.run_attempt > 1)+ }}uses: ./.github/workflows/job_build_linux_cpp20.ymlwith:runner: 'aks-linux-16-cores-32gb'diff --git a/.github/workflows/ubuntu_24.yml b/.github/workflows/ubuntu_24.ymlindex 26bf6ea784e..23ea131636c 100644--- a/.github/workflows/ubuntu_24.yml+++ b/.github/workflows/ubuntu_24.yml@@ -1,9 +1,11 @@name: Linux (Ubuntu 24.04, Python 3.12)-run-name: ${{ github.event_name == 'schedule' && 'Linux (Ubuntu 24.04, Python 3.12) - Nightly' || 'Linux (Ubuntu 24.04, Python 3.12)' }}+run-name: ${{ github.event_name == 'schedule' && (github.event.schedule == '0 2 * * *' && 'Linux (Ubuntu 24.04, Python 3.12) - Nightly (C++20 build only)' || 'Linux (Ubuntu 24.04, Python 3.12) - Nightly') || 'Linux (Ubuntu 24.04, Python 3.12)' }}on:schedule:# at 00:00 on Wednesday and Saturday (with latest OneDNN)- cron: '0 0 * * 3,6'+ # at 02:00 every day: C++20 build without the regular build and tests+ - cron: '0 2 * * *'workflow_dispatch:inputs:target-branch:@@ -96,7 +98,8 @@ jobs:Build:needs: [Docker, Smart_CI]- if: "!needs.smart_ci.outputs.skip_workflow"+ # Skip the regular build and its dependent build/test jobs on the daily C++20 schedule.+ if: ${{ !needs.smart_ci.outputs.skip_workflow && github.event.schedule != '0 2 * * *' }}uses: ./.github/workflows/job_build_linux.ymlwith:runner: 'aks-linux-16-cores-32gb'@@ -124,11 +127,16 @@ jobs:-DCPACK_GENERATOR=TGZ-DCMAKE_COMPILE_WARNING_AS_ERROR=ON- # Non-blocking C++20 compile check (CVS-189849): promote to a required check when done.+ # Non-blocking C++20 compile check (CVS-189849): daily, dispatched, or re-run workflows.+ # Promote to a required pre-commit check once stable.Build_CPP20:name: Build (C++20, non-blocking)needs: [Docker, Smart_CI]- if: "!needs.smart_ci.outputs.skip_workflow"+ if: >-+ ${{+ !needs.smart_ci.outputs.skip_workflow &&+ (github.event.schedule == '0 2 * * *' || github.event_name == 'workflow_dispatch' || github.run_attempt > 1)+ }}uses: ./.github/workflows/job_build_linux_cpp20.ymlwith:runner: 'aks-linux-16-cores-32gb'diff --git a/.github/workflows/windows_vs2022_release.yml b/.github/workflows/windows_vs2022_release.ymlindex 616b2faaf14..a6633af12f1 100644--- a/.github/workflows/windows_vs2022_release.yml+++ b/.github/workflows/windows_vs2022_release.yml@@ -1,5 +1,9 @@name: Windows (VS 2022, Python 3.11, Release)+run-name: ${{ github.event_name == 'schedule' && 'Windows (VS 2022, Python 3.11, Release) - Nightly (C++20 build only)' || 'Windows (VS 2022, Python 3.11, Release)' }}on:+ schedule:+ # at 02:00 every day: C++20 build without the regular build and tests+ - cron: '0 2 * * *'workflow_dispatch:inputs:target-branch:@@ -64,7 +68,8 @@ jobs:Build:needs: [ Smart_CI ]- if: "!needs.smart_ci.outputs.skip_workflow"+ # Skip the regular build and its dependent build/test jobs on the daily C++20 schedule.+ if: ${{ !needs.smart_ci.outputs.skip_workflow && github.event.schedule != '0 2 * * *' }}uses: ./.github/workflows/job_build_windows.ymlwith:runner: 'aks-win-16-cores-32gb-build'@@ -86,11 +91,16 @@ jobs:-DCMAKE_EXPORT_COMPILE_COMMANDS=ON-DFETCHCONTENT_BASE_DIR="C:\fcc\ninja_multi_config"- # Non-blocking C++20 compile check (CVS-189849): promote to a required check when done.+ # Non-blocking C++20 compile check (CVS-189849): daily, dispatched, or re-run workflows.+ # Promote to a required pre-commit check once stable.Build_CPP20:name: Build (C++20, non-blocking)needs: [ Smart_CI ]- if: "!needs.smart_ci.outputs.skip_workflow"+ if: >-+ ${{+ !needs.smart_ci.outputs.skip_workflow &&+ (github.event.schedule == '0 2 * * *' || github.event_name == 'workflow_dispatch' || github.run_attempt > 1)+ }}uses: ./.github/workflows/job_build_windows_cpp20.ymlwith:runner: 'aks-win-16-cores-32gb-build'diff --git a/docs/dev/ci/github_actions/smart_ci.md b/docs/dev/ci/github_actions/smart_ci.mdindex 84419671733..65cb5e2957f 100644--- a/docs/dev/ci/github_actions/smart_ci.md+++ b/docs/dev/ci/github_actions/smart_ci.md@@ -389,6 +389,11 @@ This will ensure that the workflow won't be executed automatically for PRs in drFrom the main page of the draft PR, go to the "Checks" tab -> in the left menu choose the workflow that you'd like to execute -> press the "Re-run all jobs" button.Detailed instruction: [Re-running all the jobs in a workflow](https://docs.github.com/en/actions/how-tos/manage-workflow-runs/re-run-workflows-and-jobs#re-running-all-the-jobs-in-a-workflow)+The non-blocking C++20 builds in the Ubuntu 22.04, Ubuntu 24.04 and Windows VS 2022 Release+workflows also run when you re-run all jobs for a PR, including a non-draft PR. This re-runs the+entire workflow, not just the C++20 build. The condition also matches automated re-runs, and+Smart CI's usual skip rules still apply.+>**NOTE**: If you add the condition above, make sure to update the triggers section of the workflow as follows, to ensure that all checks will be re-executed once the PR is converted from draft to "ready for review":```yaml