Skip to content
Latchkey

CI Pipeline workflow (NVIDIA/k8s-device-plugin)

The CI Pipeline workflow from NVIDIA/k8s-device-plugin, explained and optimized by Latchkey.

C

CI health: C - fair

Run this on Latchkey for self-healing, caching, and up to 58% lower cost.

Grade your own workflow free or run it on Latchkey →
Source: NVIDIA/k8s-device-plugin.github/workflows/ci.yamlLicense Apache-2.0View source

What it does

This is the CI Pipeline workflow from the NVIDIA/k8s-device-plugin repository, a real project running GitHub Actions. It is shown here with attribution under its Apache-2.0 license.

Below, Latchkey shows a faster, safer version produced by its optimization engine.

The workflow

workflow (.yml)
# Copyright 2025 NVIDIA CORPORATION
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: CI Pipeline

on:
  push:
    branches:
      - "pull-request/[0-9]+"
      - main
      - release-*

jobs:
  basic:
    secrets: inherit
    uses: ./.github/workflows/basic-checks.yaml

  image:
    uses: ./.github/workflows/image.yaml
    needs:
    - basic
    secrets: inherit
    with:
      version: ${{ needs.basic.outputs.version }}

  e2e-test:
    needs:
    - image
    - basic
    secrets: inherit
    uses: ./.github/workflows/e2e.yaml
    with:
      version: ${{ needs.basic.outputs.version }}
      golang_version: ${{ needs.basic.outputs.golang_version }}

The same workflow, on Latchkey

Removes redundant runs and caps runaway jobs. Added and changed lines are highlighted.

# Copyright 2025 NVIDIA CORPORATION
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
 
name: CI Pipeline
 
on:
  push:
    branches:
      - "pull-request/[0-9]+"
      - main
      - release-*
 
concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true
 
jobs:
  basic:
    timeout-minutes: 30
    secrets: inherit
    uses: ./.github/workflows/basic-checks.yaml
 
  image:
    timeout-minutes: 30
    uses: ./.github/workflows/image.yaml
    needs:
    - basic
    secrets: inherit
    with:
      version: ${{ needs.basic.outputs.version }}
 
  e2e-test:
    timeout-minutes: 30
    needs:
    - image
    - basic
    secrets: inherit
    uses: ./.github/workflows/e2e.yaml
    with:
      version: ${{ needs.basic.outputs.version }}
      golang_version: ${{ needs.basic.outputs.golang_version }}
 

What changed

What Latchkey heals here

This workflow has steps that commonly fail on transient issues (network, registries, flaky browsers). On Latchkey managed runners they are detected, retried, and self-healed instead of failing your build:

This workflow runs 3 jobs per trigger. On Latchkey the same minutes cost up to 58% less than GitHub-hosted, with zero queue time.