CI: the lavapipe image's udmabuf decided by the node's presence, its downloads saved on fetch, its build step limited
lavapipe exports a dma-buf through /dev/udmabuf. The image's containers now get the host's node wherever the host has one (docker's daemon opens it for them; rootless podman only where the user may), with the node's group, and `lavapipe-image udmabuf`, which the build step runs, says which. Where they get none, `nextest` skips the tests and `replay` (new: the conformance replay in the image) leaves out the cases scripts/lavapipe-image/needs-udmabuf names, each named in the log: those are measured, each failing without the node and passing with it. The workflow decides by the node's presence alone; no test is loosened. LAVAPIPE_IMAGE_UDMABUF names another node, or none, which is how the lab's replica shows what a runner without the node runs. The downloads are restored before the build and saved right after it, keyed on the pin (the tarball's sha256, the date and the packages' versions), so a job whose later steps fail still keeps them. The build step's limit is 90 minutes: a cold fetch at the slowest rate measured from the archive, one connection at 57 KB/s, of the 127 MB tarball and 135 MB of databases and packages (262 MB) takes 77 minutes. A fetch that fails ends the build step with the URL and curl's status, or pacman's, before any test runs; the fetches retry three times. Measured at this change's parent plus the probe (job m3-max-79668, lavapipe on x86-64 AVX2, no node passed in): of 807 device tests run, 806 pass and replay::rt_replay::a_video_surface_is_waited_for_at_its_ready_point_once fails with "the device exports no DmaBuf"; with the node (m3-max-79517) every one passes. The four surface-textures cases are refused at replace-region without the node (m3-max-79408) and hold the ledger's expectations with it (m3-max-79517).
This commit is contained in:
1 parent
7687644485
commit
9a89d5e25c
3 files changed
+105
-16
No files matched your search
@@ -227,25 +227,41 @@ jobs:
|
||||
# nowhere else: Arch Linux's packages of one Arch Linux Archive date, which
|
||||
# scripts/lavapipe-image/pin pins with the bootstrap tarball's sha256, carrying the Mesa and
|
||||
# LLVM the conformance ledger's llvmpipe rows hold on (its `# llvmpipe:` line). The image's
|
||||
# downloads are cached on the pin, so a run whose pin has not moved downloads nothing.
|
||||
- name: Cache the lavapipe image's downloads (Linux)
|
||||
# downloads are cached keyed on the pin (its tarball's sha256, its date and its packages'
|
||||
# versions), and saved as soon as the build has them, so a run whose pin has not moved
|
||||
# downloads nothing, whatever the later steps answer.
|
||||
- name: Restore the lavapipe image's downloads (Linux)
|
||||
if: runner.os == 'Linux'
|
||||
uses: actions/cache@v4
|
||||
id: lavapipe-downloads
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: ~/.cache/m2v-lavapipe-image
|
||||
key: lavapipe-image-${{ hashFiles('scripts/lavapipe-image/pin') }}
|
||||
|
||||
# Prints the image's pin, its packages, and its device's name and driver, and fails where any
|
||||
# differs from the pin or from the ledger's `# llvmpipe:` line.
|
||||
# Prints the image's pin, its packages, its device's name and driver, and whether its
|
||||
# containers get /dev/udmabuf, and fails where the image differs from the pin or from the
|
||||
# ledger's `# llvmpipe:` line. A fetch that fails ends this step with the URL it failed on,
|
||||
# before any test runs. The limit fits a cold fetch at the slowest rate measured from the
|
||||
# archive, one connection at 57 KB/s: the 127 MB tarball and 135 MB of databases and
|
||||
# packages, 262 MB, take 77 minutes there.
|
||||
- name: Build the lavapipe image (Linux)
|
||||
if: runner.os == 'Linux'
|
||||
timeout-minutes: 90
|
||||
run: scripts/lavapipe-image/lavapipe-image ensure
|
||||
|
||||
- name: Save the lavapipe image's downloads (Linux)
|
||||
if: runner.os == 'Linux' && steps.lavapipe-downloads.outputs.cache-hit != 'true'
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: ~/.cache/m2v-lavapipe-image
|
||||
key: lavapipe-image-${{ hashFiles('scripts/lavapipe-image/pin') }}
|
||||
|
||||
# The device tests of validation and the runtime, and the runtime's floor check, on lavapipe.
|
||||
# They are the tests the `--cfg m2v_cpu_icd` build holds and the plain builds above do not: a
|
||||
# test that opens a device compiles only under that cfg. The plain builds' tests ran on this
|
||||
# host above, the `.ll` fixtures' test with Ubuntu's LLVM among them. The tests are built
|
||||
# here, on the host, and only run in the image. `DeviceType::Cpu` matches only a CPU physical
|
||||
# here, on the host, and only run in the image. Where its containers get no /dev/udmabuf,
|
||||
# the tests scripts/lavapipe-image/needs-udmabuf names are skipped, each named in the log. `DeviceType::Cpu` matches only a CPU physical
|
||||
# device, and the runtime's device tests under `m2v_cpu_icd` check only CPU devices. macOS CI
|
||||
# runs no device tests.
|
||||
- name: Test validation suite and the runtime on the CPU Vulkan ICD (Linux)
|
||||
@@ -269,13 +285,14 @@ jobs:
|
||||
# the gaps crates/metal2vulkan-conformance/known-gaps-rt.tsv expects on this venue. A refusal
|
||||
# or a divergence that ledger does not list fails here, and so does a row it lists that the
|
||||
# run no longer holds, so closing a gap forces the ledger edit. A venue that lacks a feature
|
||||
# a case needs does not spoil it.
|
||||
# a case needs does not spoil it. Where the image's containers get no /dev/udmabuf, the
|
||||
# cases scripts/lavapipe-image/needs-udmabuf names are left out, each named in the log.
|
||||
- name: Replay the conformance suite on the CPU Vulkan ICD (Linux)
|
||||
if: runner.os == 'Linux'
|
||||
run: |
|
||||
set -euo pipefail
|
||||
cargo build -p metal2vulkan-conformance --bin conformance
|
||||
scripts/lavapipe-image/lavapipe-image run --env LP_NUM_THREADS=1 -- target/debug/conformance replay --cpu
|
||||
scripts/lavapipe-image/lavapipe-image replay target/debug/conformance
|
||||
|
||||
# Machine-specific semantic qualification remains explicit. On lavapipe in the image, it
|
||||
# executes the owned public cases with the engine, in both robustness legs, against their
|
||||
|
||||
Reference in new issue
Block a user