Skip to main content

SKY-GPU000 · Deployment and infrastructure

GPU release contract is invalid or cannot be checked

High

A GPU target contract, .skylos/gpu-targets.yml, lists the NVIDIA GPUs and drivers a release must run on. SKY-GPU000 reports a contract that Skylos cannot use (malformed, unknown keys, an unsupported value), or a release whose evidence it cannot finish checking against the contract.

Languages
GPU target contract (YAML), Dockerfile, CMake, Python
Quality gate
counted toward the gate limits (full and diff scans). Reported under reliability. It counts toward max_reliability, which is 0 by default, so one finding fails --gate.
Needs
A .skylos/gpu-targets.yml contract in the repository.
Finding type
review
Catalog name
GPU release contract is invalid or incomplete
Wrong result? Report itA false positive, a missed case or a confusing message: it goes privately to the founder.

Why it matters

The other SKY-GPU rules only prove compatibility against a valid contract. A typo in the contract would otherwise make every check pass silently, and a release would go out to GPUs it cannot run on.

What Skylos flags

.skylos/gpu-targets.yml · YAMLReported on line 1
version: 1targets:  - name: inference-t4    vendor: nvidia    driver: "535.104.05"    platform: linux/x86_64
Dockerfile · Dockerfile
FROM nvidia/cuda:12.4.1-runtime-ubuntu22.04COPY app /appCMD ["python3", "/app/serve.py"]

What Skylos leaves alone

.skylos/gpu-targets.yml · YAML
version: 1targets:  - name: inference-t4    vendor: nvidia    driver: "535.104.05"    platform: linux/amd64

Dockerfile: same as in the flagged example.

Why Skylos leaves it alone

The same contract with the platform written as Docker writes it, linux/amd64. x86_64 is not one of the accepted architectures, so the flagged contract is rejected as a whole.

How Skylos decides

  1. Runs with --danger (or -a), and only when the repository has a GPU target contract: .skylos/gpu-targets.yml (or .yaml), version 1, listing each target's name, vendor: nvidia, and its driver, compute_capability and platform (linux or windows, optionally /amd64 or /arm64). Without the file nothing is checked, unless an SKY-GPU rule is selected explicitly with --select.
  2. Reads Dockerfiles, CMake files, Makefiles, Bazel files, shell scripts, Python, C/C++/CUDA sources and YAML as text, skipping build, dist, node_modules, caches and virtual environments. It never runs a build or probes a GPU.
  3. Reports a contract that is not valid YAML, has duplicate or unknown keys, a version other than 1, no targets, a driver that is not a version number, or a platform other than linux or windows with an optional /amd64 or /arm64.
  4. Reports when the contract declares drivers but no final Docker stage uses an NVIDIA CUDA image, or declares compute capabilities but no CUDA architecture setting can be found, or when that evidence is dynamic, conditional, native, or spread over several files.
  5. In a diff scan, also reports a change that deletes the contract.
  6. Reports HIGH on the contract file. The message says which part could not be proven.

How to fix it

Correct the contract so every value is one Skylos accepts, or add the missing build evidence the message names, such as a literal CMAKE_CUDA_ARCHITECTURES list.

.skylos/gpu-targets.yml · YAML · the fix, against the flagged file
version: 1targets:  - name: inference-t4    vendor: nvidia    driver: "535.104.05"Removed:     platform: linux/x86_64Added:     platform: linux/amd64

When it can be wrong

  • A repository that builds several artefacts for different fleets is read as one release for all targets. Give each deployable its own contract, scanned on its own.

Seeing a case that isn't listed here? Report the wrong result so the rule can be fixed. Don't paste company code: describe the shape of it.

How to silence it

  • [tool.skylos] ignore = ["SKY-GPU000"] turns the rule off for the project.

  • A baseline (skylos baseline ., then --baseline) accepts the findings that exist today and reports new ones.

From the Skylos rule handbook, Skylos 5.8.0 (commit 5b880b0). All rules.