SKY-GPU000 · Deployment and infrastructure
GPU release contract is invalid or cannot be checked
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.ymlcontract in the repository. - Finding type
- review
- Catalog name
- GPU release contract is invalid or incomplete
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
version: 1targets: - name: inference-t4 vendor: nvidia driver: "535.104.05" platform: linux/x86_64FROM nvidia/cuda:12.4.1-runtime-ubuntu22.04COPY app /appCMD ["python3", "/app/serve.py"]What Skylos leaves alone
version: 1targets: - name: inference-t4 vendor: nvidia driver: "535.104.05" platform: linux/amd64Why 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
- 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'sname,vendor: nvidia, and itsdriver,compute_capabilityandplatform(linuxorwindows, optionally/amd64or/arm64). Without the file nothing is checked, unless anSKY-GPUrule is selected explicitly with--select. - 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. - 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
linuxorwindowswith an optional/amd64or/arm64. - 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. - In a diff scan, also reports a change that deletes the contract.
- 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.
version: 1targets: - name: inference-t4 vendor: nvidia driver: "535.104.05"Removed: platform: linux/x86_64Added: platform: linux/amd64When 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.