The ruling Q3: the validation executor runs each case in one context, which enables every robustness feature its device states. Its second leg (every robustness feature off, the ID@engine+robustness-off slots) measured an encoding that metal2vulkan-runtime never runs, since the runtime's floor fixes the robustness it enables. The tier table keeps both of its compiles: they are translator coverage of what the runtime ships, so coverage::Leg stays as the tier table's type alone. Deleted: - the executor's leg: corpus-vulkan's and corpus-moltenvk's --robustness-off, the device worker's leg, engine_slot's leg (an engine slot is ID@engine or ID@engine@P; an ID@engine+robustness-off is no engine slot), the enable lists' leg (engine_list enables what the description states), and the leg in a row's environment and census (ExecutedCensus.leg, environment.robustness.leg) with its validation; - the batch's legs: corpus-vulkan-batch takes no --leg. Its passes are Pass::Engine and Pass::Metal, so a done-list line names "engine" where it named "stated", and a log is CASE.engine.txt. Its report lines carry no leg= field, and batch-slowest names pass=engine; - the authored compile census's robustness-off profiles: a profile is its committed stem (ProfileStem, which was ProfileLeg); a label with a "+" names no profile. corpus/authored-compile.tsv loses its 9 +robustness-off columns mechanically. Every other cell stays, and the reader takes the new layout in this commit. The rows are re-blessed at the next named pin. the_committed_expectations_parse holds the file to what a bless renders. No test is expected to read red until the bless, since no kept cell changed (unaudited until development's census runs); - C3's legs: a venue lists no legs and has one slot (c3-venues.json drops its legs fields). c3-reviewed.json drops the 12 observations recorded in robustness-off slots; - the committed rows of the +robustness-off slots: 193 rows and refusals out of corpus/observations, which empties and removes 44 shards. "leg":"stated" is stripped from the remaining rows' census and environment; - scripts/qualify-public-cases' second run per case, and scripts/rerecord-venue's --leg; docs/VALIDATION.md's robustness legs. corpus-triage's usage, corpus-status' --c3 help and the census's file comment say "profile" where they said "profile-leg". Verified: cargo fmt. The compile gate follows as a potluck job.
64 lines
2.5 KiB
Bash
Executable File
64 lines
2.5 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# The "Qualify public cases on native Vulkan (Linux)" step of .github/workflows/ci.yml, shared
|
|
# with scripts/linux-gate-ci so the two cannot drift.
|
|
#
|
|
# scripts/qualify-public-cases <bin-dir> # <bin-dir> holds the built validation binaries
|
|
#
|
|
# Executes the owned public cases with the engine (the only engine the validation binaries run
|
|
# since cutover X2b) on the CPU Vulkan ICD (lavapipe), against their committed
|
|
# Metal observations in the reference list's primary environment
|
|
# (crates/metal2vulkan-validation/cutover/c3-references.json), then rebuilds the disposable index and
|
|
# requires each case's engine slot to be current. Run it from the repository root.
|
|
#
|
|
# Rows written here are ephemeral CI evidence under the operator environment `ci-lavapipe`, which
|
|
# no C3 venue names: a runner's lavapipe is not a venue's declared device, so a
|
|
# venue's environment would refuse it (`venue_mismatch`), and these rows are no venue's evidence.
|
|
#
|
|
# A public checkout has no private store, so `corpus-index` indexes only the rows of public
|
|
# sources and reports the committed rows of private AIR it left out (`scope=public-only ...`);
|
|
# any failure of it fails the step.
|
|
set -euo pipefail
|
|
|
|
[ "$#" -eq 1 ] || { echo "usage: scripts/qualify-public-cases <bin-dir>" >&2; exit 64; }
|
|
bin=$1
|
|
export LP_NUM_THREADS=1
|
|
|
|
environment=ci-lavapipe
|
|
metal=$(python3 -c 'import json, sys; print(json.load(open(sys.argv[1]))["primary"]["environment_id"])' \
|
|
crates/metal2vulkan-validation/cutover/c3-references.json)
|
|
cases=(
|
|
d9ce86618e0924966fbb1e7de63761ef471bb6e85b592a70193a26375ec0423f
|
|
4659fedddd1695fba79c3faa797ec3be647e3fd1a87ecec23bde55ccbfbcf656
|
|
1e54315eb0ffcac633d4992c577f3e6ac384ed1bdf2321887c1f37242c00c887
|
|
)
|
|
|
|
for case_id in "${cases[@]}"; do
|
|
"$bin/corpus-vulkan" \
|
|
--case-id "$case_id" \
|
|
--metal-environment-id "$metal" \
|
|
--environment-id "$environment" \
|
|
--device-type cpu
|
|
done
|
|
|
|
"$bin/corpus-index"
|
|
"$bin/corpus-index" --check
|
|
named=()
|
|
for case_id in "${cases[@]}"; do
|
|
named+=(--case-id "$case_id")
|
|
done
|
|
status=$("$bin/corpus-status" "${named[@]}")
|
|
echo "$status"
|
|
incomplete=0
|
|
tab=$'\t'
|
|
slot="$environment@engine"
|
|
for case_id in "${cases[@]}"; do
|
|
if ! grep -Fqx "slot${tab}${case_id}${tab}vulkan${tab}${slot}${tab}current" <<<"$status"; then
|
|
echo "native Vulkan qualification of $case_id in $slot is not current" >&2
|
|
incomplete=1
|
|
fi
|
|
done
|
|
if [ "$incomplete" -ne 0 ]; then
|
|
echo "native Vulkan qualification is incomplete" >&2
|
|
exit 1
|
|
fi
|