Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

15.5 KB
Raw Blame

Overview of the OpenVINO GitHub Actions CI

Welcome to the OpenVINO Developer guide on the GitHub Actions infrastructure. This document will give you an overview of the setup used in OpenVINO and point you at more detailed instructions where necessary.

Table of Contents

Workflows

GitHub Actions workflows are configurable and automated processes that run one or multiple consecutive jobs (for more details, refer to the official GitHub Actions documentation). They include:

  • a series of commands that you would usually execute in a terminal, one by one
  • information about the environment in which the commands should be executed

You can find all workflows for this repository in the workflows folder. The main workflows providing broad coverage for different operating systems are:

Additionally, several supporting workflows build and test OpenVINO for other operating systems and processor architectures:

Reusing GitHub Actions

The OpenVINO workflows use both official and community-built actions, such as actions/checkout and actions/upload-artifact. Additionally, jobs featured in several workflows are extracted into reusable workflows. You can learn more about using and writing them, check how to reuse workflows, and see what and how to obtain additional actions.

Workflows' Triggers and Schedule

Workflows run whenever they are triggered by predefined events. These triggers are not mutually exclusive and multiple can be used by one workflow. The Linux workflow uses the following triggers:

  • on: schedule - schedule trigger
    • This trigger runs the workflow on a specified interval (e.g., nightly).
    • In the example below: '0 0 * * 3,6' - learn more on cron syntax
  • on: workflow_dispatch - manual trigger
  • on: pull_request - pre-commit trigger
    • This trigger runs the workflow when a pull request (PR) is created targeting the master or release branch and every time the PR is updated with new commits.
  • on: merge_group - merge queue validation trigger
  • on: push - post-commit trigger.
    • This trigger runs the workflow when a commit is pushed to the master or release branch (e.g., when a PR is merged).

Expensive validation is selected by Smart CI instead of workflow-level path filters.

The triggers for each workflow can be found at the beginning of a workflow file, in the on key. You should also learn how to use paths.

on:
  schedule:
    # Wednesday and Saturday with the latest oneDNN
    - cron: '0 0 * * 3,6'
    # Tuesday and Thursday without the latest oneDNN
    - cron: '0 0 * * 2,4'
  workflow_dispatch:
  pull_request:
    types: [opened, synchronize, reopened, ready_for_review]
  merge_group:
  push:
    branches:
      - master
      - 'releases/**'

NOTE

Required checks are configured with branch protection and may change independently of this document. Check the required status checks shown on the pull request. Post-commit and scheduled workflows, such as the macOS ARM64 workflow, do not validate pull requests.


Workflow Structure

The workflow structures for Linux, Windows, and macOS are mostly the same:

  1. Clone the OpenVINO repository and required resources
  2. Install build dependencies
  3. Build OpenVINO from source
  4. Pack and upload the artifacts (the built OpenVINO and tests)
  5. Download and use the artifacts in the parallel jobs with different tests
  6. Collect the test results and upload them as artifacts

NOTE: some workflows may use the same structure, while others may lack the last 3 steps, with tests coming right after the Build step.

Overview of the Linux workflow. There are several jobs present:

jobs:
  Smart_CI: ...
  Docker: ...
  Build: ...
  Debian_Packages: ...
  Samples: ...
  Conformance: ...
  CXX_Unit_Tests: ...
  Python_Unit_Tests: ...
  Python_API_Tests: ...
  CPU_Functional_Tests: ...
  TensorFlow_Models_Tests_Precommit: ...
  PyTorch_Models_Tests: ...
  JAX_Models_Tests_Precommit: ...
  GGUF_Models_Tests_Precommit: ...
  NVIDIA_Plugin: ...
  Openvino_tokenizers: ...
  iGPU: ...
  Overall_Status: ...

The Build job executes the first 4 steps:

  • clones OpenVINO
  • installs dependencies
  • builds from source with cmake
  • packs and uploads the artifacts using actions/upload-artifact

The other jobs are responsible for running different tests using the built artifacts. They:

  • download and unpack the artifacts using actions/download-artifact
  • install the needed dependencies
  • run tests
  • collect test results
  • upload test results as pipeline artifacts

Single Job Overview

Each job has several keys that describe its environment. Consider checking a comprehensive syntax overview.

This section describes the specifics of the OpenVINO CI environment.

Overview of the Linux workflow's Python_Unit_Tests job:

  Python_Unit_Tests:
    name: Python unit tests
    needs: [ Docker, Build, Smart_CI ]
    uses: ./.github/workflows/job_python_unit_tests.yml
    with:
      runner: 'aks-linux-4-cores-16gb'
      image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}
      affected-components: ${{ needs.smart_ci.outputs.affected_components }}
      python-version: '3.11'
  • Test jobs that consume build artifacts have Build in needs. Jobs using custom images also depend on Docker, and component-aware jobs depend on Smart_CI.
  • The machine that is used for a job is specified using the runs-on key.
    • In this case aks-linux-4-cores-16gb is used. Read more on what machines are available and how to choose one for a job.
  • Some jobs run inside a Docker container. Reusable workflows receive the image through an image input and configure the container internally.
    • Read more on what images are available and when to use one.
  • Some jobs may benefit from caching, for example, Python dependencies or cmake build artifacts.
    • Read more on how to utilize cache for a job.
  • A job must define steps - a series of commands to execute in the predefined environment.
    • All the steps are executed in the shell specified by the shell key under defaults: run: unless a shell is specified directly in a step.

Security considerations

Please consult workflow security guidelines before submitting a PR with GitHub Actions workflows changes.

Finding Results, Artifacts, and Logs

Results

To understand which jobs have successfully passed, which are running and which have failed, check the following:

For Pull Requests:

  • Open a Pull Request and scroll to the bottom of the page. You will see a list of jobs, both finished and still running for the most recent commit:

    check_results

For scheduled runs:

  • Navigate to the OpenVINO Repository Actions
  • Select the required workflow from the list on the left
  • Filter the runs by clicking on Event and selecting schedule
    • You can additionally filter the results per branch, actor and result

Artifacts

Artifacts, that is files produced by the workflow, are available only for the completed pipelines, both successful or failed. To find artifacts for a pipeline, follow these steps:

  1. Open a Pull Request and scroll to the list of jobs, as described above.

  2. Click Details, to the right of the selected job, to see more information about it.

  3. Click Summary, above the list of jobs on the left side of the window:

    jobs_list

  4. Scroll to the bottom of the page

  5. You will find the artifacts produced by all the jobs in this pipeline:

    pipeline_artifacts

  6. Click on the artifact name to download it.

Initial GOLD BOM baseline

Missing GOLD BOMs can be proposed by the manual Initialize GOLD BOM Baseline workflow. It accepts successful build workflow run IDs, collects every bom_* artifact from those runs, and creates a PR against the branch selected when starting the workflow, including master or releases/*. Manifests are stored under boms/<configuration>/<component>.json. The configuration directory comes from the artifact name (for example, bom_ubuntu_22_04_x86_64 becomes boms/ubuntu_22_04_x86_64/), so Linux distributions, architectures, and build variants can each have their own baseline. The platform subdirectory inside the artifact is only an artifact layout detail; it is not repeated in the GOLD path.

Run it from Actions → Initialize GOLD BOM Baseline → Run workflow, selecting the target branch first. Enter a JSON array of successful build run IDs from the same repository, covering the configurations to initialize. Both PR runs and branch runs are accepted, regardless of their source or target branch. The branch selected for initialization only determines where the GOLD BOM PR is created. For example:

["123456789", "123456790", "123456791"]

The workflow adds only BOM files that are missing on the selected branch. Existing GOLD files are never overwritten. If all selected manifests already exist, the workflow fails without creating a PR. For an existing configuration, developers must update changed BOMs manually in the PR that changes the packaged file list.

When the regular BOM comparison is added, it should be configuration-specific. If the expected GOLD BOM is absent, there is no baseline to compare: the check should emit a warning with a link to this documentation and skip comparison for that BOM. This bootstrap workflow can then initialize the missing BOM through a reviewed PR without changing existing baselines.

Logs

To find logs for a pipeline:

  1. Open a Pull Request and scroll to the list of jobs, as described above.
  2. Click Details, to the right of the selected job, to see more information about it.
  3. Click on a step to see its logs

Custom Actions

Several actions are written specifically for the needs of the OpenVINO workflows. Read more about the available custom actions and what they do in the custom actions document.

Check the Reusing GitHub Actions section for more information.

Machines

The machines that execute the commands from the workflows are called runners in GitHub Actions. Two types of runners are available for the OpenVINO organization:

Workflows utilize appropriate runners based on their jobs' needs. Learn more about the available runners and how to choose one in the OpenVINO Runner Overview.

Docker Images

You can run jobs in Docker containers. Refer to the documentation for syntax overview.

Workflows utilize appropriate Docker images based on their jobs' needs. Learn more about the available images and how to choose one in the OpenVINO Docker Image Overview.

Caches

Three types of caches are available:

workflows utilize appropriate caches based on their jobs' needs. Learn more about the available caches and how to use one in the OpenVINO Cache Overview.

Adding New Tests

If you would like to add new tests, refer to the How to add Tests document.

Optimizing workflows based on PR changes

To optimize pre-commit workflow by running only the jobs that are actually required to validate changes in a pull request, you can use the Smart CI feature - learn more about it.

Merge Queue

The OpenVINO GitHub organisation utilises Merge Queue to automate the Pull Requests' merging process. Learn more about MQ and available settings in the official documentation.

Merge Queue has several settings that are configured on a per-repository basis. The OpenVINO repository uses the following settings:

  • Merge method: Squash and Merge
  • Build concurrency:
    • Maximum pull requests to build: 5
  • Only merge non-failing Pull Requests: No
  • Status check timeout: 360 minutes
  • Merge limits:
    • Minimum pull requests to merge: 1
    • Maximum pull requests to merge: 2

If you would like to enable Merge Queue for another repository in the OpenVINO GitHub organisation, use these settings as the default ones and adjust if needed.

Agentic Workflows

OpenVINO CI also includes agentic workflows — GitHub Actions workflows that delegate an investigative or maintenance task to an AI agent instead of running a fixed script. Currently these are the two CI failure doctors: an on-demand pull request investigator (/ci-doctor) and an automatic merge-queue failure investigator. Learn more in the Agentic Workflows document.

See also