fix(ci): use CUDA-supported Ubuntu builder baseline
KAR CUDA compile (GPU hidden) / kar-cuda-compile (pull_request) Failing after 2m17s

This commit is contained in:
Pavlo Ratushnyi
2026-10-07 14:29:28 +02:00
parent 106f247901
commit 3f5cbf3d2e
3 changed files with 21 additions and 17 deletions
+10 -9
View File
@@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 150
container:
image: ubuntu@sha256:88a381d5b5eeb2b35d3ad70925a362c37ce569daf43ede89ff818ec20e4d3794
image: ubuntu@sha256:f610ab94648195aa356059f5b41d6085c9d4d903c072430cdd1af7bdb646106b
env:
NVIDIA_VISIBLE_DEVICES: void
CUDA_VISIBLE_DEVICES: ''
@@ -32,8 +32,8 @@ jobs:
set -euo pipefail
apt-get update -qq
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ca-certificates=20260601~26.04.1 \
git=1:2.53.0-1ubuntu1
ca-certificates=20260601~24.04.1 \
git=1:2.43.0-1ubuntu7.3
- name: Checkout exact pull-request head
shell: bash
@@ -57,6 +57,7 @@ jobs:
run: |
set -euo pipefail
test "$(dpkg --print-architecture)" = amd64
test "$(getconf GNU_LIBC_VERSION)" = 'glibc 2.39'
test "$NVIDIA_VISIBLE_DEVICES" = void
test -z "$CUDA_VISIBLE_DEVICES"
if compgen -G '/dev/nvidia*' >/dev/null; then
@@ -65,12 +66,12 @@ jobs:
fi
apt-get update -qq
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ca-certificates=20260601~26.04.1 \
cmake=4.2.3-2ubuntu2 \
gcc-13=13.4.0-10ubuntu1 \
g++-13=13.4.0-10ubuntu1 \
make=4.4.1-3 \
python3=3.14.3-0ubuntu2
ca-certificates=20260601~24.04.1 \
cmake=3.28.3-1build7 \
gcc-13=13.3.0-6ubuntu2~24.04.1 \
g++-13=13.3.0-6ubuntu2~24.04.1 \
make=4.3-4.1build2 \
python3=3.12.3-0ubuntu2.1
dpkg-query -W -f='${Package}=${Version}\n' ca-certificates cmake gcc-13 g++-13 git make python3
python3 scripts/test-kar-cuda-build-lock.py
CXX=g++-13 scripts/test-kar-expert-cache.sh
+9 -8
View File
@@ -1,15 +1,16 @@
{
"schema_version": 1,
"platform": "linux/amd64",
"builder_image": "ubuntu@sha256:88a381d5b5eeb2b35d3ad70925a362c37ce569daf43ede89ff818ec20e4d3794",
"builder_image": "ubuntu@sha256:f610ab94648195aa356059f5b41d6085c9d4d903c072430cdd1af7bdb646106b",
"builder_glibc": "2.39",
"apt_packages": {
"ca-certificates": "20260601~26.04.1",
"cmake": "4.2.3-2ubuntu2",
"gcc-13": "13.4.0-10ubuntu1",
"g++-13": "13.4.0-10ubuntu1",
"git": "1:2.53.0-1ubuntu1",
"make": "4.4.1-3",
"python3": "3.14.3-0ubuntu2"
"ca-certificates": "20260601~24.04.1",
"cmake": "3.28.3-1build7",
"gcc-13": "13.3.0-6ubuntu2~24.04.1",
"g++-13": "13.3.0-6ubuntu2~24.04.1",
"git": "1:2.43.0-1ubuntu7.3",
"make": "4.3-4.1build2",
"python3": "3.12.3-0ubuntu2.1"
},
"cuda_toolkit_lock": "cuda-toolkit.lock.json",
"cuda_toolkit_release": "13.0.1",
+2
View File
@@ -7,6 +7,7 @@ ROOT=Path(__file__).resolve().parents[1]
lock=json.loads((ROOT/'deploy/kar-cuda-build.lock.json').read_text())
assert lock['schema_version']==1
assert lock['platform']=='linux/amd64'
assert lock['builder_glibc']=='2.39'
assert re.fullmatch(r'ubuntu@sha256:[0-9a-f]{64}',lock['builder_image'])
assert lock['cuda_toolkit_release']=='13.0.1'
assert lock['cuda_architecture']=='120' and lock['compile_jobs']==1
@@ -18,6 +19,7 @@ assert set(lock['apt_packages'])==required
assert all(re.fullmatch(r'[0-9][A-Za-z0-9.+:~_-]*',v) for v in lock['apt_packages'].values())
workflow=(ROOT/'.gitea/workflows/kar-cuda-compile.yml').read_text()
assert f"image: {lock['builder_image']}" in workflow
assert "getconf GNU_LIBC_VERSION)" in workflow and "'glibc 2.39'" in workflow
assert 'pull_request:' in workflow and '\n push:' not in workflow
assert 'options: --platform' not in workflow
assert 'NVIDIA_VISIBLE_DEVICES: void' in workflow