2019-06-07 09:20:28 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -o xtrace
|
|
|
|
|
2021-03-19 11:52:35 +00:00
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2020-07-09 15:14:14 +01:00
|
|
|
check_minio()
|
|
|
|
{
|
2021-04-13 06:40:36 +01:00
|
|
|
MINIO_PATH="${MINIO_HOST}/mesa-lava/$1/${DISTRIBUTION_TAG}/${DEBIAN_ARCH}"
|
2020-07-09 15:14:14 +01:00
|
|
|
if wget -q --method=HEAD "https://${MINIO_PATH}/done"; then
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2020-04-01 12:07:46 +01:00
|
|
|
# If remote files are up-to-date, skip rebuilding them
|
2020-12-09 19:41:01 +00:00
|
|
|
check_minio "${FDO_UPSTREAM_REPO}"
|
2020-07-09 15:14:14 +01:00
|
|
|
check_minio "${CI_PROJECT_PATH}"
|
2020-04-01 12:07:46 +01:00
|
|
|
|
|
|
|
. .gitlab-ci/container/container_pre_build.sh
|
|
|
|
|
2020-10-29 17:29:28 +00:00
|
|
|
# Install rust, which we'll be using for deqp-runner. It will be cleaned up at the end.
|
2021-01-27 15:38:01 +00:00
|
|
|
. .gitlab-ci/container/build-rust.sh
|
2020-10-29 17:29:28 +00:00
|
|
|
|
2019-12-17 10:50:14 +00:00
|
|
|
if [[ "$DEBIAN_ARCH" = "arm64" ]]; then
|
|
|
|
GCC_ARCH="aarch64-linux-gnu"
|
|
|
|
KERNEL_ARCH="arm64"
|
2022-04-18 15:15:11 +01:00
|
|
|
SKQP_ARCH="arm64"
|
2019-12-17 10:50:14 +00:00
|
|
|
DEFCONFIG="arch/arm64/configs/defconfig"
|
2021-02-05 00:42:51 +00:00
|
|
|
DEVICE_TREES="arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dtb"
|
2021-07-07 21:54:43 +01:00
|
|
|
DEVICE_TREES+=" arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dtb"
|
2021-02-05 00:42:51 +00:00
|
|
|
DEVICE_TREES+=" arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dtb"
|
|
|
|
DEVICE_TREES+=" arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dtb"
|
|
|
|
DEVICE_TREES+=" arch/arm64/boot/dts/qcom/apq8016-sbc.dtb"
|
|
|
|
DEVICE_TREES+=" arch/arm64/boot/dts/qcom/apq8096-db820c.dtb"
|
|
|
|
DEVICE_TREES+=" arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dtb"
|
2021-05-11 09:06:00 +01:00
|
|
|
DEVICE_TREES+=" arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-juniper-sku16.dtb"
|
2021-12-03 00:14:30 +00:00
|
|
|
DEVICE_TREES+=" arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dtb"
|
2022-05-20 16:21:21 +01:00
|
|
|
DEVICE_TREES+=" arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-limozeen-nots-r5.dtb"
|
2019-12-17 10:50:14 +00:00
|
|
|
KERNEL_IMAGE_NAME="Image"
|
2022-04-18 15:15:11 +01:00
|
|
|
|
2020-07-03 09:04:20 +01:00
|
|
|
elif [[ "$DEBIAN_ARCH" = "armhf" ]]; then
|
2019-12-17 10:50:14 +00:00
|
|
|
GCC_ARCH="arm-linux-gnueabihf"
|
|
|
|
KERNEL_ARCH="arm"
|
2022-04-18 15:15:11 +01:00
|
|
|
SKQP_ARCH="arm"
|
2019-12-17 10:50:14 +00:00
|
|
|
DEFCONFIG="arch/arm/configs/multi_v7_defconfig"
|
2020-12-21 12:37:38 +00:00
|
|
|
DEVICE_TREES="arch/arm/boot/dts/rk3288-veyron-jaq.dtb"
|
|
|
|
DEVICE_TREES+=" arch/arm/boot/dts/sun8i-h3-libretech-all-h3-cc.dtb"
|
|
|
|
DEVICE_TREES+=" arch/arm/boot/dts/imx6q-cubox-i.dtb"
|
2019-12-17 10:50:14 +00:00
|
|
|
KERNEL_IMAGE_NAME="zImage"
|
2021-01-27 15:38:01 +00:00
|
|
|
. .gitlab-ci/container/create-cross-file.sh armhf
|
2020-07-03 09:04:20 +01:00
|
|
|
else
|
|
|
|
GCC_ARCH="x86_64-linux-gnu"
|
|
|
|
KERNEL_ARCH="x86_64"
|
2022-04-18 15:15:11 +01:00
|
|
|
SKQP_ARCH="x64"
|
2020-07-03 09:04:20 +01:00
|
|
|
DEFCONFIG="arch/x86/configs/x86_64_defconfig"
|
|
|
|
DEVICE_TREES=""
|
|
|
|
KERNEL_IMAGE_NAME="bzImage"
|
2022-02-18 11:35:51 +00:00
|
|
|
ARCH_PACKAGES="libasound2-dev libcap-dev libfdt-dev libva-dev wayland-protocols"
|
2019-12-17 10:50:14 +00:00
|
|
|
fi
|
2019-06-07 09:20:28 +01:00
|
|
|
|
2020-05-13 20:14:39 +01:00
|
|
|
# Determine if we're in a cross build.
|
|
|
|
if [[ -e /cross_file-$DEBIAN_ARCH.txt ]]; then
|
|
|
|
EXTRA_MESON_ARGS="--cross-file /cross_file-$DEBIAN_ARCH.txt"
|
2020-05-14 18:38:12 +01:00
|
|
|
EXTRA_CMAKE_ARGS="-DCMAKE_TOOLCHAIN_FILE=/toolchain-$DEBIAN_ARCH.cmake"
|
2020-05-13 20:14:39 +01:00
|
|
|
|
2020-10-29 17:29:28 +00:00
|
|
|
if [ $DEBIAN_ARCH = arm64 ]; then
|
|
|
|
RUST_TARGET="aarch64-unknown-linux-gnu"
|
|
|
|
elif [ $DEBIAN_ARCH = armhf ]; then
|
|
|
|
RUST_TARGET="armv7-unknown-linux-gnueabihf"
|
|
|
|
fi
|
|
|
|
rustup target add $RUST_TARGET
|
|
|
|
export EXTRA_CARGO_ARGS="--target $RUST_TARGET"
|
|
|
|
|
2020-05-13 20:14:39 +01:00
|
|
|
export ARCH=${KERNEL_ARCH}
|
|
|
|
export CROSS_COMPILE="${GCC_ARCH}-"
|
2019-12-17 10:50:14 +00:00
|
|
|
fi
|
2020-05-13 20:14:39 +01:00
|
|
|
|
2020-04-01 12:07:46 +01:00
|
|
|
apt-get update
|
2021-03-19 11:52:35 +00:00
|
|
|
apt-get install -y --no-remove \
|
2021-10-08 21:17:27 +01:00
|
|
|
${ARCH_PACKAGES} \
|
2021-03-19 11:52:35 +00:00
|
|
|
automake \
|
2020-04-01 12:07:46 +01:00
|
|
|
bc \
|
2022-01-27 04:28:51 +00:00
|
|
|
clang \
|
2020-04-01 12:07:46 +01:00
|
|
|
cmake \
|
|
|
|
debootstrap \
|
2020-11-11 16:15:25 +00:00
|
|
|
git \
|
2021-04-27 20:27:31 +01:00
|
|
|
glslang-tools \
|
2021-07-12 22:39:30 +01:00
|
|
|
libdrm-dev \
|
2020-04-01 12:07:46 +01:00
|
|
|
libegl1-mesa-dev \
|
2022-01-27 04:28:51 +00:00
|
|
|
libxext-dev \
|
ci: Build skqp on ARM64 images
This commit makes `kernel+rootfs_arm64` job build and install skqp on
ARM64 devices rootfs.
Skia repository has a tool to prepare skqp models located at
`tools/skqp/cut-release`, which get files from [Skia
Gold](https://skia.org/docs/dev/testing/skiagold/), generate
files.checksum, rendertests.txt and unittests.txt. One gives a range of
commits to let `cut-release` find the right resources to prepare skqp
for the user. However, it is failing, since it fails when trying to get
image packages from a range of commits via HTTPS from the host
https://public-gold.skia.org but it responds with error 404 every time.
I tried a range a thousand of commits, yet it still does not give
results. The workaround employed was to recover the most recent
`files.checksum` and `rendertests.txt` files from the git history and
generate `unittests.txt` from `list_gpu_unit_tests` binary.
`skqp` runs two lists of tests, `rendertests.txt` and `unittests.txt`.
Both must be located inside the `skqp` assets folder. The first list
uses GL and GLES to test rendering scenarios. The second runs some unit
tests that do not render an image per se.
In order to make the first `a630_skqp` to be green, the crashing tests
were removed from the test lists and the expectations of the failing
ones were updated.
It is worth noting that `rendertests.txt` can bring some detail about
each test expectation, so each test can have a max pixel error count, to
tell `skqp` that it is OK to have at most that number of errors for that
test. See also:
https://github.com/google/skia/blob/main/tools/skqp/README_ALGORITHM.md
As each render backend has a different error count, two different
`rendertests.txt` files were created,
`src/freedreno/ci/freedreno-a630-skqp-gl_rendertests.txt`,
`src/freedreno/ci/freedreno-a630-skqp-gles_rendertests.txt` and
, which one refers to GL and GLES tests respectfully.
The unit tests file for a630 is located at
`src/freedreno/ci/freedreno-a630-skqp_unittests.txt`
```
aaclip
domain
formats
highcontrastfilter
rectangle_texture
yuv_make_color_space
```
```
ProcessorOptimizationValidationTest
VkProtectedContext_CreateNonprotectedContext
VkYCbcrSampler_DrawImageWithYcbcrSampler
VkYCbcrSampler_NoYcbcrSurface
```
Each test was updated with the max_error count equal to the first run result.
```
analytic_antialias_inverse
async_rescale_and_read_dog_down
async_rescale_and_read_dog_up
async_rescale_and_read_rose
async_rescale_and_read_text_down
async_rescale_and_read_text_up
async_rescale_and_read_text_up_large
async_rescale_and_read_yuv420_rose
complexclip2_path_bw
encode-platform
imageblur_large
lcdtextsize
onebadarc
onefailarc
scale-pixels
surfaceprops
textfilter_color
textfilter_image
```
Considering all the following tests results as wrong.
```
async_rescale_and_read_no_bleed
backdrop_imagefilter_croprect_persp
complexclip2
imageblurrepeatmode
mixerCF
overdrawcolorfilter
patch_alpha
patch_primitive
rrect_clip_bw
scaledemoji_rendering
yuv_splitter
```
v2:
a) add link to HTML report on job log
b) remove extraneous spaces diff
c) remove unnecessary conditions from build-skqp.sh
d) use fixed skqp source commit SHA
v3:
a) Use only main skia repository to fetch models and build skqp
b) Use list_gpu_unit_tests binary to create a base unittests.txt file
c) Remove crashing tests
d) Set failing tests expectations for the first skqp run
v4:
a) Remove clang dependency
b) Separate each skqp backend result into its folder
c) Regroup a630_skqp in one job
v5:
a) Separate tests files per driver
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5580
Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14146>
2021-12-07 14:13:00 +00:00
|
|
|
libfontconfig-dev \
|
2020-04-01 12:07:46 +01:00
|
|
|
libgbm-dev \
|
ci: Build skqp on ARM64 images
This commit makes `kernel+rootfs_arm64` job build and install skqp on
ARM64 devices rootfs.
Skia repository has a tool to prepare skqp models located at
`tools/skqp/cut-release`, which get files from [Skia
Gold](https://skia.org/docs/dev/testing/skiagold/), generate
files.checksum, rendertests.txt and unittests.txt. One gives a range of
commits to let `cut-release` find the right resources to prepare skqp
for the user. However, it is failing, since it fails when trying to get
image packages from a range of commits via HTTPS from the host
https://public-gold.skia.org but it responds with error 404 every time.
I tried a range a thousand of commits, yet it still does not give
results. The workaround employed was to recover the most recent
`files.checksum` and `rendertests.txt` files from the git history and
generate `unittests.txt` from `list_gpu_unit_tests` binary.
`skqp` runs two lists of tests, `rendertests.txt` and `unittests.txt`.
Both must be located inside the `skqp` assets folder. The first list
uses GL and GLES to test rendering scenarios. The second runs some unit
tests that do not render an image per se.
In order to make the first `a630_skqp` to be green, the crashing tests
were removed from the test lists and the expectations of the failing
ones were updated.
It is worth noting that `rendertests.txt` can bring some detail about
each test expectation, so each test can have a max pixel error count, to
tell `skqp` that it is OK to have at most that number of errors for that
test. See also:
https://github.com/google/skia/blob/main/tools/skqp/README_ALGORITHM.md
As each render backend has a different error count, two different
`rendertests.txt` files were created,
`src/freedreno/ci/freedreno-a630-skqp-gl_rendertests.txt`,
`src/freedreno/ci/freedreno-a630-skqp-gles_rendertests.txt` and
, which one refers to GL and GLES tests respectfully.
The unit tests file for a630 is located at
`src/freedreno/ci/freedreno-a630-skqp_unittests.txt`
```
aaclip
domain
formats
highcontrastfilter
rectangle_texture
yuv_make_color_space
```
```
ProcessorOptimizationValidationTest
VkProtectedContext_CreateNonprotectedContext
VkYCbcrSampler_DrawImageWithYcbcrSampler
VkYCbcrSampler_NoYcbcrSurface
```
Each test was updated with the max_error count equal to the first run result.
```
analytic_antialias_inverse
async_rescale_and_read_dog_down
async_rescale_and_read_dog_up
async_rescale_and_read_rose
async_rescale_and_read_text_down
async_rescale_and_read_text_up
async_rescale_and_read_text_up_large
async_rescale_and_read_yuv420_rose
complexclip2_path_bw
encode-platform
imageblur_large
lcdtextsize
onebadarc
onefailarc
scale-pixels
surfaceprops
textfilter_color
textfilter_image
```
Considering all the following tests results as wrong.
```
async_rescale_and_read_no_bleed
backdrop_imagefilter_croprect_persp
complexclip2
imageblurrepeatmode
mixerCF
overdrawcolorfilter
patch_alpha
patch_primitive
rrect_clip_bw
scaledemoji_rendering
yuv_splitter
```
v2:
a) add link to HTML report on job log
b) remove extraneous spaces diff
c) remove unnecessary conditions from build-skqp.sh
d) use fixed skqp source commit SHA
v3:
a) Use only main skia repository to fetch models and build skqp
b) Use list_gpu_unit_tests binary to create a base unittests.txt file
c) Remove crashing tests
d) Set failing tests expectations for the first skqp run
v4:
a) Remove clang dependency
b) Separate each skqp backend result into its folder
c) Regroup a630_skqp in one job
v5:
a) Separate tests files per driver
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5580
Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14146>
2021-12-07 14:13:00 +00:00
|
|
|
libgl-dev \
|
2020-04-01 12:07:46 +01:00
|
|
|
libgles2-mesa-dev \
|
ci: Build skqp on ARM64 images
This commit makes `kernel+rootfs_arm64` job build and install skqp on
ARM64 devices rootfs.
Skia repository has a tool to prepare skqp models located at
`tools/skqp/cut-release`, which get files from [Skia
Gold](https://skia.org/docs/dev/testing/skiagold/), generate
files.checksum, rendertests.txt and unittests.txt. One gives a range of
commits to let `cut-release` find the right resources to prepare skqp
for the user. However, it is failing, since it fails when trying to get
image packages from a range of commits via HTTPS from the host
https://public-gold.skia.org but it responds with error 404 every time.
I tried a range a thousand of commits, yet it still does not give
results. The workaround employed was to recover the most recent
`files.checksum` and `rendertests.txt` files from the git history and
generate `unittests.txt` from `list_gpu_unit_tests` binary.
`skqp` runs two lists of tests, `rendertests.txt` and `unittests.txt`.
Both must be located inside the `skqp` assets folder. The first list
uses GL and GLES to test rendering scenarios. The second runs some unit
tests that do not render an image per se.
In order to make the first `a630_skqp` to be green, the crashing tests
were removed from the test lists and the expectations of the failing
ones were updated.
It is worth noting that `rendertests.txt` can bring some detail about
each test expectation, so each test can have a max pixel error count, to
tell `skqp` that it is OK to have at most that number of errors for that
test. See also:
https://github.com/google/skia/blob/main/tools/skqp/README_ALGORITHM.md
As each render backend has a different error count, two different
`rendertests.txt` files were created,
`src/freedreno/ci/freedreno-a630-skqp-gl_rendertests.txt`,
`src/freedreno/ci/freedreno-a630-skqp-gles_rendertests.txt` and
, which one refers to GL and GLES tests respectfully.
The unit tests file for a630 is located at
`src/freedreno/ci/freedreno-a630-skqp_unittests.txt`
```
aaclip
domain
formats
highcontrastfilter
rectangle_texture
yuv_make_color_space
```
```
ProcessorOptimizationValidationTest
VkProtectedContext_CreateNonprotectedContext
VkYCbcrSampler_DrawImageWithYcbcrSampler
VkYCbcrSampler_NoYcbcrSurface
```
Each test was updated with the max_error count equal to the first run result.
```
analytic_antialias_inverse
async_rescale_and_read_dog_down
async_rescale_and_read_dog_up
async_rescale_and_read_rose
async_rescale_and_read_text_down
async_rescale_and_read_text_up
async_rescale_and_read_text_up_large
async_rescale_and_read_yuv420_rose
complexclip2_path_bw
encode-platform
imageblur_large
lcdtextsize
onebadarc
onefailarc
scale-pixels
surfaceprops
textfilter_color
textfilter_image
```
Considering all the following tests results as wrong.
```
async_rescale_and_read_no_bleed
backdrop_imagefilter_croprect_persp
complexclip2
imageblurrepeatmode
mixerCF
overdrawcolorfilter
patch_alpha
patch_primitive
rrect_clip_bw
scaledemoji_rendering
yuv_splitter
```
v2:
a) add link to HTML report on job log
b) remove extraneous spaces diff
c) remove unnecessary conditions from build-skqp.sh
d) use fixed skqp source commit SHA
v3:
a) Use only main skia repository to fetch models and build skqp
b) Use list_gpu_unit_tests binary to create a base unittests.txt file
c) Remove crashing tests
d) Set failing tests expectations for the first skqp run
v4:
a) Remove clang dependency
b) Separate each skqp backend result into its folder
c) Regroup a630_skqp in one job
v5:
a) Separate tests files per driver
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5580
Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14146>
2021-12-07 14:13:00 +00:00
|
|
|
libglu1-mesa-dev \
|
|
|
|
libglx-dev \
|
2021-05-04 07:26:55 +01:00
|
|
|
libpng-dev \
|
2020-04-01 12:07:46 +01:00
|
|
|
libssl-dev \
|
2021-03-19 11:52:35 +00:00
|
|
|
libudev-dev \
|
2020-04-01 12:07:46 +01:00
|
|
|
libvulkan-dev \
|
2020-08-27 20:18:17 +01:00
|
|
|
libwaffle-dev \
|
2021-03-19 11:52:35 +00:00
|
|
|
libwayland-dev \
|
|
|
|
libx11-xcb-dev \
|
2021-07-12 22:39:30 +01:00
|
|
|
libxcb-dri2-0-dev \
|
2020-08-27 20:18:17 +01:00
|
|
|
libxkbcommon-dev \
|
ci: Build skqp on ARM64 images
This commit makes `kernel+rootfs_arm64` job build and install skqp on
ARM64 devices rootfs.
Skia repository has a tool to prepare skqp models located at
`tools/skqp/cut-release`, which get files from [Skia
Gold](https://skia.org/docs/dev/testing/skiagold/), generate
files.checksum, rendertests.txt and unittests.txt. One gives a range of
commits to let `cut-release` find the right resources to prepare skqp
for the user. However, it is failing, since it fails when trying to get
image packages from a range of commits via HTTPS from the host
https://public-gold.skia.org but it responds with error 404 every time.
I tried a range a thousand of commits, yet it still does not give
results. The workaround employed was to recover the most recent
`files.checksum` and `rendertests.txt` files from the git history and
generate `unittests.txt` from `list_gpu_unit_tests` binary.
`skqp` runs two lists of tests, `rendertests.txt` and `unittests.txt`.
Both must be located inside the `skqp` assets folder. The first list
uses GL and GLES to test rendering scenarios. The second runs some unit
tests that do not render an image per se.
In order to make the first `a630_skqp` to be green, the crashing tests
were removed from the test lists and the expectations of the failing
ones were updated.
It is worth noting that `rendertests.txt` can bring some detail about
each test expectation, so each test can have a max pixel error count, to
tell `skqp` that it is OK to have at most that number of errors for that
test. See also:
https://github.com/google/skia/blob/main/tools/skqp/README_ALGORITHM.md
As each render backend has a different error count, two different
`rendertests.txt` files were created,
`src/freedreno/ci/freedreno-a630-skqp-gl_rendertests.txt`,
`src/freedreno/ci/freedreno-a630-skqp-gles_rendertests.txt` and
, which one refers to GL and GLES tests respectfully.
The unit tests file for a630 is located at
`src/freedreno/ci/freedreno-a630-skqp_unittests.txt`
```
aaclip
domain
formats
highcontrastfilter
rectangle_texture
yuv_make_color_space
```
```
ProcessorOptimizationValidationTest
VkProtectedContext_CreateNonprotectedContext
VkYCbcrSampler_DrawImageWithYcbcrSampler
VkYCbcrSampler_NoYcbcrSurface
```
Each test was updated with the max_error count equal to the first run result.
```
analytic_antialias_inverse
async_rescale_and_read_dog_down
async_rescale_and_read_dog_up
async_rescale_and_read_rose
async_rescale_and_read_text_down
async_rescale_and_read_text_up
async_rescale_and_read_text_up_large
async_rescale_and_read_yuv420_rose
complexclip2_path_bw
encode-platform
imageblur_large
lcdtextsize
onebadarc
onefailarc
scale-pixels
surfaceprops
textfilter_color
textfilter_image
```
Considering all the following tests results as wrong.
```
async_rescale_and_read_no_bleed
backdrop_imagefilter_croprect_persp
complexclip2
imageblurrepeatmode
mixerCF
overdrawcolorfilter
patch_alpha
patch_primitive
rrect_clip_bw
scaledemoji_rendering
yuv_splitter
```
v2:
a) add link to HTML report on job log
b) remove extraneous spaces diff
c) remove unnecessary conditions from build-skqp.sh
d) use fixed skqp source commit SHA
v3:
a) Use only main skia repository to fetch models and build skqp
b) Use list_gpu_unit_tests binary to create a base unittests.txt file
c) Remove crashing tests
d) Set failing tests expectations for the first skqp run
v4:
a) Remove clang dependency
b) Separate each skqp backend result into its folder
c) Regroup a630_skqp in one job
v5:
a) Separate tests files per driver
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5580
Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14146>
2021-12-07 14:13:00 +00:00
|
|
|
ninja-build \
|
2020-08-27 20:18:17 +01:00
|
|
|
patch \
|
ci: Build skqp on ARM64 images
This commit makes `kernel+rootfs_arm64` job build and install skqp on
ARM64 devices rootfs.
Skia repository has a tool to prepare skqp models located at
`tools/skqp/cut-release`, which get files from [Skia
Gold](https://skia.org/docs/dev/testing/skiagold/), generate
files.checksum, rendertests.txt and unittests.txt. One gives a range of
commits to let `cut-release` find the right resources to prepare skqp
for the user. However, it is failing, since it fails when trying to get
image packages from a range of commits via HTTPS from the host
https://public-gold.skia.org but it responds with error 404 every time.
I tried a range a thousand of commits, yet it still does not give
results. The workaround employed was to recover the most recent
`files.checksum` and `rendertests.txt` files from the git history and
generate `unittests.txt` from `list_gpu_unit_tests` binary.
`skqp` runs two lists of tests, `rendertests.txt` and `unittests.txt`.
Both must be located inside the `skqp` assets folder. The first list
uses GL and GLES to test rendering scenarios. The second runs some unit
tests that do not render an image per se.
In order to make the first `a630_skqp` to be green, the crashing tests
were removed from the test lists and the expectations of the failing
ones were updated.
It is worth noting that `rendertests.txt` can bring some detail about
each test expectation, so each test can have a max pixel error count, to
tell `skqp` that it is OK to have at most that number of errors for that
test. See also:
https://github.com/google/skia/blob/main/tools/skqp/README_ALGORITHM.md
As each render backend has a different error count, two different
`rendertests.txt` files were created,
`src/freedreno/ci/freedreno-a630-skqp-gl_rendertests.txt`,
`src/freedreno/ci/freedreno-a630-skqp-gles_rendertests.txt` and
, which one refers to GL and GLES tests respectfully.
The unit tests file for a630 is located at
`src/freedreno/ci/freedreno-a630-skqp_unittests.txt`
```
aaclip
domain
formats
highcontrastfilter
rectangle_texture
yuv_make_color_space
```
```
ProcessorOptimizationValidationTest
VkProtectedContext_CreateNonprotectedContext
VkYCbcrSampler_DrawImageWithYcbcrSampler
VkYCbcrSampler_NoYcbcrSurface
```
Each test was updated with the max_error count equal to the first run result.
```
analytic_antialias_inverse
async_rescale_and_read_dog_down
async_rescale_and_read_dog_up
async_rescale_and_read_rose
async_rescale_and_read_text_down
async_rescale_and_read_text_up
async_rescale_and_read_text_up_large
async_rescale_and_read_yuv420_rose
complexclip2_path_bw
encode-platform
imageblur_large
lcdtextsize
onebadarc
onefailarc
scale-pixels
surfaceprops
textfilter_color
textfilter_image
```
Considering all the following tests results as wrong.
```
async_rescale_and_read_no_bleed
backdrop_imagefilter_croprect_persp
complexclip2
imageblurrepeatmode
mixerCF
overdrawcolorfilter
patch_alpha
patch_primitive
rrect_clip_bw
scaledemoji_rendering
yuv_splitter
```
v2:
a) add link to HTML report on job log
b) remove extraneous spaces diff
c) remove unnecessary conditions from build-skqp.sh
d) use fixed skqp source commit SHA
v3:
a) Use only main skia repository to fetch models and build skqp
b) Use list_gpu_unit_tests binary to create a base unittests.txt file
c) Remove crashing tests
d) Set failing tests expectations for the first skqp run
v4:
a) Remove clang dependency
b) Separate each skqp backend result into its folder
c) Regroup a630_skqp in one job
v5:
a) Separate tests files per driver
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5580
Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14146>
2021-12-07 14:13:00 +00:00
|
|
|
python-is-python3 \
|
2020-04-01 12:07:46 +01:00
|
|
|
python3-distutils \
|
2020-08-27 20:18:17 +01:00
|
|
|
python3-mako \
|
|
|
|
python3-numpy \
|
2020-04-01 12:07:46 +01:00
|
|
|
python3-serial \
|
ci: Build skqp on ARM64 images
This commit makes `kernel+rootfs_arm64` job build and install skqp on
ARM64 devices rootfs.
Skia repository has a tool to prepare skqp models located at
`tools/skqp/cut-release`, which get files from [Skia
Gold](https://skia.org/docs/dev/testing/skiagold/), generate
files.checksum, rendertests.txt and unittests.txt. One gives a range of
commits to let `cut-release` find the right resources to prepare skqp
for the user. However, it is failing, since it fails when trying to get
image packages from a range of commits via HTTPS from the host
https://public-gold.skia.org but it responds with error 404 every time.
I tried a range a thousand of commits, yet it still does not give
results. The workaround employed was to recover the most recent
`files.checksum` and `rendertests.txt` files from the git history and
generate `unittests.txt` from `list_gpu_unit_tests` binary.
`skqp` runs two lists of tests, `rendertests.txt` and `unittests.txt`.
Both must be located inside the `skqp` assets folder. The first list
uses GL and GLES to test rendering scenarios. The second runs some unit
tests that do not render an image per se.
In order to make the first `a630_skqp` to be green, the crashing tests
were removed from the test lists and the expectations of the failing
ones were updated.
It is worth noting that `rendertests.txt` can bring some detail about
each test expectation, so each test can have a max pixel error count, to
tell `skqp` that it is OK to have at most that number of errors for that
test. See also:
https://github.com/google/skia/blob/main/tools/skqp/README_ALGORITHM.md
As each render backend has a different error count, two different
`rendertests.txt` files were created,
`src/freedreno/ci/freedreno-a630-skqp-gl_rendertests.txt`,
`src/freedreno/ci/freedreno-a630-skqp-gles_rendertests.txt` and
, which one refers to GL and GLES tests respectfully.
The unit tests file for a630 is located at
`src/freedreno/ci/freedreno-a630-skqp_unittests.txt`
```
aaclip
domain
formats
highcontrastfilter
rectangle_texture
yuv_make_color_space
```
```
ProcessorOptimizationValidationTest
VkProtectedContext_CreateNonprotectedContext
VkYCbcrSampler_DrawImageWithYcbcrSampler
VkYCbcrSampler_NoYcbcrSurface
```
Each test was updated with the max_error count equal to the first run result.
```
analytic_antialias_inverse
async_rescale_and_read_dog_down
async_rescale_and_read_dog_up
async_rescale_and_read_rose
async_rescale_and_read_text_down
async_rescale_and_read_text_up
async_rescale_and_read_text_up_large
async_rescale_and_read_yuv420_rose
complexclip2_path_bw
encode-platform
imageblur_large
lcdtextsize
onebadarc
onefailarc
scale-pixels
surfaceprops
textfilter_color
textfilter_image
```
Considering all the following tests results as wrong.
```
async_rescale_and_read_no_bleed
backdrop_imagefilter_croprect_persp
complexclip2
imageblurrepeatmode
mixerCF
overdrawcolorfilter
patch_alpha
patch_primitive
rrect_clip_bw
scaledemoji_rendering
yuv_splitter
```
v2:
a) add link to HTML report on job log
b) remove extraneous spaces diff
c) remove unnecessary conditions from build-skqp.sh
d) use fixed skqp source commit SHA
v3:
a) Use only main skia repository to fetch models and build skqp
b) Use list_gpu_unit_tests binary to create a base unittests.txt file
c) Remove crashing tests
d) Set failing tests expectations for the first skqp run
v4:
a) Remove clang dependency
b) Separate each skqp backend result into its folder
c) Regroup a630_skqp in one job
v5:
a) Separate tests files per driver
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5580
Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14146>
2021-12-07 14:13:00 +00:00
|
|
|
unzip \
|
2022-07-27 12:57:42 +01:00
|
|
|
wget \
|
|
|
|
zstd
|
2020-04-01 12:07:46 +01:00
|
|
|
|
|
|
|
|
|
|
|
if [[ "$DEBIAN_ARCH" = "armhf" ]]; then
|
2021-03-19 11:52:35 +00:00
|
|
|
apt-get install -y --no-remove \
|
2020-08-27 20:18:17 +01:00
|
|
|
libegl1-mesa-dev:armhf \
|
2020-11-11 16:15:25 +00:00
|
|
|
libelf-dev:armhf \
|
|
|
|
libgbm-dev:armhf \
|
|
|
|
libgles2-mesa-dev:armhf \
|
2021-05-04 07:26:55 +01:00
|
|
|
libpng-dev:armhf \
|
2021-03-19 11:52:35 +00:00
|
|
|
libudev-dev:armhf \
|
2020-11-11 16:15:25 +00:00
|
|
|
libvulkan-dev:armhf \
|
2020-08-27 20:18:17 +01:00
|
|
|
libwaffle-dev:armhf \
|
2021-03-19 11:52:35 +00:00
|
|
|
libwayland-dev:armhf \
|
|
|
|
libx11-xcb-dev:armhf \
|
2021-03-20 10:00:05 +00:00
|
|
|
libxkbcommon-dev:armhf
|
2020-04-01 12:07:46 +01:00
|
|
|
fi
|
|
|
|
|
2020-10-29 17:29:28 +00:00
|
|
|
|
2020-11-11 19:29:46 +00:00
|
|
|
############### Building
|
|
|
|
STRIP_CMD="${GCC_ARCH}-strip"
|
2022-02-18 11:35:51 +00:00
|
|
|
mkdir -p /lava-files/rootfs-${DEBIAN_ARCH}/usr/lib/$GCC_ARCH
|
2020-11-11 19:29:46 +00:00
|
|
|
|
|
|
|
|
2021-05-04 07:26:55 +01:00
|
|
|
############### Build apitrace
|
|
|
|
. .gitlab-ci/container/build-apitrace.sh
|
|
|
|
mkdir -p /lava-files/rootfs-${DEBIAN_ARCH}/apitrace
|
|
|
|
mv /apitrace/build /lava-files/rootfs-${DEBIAN_ARCH}/apitrace
|
|
|
|
rm -rf /apitrace
|
|
|
|
|
|
|
|
|
2020-11-11 19:29:46 +00:00
|
|
|
############### Build dEQP runner
|
2021-01-27 15:38:01 +00:00
|
|
|
. .gitlab-ci/container/build-deqp-runner.sh
|
2019-12-17 10:50:14 +00:00
|
|
|
mkdir -p /lava-files/rootfs-${DEBIAN_ARCH}/usr/bin
|
2021-10-08 21:17:27 +01:00
|
|
|
mv /usr/local/bin/*-runner /lava-files/rootfs-${DEBIAN_ARCH}/usr/bin/.
|
2019-09-10 16:43:25 +01:00
|
|
|
|
2019-06-07 09:20:28 +01:00
|
|
|
|
2019-12-13 09:20:23 +00:00
|
|
|
############### Build dEQP
|
2021-01-27 15:38:01 +00:00
|
|
|
DEQP_TARGET=surfaceless . .gitlab-ci/container/build-deqp.sh
|
2020-05-28 20:50:51 +01:00
|
|
|
|
2019-12-17 10:50:14 +00:00
|
|
|
mv /deqp /lava-files/rootfs-${DEBIAN_ARCH}/.
|
2019-08-15 09:41:21 +01:00
|
|
|
|
|
|
|
|
ci: Build skqp on ARM64 images
This commit makes `kernel+rootfs_arm64` job build and install skqp on
ARM64 devices rootfs.
Skia repository has a tool to prepare skqp models located at
`tools/skqp/cut-release`, which get files from [Skia
Gold](https://skia.org/docs/dev/testing/skiagold/), generate
files.checksum, rendertests.txt and unittests.txt. One gives a range of
commits to let `cut-release` find the right resources to prepare skqp
for the user. However, it is failing, since it fails when trying to get
image packages from a range of commits via HTTPS from the host
https://public-gold.skia.org but it responds with error 404 every time.
I tried a range a thousand of commits, yet it still does not give
results. The workaround employed was to recover the most recent
`files.checksum` and `rendertests.txt` files from the git history and
generate `unittests.txt` from `list_gpu_unit_tests` binary.
`skqp` runs two lists of tests, `rendertests.txt` and `unittests.txt`.
Both must be located inside the `skqp` assets folder. The first list
uses GL and GLES to test rendering scenarios. The second runs some unit
tests that do not render an image per se.
In order to make the first `a630_skqp` to be green, the crashing tests
were removed from the test lists and the expectations of the failing
ones were updated.
It is worth noting that `rendertests.txt` can bring some detail about
each test expectation, so each test can have a max pixel error count, to
tell `skqp` that it is OK to have at most that number of errors for that
test. See also:
https://github.com/google/skia/blob/main/tools/skqp/README_ALGORITHM.md
As each render backend has a different error count, two different
`rendertests.txt` files were created,
`src/freedreno/ci/freedreno-a630-skqp-gl_rendertests.txt`,
`src/freedreno/ci/freedreno-a630-skqp-gles_rendertests.txt` and
, which one refers to GL and GLES tests respectfully.
The unit tests file for a630 is located at
`src/freedreno/ci/freedreno-a630-skqp_unittests.txt`
```
aaclip
domain
formats
highcontrastfilter
rectangle_texture
yuv_make_color_space
```
```
ProcessorOptimizationValidationTest
VkProtectedContext_CreateNonprotectedContext
VkYCbcrSampler_DrawImageWithYcbcrSampler
VkYCbcrSampler_NoYcbcrSurface
```
Each test was updated with the max_error count equal to the first run result.
```
analytic_antialias_inverse
async_rescale_and_read_dog_down
async_rescale_and_read_dog_up
async_rescale_and_read_rose
async_rescale_and_read_text_down
async_rescale_and_read_text_up
async_rescale_and_read_text_up_large
async_rescale_and_read_yuv420_rose
complexclip2_path_bw
encode-platform
imageblur_large
lcdtextsize
onebadarc
onefailarc
scale-pixels
surfaceprops
textfilter_color
textfilter_image
```
Considering all the following tests results as wrong.
```
async_rescale_and_read_no_bleed
backdrop_imagefilter_croprect_persp
complexclip2
imageblurrepeatmode
mixerCF
overdrawcolorfilter
patch_alpha
patch_primitive
rrect_clip_bw
scaledemoji_rendering
yuv_splitter
```
v2:
a) add link to HTML report on job log
b) remove extraneous spaces diff
c) remove unnecessary conditions from build-skqp.sh
d) use fixed skqp source commit SHA
v3:
a) Use only main skia repository to fetch models and build skqp
b) Use list_gpu_unit_tests binary to create a base unittests.txt file
c) Remove crashing tests
d) Set failing tests expectations for the first skqp run
v4:
a) Remove clang dependency
b) Separate each skqp backend result into its folder
c) Regroup a630_skqp in one job
v5:
a) Separate tests files per driver
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5580
Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14146>
2021-12-07 14:13:00 +00:00
|
|
|
############### Build SKQP
|
2022-04-18 15:15:11 +01:00
|
|
|
if [[ "$DEBIAN_ARCH" = "arm64" ]] \
|
|
|
|
|| [[ "$DEBIAN_ARCH" = "amd64" ]]; then
|
|
|
|
. .gitlab-ci/container/build-skqp.sh
|
ci: Build skqp on ARM64 images
This commit makes `kernel+rootfs_arm64` job build and install skqp on
ARM64 devices rootfs.
Skia repository has a tool to prepare skqp models located at
`tools/skqp/cut-release`, which get files from [Skia
Gold](https://skia.org/docs/dev/testing/skiagold/), generate
files.checksum, rendertests.txt and unittests.txt. One gives a range of
commits to let `cut-release` find the right resources to prepare skqp
for the user. However, it is failing, since it fails when trying to get
image packages from a range of commits via HTTPS from the host
https://public-gold.skia.org but it responds with error 404 every time.
I tried a range a thousand of commits, yet it still does not give
results. The workaround employed was to recover the most recent
`files.checksum` and `rendertests.txt` files from the git history and
generate `unittests.txt` from `list_gpu_unit_tests` binary.
`skqp` runs two lists of tests, `rendertests.txt` and `unittests.txt`.
Both must be located inside the `skqp` assets folder. The first list
uses GL and GLES to test rendering scenarios. The second runs some unit
tests that do not render an image per se.
In order to make the first `a630_skqp` to be green, the crashing tests
were removed from the test lists and the expectations of the failing
ones were updated.
It is worth noting that `rendertests.txt` can bring some detail about
each test expectation, so each test can have a max pixel error count, to
tell `skqp` that it is OK to have at most that number of errors for that
test. See also:
https://github.com/google/skia/blob/main/tools/skqp/README_ALGORITHM.md
As each render backend has a different error count, two different
`rendertests.txt` files were created,
`src/freedreno/ci/freedreno-a630-skqp-gl_rendertests.txt`,
`src/freedreno/ci/freedreno-a630-skqp-gles_rendertests.txt` and
, which one refers to GL and GLES tests respectfully.
The unit tests file for a630 is located at
`src/freedreno/ci/freedreno-a630-skqp_unittests.txt`
```
aaclip
domain
formats
highcontrastfilter
rectangle_texture
yuv_make_color_space
```
```
ProcessorOptimizationValidationTest
VkProtectedContext_CreateNonprotectedContext
VkYCbcrSampler_DrawImageWithYcbcrSampler
VkYCbcrSampler_NoYcbcrSurface
```
Each test was updated with the max_error count equal to the first run result.
```
analytic_antialias_inverse
async_rescale_and_read_dog_down
async_rescale_and_read_dog_up
async_rescale_and_read_rose
async_rescale_and_read_text_down
async_rescale_and_read_text_up
async_rescale_and_read_text_up_large
async_rescale_and_read_yuv420_rose
complexclip2_path_bw
encode-platform
imageblur_large
lcdtextsize
onebadarc
onefailarc
scale-pixels
surfaceprops
textfilter_color
textfilter_image
```
Considering all the following tests results as wrong.
```
async_rescale_and_read_no_bleed
backdrop_imagefilter_croprect_persp
complexclip2
imageblurrepeatmode
mixerCF
overdrawcolorfilter
patch_alpha
patch_primitive
rrect_clip_bw
scaledemoji_rendering
yuv_splitter
```
v2:
a) add link to HTML report on job log
b) remove extraneous spaces diff
c) remove unnecessary conditions from build-skqp.sh
d) use fixed skqp source commit SHA
v3:
a) Use only main skia repository to fetch models and build skqp
b) Use list_gpu_unit_tests binary to create a base unittests.txt file
c) Remove crashing tests
d) Set failing tests expectations for the first skqp run
v4:
a) Remove clang dependency
b) Separate each skqp backend result into its folder
c) Regroup a630_skqp in one job
v5:
a) Separate tests files per driver
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5580
Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14146>
2021-12-07 14:13:00 +00:00
|
|
|
mv /skqp /lava-files/rootfs-${DEBIAN_ARCH}/.
|
|
|
|
fi
|
|
|
|
|
2020-08-27 20:18:17 +01:00
|
|
|
############### Build piglit
|
2021-07-12 22:39:30 +01:00
|
|
|
PIGLIT_OPTS="-DPIGLIT_BUILD_DMA_BUF_TESTS=ON" . .gitlab-ci/container/build-piglit.sh
|
2021-03-31 08:32:20 +01:00
|
|
|
mv /piglit /lava-files/rootfs-${DEBIAN_ARCH}/.
|
2020-08-27 20:18:17 +01:00
|
|
|
|
2021-10-08 21:17:27 +01:00
|
|
|
############### Build libva tests
|
|
|
|
if [[ "$DEBIAN_ARCH" = "amd64" ]]; then
|
|
|
|
. .gitlab-ci/container/build-va-tools.sh
|
|
|
|
mv /va/bin/* /lava-files/rootfs-${DEBIAN_ARCH}/usr/bin/
|
|
|
|
fi
|
2020-08-27 20:18:17 +01:00
|
|
|
|
2022-02-18 11:35:51 +00:00
|
|
|
############### Build Crosvm
|
|
|
|
if [[ ${DEBIAN_ARCH} = "amd64" ]]; then
|
|
|
|
. .gitlab-ci/container/build-crosvm.sh
|
|
|
|
mv /usr/local/bin/crosvm /lava-files/rootfs-${DEBIAN_ARCH}/usr/bin/
|
|
|
|
mv /usr/local/lib/$GCC_ARCH/libvirglrenderer.* /lava-files/rootfs-${DEBIAN_ARCH}/usr/lib/$GCC_ARCH/
|
|
|
|
fi
|
|
|
|
|
2020-07-03 09:04:20 +01:00
|
|
|
############### Build libdrm
|
|
|
|
EXTRA_MESON_ARGS+=" -D prefix=/libdrm"
|
2021-01-27 15:38:01 +00:00
|
|
|
. .gitlab-ci/container/build-libdrm.sh
|
2020-07-03 09:04:20 +01:00
|
|
|
|
2022-03-29 12:48:49 +01:00
|
|
|
|
|
|
|
############### Build local stuff for use by igt and kernel testing, which
|
|
|
|
############### will reuse most of our container build process from a specific
|
|
|
|
############### hash of the Mesa tree.
|
|
|
|
if [[ -e ".gitlab-ci/local/build-rootfs.sh" ]]; then
|
|
|
|
. .gitlab-ci/local/build-rootfs.sh
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2021-03-08 13:05:08 +00:00
|
|
|
############### Build kernel
|
|
|
|
. .gitlab-ci/container/build-kernel.sh
|
2019-06-07 09:20:28 +01:00
|
|
|
|
2020-11-07 17:25:37 +00:00
|
|
|
############### Delete rust, since the tests won't be compiling anything.
|
2021-03-22 16:02:50 +00:00
|
|
|
rm -rf /root/.cargo
|
2022-01-07 17:44:43 +00:00
|
|
|
rm -rf /root/.rustup
|
2020-11-07 17:25:37 +00:00
|
|
|
|
2019-06-07 09:20:28 +01:00
|
|
|
############### Create rootfs
|
2019-08-19 15:40:53 +01:00
|
|
|
set +e
|
2021-03-19 11:52:35 +00:00
|
|
|
if ! debootstrap \
|
|
|
|
--variant=minbase \
|
|
|
|
--arch=${DEBIAN_ARCH} \
|
ci: Include db410c support in the ARM container.
I'm working on moving the db410c CI from docker to LAVA, which means we
get to boot a custom kernel. To do that, we need to enable ARCH_QCOM in
the kernel, save the dtb around, and include abootimg in our container so
that we can generate combined kernel/dtb/ramdisk images for fastboot.
LAVA's fastboot support is unable to pack the overlay into an abootimg
image, just a cpio rootfs. We could flash the cpio rootfs after overlay
addition, but that takes 2 minutes to do, and causes wear on the devices.
Instead, we'll bring up the network at boot and use wget to fetch the
overlay. We'll want network support anyway, so that we can transfer the
failure xmls back to the gitlab job's artifacts at some point.
Since the msm GPU and realtek network firmware increase our payload by
3MB, add in firmware compression so that it doesn't waste as much RAM on
devices not using it.
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3928>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3928>
2020-01-28 20:02:39 +00:00
|
|
|
--components main,contrib,non-free \
|
2021-03-19 11:52:35 +00:00
|
|
|
bullseye \
|
|
|
|
/lava-files/rootfs-${DEBIAN_ARCH}/ \
|
|
|
|
http://deb.debian.org/debian; then
|
|
|
|
cat /lava-files/rootfs-${DEBIAN_ARCH}/debootstrap/debootstrap.log
|
|
|
|
exit 1
|
|
|
|
fi
|
2019-08-19 15:40:53 +01:00
|
|
|
set -e
|
2019-08-19 16:30:10 +01:00
|
|
|
|
2021-01-27 15:38:01 +00:00
|
|
|
cp .gitlab-ci/container/create-rootfs.sh /lava-files/rootfs-${DEBIAN_ARCH}/.
|
2022-06-21 08:37:04 +01:00
|
|
|
cp .gitlab-ci/container/debian/llvm-snapshot.gpg.key /lava-files/rootfs-${DEBIAN_ARCH}/.
|
2021-03-31 08:32:20 +01:00
|
|
|
chroot /lava-files/rootfs-${DEBIAN_ARCH} sh /create-rootfs.sh
|
2022-06-21 08:37:04 +01:00
|
|
|
rm /lava-files/rootfs-${DEBIAN_ARCH}/llvm-snapshot.gpg.key
|
2019-12-17 10:50:14 +00:00
|
|
|
rm /lava-files/rootfs-${DEBIAN_ARCH}/create-rootfs.sh
|
2020-08-27 20:18:17 +01:00
|
|
|
|
|
|
|
|
|
|
|
############### Install the built libdrm
|
|
|
|
# Dependencies pulled during the creation of the rootfs may overwrite
|
|
|
|
# the built libdrm. Hence, we add it after the rootfs has been already
|
|
|
|
# created.
|
|
|
|
find /libdrm/ -name lib\*\.so\* | xargs cp -t /lava-files/rootfs-${DEBIAN_ARCH}/usr/lib/$GCC_ARCH/.
|
2021-10-08 21:17:27 +01:00
|
|
|
mkdir -p /lava-files/rootfs-${DEBIAN_ARCH}/libdrm/
|
|
|
|
cp -Rp /libdrm/share /lava-files/rootfs-${DEBIAN_ARCH}/libdrm/share
|
2020-08-27 20:18:17 +01:00
|
|
|
rm -rf /libdrm
|
|
|
|
|
|
|
|
|
2021-04-13 06:40:36 +01:00
|
|
|
if [ ${DEBIAN_ARCH} = arm64 ]; then
|
2020-07-09 21:38:51 +01:00
|
|
|
# Make a gzipped copy of the Image for db410c.
|
|
|
|
gzip -k /lava-files/Image
|
2021-03-29 14:09:06 +01:00
|
|
|
KERNEL_IMAGE_NAME+=" Image.gz"
|
2020-07-09 21:38:51 +01:00
|
|
|
fi
|
2020-04-01 12:07:46 +01:00
|
|
|
|
2021-03-29 14:09:06 +01:00
|
|
|
du -ah /lava-files/rootfs-${DEBIAN_ARCH} | sort -h | tail -100
|
|
|
|
pushd /lava-files/rootfs-${DEBIAN_ARCH}
|
2022-07-27 12:57:42 +01:00
|
|
|
tar --zstd -cf /lava-files/lava-rootfs.tar.zst .
|
2021-03-29 14:09:06 +01:00
|
|
|
popd
|
|
|
|
|
2020-04-01 12:07:46 +01:00
|
|
|
. .gitlab-ci/container/container_post_build.sh
|
|
|
|
|
|
|
|
############### Upload the files!
|
2021-12-02 13:13:10 +00:00
|
|
|
ci-fairy minio login --token-file "${CI_JOB_JWT_FILE}"
|
2022-07-27 12:57:42 +01:00
|
|
|
FILES_TO_UPLOAD="lava-rootfs.tar.zst \
|
2021-03-29 14:09:06 +01:00
|
|
|
$KERNEL_IMAGE_NAME"
|
2020-07-09 21:38:51 +01:00
|
|
|
|
2021-03-29 14:09:06 +01:00
|
|
|
if [[ -n $DEVICE_TREES ]]; then
|
|
|
|
FILES_TO_UPLOAD="$FILES_TO_UPLOAD $(basename -a $DEVICE_TREES)"
|
2020-07-09 21:38:51 +01:00
|
|
|
fi
|
2020-03-03 22:38:09 +00:00
|
|
|
|
2021-03-29 14:09:06 +01:00
|
|
|
for f in $FILES_TO_UPLOAD; do
|
|
|
|
ci-fairy minio cp /lava-files/$f \
|
|
|
|
minio://${MINIO_PATH}/$f
|
|
|
|
done
|
|
|
|
|
|
|
|
touch /lava-files/done
|
|
|
|
ci-fairy minio cp /lava-files/done minio://${MINIO_PATH}/done
|