mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-23 18:24:13 +08:00
ci: Allow better customization of the name of the artifacts for minio.
To have asan testing, we need two different sets of artifacts per arch. Plus, "UPLOAD_FOR_LAVA" was misnamed at this point anyway. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9070>
This commit is contained in:
parent
82392e0bb9
commit
d1b63211c4
@ -642,8 +642,7 @@ meson-testing:
|
||||
BUILDTYPE: "debugoptimized"
|
||||
EXTRA_OPTION: >
|
||||
-D werror=true
|
||||
UPLOAD_FOR_LAVA: 1
|
||||
DEBIAN_ARCH: amd64
|
||||
MINIO_ARTIFACT_NAME: mesa-amd64
|
||||
script:
|
||||
- .gitlab-ci/meson-build.sh
|
||||
- .gitlab-ci/prepare-artifacts.sh
|
||||
@ -654,7 +653,7 @@ meson-testing-asan:
|
||||
variables:
|
||||
EXTRA_OPTION: >
|
||||
-D b_sanitize=address
|
||||
UPLOAD_FOR_LAVA: ""
|
||||
MINIO_ARTIFACT_NAME: ""
|
||||
ARTIFACTS_DEBUG_SYMBOLS: 1
|
||||
|
||||
meson-clover-testing:
|
||||
@ -820,8 +819,7 @@ meson-armhf:
|
||||
LLVM_VERSION: "7"
|
||||
EXTRA_OPTION: >
|
||||
-D llvm=disabled
|
||||
UPLOAD_FOR_LAVA: 1
|
||||
DEBIAN_ARCH: armhf
|
||||
MINIO_ARTIFACT_NAME: mesa-armhf
|
||||
script:
|
||||
- .gitlab-ci/meson-build.sh
|
||||
- .gitlab-ci/prepare-artifacts.sh
|
||||
@ -834,8 +832,7 @@ meson-arm64:
|
||||
VULKAN_DRIVERS: "freedreno,broadcom"
|
||||
EXTRA_OPTION: >
|
||||
-D llvm=disabled
|
||||
UPLOAD_FOR_LAVA: 1
|
||||
DEBIAN_ARCH: arm64
|
||||
MINIO_ARTIFACT_NAME: mesa-arm64
|
||||
script:
|
||||
- .gitlab-ci/meson-build.sh
|
||||
- .gitlab-ci/prepare-artifacts.sh
|
||||
@ -1612,14 +1609,12 @@ arm64_a630_piglit_shader:
|
||||
# Cancel job if a newer commit is pushed to the same branch
|
||||
interruptible: true
|
||||
stage: test
|
||||
variables:
|
||||
DRIVER_URL: https://minio-packet.freedesktop.org/artifacts/${CI_PROJECT_PATH}/${CI_PIPELINE_ID}/mesa-arm64.tar.gz
|
||||
before_script:
|
||||
# Use this instead of gitlab's artifacts download because it hits packet.net
|
||||
# instead of fd.o. Set FDO_HTTP_CACHE_URI to an http cache for your test lab to
|
||||
# improve it even more (see https://docs.mesa3d.org/ci/bare-metal.html for
|
||||
# setup).
|
||||
- wget ${FDO_HTTP_CACHE_URI:-}${DRIVER_URL} -S --progress=dot:giga -O- | tar -xz
|
||||
- wget ${FDO_HTTP_CACHE_URI:-}https://minio-packet.freedesktop.org/artifacts/${CI_PROJECT_PATH}/${CI_PIPELINE_ID}/${MINIO_ARTIFACT_NAME}.tar.gz -S --progress=dot:giga -O- | tar -xz
|
||||
artifacts:
|
||||
when: always
|
||||
name: "mesa_${CI_JOB_NAME}"
|
||||
@ -1635,7 +1630,7 @@ arm64_a630_piglit_shader:
|
||||
extends:
|
||||
- .baremetal-test
|
||||
variables:
|
||||
DRIVER_URL: https://minio-packet.freedesktop.org/artifacts/${CI_PROJECT_PATH}/${CI_PIPELINE_ID}/mesa-armhf.tar.gz
|
||||
MINIO_ARTIFACT_NAME: mesa-armhf
|
||||
|
||||
.freedreno-test:
|
||||
extends:
|
||||
@ -1643,6 +1638,7 @@ arm64_a630_piglit_shader:
|
||||
- .use-arm64_test
|
||||
- .freedreno-rules
|
||||
variables:
|
||||
MINIO_ARTIFACT_NAME: mesa-arm64
|
||||
BM_ROOTFS: /lava-files/rootfs-arm64
|
||||
FLAKES_CHANNEL: "#freedreno-ci"
|
||||
PIGLIT_PLATFORM: mixed_glx_egl
|
||||
|
@ -38,14 +38,14 @@ cp -Rp ci-expects/*/* install/
|
||||
mkdir -p artifacts/
|
||||
tar -cf artifacts/install.tar install
|
||||
|
||||
if [ -n "$UPLOAD_FOR_LAVA" ]; then
|
||||
if [ -n "$MINIO_ARTIFACT_NAME" ]; then
|
||||
# Pass needed files to the test stage
|
||||
cp $CI_PROJECT_DIR/.gitlab-ci/generate_lava.py artifacts/.
|
||||
cp $CI_PROJECT_DIR/.gitlab-ci/lava-*.yml.jinja2 artifacts/.
|
||||
|
||||
MESA_ARTIFACT=mesa-${DEBIAN_ARCH}.tar.gz
|
||||
gzip -c artifacts/install.tar > ${MESA_ARTIFACT}
|
||||
MINIO_ARTIFACT_NAME="$MINIO_ARTIFACT_NAME.tar.gz"
|
||||
gzip -c artifacts/install.tar > ${MINIO_ARTIFACT_NAME}
|
||||
MINIO_PATH=${MINIO_HOST}/artifacts/${CI_PROJECT_PATH}/${CI_PIPELINE_ID}
|
||||
ci-fairy minio login $CI_JOB_JWT
|
||||
ci-fairy minio cp ${MESA_ARTIFACT} minio://${MINIO_PATH}/${MESA_ARTIFACT}
|
||||
ci-fairy minio cp ${MINIO_ARTIFACT_NAME} minio://${MINIO_PATH}/${MINIO_ARTIFACT_NAME}
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user