mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-23 23:41:13 +00:00
bf29daa1b5
I found the C++ runner hard to develop on, and we had stability issues and outstanding feature needs that made me want something I felt good about hacking on. Thus, Rewrite It In Rust of the deqp runner. The new runner includes: - Skip lists don't reshuffle the test list. - Known-flake handling without resorting to skip lists (fixing our main CI reliability issue on a3xx right now). - Per-thread Vulkan shader caches should speed up VK CI runtime. - Tracking of crashes separate from fails (so we can see progress on that front). - Logging of deqp stderr spam (particularly assertion failures!) in the CI log. - Integrated QPA filtering so we don't have bash perf issues for it. - Logging of what caselist to go look at for a given error report (in red, so it's easier to find in your CI log). - The code is 1/3 unit tests, and easy to extend for more coverage. - Non-LAVA CI runs create a failures.csv in artifacts that you can check in as your deqp-*-fails.txt file. - Test runtime is included in results.csv so you can debug how to speed up your CI job. - Pretty summary at the end of the run of slow/flaky/failed tests. Since this is a new runner with a different RNG, the test groups are shuffled one more time. This seems to result in some panfrost T720 stability issues (See its new deqp-panfrost-t720-flakes.txt), and one new flake in freedreno a630. Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7434>
32 lines
1.1 KiB
Bash
32 lines
1.1 KiB
Bash
#!/bin/bash
|
|
|
|
# Note that this script is not actually "building" rust, but build- is the
|
|
# convention for the shared helpers for putting stuff in our containers.
|
|
|
|
set -ex
|
|
|
|
# cargo (and rustup) wants to store stuff in $HOME/.cargo, and binaries in
|
|
# $HOME/.cargo/bin. Make bin a link to a public bin directory so the commands
|
|
# are just available to all build jobs.
|
|
mkdir -p $HOME/.cargo
|
|
ln -s /usr/local/bin $HOME/.cargo/bin
|
|
|
|
# For rust in Mesa, we use rustup to install. This lets us pick an arbitrary
|
|
# version of the compiler, rather than whatever the container's Debian comes
|
|
# with.
|
|
#
|
|
# Pick the rust compiler (1.41) available in Debian stable, and pick a specific
|
|
# snapshot from rustup so the compiler doesn't drift on us.
|
|
wget https://sh.rustup.rs -O - | \
|
|
sh -s -- -y --default-toolchain 1.41.1-2020-02-27
|
|
|
|
# Set up a config script for cross compiling -- cargo needs your system cc for
|
|
# linking in cross builds, but doesn't know what you want to use for system cc.
|
|
cat > /root/.cargo/config <<EOF
|
|
[target.armv7-unknown-linux-gnueabihf]
|
|
linker = "arm-linux-gnueabihf-gcc"
|
|
|
|
[target.aarch64-unknown-linux-gnu]
|
|
linker = "aarch64-linux-gnu-gcc"
|
|
EOF
|