Compare commits
249 Commits
mesa-24.1.
...
zink-stabl
Author | SHA1 | Date | |
---|---|---|---|
|
0bde71b725 | ||
|
ed1a0b98f3 | ||
|
9a2e406706 | ||
|
c882d7b095 | ||
|
057af805e4 | ||
|
a8bcf44618 | ||
|
6c14a7b646 | ||
|
b886aee46b | ||
|
1a8288c5ea | ||
|
0b9080a1d9 | ||
|
44ea732eed | ||
|
dfb38ea10c | ||
|
7a4067fe50 | ||
|
bd31378d7c | ||
|
57da837aeb | ||
|
6bb99621d7 | ||
|
e8ccf7997c | ||
|
43bcf577be | ||
|
9e76138d41 | ||
|
59b89236da | ||
|
4e5d6dbd3b | ||
|
07780f12dc | ||
|
07310546ba | ||
|
5d0248db61 | ||
|
f179d999fc | ||
|
14ae64b72c | ||
|
23ed4fbd06 | ||
|
d4c1a169ca | ||
|
49e7dde502 | ||
|
3e0711bd8d | ||
|
7b821c820c | ||
|
00abc931bc | ||
|
86ff49871d | ||
|
2901f78257 | ||
|
e3bccd57f6 | ||
|
788c0163eb | ||
|
ee647aab82 | ||
|
e6107766a1 | ||
|
7bb56a2e65 | ||
|
dc30d1d4f1 | ||
|
fd08444dd5 | ||
|
d8e10e6346 | ||
|
dba163b599 | ||
|
3ea69bf0fe | ||
|
4084c2e28d | ||
|
87aa5bdf9b | ||
|
51d0d942a0 | ||
|
3c26800a10 | ||
|
2d95f4f097 | ||
|
637f4a50a6 | ||
|
145db78fe2 | ||
|
6865c117ab | ||
|
0ecc582677 | ||
|
e570645664 | ||
|
83fd284484 | ||
|
b598e695ef | ||
|
3592a653b7 | ||
|
ad234040e5 | ||
|
6fb68b6bd9 | ||
|
97980ebf6c | ||
|
69f5c51b2d | ||
|
fc9ecb5931 | ||
|
f6149e7ff6 | ||
|
0f12f5dba6 | ||
|
8aca433f4a | ||
|
9386fe103e | ||
|
7033e01692 | ||
|
a45b1aecf5 | ||
|
e59fb5130a | ||
|
34b2f00d9c | ||
|
8dab73cab2 | ||
|
2febfbce39 | ||
|
a2204efb8f | ||
|
94f2aaca0c | ||
|
6d080b3e82 | ||
|
dbb887f013 | ||
|
65d0399ccb | ||
|
8b5492aa31 | ||
|
5e903eeffa | ||
|
3841203348 | ||
|
1287fbdb3a | ||
|
cd5e0498c5 | ||
|
db50924867 | ||
|
7f37c0d07d | ||
|
865584a081 | ||
|
b69bf84d23 | ||
|
da9cf451f5 | ||
|
6c71fd3e55 | ||
|
7cd58273cc | ||
|
b39929ed5c | ||
|
00ee04948b | ||
|
622b4eee12 | ||
|
98427a3dd5 | ||
|
55e9c2d6ed | ||
|
9b18378a2c | ||
|
633ec3e714 | ||
|
926e9547c1 | ||
|
83428a9933 | ||
|
982b3d8fc8 | ||
|
d212fb6009 | ||
|
58e1cd7c68 | ||
|
a60992ccea | ||
|
7ca1c73798 | ||
|
11bbf33e31 | ||
|
82db601297 | ||
|
d65ebabbb1 | ||
|
575d50721e | ||
|
06c60e7936 | ||
|
6f9cd27721 | ||
|
80f1e28d56 | ||
|
b5330ce1d4 | ||
|
77e4c75f8b | ||
|
3b87165497 | ||
|
2cbed72bca | ||
|
f3e44738a5 | ||
|
aa93c7f27d | ||
|
bef65f3d02 | ||
|
35a3ad61eb | ||
|
f5bf61309b | ||
|
edc089f737 | ||
|
a94771b5eb | ||
|
5c49c20fe5 | ||
|
cd539c327c | ||
|
cfe298dcb6 | ||
|
9584fbf7d3 | ||
|
12164d05fc | ||
|
4ec17ca7df | ||
|
de27a950cc | ||
|
b0df686feb | ||
|
cff883a5fd | ||
|
63968a36f8 | ||
|
5073369d9c | ||
|
4ce8ed7bbe | ||
|
6fd9633b57 | ||
|
ee1ab0a687 | ||
|
7b4d0bdf37 | ||
|
d44c08ce89 | ||
|
68cf3ae3e1 | ||
|
dd98f98764 | ||
|
af25afc9d6 | ||
|
0c84f8d915 | ||
|
4171bb1239 | ||
|
82836d18d5 | ||
|
42f5a922b4 | ||
|
3b6dd8ff1c | ||
|
f896a02a35 | ||
|
7f6d610bb7 | ||
|
db57b09df2 | ||
|
1bc531b420 | ||
|
406020bfaf | ||
|
ddad2d3af1 | ||
|
830ea32059 | ||
|
ad9f1802c0 | ||
|
7b17a992ba | ||
|
e5f932f7f4 | ||
|
33c8fe16ac | ||
|
20dbe71b13 | ||
|
9d1efae314 | ||
|
e1f8eaadf4 | ||
|
25fb78c855 | ||
|
ec40e504dc | ||
|
194c69ed73 | ||
|
be6a0e0619 | ||
|
0ac42d3df0 | ||
|
89aa4f72ce | ||
|
37ea011cc3 | ||
|
9d5a4e0e02 | ||
|
6dc7de2441 | ||
|
33cdc6043d | ||
|
97d2dff491 | ||
|
7315f3a866 | ||
|
3b388a6dcb | ||
|
c0eb1c601e | ||
|
7fbf06e503 | ||
|
f874ebe024 | ||
|
389475115a | ||
|
5f6bdce7c6 | ||
|
dcafca12d6 | ||
|
a5a2cc6c2a | ||
|
b1e6110c32 | ||
|
443ca0a444 | ||
|
45f97bf08e | ||
|
9a85a37e70 | ||
|
c293347579 | ||
|
5b96710f0b | ||
|
ad0a9aaadc | ||
|
f71841922c | ||
|
deaa221849 | ||
|
13eb1bd04b | ||
|
d019262cf4 | ||
|
a7c460f120 | ||
|
08a0f8fe02 | ||
|
71e6fe758c | ||
|
753854965c | ||
|
3bf326ea68 | ||
|
876f2c35ad | ||
|
97c28e22e8 | ||
|
4c7e92d498 | ||
|
be075d161f | ||
|
629f2e937a | ||
|
40d613fc51 | ||
|
6fea9af930 | ||
|
ddffe6e8a1 | ||
|
4c5c6cf254 | ||
|
f4083ba2a4 | ||
|
1683e8407f | ||
|
2d9d067bbd | ||
|
c5bf8c9189 | ||
|
10da9fd2cf | ||
|
18cfb0c4b4 | ||
|
60e9da990c | ||
|
1cb349d463 | ||
|
d3c0e34fe6 | ||
|
35610ab73c | ||
|
0864841fc6 | ||
|
df3879dfe6 | ||
|
bde2bba37d | ||
|
eb64d60140 | ||
|
62e3b18ddd | ||
|
53b22433b9 | ||
|
9b0da6c5ad | ||
|
fae833ec0e | ||
|
c29a182547 | ||
|
2619e53e9f | ||
|
e4848037a4 | ||
|
506b1b801a | ||
|
8f3f35b868 | ||
|
37d0a9fdaf | ||
|
5d9318a0d2 | ||
|
f9360a7184 | ||
|
bcd8cbe9a5 | ||
|
b691951239 | ||
|
6e46d67a3c | ||
|
340d8511ac | ||
|
ec812aaae1 | ||
|
f6b3c7d830 | ||
|
2089ce9ffc | ||
|
38fb8dcbdf | ||
|
64da97504c | ||
|
151f3e9121 | ||
|
5626212e30 | ||
|
8ada1e6e4d | ||
|
6e8e1b8309 | ||
|
6874eed028 | ||
|
e520c77063 | ||
|
4a08c40b48 | ||
|
3694762b76 | ||
|
28e0c0f52f | ||
|
81c239cb85 |
@@ -1,9 +1,8 @@
|
|||||||
# The following files are opted into `ninja clang-format` and
|
# The following files are opted into `ninja clang-format` and
|
||||||
# enforcement in the CI.
|
# enforcement in the CI.
|
||||||
|
|
||||||
src/gallium/drivers/i915
|
src/**/asahi/**/*
|
||||||
src/gallium/targets/teflon/**/*
|
src/**/panfrost/**/*
|
||||||
src/amd/vulkan/**/*
|
src/amd/vulkan/**/*
|
||||||
src/amd/compiler/**/*
|
src/amd/compiler/**/*
|
||||||
src/egl/**/*
|
src/egl/**/*
|
||||||
src/etnaviv/isa/**/*
|
|
||||||
|
@@ -1,6 +1,4 @@
|
|||||||
# List of commits to ignore when using `git blame`.
|
# List of commits to ignore when using `git blame`.
|
||||||
# Enable with:
|
|
||||||
# git config blame.ignoreRevsFile .git-blame-ignore-revs
|
|
||||||
#
|
#
|
||||||
# Per git-blame(1):
|
# Per git-blame(1):
|
||||||
# Ignore revisions listed in the file, one unabbreviated object name
|
# Ignore revisions listed in the file, one unabbreviated object name
|
||||||
@@ -47,21 +45,3 @@ c7bf3b69ebc8f2252dbf724a4de638e6bb2ac402
|
|||||||
|
|
||||||
# egl: re-format using clang-format
|
# egl: re-format using clang-format
|
||||||
2f670d89db038d5a29f6b72732fd7ad63dfaf4c6
|
2f670d89db038d5a29f6b72732fd7ad63dfaf4c6
|
||||||
|
|
||||||
# panfrost: clang-format the tree
|
|
||||||
0afd691f29683f6e9dde60f79eca094373521806
|
|
||||||
|
|
||||||
# aco: Format.
|
|
||||||
1e2639026fec7069806449f9ba2a124ce4eb5569
|
|
||||||
|
|
||||||
# radv: Format.
|
|
||||||
59c501ca353f8ec9d2717c98af2bfa1a1dbf4d75
|
|
||||||
|
|
||||||
# pvr: clang-format fixes
|
|
||||||
953c04ebd39c52d457301bdd8ac803949001da2d
|
|
||||||
|
|
||||||
# freedreno: Re-indent
|
|
||||||
2d439343ea1aee146d4ce32800992cd389bd505d
|
|
||||||
|
|
||||||
# ir3: Reformat source with clang-format
|
|
||||||
177138d8cb0b4f6a42ef0a1f8593e14d79f17c54
|
|
||||||
|
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -4,4 +4,3 @@
|
|||||||
*.png binary
|
*.png binary
|
||||||
*.gif binary
|
*.gif binary
|
||||||
*.ico binary
|
*.ico binary
|
||||||
*.cl gitlab-language=c
|
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,4 +3,3 @@
|
|||||||
*.pyo
|
*.pyo
|
||||||
*.out
|
*.out
|
||||||
/build
|
/build
|
||||||
.venv/
|
|
||||||
|
291
.gitlab-ci.yml
291
.gitlab-ci.yml
@@ -1,67 +1,21 @@
|
|||||||
# Types of CI pipelines:
|
|
||||||
# | pipeline name | context | description |
|
|
||||||
# |----------------------|-----------|-------------------------------------------------------------|
|
|
||||||
# | merge pipeline | mesa/mesa | pipeline running for an MR; if it passes the MR gets merged |
|
|
||||||
# | pre-merge pipeline | mesa/mesa | same as above, except its status doesn't affect the MR |
|
|
||||||
# | post-merge pipeline | mesa/mesa | pipeline immediately after merging |
|
|
||||||
# | fork pipeline | fork | pipeline running in a user fork |
|
|
||||||
# | scheduled pipeline | mesa/mesa | nightly pipelines, running every morning at 4am UTC |
|
|
||||||
# | direct-push pipeline | mesa/mesa | when commits are pushed directly to mesa/mesa, bypassing Marge and its gating pipeline |
|
|
||||||
#
|
|
||||||
# Note that the release branches maintained by the release manager fall under
|
|
||||||
# the "direct push" category.
|
|
||||||
#
|
|
||||||
# "context" indicates the permissions that the jobs get; notably, any
|
|
||||||
# container created in mesa/mesa gets pushed immediately for everyone to use
|
|
||||||
# as soon as the image tag change is merged.
|
|
||||||
#
|
|
||||||
# Merge pipelines contain all jobs that must pass before the MR can be merged.
|
|
||||||
# Pre-merge pipelines contain the exact same jobs as merge pipelines.
|
|
||||||
# Post-merge pipelines contain *only* the `pages` job that deploys the new
|
|
||||||
# version of the website.
|
|
||||||
# Fork pipelines contain everything.
|
|
||||||
# Scheduled pipelines only contain the container+build jobs, and some extra
|
|
||||||
# test jobs (typically "full" variants of pre-merge jobs that only run 1/X
|
|
||||||
# test cases), but not a repeat of the merge pipeline jobs.
|
|
||||||
# Direct-push pipelines contain the same jobs as merge pipelines.
|
|
||||||
|
|
||||||
workflow:
|
workflow:
|
||||||
rules:
|
rules:
|
||||||
# do not duplicate pipelines on merge pipelines
|
|
||||||
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"
|
|
||||||
when: never
|
|
||||||
# merge pipeline
|
# merge pipeline
|
||||||
- if: &is-merge-attempt $GITLAB_USER_LOGIN == "marge-bot" && $CI_PIPELINE_SOURCE == "merge_request_event"
|
- if: $GITLAB_USER_LOGIN == "marge-bot" && $CI_COMMIT_BRANCH == null
|
||||||
variables:
|
variables:
|
||||||
KERNEL_IMAGE_BASE: https://${S3_HOST}/${S3_KERNEL_BUCKET}/${KERNEL_REPO}/${KERNEL_TAG}
|
|
||||||
MESA_CI_PERFORMANCE_ENABLED: 1
|
MESA_CI_PERFORMANCE_ENABLED: 1
|
||||||
VALVE_INFRA_VANGOGH_JOB_PRIORITY: "" # Empty tags are ignored by gitlab
|
VALVE_INFRA_VANGOGH_JOB_PRIORITY: "" # Empty tags are ignored by gitlab
|
||||||
# post-merge pipeline
|
# post-merge pipeline
|
||||||
- if: &is-post-merge $GITLAB_USER_LOGIN == "marge-bot" && $CI_PIPELINE_SOURCE == "push"
|
- if: $GITLAB_USER_LOGIN == "marge-bot" && $CI_COMMIT_BRANCH
|
||||||
# nightly pipeline
|
|
||||||
- if: &is-scheduled-pipeline $CI_PIPELINE_SOURCE == "schedule"
|
|
||||||
variables:
|
variables:
|
||||||
KERNEL_IMAGE_BASE: https://${S3_HOST}/${S3_KERNEL_BUCKET}/${KERNEL_REPO}/${KERNEL_TAG}
|
LAVA_JOB_PRIORITY: 40
|
||||||
JOB_PRIORITY: 50
|
|
||||||
VALVE_INFRA_VANGOGH_JOB_PRIORITY: priority:low
|
VALVE_INFRA_VANGOGH_JOB_PRIORITY: priority:low
|
||||||
# pipeline for direct pushes that bypassed the CI
|
# any other pipeline
|
||||||
- if: &is-direct-push $CI_PROJECT_NAMESPACE == "mesa" && $CI_PIPELINE_SOURCE == "push" && $GITLAB_USER_LOGIN != "marge-bot"
|
- if: $GITLAB_USER_LOGIN != "marge-bot"
|
||||||
variables:
|
variables:
|
||||||
KERNEL_IMAGE_BASE: https://${S3_HOST}/${S3_KERNEL_BUCKET}/${KERNEL_REPO}/${KERNEL_TAG}
|
LAVA_JOB_PRIORITY: 50
|
||||||
JOB_PRIORITY: 40
|
|
||||||
VALVE_INFRA_VANGOGH_JOB_PRIORITY: priority:low
|
VALVE_INFRA_VANGOGH_JOB_PRIORITY: priority:low
|
||||||
# pre-merge or fork pipeline
|
- when: always
|
||||||
- if: $FORCE_KERNEL_TAG != null
|
|
||||||
variables:
|
|
||||||
KERNEL_IMAGE_BASE: https://${S3_HOST}/${S3_KERNEL_BUCKET}/${KERNEL_REPO}/${FORCE_KERNEL_TAG}
|
|
||||||
JOB_PRIORITY: 50
|
|
||||||
VALVE_INFRA_VANGOGH_JOB_PRIORITY: priority:low
|
|
||||||
- if: $FORCE_KERNEL_TAG == null
|
|
||||||
variables:
|
|
||||||
KERNEL_IMAGE_BASE: https://${S3_HOST}/${S3_KERNEL_BUCKET}/${KERNEL_REPO}/${KERNEL_TAG}
|
|
||||||
JOB_PRIORITY: 50
|
|
||||||
VALVE_INFRA_VANGOGH_JOB_PRIORITY: priority:low
|
|
||||||
|
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
FDO_UPSTREAM_REPO: mesa/mesa
|
FDO_UPSTREAM_REPO: mesa/mesa
|
||||||
@@ -72,58 +26,35 @@ variables:
|
|||||||
bash download-git-cache.sh
|
bash download-git-cache.sh
|
||||||
rm download-git-cache.sh
|
rm download-git-cache.sh
|
||||||
set +o xtrace
|
set +o xtrace
|
||||||
S3_JWT_FILE: /s3_jwt
|
CI_JOB_JWT_FILE: /minio_jwt
|
||||||
S3_HOST: s3.freedesktop.org
|
S3_HOST: s3.freedesktop.org
|
||||||
# This bucket is used to fetch the kernel image
|
|
||||||
S3_KERNEL_BUCKET: mesa-rootfs
|
|
||||||
# Bucket for git cache
|
|
||||||
S3_GITCACHE_BUCKET: git-cache
|
|
||||||
# Bucket for the pipeline artifacts pushed to S3
|
|
||||||
S3_ARTIFACTS_BUCKET: artifacts
|
|
||||||
# Buckets for traces
|
|
||||||
S3_TRACIE_RESULTS_BUCKET: mesa-tracie-results
|
|
||||||
S3_TRACIE_PUBLIC_BUCKET: mesa-tracie-public
|
|
||||||
S3_TRACIE_PRIVATE_BUCKET: mesa-tracie-private
|
|
||||||
# per-pipeline artifact storage on MinIO
|
# per-pipeline artifact storage on MinIO
|
||||||
PIPELINE_ARTIFACTS_BASE: ${S3_HOST}/${S3_ARTIFACTS_BUCKET}/${CI_PROJECT_PATH}/${CI_PIPELINE_ID}
|
PIPELINE_ARTIFACTS_BASE: ${S3_HOST}/artifacts/${CI_PROJECT_PATH}/${CI_PIPELINE_ID}
|
||||||
# per-job artifact storage on MinIO
|
# per-job artifact storage on MinIO
|
||||||
JOB_ARTIFACTS_BASE: ${PIPELINE_ARTIFACTS_BASE}/${CI_JOB_ID}
|
JOB_ARTIFACTS_BASE: ${PIPELINE_ARTIFACTS_BASE}/${CI_JOB_ID}
|
||||||
# reference images stored for traces
|
# reference images stored for traces
|
||||||
PIGLIT_REPLAY_REFERENCE_IMAGES_BASE: "${S3_HOST}/${S3_TRACIE_RESULTS_BUCKET}/$FDO_UPSTREAM_REPO"
|
PIGLIT_REPLAY_REFERENCE_IMAGES_BASE: "${S3_HOST}/mesa-tracie-results/$FDO_UPSTREAM_REPO"
|
||||||
# For individual CI farm status see .ci-farms folder
|
# For individual CI farm status see .ci-farms folder
|
||||||
# Disable farm with `git mv .ci-farms{,-disabled}/$farm_name`
|
# Disable farm with `git mv .ci-farms{,-disabled}/$farm_name`
|
||||||
# Re-enable farm with `git mv .ci-farms{-disabled,}/$farm_name`
|
# Re-enable farm with `git mv .ci-farms{-disabled,}/$farm_name`
|
||||||
# NEVER MIX FARM MAINTENANCE WITH ANY OTHER CHANGE IN THE SAME MERGE REQUEST!
|
# NEVER MIX FARM MAINTENANCE WITH ANY OTHER CHANGE IN THE SAME MERGE REQUEST!
|
||||||
ARTIFACTS_BASE_URL: https://${CI_PROJECT_ROOT_NAMESPACE}.${CI_PAGES_DOMAIN}/-/${CI_PROJECT_NAME}/-/jobs/${CI_JOB_ID}/artifacts
|
|
||||||
# Python scripts for structured logger
|
|
||||||
PYTHONPATH: "$PYTHONPATH:$CI_PROJECT_DIR/install"
|
|
||||||
# Drop once deqp-runner is upgraded to > 0.18.0
|
|
||||||
MESA_VK_ABORT_ON_DEVICE_LOSS: 1
|
|
||||||
# Avoid the wall of "Unsupported SPIR-V capability" warnings in CI job log, hiding away useful output
|
|
||||||
MESA_SPIRV_LOG_LEVEL: error
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
id_tokens:
|
|
||||||
S3_JWT:
|
|
||||||
aud: https://s3.freedesktop.org
|
|
||||||
before_script:
|
before_script:
|
||||||
- >
|
- >
|
||||||
export SCRIPTS_DIR=$(mktemp -d) &&
|
export SCRIPTS_DIR=$(mktemp -d) &&
|
||||||
curl -L -s --retry 4 -f --retry-all-errors --retry-delay 60 -O --output-dir "${SCRIPTS_DIR}" "${CI_PROJECT_URL}/-/raw/${CI_COMMIT_SHA}/.gitlab-ci/setup-test-env.sh" &&
|
curl -L -s --retry 4 -f --retry-all-errors --retry-delay 60 -O --output-dir "${SCRIPTS_DIR}" "${CI_PROJECT_URL}/-/raw/${CI_COMMIT_SHA}/.gitlab-ci/setup-test-env.sh" &&
|
||||||
. ${SCRIPTS_DIR}/setup-test-env.sh &&
|
. ${SCRIPTS_DIR}/setup-test-env.sh &&
|
||||||
echo -n "${S3_JWT}" > "${S3_JWT_FILE}" &&
|
echo -n "${CI_JOB_JWT}" > "${CI_JOB_JWT_FILE}" &&
|
||||||
unset CI_JOB_JWT S3_JWT # Unsetting vulnerable env variables
|
unset CI_JOB_JWT # Unsetting vulnerable env variables
|
||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
# Work around https://gitlab.com/gitlab-org/gitlab/-/issues/20338
|
|
||||||
- find -name '*.log' -exec mv {} {}.txt \;
|
|
||||||
|
|
||||||
- >
|
- >
|
||||||
set +x
|
set +x
|
||||||
|
|
||||||
test -e "${S3_JWT_FILE}" &&
|
test -e "${CI_JOB_JWT_FILE}" &&
|
||||||
export S3_JWT="$(<${S3_JWT_FILE})" &&
|
export CI_JOB_JWT="$(<${CI_JOB_JWT_FILE})" &&
|
||||||
rm "${S3_JWT_FILE}"
|
rm "${CI_JOB_JWT_FILE}"
|
||||||
|
|
||||||
# Retry when job fails. Failed jobs can be found in the Mesa CI Daily Reports:
|
# Retry when job fails. Failed jobs can be found in the Mesa CI Daily Reports:
|
||||||
# https://gitlab.freedesktop.org/mesa/mesa/-/issues/?sort=created_date&state=opened&label_name%5B%5D=CI%20daily
|
# https://gitlab.freedesktop.org/mesa/mesa/-/issues/?sort=created_date&state=opened&label_name%5B%5D=CI%20daily
|
||||||
@@ -140,24 +71,6 @@ default:
|
|||||||
- data_integrity_failure
|
- data_integrity_failure
|
||||||
- unknown_failure
|
- unknown_failure
|
||||||
|
|
||||||
stages:
|
|
||||||
- sanity
|
|
||||||
- container
|
|
||||||
- git-archive
|
|
||||||
- build-x86_64
|
|
||||||
- build-misc
|
|
||||||
- code-validation
|
|
||||||
- amd
|
|
||||||
- intel
|
|
||||||
- nouveau
|
|
||||||
- arm
|
|
||||||
- broadcom
|
|
||||||
- freedreno
|
|
||||||
- etnaviv
|
|
||||||
- software-renderer
|
|
||||||
- layered-backends
|
|
||||||
- deploy
|
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- project: 'freedesktop/ci-templates'
|
- project: 'freedesktop/ci-templates'
|
||||||
ref: 16bc29078de5e0a067ff84a1a199a3760d3b3811
|
ref: 16bc29078de5e0a067ff84a1a199a3760d3b3811
|
||||||
@@ -177,32 +90,68 @@ include:
|
|||||||
- local: '.gitlab-ci/farm-rules.yml'
|
- local: '.gitlab-ci/farm-rules.yml'
|
||||||
- local: '.gitlab-ci/test-source-dep.yml'
|
- local: '.gitlab-ci/test-source-dep.yml'
|
||||||
- local: 'docs/gitlab-ci.yml'
|
- local: 'docs/gitlab-ci.yml'
|
||||||
- local: 'src/**/ci/gitlab-ci.yml'
|
- local: 'src/amd/ci/gitlab-ci.yml'
|
||||||
|
- local: 'src/broadcom/ci/gitlab-ci.yml'
|
||||||
|
- local: 'src/etnaviv/ci/gitlab-ci.yml'
|
||||||
|
- local: 'src/freedreno/ci/gitlab-ci.yml'
|
||||||
|
- local: 'src/gallium/drivers/crocus/ci/gitlab-ci.yml'
|
||||||
|
- local: 'src/gallium/drivers/d3d12/ci/gitlab-ci.yml'
|
||||||
|
- local: 'src/gallium/drivers/i915/ci/gitlab-ci.yml'
|
||||||
|
- local: 'src/gallium/drivers/lima/ci/gitlab-ci.yml'
|
||||||
|
- local: 'src/gallium/drivers/llvmpipe/ci/gitlab-ci.yml'
|
||||||
|
- local: 'src/gallium/drivers/nouveau/ci/gitlab-ci.yml'
|
||||||
|
- local: 'src/gallium/drivers/softpipe/ci/gitlab-ci.yml'
|
||||||
|
- local: 'src/gallium/drivers/virgl/ci/gitlab-ci.yml'
|
||||||
|
- local: 'src/gallium/drivers/zink/ci/gitlab-ci.yml'
|
||||||
|
- local: 'src/gallium/frontends/lavapipe/ci/gitlab-ci.yml'
|
||||||
|
- local: 'src/intel/ci/gitlab-ci.yml'
|
||||||
|
- local: 'src/microsoft/ci/gitlab-ci.yml'
|
||||||
|
- local: 'src/panfrost/ci/gitlab-ci.yml'
|
||||||
|
- local: 'src/virtio/ci/gitlab-ci.yml'
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- sanity
|
||||||
|
- container
|
||||||
|
- git-archive
|
||||||
|
- build-x86_64
|
||||||
|
- build-misc
|
||||||
|
- lint
|
||||||
|
- amd
|
||||||
|
- intel
|
||||||
|
- nouveau
|
||||||
|
- arm
|
||||||
|
- broadcom
|
||||||
|
- freedreno
|
||||||
|
- etnaviv
|
||||||
|
- software-renderer
|
||||||
|
- layered-backends
|
||||||
|
- deploy
|
||||||
|
|
||||||
|
|
||||||
# YAML anchors for rule conditions
|
# YAML anchors for rule conditions
|
||||||
# --------------------------------
|
# --------------------------------
|
||||||
.rules-anchors:
|
.rules-anchors:
|
||||||
|
rules:
|
||||||
|
# Post-merge pipeline
|
||||||
|
- if: &is-post-merge '$CI_PROJECT_NAMESPACE == "mesa" && $CI_COMMIT_BRANCH'
|
||||||
|
when: on_success
|
||||||
|
# Post-merge pipeline, not for Marge Bot
|
||||||
|
- if: &is-post-merge-not-for-marge '$CI_PROJECT_NAMESPACE == "mesa" && $GITLAB_USER_LOGIN != "marge-bot" && $CI_COMMIT_BRANCH'
|
||||||
|
when: on_success
|
||||||
# Pre-merge pipeline
|
# Pre-merge pipeline
|
||||||
- &is-pre-merge '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
- if: &is-pre-merge '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||||
|
when: on_success
|
||||||
|
# Pre-merge pipeline for Marge Bot
|
||||||
|
- if: &is-pre-merge-for-marge '$GITLAB_USER_LOGIN == "marge-bot" && $CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||||
|
when: on_success
|
||||||
|
|
||||||
|
|
||||||
.never-post-merge-rules:
|
# When to automatically run the CI for build jobs
|
||||||
|
.build-rules:
|
||||||
rules:
|
rules:
|
||||||
- if: *is-post-merge
|
# If any files affecting the pipeline are changed, build/test jobs run
|
||||||
when: never
|
# automatically once all dependency jobs have passed
|
||||||
|
- changes: &all_paths
|
||||||
|
|
||||||
.container+build-rules:
|
|
||||||
rules:
|
|
||||||
# Run when re-enabling a disabled farm, but not when disabling it
|
|
||||||
- !reference [.disable-farm-mr-rules, rules]
|
|
||||||
# Never run immediately after merging, as we just ran everything
|
|
||||||
- !reference [.never-post-merge-rules, rules]
|
|
||||||
# Build everything in merge pipelines, if any files affecting the pipeline
|
|
||||||
# were changed
|
|
||||||
- if: *is-merge-attempt
|
|
||||||
changes: &all_paths
|
|
||||||
- VERSION
|
- VERSION
|
||||||
- bin/git_sha1_gen.py
|
- bin/git_sha1_gen.py
|
||||||
- bin/install_megadrivers.py
|
- bin/install_megadrivers.py
|
||||||
@@ -210,39 +159,16 @@ include:
|
|||||||
# GitLab CI
|
# GitLab CI
|
||||||
- .gitlab-ci.yml
|
- .gitlab-ci.yml
|
||||||
- .gitlab-ci/**/*
|
- .gitlab-ci/**/*
|
||||||
- .ci-farms/*
|
|
||||||
# Meson
|
# Meson
|
||||||
- meson*
|
- meson*
|
||||||
- build-support/**/*
|
- build-support/**/*
|
||||||
- subprojects/**/*
|
- subprojects/**/*
|
||||||
# clang format
|
|
||||||
- .clang-format
|
|
||||||
- .clang-format-include
|
|
||||||
- .clang-format-ignore
|
|
||||||
# Source code
|
# Source code
|
||||||
- include/**/*
|
- include/**/*
|
||||||
- src/**/*
|
- src/**/*
|
||||||
|
- .ci-farms/*
|
||||||
when: on_success
|
when: on_success
|
||||||
# Same as above, but for pre-merge pipelines
|
# Otherwise, build/test jobs won't run because no rule matched.
|
||||||
- if: *is-pre-merge
|
|
||||||
changes:
|
|
||||||
*all_paths
|
|
||||||
when: manual
|
|
||||||
# Skip everything for pre-merge and merge pipelines which don't change
|
|
||||||
# anything in the build
|
|
||||||
- if: *is-merge-attempt
|
|
||||||
when: never
|
|
||||||
- if: *is-pre-merge
|
|
||||||
when: never
|
|
||||||
# Build everything after someone bypassed the CI
|
|
||||||
- if: *is-direct-push
|
|
||||||
when: on_success
|
|
||||||
# Build everything in scheduled pipelines
|
|
||||||
- if: *is-scheduled-pipeline
|
|
||||||
when: on_success
|
|
||||||
# Allow building everything in fork pipelines, but build nothing unless
|
|
||||||
# manually triggered
|
|
||||||
- when: manual
|
|
||||||
|
|
||||||
|
|
||||||
.ci-deqp-artifacts:
|
.ci-deqp-artifacts:
|
||||||
@@ -257,6 +183,34 @@ include:
|
|||||||
- _build/meson-logs/*.txt
|
- _build/meson-logs/*.txt
|
||||||
- _build/meson-logs/strace
|
- _build/meson-logs/strace
|
||||||
|
|
||||||
|
.container-rules:
|
||||||
|
rules:
|
||||||
|
# Run pipeline by default in the main project if any CI pipeline
|
||||||
|
# configuration files were changed, to ensure docker images are up to date
|
||||||
|
- if: *is-post-merge
|
||||||
|
changes:
|
||||||
|
- .gitlab-ci.yml
|
||||||
|
- .gitlab-ci/**/*
|
||||||
|
when: on_success
|
||||||
|
# Run pipeline by default if it was triggered by Marge Bot, is for a
|
||||||
|
# merge request, and any files affecting the pipeline were changed
|
||||||
|
- if: *is-pre-merge-for-marge
|
||||||
|
changes:
|
||||||
|
*all_paths
|
||||||
|
when: on_success
|
||||||
|
# Run pipeline by default in the main project if it was not triggered by
|
||||||
|
# Marge Bot, and any files affecting the pipeline were changed
|
||||||
|
- if: *is-post-merge-not-for-marge
|
||||||
|
changes:
|
||||||
|
*all_paths
|
||||||
|
when: on_success
|
||||||
|
# Allow triggering jobs manually in other cases if any files affecting the
|
||||||
|
# pipeline were changed
|
||||||
|
- changes:
|
||||||
|
*all_paths
|
||||||
|
when: manual
|
||||||
|
# Otherwise, container jobs won't run because no rule matched.
|
||||||
|
|
||||||
# Git archive
|
# Git archive
|
||||||
|
|
||||||
make git archive:
|
make git archive:
|
||||||
@@ -276,7 +230,8 @@ make git archive:
|
|||||||
# compress the current folder
|
# compress the current folder
|
||||||
- tar -cvzf ../$CI_PROJECT_NAME.tar.gz .
|
- tar -cvzf ../$CI_PROJECT_NAME.tar.gz .
|
||||||
|
|
||||||
- ci-fairy s3cp --token-file "${S3_JWT_FILE}" ../$CI_PROJECT_NAME.tar.gz https://$S3_HOST/git-cache/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/$CI_PROJECT_NAME.tar.gz
|
- ci-fairy s3cp --token-file "${CI_JOB_JWT_FILE}" ../$CI_PROJECT_NAME.tar.gz https://$S3_HOST/git-cache/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/$CI_PROJECT_NAME.tar.gz
|
||||||
|
|
||||||
|
|
||||||
# Sanity checks of MR settings and commit logs
|
# Sanity checks of MR settings and commit logs
|
||||||
sanity:
|
sanity:
|
||||||
@@ -286,62 +241,18 @@ sanity:
|
|||||||
rules:
|
rules:
|
||||||
- if: *is-pre-merge
|
- if: *is-pre-merge
|
||||||
when: on_success
|
when: on_success
|
||||||
- when: never
|
# Other cases default to never
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
script:
|
script:
|
||||||
# ci-fairy check-commits --junit-xml=check-commits.xml
|
# ci-fairy check-commits --junit-xml=check-commits.xml
|
||||||
- ci-fairy check-merge-request --require-allow-collaboration --junit-xml=check-merge-request.xml
|
- ci-fairy check-merge-request --require-allow-collaboration --junit-xml=check-merge-request.xml
|
||||||
- |
|
|
||||||
set -eu
|
|
||||||
image_tags=(
|
|
||||||
DEBIAN_BASE_TAG
|
|
||||||
DEBIAN_BUILD_TAG
|
|
||||||
DEBIAN_X86_64_TEST_ANDROID_TAG
|
|
||||||
DEBIAN_X86_64_TEST_GL_TAG
|
|
||||||
DEBIAN_X86_64_TEST_VK_TAG
|
|
||||||
ALPINE_X86_64_BUILD_TAG
|
|
||||||
ALPINE_X86_64_LAVA_SSH_TAG
|
|
||||||
FEDORA_X86_64_BUILD_TAG
|
|
||||||
KERNEL_ROOTFS_TAG
|
|
||||||
KERNEL_TAG
|
|
||||||
PKG_REPO_REV
|
|
||||||
WINDOWS_X64_MSVC_TAG
|
|
||||||
WINDOWS_X64_BUILD_TAG
|
|
||||||
WINDOWS_X64_TEST_TAG
|
|
||||||
)
|
|
||||||
for var in "${image_tags[@]}"
|
|
||||||
do
|
|
||||||
if [ "$(echo -n "${!var}" | wc -c)" -gt 20 ]
|
|
||||||
then
|
|
||||||
echo "$var is too long; please make sure it is at most 20 chars."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
artifacts:
|
artifacts:
|
||||||
when: on_failure
|
when: on_failure
|
||||||
reports:
|
reports:
|
||||||
junit: check-*.xml
|
junit: check-*.xml
|
||||||
tags:
|
|
||||||
- placeholder-job
|
|
||||||
|
|
||||||
|
|
||||||
mr-label-maker-test:
|
|
||||||
extends:
|
|
||||||
- .fdo.ci-fairy
|
|
||||||
stage: sanity
|
|
||||||
rules:
|
|
||||||
- !reference [.mr-label-maker-rules, rules]
|
|
||||||
variables:
|
|
||||||
GIT_STRATEGY: fetch
|
|
||||||
timeout: 10m
|
|
||||||
script:
|
|
||||||
- set -eu
|
|
||||||
- python3 -m venv .venv
|
|
||||||
- source .venv/bin/activate
|
|
||||||
- pip install git+https://gitlab.freedesktop.org/freedesktop/mr-label-maker
|
|
||||||
- mr-label-maker --dry-run --mr $CI_MERGE_REQUEST_IID
|
|
||||||
|
|
||||||
# Jobs that need to pass before spending hardware resources on further testing
|
# Jobs that need to pass before spending hardware resources on further testing
|
||||||
.required-for-hardware-jobs:
|
.required-for-hardware-jobs:
|
||||||
needs:
|
needs:
|
||||||
|
@@ -2,16 +2,6 @@
|
|||||||
# non-zero-length and not starting with '#', will regex match to
|
# non-zero-length and not starting with '#', will regex match to
|
||||||
# delete lines from the test list. Be careful.
|
# delete lines from the test list. Be careful.
|
||||||
|
|
||||||
# This test checks the driver's reported conformance version against the
|
|
||||||
# version of the CTS we're running. This check fails every few months
|
|
||||||
# and everyone has to go and bump the number in every driver.
|
|
||||||
# Running this check only makes sense while preparing a conformance
|
|
||||||
# submission, so skip it in the regular CI.
|
|
||||||
dEQP-VK.api.driver_properties.conformance_version
|
|
||||||
|
|
||||||
# Exclude this test which might fail when a new extension is implemented.
|
|
||||||
dEQP-VK.info.device_extensions
|
|
||||||
|
|
||||||
# These are tremendously slow (pushing toward a minute), and aren't
|
# These are tremendously slow (pushing toward a minute), and aren't
|
||||||
# reliable to be run in parallel with other tests due to CPU-side timing.
|
# reliable to be run in parallel with other tests due to CPU-side timing.
|
||||||
dEQP-GLES[0-9]*.functional.flush_finish.*
|
dEQP-GLES[0-9]*.functional.flush_finish.*
|
||||||
@@ -39,44 +29,6 @@ spec@!opengl 1.1@windowoverlap
|
|||||||
# Note that "glx-" tests don't appear in x11-skips.txt because they can be
|
# Note that "glx-" tests don't appear in x11-skips.txt because they can be
|
||||||
# run even if PIGLIT_PLATFORM=gbm (for example)
|
# run even if PIGLIT_PLATFORM=gbm (for example)
|
||||||
glx@glx-copy-sub-buffer.*
|
glx@glx-copy-sub-buffer.*
|
||||||
|
# Reads the front buffer but it doesn't have to.
|
||||||
# A majority of the tests introduced in CTS 1.3.7.0 are experiencing failures and flakes.
|
# https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/755
|
||||||
# Disable these tests until someone with a more deeper understanding of EGL examines them.
|
glx-swap-copy
|
||||||
#
|
|
||||||
# Note: on sc8280xp/a690 I get identical results (same passes and fails)
|
|
||||||
# between freedreno, zink, and llvmpipe, so I believe this is either a
|
|
||||||
# deqp bug or egl/wayland bug, rather than driver issue.
|
|
||||||
#
|
|
||||||
# With llvmpipe, the failing tests have the error message:
|
|
||||||
#
|
|
||||||
# "Illegal sampler view creation without bind flag"
|
|
||||||
#
|
|
||||||
# which might be a hint. (But some passing tests also have the same
|
|
||||||
# error message.)
|
|
||||||
#
|
|
||||||
# more context from David Heidelberg on IRC: the deqp commit where these
|
|
||||||
# started failing is: https://github.com/KhronosGroup/VK-GL-CTS/commit/79b25659bcbced0cfc2c3fe318951c585f682abe
|
|
||||||
# prior to that they were skipping.
|
|
||||||
wayland-dEQP-EGL.functional.color_clears.single_context.gles1.other
|
|
||||||
wayland-dEQP-EGL.functional.color_clears.single_context.gles2.other
|
|
||||||
wayland-dEQP-EGL.functional.color_clears.single_context.gles3.other
|
|
||||||
wayland-dEQP-EGL.functional.color_clears.multi_context.gles1.other
|
|
||||||
wayland-dEQP-EGL.functional.color_clears.multi_context.gles2.other
|
|
||||||
wayland-dEQP-EGL.functional.color_clears.multi_context.gles3.other
|
|
||||||
wayland-dEQP-EGL.functional.color_clears.multi_context.gles1_gles2.other
|
|
||||||
wayland-dEQP-EGL.functional.color_clears.multi_context.gles1_gles2_gles3.other
|
|
||||||
wayland-dEQP-EGL.functional.color_clears.multi_thread.gles1.other
|
|
||||||
wayland-dEQP-EGL.functional.color_clears.multi_thread.gles2.other
|
|
||||||
wayland-dEQP-EGL.functional.color_clears.multi_thread.gles3.other
|
|
||||||
wayland-dEQP-EGL.functional.color_clears.multi_thread.gles1_gles2.other
|
|
||||||
wayland-dEQP-EGL.functional.color_clears.multi_thread.gles1_gles2_gles3.other
|
|
||||||
|
|
||||||
# Seems to be the same is as wayland-dEQP-EGL.functional.color_clears.*
|
|
||||||
wayland-dEQP-EGL.functional.render.single_context.gles2.other
|
|
||||||
wayland-dEQP-EGL.functional.render.single_context.gles3.other
|
|
||||||
wayland-dEQP-EGL.functional.render.multi_context.gles2.other
|
|
||||||
wayland-dEQP-EGL.functional.render.multi_context.gles3.other
|
|
||||||
wayland-dEQP-EGL.functional.render.multi_context.gles2_gles3.other
|
|
||||||
wayland-dEQP-EGL.functional.render.multi_thread.gles2.other
|
|
||||||
wayland-dEQP-EGL.functional.render.multi_thread.gles3.other
|
|
||||||
wayland-dEQP-EGL.functional.render.multi_thread.gles2_gles3.other
|
|
||||||
|
@@ -2,7 +2,12 @@ version: 1
|
|||||||
|
|
||||||
# Rules to match for a machine to qualify
|
# Rules to match for a machine to qualify
|
||||||
target:
|
target:
|
||||||
id: '{{ ci_runner_id }}'
|
{% if tags %}
|
||||||
|
tags:
|
||||||
|
{% for tag in tags %}
|
||||||
|
- '{{ tag | trim }}'
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
timeouts:
|
timeouts:
|
||||||
first_console_activity: # This limits the time it can take to receive the first console log
|
first_console_activity: # This limits the time it can take to receive the first console log
|
||||||
@@ -45,8 +50,8 @@ deployment:
|
|||||||
SALAD.machine_id={{ '{{' }} machine_id }}
|
SALAD.machine_id={{ '{{' }} machine_id }}
|
||||||
console={{ '{{' }} local_tty_device }},115200 earlyprintk=vga,keep
|
console={{ '{{' }} local_tty_device }},115200 earlyprintk=vga,keep
|
||||||
loglevel={{ log_level }} no_hash_pointers
|
loglevel={{ log_level }} no_hash_pointers
|
||||||
b2c.service="--privileged --tls-verify=false --pid=host docker://{{ '{{' }} fdo_proxy_registry }}/gfx-ci/ci-tron/telegraf:latest" b2c.hostname=dut-{{ '{{' }} machine.full_name }}
|
b2c.service="--privileged --tls-verify=false --pid=host docker://{{ '{{' }} fdo_proxy_registry }}/mupuf/valve-infra/telegraf-container:latest" b2c.hostname=dut-{{ '{{' }} machine.full_name }}
|
||||||
b2c.container="-ti --tls-verify=false docker://{{ '{{' }} fdo_proxy_registry }}/gfx-ci/ci-tron/machine-registration:latest check"
|
b2c.container="-ti --tls-verify=false docker://{{ '{{' }} fdo_proxy_registry }}/mupuf/valve-infra/machine_registration:latest check"
|
||||||
b2c.ntp_peer=10.42.0.1 b2c.pipefail b2c.cache_device=auto b2c.poweroff_delay={{ poweroff_delay }}
|
b2c.ntp_peer=10.42.0.1 b2c.pipefail b2c.cache_device=auto b2c.poweroff_delay={{ poweroff_delay }}
|
||||||
b2c.minio="gateway,{{ '{{' }} minio_url }},{{ '{{' }} job_bucket_access_key }},{{ '{{' }} job_bucket_secret_key }}"
|
b2c.minio="gateway,{{ '{{' }} minio_url }},{{ '{{' }} job_bucket_access_key }},{{ '{{' }} job_bucket_secret_key }}"
|
||||||
b2c.volume="{{ '{{' }} job_bucket }}-results,mirror=gateway/{{ '{{' }} job_bucket }},pull_on=pipeline_start,push_on=changes,overwrite{% for excl in job_volume_exclusions %},exclude={{ excl }}{% endfor %},remove,expiration=pipeline_end,preserve"
|
b2c.volume="{{ '{{' }} job_bucket }}-results,mirror=gateway/{{ '{{' }} job_bucket }},pull_on=pipeline_start,push_on=changes,overwrite{% for excl in job_volume_exclusions %},exclude={{ excl }}{% endfor %},remove,expiration=pipeline_end,preserve"
|
||||||
@@ -54,14 +59,10 @@ deployment:
|
|||||||
b2c.volume={{ volume }}
|
b2c.volume={{ volume }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
b2c.container="-v {{ '{{' }} job_bucket }}-results:{{ working_dir }} -w {{ working_dir }} {% for mount_volume in mount_volumes %} -v {{ mount_volume }}{% endfor %} --tls-verify=false docker://{{ local_container }} {{ container_cmd }}"
|
b2c.container="-v {{ '{{' }} job_bucket }}-results:{{ working_dir }} -w {{ working_dir }} {% for mount_volume in mount_volumes %} -v {{ mount_volume }}{% endfor %} --tls-verify=false docker://{{ local_container }} {{ container_cmd }}"
|
||||||
{% if kernel_cmdline_extras is defined %}
|
{% if cmdline_extras is defined %}
|
||||||
{{ kernel_cmdline_extras }}
|
{{ cmdline_extras }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
initramfs:
|
initramfs:
|
||||||
url: '{{ initramfs_url }}'
|
url: '{{ initramfs_url }}'
|
||||||
|
|
||||||
{% if dtb_url is defined %}
|
|
||||||
dtb:
|
|
||||||
url: '{{ dtb_url }}'
|
|
||||||
{% endif %}
|
|
||||||
|
@@ -22,34 +22,86 @@
|
|||||||
# IN THE SOFTWARE.
|
# IN THE SOFTWARE.
|
||||||
|
|
||||||
from jinja2 import Environment, FileSystemLoader
|
from jinja2 import Environment, FileSystemLoader
|
||||||
|
from argparse import ArgumentParser
|
||||||
from os import environ, path
|
from os import environ, path
|
||||||
|
import json
|
||||||
|
|
||||||
|
|
||||||
# Pass all the environment variables prefixed by B2C_
|
parser = ArgumentParser()
|
||||||
values = {
|
parser.add_argument('--ci-job-id')
|
||||||
key.removeprefix("B2C_").lower(): environ[key]
|
parser.add_argument('--container-cmd')
|
||||||
for key in environ if key.startswith("B2C_")
|
parser.add_argument('--initramfs-url')
|
||||||
}
|
parser.add_argument('--job-success-regex')
|
||||||
|
parser.add_argument('--job-warn-regex')
|
||||||
|
parser.add_argument('--kernel-url')
|
||||||
|
parser.add_argument('--log-level', type=int)
|
||||||
|
parser.add_argument('--poweroff-delay', type=int)
|
||||||
|
parser.add_argument('--session-end-regex')
|
||||||
|
parser.add_argument('--session-reboot-regex')
|
||||||
|
parser.add_argument('--tags', nargs='?', default='')
|
||||||
|
parser.add_argument('--template', default='b2c.yml.jinja2.jinja2')
|
||||||
|
parser.add_argument('--timeout-boot-minutes', type=int)
|
||||||
|
parser.add_argument('--timeout-boot-retries', type=int)
|
||||||
|
parser.add_argument('--timeout-first-minutes', type=int)
|
||||||
|
parser.add_argument('--timeout-first-retries', type=int)
|
||||||
|
parser.add_argument('--timeout-minutes', type=int)
|
||||||
|
parser.add_argument('--timeout-overall-minutes', type=int)
|
||||||
|
parser.add_argument('--timeout-retries', type=int)
|
||||||
|
parser.add_argument('--job-volume-exclusions', nargs='?', default='')
|
||||||
|
parser.add_argument('--volume', action='append')
|
||||||
|
parser.add_argument('--mount-volume', action='append')
|
||||||
|
parser.add_argument('--local-container', default=environ.get('B2C_LOCAL_CONTAINER', 'alpine:latest'))
|
||||||
|
parser.add_argument('--working-dir')
|
||||||
|
args = parser.parse_args()
|
||||||
|
|
||||||
env = Environment(loader=FileSystemLoader(path.dirname(values['job_template'])),
|
env = Environment(loader=FileSystemLoader(path.dirname(args.template)),
|
||||||
trim_blocks=True, lstrip_blocks=True)
|
trim_blocks=True, lstrip_blocks=True)
|
||||||
|
|
||||||
template = env.get_template(path.basename(values['job_template']))
|
template = env.get_template(path.basename(args.template))
|
||||||
|
|
||||||
values['ci_job_id'] = environ['CI_JOB_ID']
|
values = {}
|
||||||
values['ci_runner_id'] = environ['CI_RUNNER_ID']
|
values['ci_job_id'] = args.ci_job_id
|
||||||
values['job_volume_exclusions'] = [excl for excl in values['job_volume_exclusions'].split(",") if excl]
|
values['container_cmd'] = args.container_cmd
|
||||||
values['working_dir'] = environ['CI_PROJECT_DIR']
|
values['initramfs_url'] = args.initramfs_url
|
||||||
|
values['job_success_regex'] = args.job_success_regex
|
||||||
|
values['job_warn_regex'] = args.job_warn_regex
|
||||||
|
values['kernel_url'] = args.kernel_url
|
||||||
|
values['log_level'] = args.log_level
|
||||||
|
values['poweroff_delay'] = args.poweroff_delay
|
||||||
|
values['session_end_regex'] = args.session_end_regex
|
||||||
|
values['session_reboot_regex'] = args.session_reboot_regex
|
||||||
|
try:
|
||||||
|
values['tags'] = json.loads(args.tags)
|
||||||
|
except json.decoder.JSONDecodeError:
|
||||||
|
values['tags'] = args.tags.split(",")
|
||||||
|
values['template'] = args.template
|
||||||
|
values['timeout_boot_minutes'] = args.timeout_boot_minutes
|
||||||
|
values['timeout_boot_retries'] = args.timeout_boot_retries
|
||||||
|
values['timeout_first_minutes'] = args.timeout_first_minutes
|
||||||
|
values['timeout_first_retries'] = args.timeout_first_retries
|
||||||
|
values['timeout_minutes'] = args.timeout_minutes
|
||||||
|
values['timeout_overall_minutes'] = args.timeout_overall_minutes
|
||||||
|
values['timeout_retries'] = args.timeout_retries
|
||||||
|
if len(args.job_volume_exclusions) > 0:
|
||||||
|
exclusions = args.job_volume_exclusions.split(",")
|
||||||
|
values['job_volume_exclusions'] = [excl for excl in exclusions if len(excl) > 0]
|
||||||
|
if args.volume is not None:
|
||||||
|
values['volumes'] = args.volume
|
||||||
|
if args.mount_volume is not None:
|
||||||
|
values['mount_volumes'] = args.mount_volume
|
||||||
|
values['working_dir'] = args.working_dir
|
||||||
|
|
||||||
|
assert(len(args.local_container) > 0)
|
||||||
|
|
||||||
# Use the gateway's pull-through registry caches to reduce load on fd.o.
|
# Use the gateway's pull-through registry caches to reduce load on fd.o.
|
||||||
values['local_container'] = environ['IMAGE_UNDER_TEST']
|
values['local_container'] = args.local_container
|
||||||
values['local_container'] = values['local_container'].replace(
|
for url, replacement in [('registry.freedesktop.org', '{{ fdo_proxy_registry }}'),
|
||||||
'registry.freedesktop.org',
|
('harbor.freedesktop.org', '{{ harbor_fdo_registry }}')]:
|
||||||
'{{ fdo_proxy_registry }}'
|
values['local_container'] = values['local_container'].replace(url, replacement)
|
||||||
)
|
|
||||||
|
|
||||||
if 'kernel_cmdline_extras' not in values:
|
if 'B2C_KERNEL_CMDLINE_EXTRAS' in environ:
|
||||||
values['kernel_cmdline_extras'] = ''
|
values['cmdline_extras'] = environ['B2C_KERNEL_CMDLINE_EXTRAS']
|
||||||
|
|
||||||
with open(path.splitext(path.basename(values['job_template']))[0], "w") as f:
|
f = open(path.splitext(path.basename(args.template))[0], "w")
|
||||||
f.write(template.render(values))
|
f.write(template.render(values))
|
||||||
|
f.close()
|
||||||
|
@@ -9,7 +9,6 @@
|
|||||||
# We're run from the root of the repo, make a helper var for our paths
|
# We're run from the root of the repo, make a helper var for our paths
|
||||||
BM=$CI_PROJECT_DIR/install/bare-metal
|
BM=$CI_PROJECT_DIR/install/bare-metal
|
||||||
CI_COMMON=$CI_PROJECT_DIR/install/common
|
CI_COMMON=$CI_PROJECT_DIR/install/common
|
||||||
CI_INSTALL=$CI_PROJECT_DIR/install
|
|
||||||
|
|
||||||
# Runner config checks
|
# Runner config checks
|
||||||
if [ -z "$BM_SERIAL" ]; then
|
if [ -z "$BM_SERIAL" ]; then
|
||||||
@@ -84,41 +83,24 @@ mkdir -p /nfs/results
|
|||||||
|
|
||||||
rm -rf /tftp/*
|
rm -rf /tftp/*
|
||||||
if echo "$BM_KERNEL" | grep -q http; then
|
if echo "$BM_KERNEL" | grep -q http; then
|
||||||
|
apt-get install -y curl
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
||||||
$BM_KERNEL -o /tftp/vmlinuz
|
$BM_KERNEL -o /tftp/vmlinuz
|
||||||
elif [ -n "${FORCE_KERNEL_TAG}" ]; then
|
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
|
||||||
"${FDO_HTTP_CACHE_URI:-}${KERNEL_IMAGE_BASE}/${DEBIAN_ARCH}/${BM_KERNEL}" -o /tftp/vmlinuz
|
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
|
||||||
"${FDO_HTTP_CACHE_URI:-}${KERNEL_IMAGE_BASE}/${DEBIAN_ARCH}/modules.tar.zst" -o modules.tar.zst
|
|
||||||
tar --keep-directory-symlink --zstd -xf modules.tar.zst -C "/nfs/"
|
|
||||||
rm modules.tar.zst &
|
|
||||||
else
|
else
|
||||||
cp /baremetal-files/"$BM_KERNEL" /tftp/vmlinuz
|
cp $BM_KERNEL /tftp/vmlinuz
|
||||||
fi
|
fi
|
||||||
echo "$BM_CMDLINE" > /tftp/cmdline
|
echo "$BM_CMDLINE" > /tftp/cmdline
|
||||||
|
|
||||||
set +e
|
set +e
|
||||||
STRUCTURED_LOG_FILE=job_detail.json
|
|
||||||
python3 $CI_INSTALL/custom_logger.py ${STRUCTURED_LOG_FILE} --update dut_job_type "${DEVICE_TYPE}"
|
|
||||||
python3 $CI_INSTALL/custom_logger.py ${STRUCTURED_LOG_FILE} --update farm "${FARM}"
|
|
||||||
python3 $CI_INSTALL/custom_logger.py ${STRUCTURED_LOG_FILE} --create-dut-job dut_name "${CI_RUNNER_DESCRIPTION}"
|
|
||||||
python3 $CI_INSTALL/custom_logger.py ${STRUCTURED_LOG_FILE} --update-dut-time submit "${CI_JOB_STARTED_AT}"
|
|
||||||
python3 $BM/cros_servo_run.py \
|
python3 $BM/cros_servo_run.py \
|
||||||
--cpu $BM_SERIAL \
|
--cpu $BM_SERIAL \
|
||||||
--ec $BM_SERIAL_EC \
|
--ec $BM_SERIAL_EC \
|
||||||
--test-timeout ${TEST_PHASE_TIMEOUT:-20}
|
--test-timeout ${TEST_PHASE_TIMEOUT:-20}
|
||||||
ret=$?
|
ret=$?
|
||||||
python3 $CI_INSTALL/custom_logger.py ${STRUCTURED_LOG_FILE} --close-dut-job
|
|
||||||
python3 $CI_INSTALL/custom_logger.py ${STRUCTURED_LOG_FILE} --close
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Bring artifacts back from the NFS dir to the build dir where gitlab-runner
|
# Bring artifacts back from the NFS dir to the build dir where gitlab-runner
|
||||||
# will look for them.
|
# will look for them.
|
||||||
cp -Rp /nfs/results/. results/
|
cp -Rp /nfs/results/. results/
|
||||||
if [ -f "${STRUCTURED_LOG_FILE}" ]; then
|
|
||||||
cp -p ${STRUCTURED_LOG_FILE} results/
|
|
||||||
echo "Structured log file is available at https://${CI_PROJECT_ROOT_NAMESPACE}.pages.freedesktop.org/-/${CI_PROJECT_NAME}/-/jobs/${CI_JOB_ID}/artifacts/results/${STRUCTURED_LOG_FILE}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
exit $ret
|
exit $ret
|
||||||
|
@@ -1,18 +1,37 @@
|
|||||||
|
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
#
|
#
|
||||||
# Copyright © 2020 Google LLC
|
# Copyright © 2020 Google LLC
|
||||||
# SPDX-License-Identifier: MIT
|
#
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
# copy of this software and associated documentation files (the "Software"),
|
||||||
|
# to deal in the Software without restriction, including without limitation
|
||||||
|
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
|
# and/or sell copies of the Software, and to permit persons to whom the
|
||||||
|
# Software is furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice (including the next
|
||||||
|
# paragraph) shall be included in all copies or substantial portions of the
|
||||||
|
# Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
|
# IN THE SOFTWARE.
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import queue
|
||||||
import re
|
import re
|
||||||
import sys
|
|
||||||
|
|
||||||
from custom_logger import CustomLogger
|
|
||||||
from serial_buffer import SerialBuffer
|
from serial_buffer import SerialBuffer
|
||||||
|
import sys
|
||||||
|
import threading
|
||||||
|
|
||||||
|
|
||||||
class CrosServoRun:
|
class CrosServoRun:
|
||||||
def __init__(self, cpu, ec, test_timeout, logger):
|
def __init__(self, cpu, ec, test_timeout):
|
||||||
self.cpu_ser = SerialBuffer(
|
self.cpu_ser = SerialBuffer(
|
||||||
cpu, "results/serial.txt", "R SERIAL-CPU> ")
|
cpu, "results/serial.txt", "R SERIAL-CPU> ")
|
||||||
# Merge the EC serial into the cpu_ser's line stream so that we can
|
# Merge the EC serial into the cpu_ser's line stream so that we can
|
||||||
@@ -20,7 +39,6 @@ class CrosServoRun:
|
|||||||
self.ec_ser = SerialBuffer(
|
self.ec_ser = SerialBuffer(
|
||||||
ec, "results/serial-ec.txt", "R SERIAL-EC> ", line_queue=self.cpu_ser.line_queue)
|
ec, "results/serial-ec.txt", "R SERIAL-EC> ", line_queue=self.cpu_ser.line_queue)
|
||||||
self.test_timeout = test_timeout
|
self.test_timeout = test_timeout
|
||||||
self.logger = logger
|
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
self.ec_ser.close()
|
self.ec_ser.close()
|
||||||
@@ -38,7 +56,6 @@ class CrosServoRun:
|
|||||||
RED = '\033[0;31m'
|
RED = '\033[0;31m'
|
||||||
NO_COLOR = '\033[0m'
|
NO_COLOR = '\033[0m'
|
||||||
print(RED + message + NO_COLOR)
|
print(RED + message + NO_COLOR)
|
||||||
self.logger.update_status_fail(message)
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
# Flush any partial commands in the EC's prompt, then ask for a reboot.
|
# Flush any partial commands in the EC's prompt, then ask for a reboot.
|
||||||
@@ -46,8 +63,6 @@ class CrosServoRun:
|
|||||||
self.ec_write("reboot\n")
|
self.ec_write("reboot\n")
|
||||||
|
|
||||||
bootloader_done = False
|
bootloader_done = False
|
||||||
self.logger.create_job_phase("boot")
|
|
||||||
tftp_failures = 0
|
|
||||||
# This is emitted right when the bootloader pauses to check for input.
|
# This is emitted right when the bootloader pauses to check for input.
|
||||||
# Emit a ^N character to request network boot, because we don't have a
|
# Emit a ^N character to request network boot, because we don't have a
|
||||||
# direct-to-netboot firmware on cheza.
|
# direct-to-netboot firmware on cheza.
|
||||||
@@ -57,17 +72,6 @@ class CrosServoRun:
|
|||||||
bootloader_done = True
|
bootloader_done = True
|
||||||
break
|
break
|
||||||
|
|
||||||
# The Cheza firmware seems to occasionally get stuck looping in
|
|
||||||
# this error state during TFTP booting, possibly based on amount of
|
|
||||||
# network traffic around it, but it'll usually recover after a
|
|
||||||
# reboot. Currently mostly visible on google-freedreno-cheza-14.
|
|
||||||
if re.search("R8152: Bulk read error 0xffffffbf", line):
|
|
||||||
tftp_failures += 1
|
|
||||||
if tftp_failures >= 10:
|
|
||||||
self.print_error(
|
|
||||||
"Detected intermittent tftp failure, restarting run.")
|
|
||||||
return 1
|
|
||||||
|
|
||||||
# If the board has a netboot firmware and we made it to booting the
|
# If the board has a netboot firmware and we made it to booting the
|
||||||
# kernel, proceed to processing of the test run.
|
# kernel, proceed to processing of the test run.
|
||||||
if re.search("Booting Linux", line):
|
if re.search("Booting Linux", line):
|
||||||
@@ -79,30 +83,41 @@ class CrosServoRun:
|
|||||||
# in the farm.
|
# in the farm.
|
||||||
if re.search("POWER_GOOD not seen in time", line):
|
if re.search("POWER_GOOD not seen in time", line):
|
||||||
self.print_error(
|
self.print_error(
|
||||||
"Detected intermittent poweron failure, abandoning run.")
|
"Detected intermittent poweron failure, restarting run...")
|
||||||
return 1
|
return 2
|
||||||
|
|
||||||
if not bootloader_done:
|
if not bootloader_done:
|
||||||
self.print_error("Failed to make it through bootloader, abandoning run.")
|
print("Failed to make it through bootloader, restarting run...")
|
||||||
return 1
|
return 2
|
||||||
|
|
||||||
self.logger.create_job_phase("test")
|
tftp_failures = 0
|
||||||
for line in self.cpu_ser.lines(timeout=self.test_timeout, phase="test"):
|
for line in self.cpu_ser.lines(timeout=self.test_timeout, phase="test"):
|
||||||
if re.search("---. end Kernel panic", line):
|
if re.search("---. end Kernel panic", line):
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
# The Cheza firmware seems to occasionally get stuck looping in
|
||||||
|
# this error state during TFTP booting, possibly based on amount of
|
||||||
|
# network traffic around it, but it'll usually recover after a
|
||||||
|
# reboot.
|
||||||
|
if re.search("R8152: Bulk read error 0xffffffbf", line):
|
||||||
|
tftp_failures += 1
|
||||||
|
if tftp_failures >= 100:
|
||||||
|
self.print_error(
|
||||||
|
"Detected intermittent tftp failure, restarting run...")
|
||||||
|
return 2
|
||||||
|
|
||||||
# There are very infrequent bus errors during power management transitions
|
# There are very infrequent bus errors during power management transitions
|
||||||
# on cheza, which we don't expect to be the case on future boards.
|
# on cheza, which we don't expect to be the case on future boards.
|
||||||
if re.search("Kernel panic - not syncing: Asynchronous SError Interrupt", line):
|
if re.search("Kernel panic - not syncing: Asynchronous SError Interrupt", line):
|
||||||
self.print_error(
|
self.print_error(
|
||||||
"Detected cheza power management bus error, abandoning run.")
|
"Detected cheza power management bus error, restarting run...")
|
||||||
return 1
|
return 2
|
||||||
|
|
||||||
# If the network device dies, it's probably not graphics's fault, just try again.
|
# If the network device dies, it's probably not graphics's fault, just try again.
|
||||||
if re.search("NETDEV WATCHDOG", line):
|
if re.search("NETDEV WATCHDOG", line):
|
||||||
self.print_error(
|
self.print_error(
|
||||||
"Detected network device failure, abandoning run.")
|
"Detected network device failure, restarting run...")
|
||||||
return 1
|
return 2
|
||||||
|
|
||||||
# These HFI response errors started appearing with the introduction
|
# These HFI response errors started appearing with the introduction
|
||||||
# of piglit runs. CosmicPenguin says:
|
# of piglit runs. CosmicPenguin says:
|
||||||
@@ -115,30 +130,28 @@ class CrosServoRun:
|
|||||||
# break many tests after that, just restart the whole run.
|
# break many tests after that, just restart the whole run.
|
||||||
if re.search("a6xx_hfi_send_msg.*Unexpected message id .* on the response queue", line):
|
if re.search("a6xx_hfi_send_msg.*Unexpected message id .* on the response queue", line):
|
||||||
self.print_error(
|
self.print_error(
|
||||||
"Detected cheza power management bus error, abandoning run.")
|
"Detected cheza power management bus error, restarting run...")
|
||||||
return 1
|
return 2
|
||||||
|
|
||||||
if re.search("coreboot.*bootblock starting", line):
|
if re.search("coreboot.*bootblock starting", line):
|
||||||
self.print_error(
|
self.print_error(
|
||||||
"Detected spontaneous reboot, abandoning run.")
|
"Detected spontaneous reboot, restarting run...")
|
||||||
return 1
|
return 2
|
||||||
|
|
||||||
if re.search("arm-smmu 5040000.iommu: TLB sync timed out -- SMMU may be deadlocked", line):
|
if re.search("arm-smmu 5040000.iommu: TLB sync timed out -- SMMU may be deadlocked", line):
|
||||||
self.print_error("Detected cheza MMU fail, abandoning run.")
|
self.print_error("Detected cheza MMU fail, restarting run...")
|
||||||
return 1
|
return 2
|
||||||
|
|
||||||
result = re.search("hwci: mesa: (\S*)", line)
|
result = re.search("hwci: mesa: (\S*)", line)
|
||||||
if result:
|
if result:
|
||||||
if result.group(1) == "pass":
|
if result.group(1) == "pass":
|
||||||
self.logger.update_dut_job("status", "pass")
|
|
||||||
return 0
|
return 0
|
||||||
else:
|
else:
|
||||||
self.logger.update_status_fail("test fail")
|
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
self.print_error(
|
self.print_error(
|
||||||
"Reached the end of the CPU serial log without finding a result")
|
"Reached the end of the CPU serial log without finding a result")
|
||||||
return 1
|
return 2
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
@@ -151,16 +164,15 @@ def main():
|
|||||||
'--test-timeout', type=int, help='Test phase timeout (minutes)', required=True)
|
'--test-timeout', type=int, help='Test phase timeout (minutes)', required=True)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
logger = CustomLogger("job_detail.json")
|
while True:
|
||||||
logger.update_dut_time("start", None)
|
servo = CrosServoRun(args.cpu, args.ec, args.test_timeout * 60)
|
||||||
servo = CrosServoRun(args.cpu, args.ec, args.test_timeout * 60, logger)
|
|
||||||
retval = servo.run()
|
retval = servo.run()
|
||||||
|
|
||||||
# power down the CPU on the device
|
# power down the CPU on the device
|
||||||
servo.ec_write("power off\n")
|
servo.ec_write("power off\n")
|
||||||
logger.update_dut_time("end", None)
|
|
||||||
servo.close()
|
servo.close()
|
||||||
|
|
||||||
|
if retval != 2:
|
||||||
sys.exit(retval)
|
sys.exit(retval)
|
||||||
|
|
||||||
|
|
||||||
|
@@ -96,33 +96,27 @@ else
|
|||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Make the combined kernel image and dtb for passing to fastboot. For normal
|
||||||
|
# Mesa development, we build the kernel and store it in the docker container
|
||||||
|
# that this script is running in.
|
||||||
|
#
|
||||||
|
# However, container builds are expensive, so when you're hacking on the
|
||||||
|
# kernel, it's nice to be able to skip the half hour container build and plus
|
||||||
|
# moving that container to the runner. So, if BM_KERNEL+BM_DTB are URLs,
|
||||||
|
# fetch them instead of looking in the container.
|
||||||
if echo "$BM_KERNEL $BM_DTB" | grep -q http; then
|
if echo "$BM_KERNEL $BM_DTB" | grep -q http; then
|
||||||
|
apt-get install -y curl
|
||||||
|
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
||||||
"$BM_KERNEL" -o kernel
|
"$BM_KERNEL" -o kernel
|
||||||
# FIXME: modules should be supplied too
|
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
||||||
"$BM_DTB" -o dtb
|
"$BM_DTB" -o dtb
|
||||||
|
|
||||||
cat kernel dtb > Image.gz-dtb
|
cat kernel dtb > Image.gz-dtb
|
||||||
|
|
||||||
elif [ -n "${FORCE_KERNEL_TAG}" ]; then
|
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
|
||||||
"${FDO_HTTP_CACHE_URI:-}${KERNEL_IMAGE_BASE}/${DEBIAN_ARCH}/${BM_KERNEL}" -o kernel
|
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
|
||||||
"${FDO_HTTP_CACHE_URI:-}${KERNEL_IMAGE_BASE}/${DEBIAN_ARCH}/modules.tar.zst" -o modules.tar.zst
|
|
||||||
|
|
||||||
if [ -n "$BM_DTB" ]; then
|
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
|
||||||
"${FDO_HTTP_CACHE_URI:-}${KERNEL_IMAGE_BASE}/${DEBIAN_ARCH}/${BM_DTB}.dtb" -o dtb
|
|
||||||
fi
|
|
||||||
|
|
||||||
cat kernel dtb > Image.gz-dtb || echo "No DTB available, using pure kernel."
|
|
||||||
rm kernel
|
rm kernel
|
||||||
tar --keep-directory-symlink --zstd -xf modules.tar.zst -C "$BM_ROOTFS/"
|
|
||||||
rm modules.tar.zst &
|
|
||||||
else
|
else
|
||||||
cat /baremetal-files/"$BM_KERNEL" /baremetal-files/"$BM_DTB".dtb > Image.gz-dtb
|
cat $BM_KERNEL $BM_DTB > Image.gz-dtb
|
||||||
cp /baremetal-files/"$BM_DTB".dtb dtb
|
cp $BM_DTB dtb
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export PATH=$BM:$PATH
|
export PATH=$BM:$PATH
|
||||||
|
@@ -51,8 +51,8 @@ class FastbootRun:
|
|||||||
try:
|
try:
|
||||||
return subprocess.call(cmd, shell=True, timeout=timeout)
|
return subprocess.call(cmd, shell=True, timeout=timeout)
|
||||||
except subprocess.TimeoutExpired:
|
except subprocess.TimeoutExpired:
|
||||||
self.print_error("timeout, abandoning run.")
|
self.print_error("timeout, restarting run...")
|
||||||
return 1
|
return 2
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
if ret := self.logged_system(self.powerup):
|
if ret := self.logged_system(self.powerup):
|
||||||
@@ -60,20 +60,20 @@ class FastbootRun:
|
|||||||
|
|
||||||
fastboot_ready = False
|
fastboot_ready = False
|
||||||
for line in self.ser.lines(timeout=2 * 60, phase="bootloader"):
|
for line in self.ser.lines(timeout=2 * 60, phase="bootloader"):
|
||||||
if re.search("[Ff]astboot: [Pp]rocessing commands", line) or \
|
if re.search("fastboot: processing commands", line) or \
|
||||||
re.search("Listening for fastboot command on", line):
|
re.search("Listening for fastboot command on", line):
|
||||||
fastboot_ready = True
|
fastboot_ready = True
|
||||||
break
|
break
|
||||||
|
|
||||||
if re.search("data abort", line):
|
if re.search("data abort", line):
|
||||||
self.print_error(
|
self.print_error(
|
||||||
"Detected crash during boot, abandoning run.")
|
"Detected crash during boot, restarting run...")
|
||||||
return 1
|
return 2
|
||||||
|
|
||||||
if not fastboot_ready:
|
if not fastboot_ready:
|
||||||
self.print_error(
|
self.print_error(
|
||||||
"Failed to get to fastboot prompt, abandoning run.")
|
"Failed to get to fastboot prompt, restarting run...")
|
||||||
return 1
|
return 2
|
||||||
|
|
||||||
if ret := self.logged_system(self.fastboot):
|
if ret := self.logged_system(self.fastboot):
|
||||||
return ret
|
return ret
|
||||||
@@ -81,7 +81,7 @@ class FastbootRun:
|
|||||||
print_more_lines = -1
|
print_more_lines = -1
|
||||||
for line in self.ser.lines(timeout=self.test_timeout, phase="test"):
|
for line in self.ser.lines(timeout=self.test_timeout, phase="test"):
|
||||||
if print_more_lines == 0:
|
if print_more_lines == 0:
|
||||||
return 1
|
return 2
|
||||||
if print_more_lines > 0:
|
if print_more_lines > 0:
|
||||||
print_more_lines -= 1
|
print_more_lines -= 1
|
||||||
|
|
||||||
@@ -92,20 +92,20 @@ class FastbootRun:
|
|||||||
# when if we see a reboot after we got past fastboot.
|
# when if we see a reboot after we got past fastboot.
|
||||||
if re.search("PON REASON", line):
|
if re.search("PON REASON", line):
|
||||||
self.print_error(
|
self.print_error(
|
||||||
"Detected spontaneous reboot, abandoning run.")
|
"Detected spontaneous reboot, restarting run...")
|
||||||
return 1
|
return 2
|
||||||
|
|
||||||
# db820c sometimes wedges around iommu fault recovery
|
# db820c sometimes wedges around iommu fault recovery
|
||||||
if re.search("watchdog: BUG: soft lockup - CPU.* stuck", line):
|
if re.search("watchdog: BUG: soft lockup - CPU.* stuck", line):
|
||||||
self.print_error(
|
self.print_error(
|
||||||
"Detected kernel soft lockup, abandoning run.")
|
"Detected kernel soft lockup, restarting run...")
|
||||||
return 1
|
return 2
|
||||||
|
|
||||||
# If the network device dies, it's probably not graphics's fault, just try again.
|
# If the network device dies, it's probably not graphics's fault, just try again.
|
||||||
if re.search("NETDEV WATCHDOG", line):
|
if re.search("NETDEV WATCHDOG", line):
|
||||||
self.print_error(
|
self.print_error(
|
||||||
"Detected network device failure, abandoning run.")
|
"Detected network device failure, restarting run...")
|
||||||
return 1
|
return 2
|
||||||
|
|
||||||
# A3xx recovery doesn't quite work. Sometimes the GPU will get
|
# A3xx recovery doesn't quite work. Sometimes the GPU will get
|
||||||
# wedged and recovery will fail (because power can't be reset?)
|
# wedged and recovery will fail (because power can't be reset?)
|
||||||
@@ -115,7 +115,7 @@ class FastbootRun:
|
|||||||
# of the hang. Once a hang happens, it's pretty chatty.
|
# of the hang. Once a hang happens, it's pretty chatty.
|
||||||
if "[drm:adreno_recover] *ERROR* gpu hw init failed: -22" in line:
|
if "[drm:adreno_recover] *ERROR* gpu hw init failed: -22" in line:
|
||||||
self.print_error(
|
self.print_error(
|
||||||
"Detected GPU hang, abandoning run.")
|
"Detected GPU hang, restarting run...")
|
||||||
if print_more_lines == -1:
|
if print_more_lines == -1:
|
||||||
print_more_lines = 30
|
print_more_lines = 30
|
||||||
|
|
||||||
@@ -127,8 +127,8 @@ class FastbootRun:
|
|||||||
return 1
|
return 1
|
||||||
|
|
||||||
self.print_error(
|
self.print_error(
|
||||||
"Reached the end of the CPU serial log without finding a result, abandoning run.")
|
"Reached the end of the CPU serial log without finding a result, restarting run...")
|
||||||
return 1
|
return 2
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
@@ -147,8 +147,13 @@ def main():
|
|||||||
|
|
||||||
fastboot = FastbootRun(args, args.test_timeout * 60)
|
fastboot = FastbootRun(args, args.test_timeout * 60)
|
||||||
|
|
||||||
|
while True:
|
||||||
retval = fastboot.run()
|
retval = fastboot.run()
|
||||||
fastboot.close()
|
fastboot.close()
|
||||||
|
if retval != 2:
|
||||||
|
break
|
||||||
|
|
||||||
|
fastboot = FastbootRun(args, args.test_timeout * 60)
|
||||||
|
|
||||||
fastboot.logged_system(args.powerdown)
|
fastboot.logged_system(args.powerdown)
|
||||||
|
|
||||||
|
@@ -10,7 +10,7 @@ if [ -z "$BM_POE_ADDRESS" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SNMP_KEY="SNMPv2-SMI::mib-2.105.1.1.1.3.1.$((${BM_POE_BASE:-0} + BM_POE_INTERFACE))"
|
SNMP_KEY="SNMPv2-SMI::mib-2.105.1.1.1.3.1.$((48 + BM_POE_INTERFACE))"
|
||||||
SNMP_OFF="i 2"
|
SNMP_OFF="i 2"
|
||||||
|
|
||||||
flock /var/run/poe.lock -c "snmpset -v2c -r 3 -t 30 -cmesaci $BM_POE_ADDRESS $SNMP_KEY $SNMP_OFF"
|
flock /var/run/poe.lock -c "snmpset -v2c -r 3 -t 30 -cmesaci $BM_POE_ADDRESS $SNMP_KEY $SNMP_OFF"
|
||||||
|
@@ -10,7 +10,7 @@ if [ -z "$BM_POE_ADDRESS" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SNMP_KEY="SNMPv2-SMI::mib-2.105.1.1.1.3.1.$((${BM_POE_BASE:-0} + BM_POE_INTERFACE))"
|
SNMP_KEY="SNMPv2-SMI::mib-2.105.1.1.1.3.1.$((48 + BM_POE_INTERFACE))"
|
||||||
SNMP_ON="i 1"
|
SNMP_ON="i 1"
|
||||||
SNMP_OFF="i 2"
|
SNMP_OFF="i 2"
|
||||||
|
|
||||||
|
@@ -12,7 +12,6 @@
|
|||||||
# We're run from the root of the repo, make a helper var for our paths
|
# We're run from the root of the repo, make a helper var for our paths
|
||||||
BM=$CI_PROJECT_DIR/install/bare-metal
|
BM=$CI_PROJECT_DIR/install/bare-metal
|
||||||
CI_COMMON=$CI_PROJECT_DIR/install/common
|
CI_COMMON=$CI_PROJECT_DIR/install/common
|
||||||
CI_INSTALL=$CI_PROJECT_DIR/install
|
|
||||||
|
|
||||||
# Runner config checks
|
# Runner config checks
|
||||||
if [ -z "$BM_SERIAL" ]; then
|
if [ -z "$BM_SERIAL" ]; then
|
||||||
@@ -61,8 +60,8 @@ if [ -z "$BM_ROOTFS" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$BM_BOOTFS" ] && { [ -z "$BM_KERNEL" ] || [ -z "$BM_DTB" ]; } ; then
|
if [ -z "$BM_BOOTFS" ]; then
|
||||||
echo "Must set /boot files for the TFTP boot in the job's variables or set kernel and dtb"
|
echo "Must set /boot files for the TFTP boot in the job's variables"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -71,6 +70,11 @@ if [ -z "$BM_CMDLINE" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$BM_BOOTCONFIG" ]; then
|
||||||
|
echo "Must set BM_BOOTCONFIG to your board's required boot configuration arguments"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
date +'%F %T'
|
date +'%F %T'
|
||||||
@@ -87,6 +91,7 @@ date +'%F %T'
|
|||||||
|
|
||||||
# If BM_BOOTFS is an URL, download it
|
# If BM_BOOTFS is an URL, download it
|
||||||
if echo $BM_BOOTFS | grep -q http; then
|
if echo $BM_BOOTFS | grep -q http; then
|
||||||
|
apt-get install -y curl
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
||||||
"${FDO_HTTP_CACHE_URI:-}$BM_BOOTFS" -o /tmp/bootfs.tar
|
"${FDO_HTTP_CACHE_URI:-}$BM_BOOTFS" -o /tmp/bootfs.tar
|
||||||
BM_BOOTFS=/tmp/bootfs.tar
|
BM_BOOTFS=/tmp/bootfs.tar
|
||||||
@@ -95,50 +100,23 @@ fi
|
|||||||
date +'%F %T'
|
date +'%F %T'
|
||||||
|
|
||||||
# If BM_BOOTFS is a file, assume it is a tarball and uncompress it
|
# If BM_BOOTFS is a file, assume it is a tarball and uncompress it
|
||||||
if [ -f "${BM_BOOTFS}" ]; then
|
if [ -f $BM_BOOTFS ]; then
|
||||||
mkdir -p /tmp/bootfs
|
mkdir -p /tmp/bootfs
|
||||||
tar xf $BM_BOOTFS -C /tmp/bootfs
|
tar xf $BM_BOOTFS -C /tmp/bootfs
|
||||||
BM_BOOTFS=/tmp/bootfs
|
BM_BOOTFS=/tmp/bootfs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If BM_KERNEL and BM_DTS is present
|
|
||||||
if [ -n "${FORCE_KERNEL_TAG}" ]; then
|
|
||||||
if [ -z "${BM_KERNEL}" ] || [ -z "${BM_DTB}" ]; then
|
|
||||||
echo "This machine cannot be tested with external kernel since BM_KERNEL or BM_DTB missing!"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
|
||||||
"${FDO_HTTP_CACHE_URI:-}${KERNEL_IMAGE_BASE}/${DEBIAN_ARCH}/${BM_KERNEL}" -o "${BM_KERNEL}"
|
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
|
||||||
"${FDO_HTTP_CACHE_URI:-}${KERNEL_IMAGE_BASE}/${DEBIAN_ARCH}/${BM_DTB}.dtb" -o "${BM_DTB}.dtb"
|
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
|
||||||
"${FDO_HTTP_CACHE_URI:-}${KERNEL_IMAGE_BASE}/${DEBIAN_ARCH}/modules.tar.zst" -o modules.tar.zst
|
|
||||||
fi
|
|
||||||
|
|
||||||
date +'%F %T'
|
date +'%F %T'
|
||||||
|
|
||||||
# Install kernel modules (it could be either in /lib/modules or
|
# Install kernel modules (it could be either in /lib/modules or
|
||||||
# /usr/lib/modules, but we want to install in the latter)
|
# /usr/lib/modules, but we want to install in the latter)
|
||||||
if [ -n "${FORCE_KERNEL_TAG}" ]; then
|
[ -d $BM_BOOTFS/usr/lib/modules ] && rsync -a $BM_BOOTFS/usr/lib/modules/ /nfs/usr/lib/modules/
|
||||||
tar --keep-directory-symlink --zstd -xf modules.tar.zst -C /nfs/
|
[ -d $BM_BOOTFS/lib/modules ] && rsync -a $BM_BOOTFS/lib/modules/ /nfs/lib/modules/
|
||||||
rm modules.tar.zst &
|
|
||||||
elif [ -n "${BM_BOOTFS}" ]; then
|
|
||||||
[ -d $BM_BOOTFS/usr/lib/modules ] && rsync -a $BM_BOOTFS/usr/lib/modules/ /nfs/usr/lib/modules/
|
|
||||||
[ -d $BM_BOOTFS/lib/modules ] && rsync -a $BM_BOOTFS/lib/modules/ /nfs/lib/modules/
|
|
||||||
else
|
|
||||||
echo "No modules!"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
date +'%F %T'
|
date +'%F %T'
|
||||||
|
|
||||||
# Install kernel image + bootloader files
|
# Install kernel image + bootloader files
|
||||||
if [ -n "${FORCE_KERNEL_TAG}" ] || [ -z "$BM_BOOTFS" ]; then
|
rsync -aL --delete $BM_BOOTFS/boot/ /tftp/
|
||||||
mv "${BM_KERNEL}" "${BM_DTB}.dtb" /tftp/
|
|
||||||
else # BM_BOOTFS
|
|
||||||
rsync -aL --delete $BM_BOOTFS/boot/ /tftp/
|
|
||||||
fi
|
|
||||||
|
|
||||||
date +'%F %T'
|
date +'%F %T'
|
||||||
|
|
||||||
@@ -170,31 +148,19 @@ LABEL primary
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Create the rootfs in the NFS directory
|
# Create the rootfs in the NFS directory
|
||||||
|
mkdir -p /nfs/results
|
||||||
. $BM/rootfs-setup.sh /nfs
|
. $BM/rootfs-setup.sh /nfs
|
||||||
|
|
||||||
date +'%F %T'
|
date +'%F %T'
|
||||||
|
|
||||||
echo "$BM_CMDLINE" > /tftp/cmdline.txt
|
echo "$BM_CMDLINE" > /tftp/cmdline.txt
|
||||||
|
|
||||||
# Add some options in config.txt, if defined
|
# Add some required options in config.txt
|
||||||
if [ -n "$BM_BOOTCONFIG" ]; then
|
printf "$BM_BOOTCONFIG" >> /tftp/config.txt
|
||||||
printf "$BM_BOOTCONFIG" >> /tftp/config.txt
|
|
||||||
fi
|
|
||||||
|
|
||||||
set +e
|
set +e
|
||||||
STRUCTURED_LOG_FILE=job_detail.json
|
ATTEMPTS=10
|
||||||
python3 $CI_INSTALL/custom_logger.py ${STRUCTURED_LOG_FILE} --update dut_job_type "${DEVICE_TYPE}"
|
|
||||||
python3 $CI_INSTALL/custom_logger.py ${STRUCTURED_LOG_FILE} --update farm "${FARM}"
|
|
||||||
ATTEMPTS=3
|
|
||||||
first_attempt=True
|
|
||||||
while [ $((ATTEMPTS--)) -gt 0 ]; do
|
while [ $((ATTEMPTS--)) -gt 0 ]; do
|
||||||
python3 $CI_INSTALL/custom_logger.py ${STRUCTURED_LOG_FILE} --create-dut-job dut_name "${CI_RUNNER_DESCRIPTION}"
|
|
||||||
# Update subtime time to CI_JOB_STARTED_AT only for the first run
|
|
||||||
if [ "$first_attempt" = "True" ]; then
|
|
||||||
python3 $CI_INSTALL/custom_logger.py ${STRUCTURED_LOG_FILE} --update-dut-time submit "${CI_JOB_STARTED_AT}"
|
|
||||||
else
|
|
||||||
python3 $CI_INSTALL/custom_logger.py ${STRUCTURED_LOG_FILE} --update-dut-time submit
|
|
||||||
fi
|
|
||||||
python3 $BM/poe_run.py \
|
python3 $BM/poe_run.py \
|
||||||
--dev="$BM_SERIAL" \
|
--dev="$BM_SERIAL" \
|
||||||
--powerup="$BM_POWERUP" \
|
--powerup="$BM_POWERUP" \
|
||||||
@@ -204,14 +170,10 @@ while [ $((ATTEMPTS--)) -gt 0 ]; do
|
|||||||
|
|
||||||
if [ $ret -eq 2 ]; then
|
if [ $ret -eq 2 ]; then
|
||||||
echo "Did not detect boot sequence, retrying..."
|
echo "Did not detect boot sequence, retrying..."
|
||||||
python3 $CI_INSTALL/custom_logger.py ${STRUCTURED_LOG_FILE} --close-dut-job
|
|
||||||
first_attempt=False
|
|
||||||
else
|
else
|
||||||
ATTEMPTS=0
|
ATTEMPTS=0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
python3 $CI_INSTALL/custom_logger.py ${STRUCTURED_LOG_FILE} --close-dut-job
|
|
||||||
python3 $CI_INSTALL/custom_logger.py ${STRUCTURED_LOG_FILE} --close
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
date +'%F %T'
|
date +'%F %T'
|
||||||
@@ -219,10 +181,6 @@ date +'%F %T'
|
|||||||
# Bring artifacts back from the NFS dir to the build dir where gitlab-runner
|
# Bring artifacts back from the NFS dir to the build dir where gitlab-runner
|
||||||
# will look for them.
|
# will look for them.
|
||||||
cp -Rp /nfs/results/. results/
|
cp -Rp /nfs/results/. results/
|
||||||
if [ -f "${STRUCTURED_LOG_FILE}" ]; then
|
|
||||||
cp -p ${STRUCTURED_LOG_FILE} results/
|
|
||||||
echo "Structured log file is available at ${ARTIFACTS_BASE_URL}/results/${STRUCTURED_LOG_FILE}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
date +'%F %T'
|
date +'%F %T'
|
||||||
|
|
||||||
|
@@ -24,26 +24,23 @@
|
|||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
from serial_buffer import SerialBuffer
|
||||||
import sys
|
import sys
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
from custom_logger import CustomLogger
|
|
||||||
from serial_buffer import SerialBuffer
|
|
||||||
|
|
||||||
class PoERun:
|
class PoERun:
|
||||||
def __init__(self, args, test_timeout, logger):
|
def __init__(self, args, test_timeout):
|
||||||
self.powerup = args.powerup
|
self.powerup = args.powerup
|
||||||
self.powerdown = args.powerdown
|
self.powerdown = args.powerdown
|
||||||
self.ser = SerialBuffer(
|
self.ser = SerialBuffer(
|
||||||
args.dev, "results/serial-output.txt", "")
|
args.dev, "results/serial-output.txt", "")
|
||||||
self.test_timeout = test_timeout
|
self.test_timeout = test_timeout
|
||||||
self.logger = logger
|
|
||||||
|
|
||||||
def print_error(self, message):
|
def print_error(self, message):
|
||||||
RED = '\033[0;31m'
|
RED = '\033[0;31m'
|
||||||
NO_COLOR = '\033[0m'
|
NO_COLOR = '\033[0m'
|
||||||
print(RED + message + NO_COLOR)
|
print(RED + message + NO_COLOR)
|
||||||
self.logger.update_status_fail(message)
|
|
||||||
|
|
||||||
def logged_system(self, cmd):
|
def logged_system(self, cmd):
|
||||||
print("Running '{}'".format(cmd))
|
print("Running '{}'".format(cmd))
|
||||||
@@ -51,11 +48,9 @@ class PoERun:
|
|||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
if self.logged_system(self.powerup) != 0:
|
if self.logged_system(self.powerup) != 0:
|
||||||
self.logger.update_status_fail("powerup failed")
|
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
boot_detected = False
|
boot_detected = False
|
||||||
self.logger.create_job_phase("boot")
|
|
||||||
for line in self.ser.lines(timeout=5 * 60, phase="bootloader"):
|
for line in self.ser.lines(timeout=5 * 60, phase="bootloader"):
|
||||||
if re.search("Booting Linux", line):
|
if re.search("Booting Linux", line):
|
||||||
boot_detected = True
|
boot_detected = True
|
||||||
@@ -66,10 +61,8 @@ class PoERun:
|
|||||||
"Something wrong; couldn't detect the boot start up sequence")
|
"Something wrong; couldn't detect the boot start up sequence")
|
||||||
return 2
|
return 2
|
||||||
|
|
||||||
self.logger.create_job_phase("test")
|
|
||||||
for line in self.ser.lines(timeout=self.test_timeout, phase="test"):
|
for line in self.ser.lines(timeout=self.test_timeout, phase="test"):
|
||||||
if re.search("---. end Kernel panic", line):
|
if re.search("---. end Kernel panic", line):
|
||||||
self.logger.update_status_fail("kernel panic")
|
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
# Binning memory problems
|
# Binning memory problems
|
||||||
@@ -78,26 +71,24 @@ class PoERun:
|
|||||||
return 1
|
return 1
|
||||||
|
|
||||||
if re.search("nouveau 57000000.gpu: bus: MMIO read of 00000000 FAULT at 137000", line):
|
if re.search("nouveau 57000000.gpu: bus: MMIO read of 00000000 FAULT at 137000", line):
|
||||||
self.print_error("nouveau jetson boot bug, abandoning run.")
|
self.print_error("nouveau jetson boot bug, retrying.")
|
||||||
return 1
|
return 2
|
||||||
|
|
||||||
# network fail on tk1
|
# network fail on tk1
|
||||||
if re.search("NETDEV WATCHDOG:.* transmit queue 0 timed out", line):
|
if re.search("NETDEV WATCHDOG:.* transmit queue 0 timed out", line):
|
||||||
self.print_error("nouveau jetson tk1 network fail, abandoning run.")
|
self.print_error("nouveau jetson tk1 network fail, retrying.")
|
||||||
return 1
|
return 2
|
||||||
|
|
||||||
result = re.search("hwci: mesa: (\S*)", line)
|
result = re.search("hwci: mesa: (\S*)", line)
|
||||||
if result:
|
if result:
|
||||||
if result.group(1) == "pass":
|
if result.group(1) == "pass":
|
||||||
self.logger.update_dut_job("status", "pass")
|
|
||||||
return 0
|
return 0
|
||||||
else:
|
else:
|
||||||
self.logger.update_status_fail("test fail")
|
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
self.print_error(
|
self.print_error(
|
||||||
"Reached the end of the CPU serial log without finding a result")
|
"Reached the end of the CPU serial log without finding a result")
|
||||||
return 1
|
return 2
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
@@ -112,13 +103,10 @@ def main():
|
|||||||
'--test-timeout', type=int, help='Test phase timeout (minutes)', required=True)
|
'--test-timeout', type=int, help='Test phase timeout (minutes)', required=True)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
logger = CustomLogger("job_detail.json")
|
poe = PoERun(args, args.test_timeout * 60)
|
||||||
logger.update_dut_time("start", None)
|
|
||||||
poe = PoERun(args, args.test_timeout * 60, logger)
|
|
||||||
retval = poe.run()
|
retval = poe.run()
|
||||||
|
|
||||||
poe.logged_system(args.powerdown)
|
poe.logged_system(args.powerdown)
|
||||||
logger.update_dut_time("end", None)
|
|
||||||
|
|
||||||
sys.exit(retval)
|
sys.exit(retval)
|
||||||
|
|
||||||
|
@@ -13,13 +13,12 @@ date +'%F %T'
|
|||||||
|
|
||||||
# Make JWT token available as file in the bare-metal storage to enable access
|
# Make JWT token available as file in the bare-metal storage to enable access
|
||||||
# to MinIO
|
# to MinIO
|
||||||
cp "${S3_JWT_FILE}" "${rootfs_dst}${S3_JWT_FILE}"
|
cp "${CI_JOB_JWT_FILE}" "${rootfs_dst}${CI_JOB_JWT_FILE}"
|
||||||
|
|
||||||
date +'%F %T'
|
date +'%F %T'
|
||||||
|
|
||||||
cp $CI_COMMON/capture-devcoredump.sh $rootfs_dst/
|
cp $CI_COMMON/capture-devcoredump.sh $rootfs_dst/
|
||||||
cp $CI_COMMON/intel-gpu-freq.sh $rootfs_dst/
|
cp $CI_COMMON/intel-gpu-freq.sh $rootfs_dst/
|
||||||
cp $CI_COMMON/kdl.sh $rootfs_dst/
|
|
||||||
cp "$SCRIPTS_DIR/setup-test-env.sh" "$rootfs_dst/"
|
cp "$SCRIPTS_DIR/setup-test-env.sh" "$rootfs_dst/"
|
||||||
|
|
||||||
set +x
|
set +x
|
||||||
|
@@ -1,22 +1,15 @@
|
|||||||
# Shared between windows and Linux
|
# Shared between windows and Linux
|
||||||
.build-common:
|
.build-common:
|
||||||
extends: .container+build-rules
|
extends: .build-rules
|
||||||
# Cancel job if a newer commit is pushed to the same branch
|
# Cancel job if a newer commit is pushed to the same branch
|
||||||
interruptible: true
|
interruptible: true
|
||||||
# Build jobs don't take more than 1-3 minutes. 5-8 min max on a fresh runner
|
|
||||||
# without a populated ccache.
|
|
||||||
# These jobs are never slow, either they finish within reasonable time or
|
|
||||||
# something has gone wrong and the job will never terminate, so we should
|
|
||||||
# instead timeout so that the retry mechanism can kick in.
|
|
||||||
# A few exception are made, see `timeout:` overrides in the rest of this
|
|
||||||
# file.
|
|
||||||
timeout: 30m
|
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "mesa_${CI_JOB_NAME}"
|
name: "mesa_${CI_JOB_NAME}"
|
||||||
when: always
|
when: always
|
||||||
paths:
|
paths:
|
||||||
- _build/meson-logs/*.txt
|
- _build/meson-logs/*.txt
|
||||||
- _build/meson-logs/strace
|
- _build/meson-logs/strace
|
||||||
|
- shader-db
|
||||||
- artifacts
|
- artifacts
|
||||||
|
|
||||||
# Just Linux
|
# Just Linux
|
||||||
@@ -42,9 +35,12 @@
|
|||||||
- !reference [default, after_script]
|
- !reference [default, after_script]
|
||||||
|
|
||||||
.build-windows:
|
.build-windows:
|
||||||
extends:
|
extends: .build-common
|
||||||
- .build-common
|
tags:
|
||||||
- .windows-docker-tags
|
- windows
|
||||||
|
- docker
|
||||||
|
- "2022"
|
||||||
|
- mesa
|
||||||
cache:
|
cache:
|
||||||
key: ${CI_JOB_NAME}
|
key: ${CI_JOB_NAME}
|
||||||
paths:
|
paths:
|
||||||
@@ -60,6 +56,15 @@
|
|||||||
script:
|
script:
|
||||||
- .gitlab-ci/meson/build.sh
|
- .gitlab-ci/meson/build.sh
|
||||||
|
|
||||||
|
.meson-build_mingw:
|
||||||
|
extends:
|
||||||
|
- .build-linux
|
||||||
|
- .use-debian/x86_64_build_mingw
|
||||||
|
- .use-wine
|
||||||
|
stage: build-x86_64
|
||||||
|
script:
|
||||||
|
- .gitlab-ci/meson/build.sh
|
||||||
|
|
||||||
debian-testing:
|
debian-testing:
|
||||||
extends:
|
extends:
|
||||||
- .meson-build
|
- .meson-build
|
||||||
@@ -70,15 +75,12 @@ debian-testing:
|
|||||||
-D glx=dri
|
-D glx=dri
|
||||||
-D gbm=enabled
|
-D gbm=enabled
|
||||||
-D egl=enabled
|
-D egl=enabled
|
||||||
-D glvnd=disabled
|
|
||||||
-D platforms=x11,wayland
|
-D platforms=x11,wayland
|
||||||
GALLIUM_ST: >
|
GALLIUM_ST: >
|
||||||
-D dri3=enabled
|
-D dri3=enabled
|
||||||
-D gallium-nine=true
|
|
||||||
-D gallium-va=enabled
|
-D gallium-va=enabled
|
||||||
-D gallium-rusticl=true
|
GALLIUM_DRIVERS: "swrast,virgl,radeonsi,zink,crocus,iris,i915"
|
||||||
GALLIUM_DRIVERS: "swrast,virgl,radeonsi,zink,crocus,iris,i915,r300,svga"
|
VULKAN_DRIVERS: "swrast,amd,intel,intel_hasvk,virtio"
|
||||||
VULKAN_DRIVERS: "swrast,amd,intel,intel_hasvk,virtio,nouveau"
|
|
||||||
BUILDTYPE: "debugoptimized"
|
BUILDTYPE: "debugoptimized"
|
||||||
EXTRA_OPTION: >
|
EXTRA_OPTION: >
|
||||||
-D spirv-to-dxil=true
|
-D spirv-to-dxil=true
|
||||||
@@ -104,22 +106,8 @@ debian-testing-asan:
|
|||||||
-D b_sanitize=address
|
-D b_sanitize=address
|
||||||
-D valgrind=disabled
|
-D valgrind=disabled
|
||||||
-D tools=dlclose-skip
|
-D tools=dlclose-skip
|
||||||
-D intel-clc=system
|
|
||||||
S3_ARTIFACT_NAME: ""
|
S3_ARTIFACT_NAME: ""
|
||||||
ARTIFACTS_DEBUG_SYMBOLS: 1
|
ARTIFACTS_DEBUG_SYMBOLS: 1
|
||||||
# Do a host build for intel-clc (asan complains not being loaded
|
|
||||||
# as the first library)
|
|
||||||
HOST_BUILD_OPTIONS: >
|
|
||||||
-D build-tests=false
|
|
||||||
-D enable-glcpp-tests=false
|
|
||||||
-D gallium-opencl=disabled
|
|
||||||
-D gallium-drivers=
|
|
||||||
-D vulkan-drivers=
|
|
||||||
-D video-codecs=
|
|
||||||
-D glx=disabled
|
|
||||||
-D platforms=
|
|
||||||
-D intel-clc=enabled
|
|
||||||
-D install-intel-clc=true
|
|
||||||
|
|
||||||
debian-testing-msan:
|
debian-testing-msan:
|
||||||
# https://github.com/google/sanitizers/wiki/MemorySanitizerLibcxxHowTo
|
# https://github.com/google/sanitizers/wiki/MemorySanitizerLibcxxHowTo
|
||||||
@@ -131,7 +119,6 @@ debian-testing-msan:
|
|||||||
EXTRA_OPTION:
|
EXTRA_OPTION:
|
||||||
-D b_sanitize=memory
|
-D b_sanitize=memory
|
||||||
-D b_lundef=false
|
-D b_lundef=false
|
||||||
-D intel-clc=system
|
|
||||||
S3_ARTIFACT_NAME: ""
|
S3_ARTIFACT_NAME: ""
|
||||||
ARTIFACTS_DEBUG_SYMBOLS: 1
|
ARTIFACTS_DEBUG_SYMBOLS: 1
|
||||||
# Don't run all the tests yet:
|
# Don't run all the tests yet:
|
||||||
@@ -140,19 +127,42 @@ debian-testing-msan:
|
|||||||
MESON_TEST_ARGS: "--suite glcpp --suite format"
|
MESON_TEST_ARGS: "--suite glcpp --suite format"
|
||||||
GALLIUM_DRIVERS: "freedreno,iris,nouveau,kmsro,r300,r600,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink,radeonsi,tegra,d3d12,crocus"
|
GALLIUM_DRIVERS: "freedreno,iris,nouveau,kmsro,r300,r600,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink,radeonsi,tegra,d3d12,crocus"
|
||||||
VULKAN_DRIVERS: intel,amd,broadcom,virtio
|
VULKAN_DRIVERS: intel,amd,broadcom,virtio
|
||||||
# Do a host build for intel-clc (msan complains about
|
|
||||||
# uninitialized values in the LLVM libs)
|
.debian-cl-testing:
|
||||||
HOST_BUILD_OPTIONS: >
|
extends:
|
||||||
-D build-tests=false
|
- .meson-build
|
||||||
-D enable-glcpp-tests=false
|
- .ci-deqp-artifacts
|
||||||
-D gallium-opencl=disabled
|
variables:
|
||||||
-D gallium-drivers=
|
LLVM_VERSION: 15
|
||||||
-D vulkan-drivers=
|
UNWIND: "enabled"
|
||||||
-D video-codecs=
|
DRI_LOADERS: >
|
||||||
-D glx=disabled
|
-D glx=disabled
|
||||||
-D platforms=
|
-D egl=disabled
|
||||||
-D intel-clc=enabled
|
-D gbm=disabled
|
||||||
-D install-intel-clc=true
|
GALLIUM_DRIVERS: "swrast"
|
||||||
|
BUILDTYPE: "debugoptimized"
|
||||||
|
EXTRA_OPTION: >
|
||||||
|
-D valgrind=disabled
|
||||||
|
script:
|
||||||
|
- .gitlab-ci/meson/build.sh
|
||||||
|
- .gitlab-ci/prepare-artifacts.sh
|
||||||
|
|
||||||
|
# TODO: remove together with Clover
|
||||||
|
.debian-clover-testing:
|
||||||
|
extends:
|
||||||
|
- .debian-cl-testing
|
||||||
|
variables:
|
||||||
|
GALLIUM_ST: >
|
||||||
|
-D gallium-opencl=icd
|
||||||
|
-D opencl-spirv=true
|
||||||
|
|
||||||
|
debian-rusticl-testing:
|
||||||
|
extends:
|
||||||
|
- .debian-cl-testing
|
||||||
|
variables:
|
||||||
|
GALLIUM_ST: >
|
||||||
|
-D gallium-rusticl=true
|
||||||
|
-D opencl-spirv=true
|
||||||
|
|
||||||
debian-build-testing:
|
debian-build-testing:
|
||||||
extends: .meson-build
|
extends: .meson-build
|
||||||
@@ -163,7 +173,6 @@ debian-build-testing:
|
|||||||
-D glx=dri
|
-D glx=dri
|
||||||
-D gbm=enabled
|
-D gbm=enabled
|
||||||
-D egl=enabled
|
-D egl=enabled
|
||||||
-D glvnd=disabled
|
|
||||||
-D platforms=x11,wayland
|
-D platforms=x11,wayland
|
||||||
GALLIUM_ST: >
|
GALLIUM_ST: >
|
||||||
-D dri3=enabled
|
-D dri3=enabled
|
||||||
@@ -173,6 +182,7 @@ debian-build-testing:
|
|||||||
-D gallium-va=enabled
|
-D gallium-va=enabled
|
||||||
-D gallium-xa=enabled
|
-D gallium-xa=enabled
|
||||||
-D gallium-nine=true
|
-D gallium-nine=true
|
||||||
|
-D gallium-opencl=disabled
|
||||||
-D gallium-rusticl=false
|
-D gallium-rusticl=false
|
||||||
GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink,d3d12,asahi,crocus"
|
GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink,d3d12,asahi,crocus"
|
||||||
VULKAN_DRIVERS: swrast
|
VULKAN_DRIVERS: swrast
|
||||||
@@ -182,7 +192,6 @@ debian-build-testing:
|
|||||||
-D tools=drm-shim,etnaviv,freedreno,glsl,intel,intel-ui,nir,nouveau,lima,panfrost,asahi
|
-D tools=drm-shim,etnaviv,freedreno,glsl,intel,intel-ui,nir,nouveau,lima,panfrost,asahi
|
||||||
-D b_lto=true
|
-D b_lto=true
|
||||||
LLVM_VERSION: 15
|
LLVM_VERSION: 15
|
||||||
S3_ARTIFACT_NAME: debian-build-testing
|
|
||||||
script: |
|
script: |
|
||||||
section_start lava-pytest "lava-pytest"
|
section_start lava-pytest "lava-pytest"
|
||||||
.gitlab-ci/lava/lava-pytest.sh
|
.gitlab-ci/lava/lava-pytest.sh
|
||||||
@@ -190,28 +199,10 @@ debian-build-testing:
|
|||||||
.gitlab-ci/run-shellcheck.sh
|
.gitlab-ci/run-shellcheck.sh
|
||||||
section_switch yamllint "yamllint"
|
section_switch yamllint "yamllint"
|
||||||
.gitlab-ci/run-yamllint.sh
|
.gitlab-ci/run-yamllint.sh
|
||||||
section_end yamllint
|
section_switch meson "meson"
|
||||||
.gitlab-ci/meson/build.sh
|
.gitlab-ci/meson/build.sh
|
||||||
.gitlab-ci/prepare-artifacts.sh
|
section_switch shader-db "shader-db"
|
||||||
timeout: 15m
|
|
||||||
|
|
||||||
shader-db:
|
|
||||||
stage: code-validation
|
|
||||||
extends:
|
|
||||||
- .use-debian/x86_64_build
|
|
||||||
- .container+build-rules
|
|
||||||
needs:
|
|
||||||
- debian-build-testing
|
|
||||||
variables:
|
|
||||||
S3_ARTIFACT_NAME: debian-build-testing
|
|
||||||
before_script:
|
|
||||||
- !reference [.download_s3, before_script]
|
|
||||||
script: |
|
|
||||||
.gitlab-ci/run-shader-db.sh
|
.gitlab-ci/run-shader-db.sh
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- shader-db
|
|
||||||
timeout: 15m
|
|
||||||
|
|
||||||
# Test a release build with -Werror so new warnings don't sneak in.
|
# Test a release build with -Werror so new warnings don't sneak in.
|
||||||
debian-release:
|
debian-release:
|
||||||
@@ -225,7 +216,6 @@ debian-release:
|
|||||||
-D glx=dri
|
-D glx=dri
|
||||||
-D gbm=enabled
|
-D gbm=enabled
|
||||||
-D egl=enabled
|
-D egl=enabled
|
||||||
-D glvnd=disabled
|
|
||||||
-D platforms=x11,wayland
|
-D platforms=x11,wayland
|
||||||
GALLIUM_ST: >
|
GALLIUM_ST: >
|
||||||
-D dri3=enabled
|
-D dri3=enabled
|
||||||
@@ -235,6 +225,7 @@ debian-release:
|
|||||||
-D gallium-va=enabled
|
-D gallium-va=enabled
|
||||||
-D gallium-xa=enabled
|
-D gallium-xa=enabled
|
||||||
-D gallium-nine=false
|
-D gallium-nine=false
|
||||||
|
-D gallium-opencl=disabled
|
||||||
-D gallium-rusticl=false
|
-D gallium-rusticl=false
|
||||||
-D llvm=enabled
|
-D llvm=enabled
|
||||||
GALLIUM_DRIVERS: "i915,iris,nouveau,kmsro,freedreno,r300,svga,swrast,v3d,vc4,virgl,etnaviv,panfrost,lima,zink,d3d12,crocus"
|
GALLIUM_DRIVERS: "i915,iris,nouveau,kmsro,freedreno,r300,svga,swrast,v3d,vc4,virgl,etnaviv,panfrost,lima,zink,d3d12,crocus"
|
||||||
@@ -244,7 +235,6 @@ debian-release:
|
|||||||
-D osmesa=true
|
-D osmesa=true
|
||||||
-D tools=all
|
-D tools=all
|
||||||
-D intel-clc=enabled
|
-D intel-clc=enabled
|
||||||
-D intel-rt=enabled
|
|
||||||
-D imagination-srv=true
|
-D imagination-srv=true
|
||||||
BUILDTYPE: "release"
|
BUILDTYPE: "release"
|
||||||
S3_ARTIFACT_NAME: "mesa-x86_64-default-${BUILDTYPE}"
|
S3_ARTIFACT_NAME: "mesa-x86_64-default-${BUILDTYPE}"
|
||||||
@@ -267,9 +257,9 @@ alpine-build-testing:
|
|||||||
-D glx=disabled
|
-D glx=disabled
|
||||||
-D gbm=enabled
|
-D gbm=enabled
|
||||||
-D egl=enabled
|
-D egl=enabled
|
||||||
-D glvnd=disabled
|
-D glvnd=false
|
||||||
-D platforms=wayland
|
-D platforms=wayland
|
||||||
LLVM_VERSION: "16"
|
LLVM_VERSION: ""
|
||||||
GALLIUM_DRIVERS: "crocus,etnaviv,freedreno,iris,kmsro,lima,nouveau,panfrost,r300,r600,radeonsi,svga,swrast,tegra,v3d,vc4,virgl,zink"
|
GALLIUM_DRIVERS: "crocus,etnaviv,freedreno,iris,kmsro,lima,nouveau,panfrost,r300,r600,radeonsi,svga,swrast,tegra,v3d,vc4,virgl,zink"
|
||||||
GALLIUM_ST: >
|
GALLIUM_ST: >
|
||||||
-D dri3=enabled
|
-D dri3=enabled
|
||||||
@@ -287,6 +277,8 @@ alpine-build-testing:
|
|||||||
-D shared-llvm=enabled
|
-D shared-llvm=enabled
|
||||||
UNWIND: "disabled"
|
UNWIND: "disabled"
|
||||||
VULKAN_DRIVERS: "amd,broadcom,freedreno,intel,imagination-experimental"
|
VULKAN_DRIVERS: "amd,broadcom,freedreno,intel,imagination-experimental"
|
||||||
|
script:
|
||||||
|
- .gitlab-ci/meson/build.sh
|
||||||
|
|
||||||
fedora-release:
|
fedora-release:
|
||||||
extends:
|
extends:
|
||||||
@@ -307,7 +299,7 @@ fedora-release:
|
|||||||
-D glx=dri
|
-D glx=dri
|
||||||
-D gbm=enabled
|
-D gbm=enabled
|
||||||
-D egl=enabled
|
-D egl=enabled
|
||||||
-D glvnd=enabled
|
-D glvnd=true
|
||||||
-D platforms=x11,wayland
|
-D platforms=x11,wayland
|
||||||
EXTRA_OPTION: >
|
EXTRA_OPTION: >
|
||||||
-D b_lto=true
|
-D b_lto=true
|
||||||
@@ -315,9 +307,8 @@ fedora-release:
|
|||||||
-D selinux=true
|
-D selinux=true
|
||||||
-D tools=drm-shim,etnaviv,freedreno,glsl,intel,nir,nouveau,lima,panfrost,imagination
|
-D tools=drm-shim,etnaviv,freedreno,glsl,intel,nir,nouveau,lima,panfrost,imagination
|
||||||
-D vulkan-layers=device-select,overlay
|
-D vulkan-layers=device-select,overlay
|
||||||
-D intel-rt=enabled
|
-D intel-clc=enabled
|
||||||
-D imagination-srv=true
|
-D imagination-srv=true
|
||||||
-D teflon=true
|
|
||||||
GALLIUM_DRIVERS: "crocus,etnaviv,freedreno,i915,iris,kmsro,lima,nouveau,panfrost,r300,r600,radeonsi,svga,swrast,tegra,v3d,vc4,virgl,zink"
|
GALLIUM_DRIVERS: "crocus,etnaviv,freedreno,i915,iris,kmsro,lima,nouveau,panfrost,r300,r600,radeonsi,svga,swrast,tegra,v3d,vc4,virgl,zink"
|
||||||
GALLIUM_ST: >
|
GALLIUM_ST: >
|
||||||
-D dri3=enabled
|
-D dri3=enabled
|
||||||
@@ -327,6 +318,7 @@ fedora-release:
|
|||||||
-D gallium-va=enabled
|
-D gallium-va=enabled
|
||||||
-D gallium-xa=enabled
|
-D gallium-xa=enabled
|
||||||
-D gallium-nine=false
|
-D gallium-nine=false
|
||||||
|
-D gallium-opencl=icd
|
||||||
-D gallium-rusticl=true
|
-D gallium-rusticl=true
|
||||||
-D gles1=disabled
|
-D gles1=disabled
|
||||||
-D gles2=enabled
|
-D gles2=enabled
|
||||||
@@ -336,6 +328,8 @@ fedora-release:
|
|||||||
LLVM_VERSION: ""
|
LLVM_VERSION: ""
|
||||||
UNWIND: "disabled"
|
UNWIND: "disabled"
|
||||||
VULKAN_DRIVERS: "amd,broadcom,freedreno,imagination-experimental,intel,intel_hasvk"
|
VULKAN_DRIVERS: "amd,broadcom,freedreno,imagination-experimental,intel,intel_hasvk"
|
||||||
|
script:
|
||||||
|
- .gitlab-ci/meson/build.sh
|
||||||
|
|
||||||
debian-android:
|
debian-android:
|
||||||
extends:
|
extends:
|
||||||
@@ -351,6 +345,7 @@ debian-android:
|
|||||||
-Wno-error=enum-conversion
|
-Wno-error=enum-conversion
|
||||||
-Wno-error=initializer-overrides
|
-Wno-error=initializer-overrides
|
||||||
-Wno-error=sometimes-uninitialized
|
-Wno-error=sometimes-uninitialized
|
||||||
|
-Wno-error=implicit-const-int-float-conversion
|
||||||
CPP_ARGS: >
|
CPP_ARGS: >
|
||||||
-Wno-error=c99-designator
|
-Wno-error=c99-designator
|
||||||
-Wno-error=unused-variable
|
-Wno-error=unused-variable
|
||||||
@@ -360,7 +355,6 @@ debian-android:
|
|||||||
-D glx=disabled
|
-D glx=disabled
|
||||||
-D gbm=disabled
|
-D gbm=disabled
|
||||||
-D egl=enabled
|
-D egl=enabled
|
||||||
-D glvnd=disabled
|
|
||||||
-D platforms=android
|
-D platforms=android
|
||||||
EXTRA_OPTION: >
|
EXTRA_OPTION: >
|
||||||
-D android-stub=true
|
-D android-stub=true
|
||||||
@@ -368,7 +362,6 @@ debian-android:
|
|||||||
-D platform-sdk-version=33
|
-D platform-sdk-version=33
|
||||||
-D valgrind=disabled
|
-D valgrind=disabled
|
||||||
-D android-libbacktrace=disabled
|
-D android-libbacktrace=disabled
|
||||||
-D intel-clc=system
|
|
||||||
GALLIUM_ST: >
|
GALLIUM_ST: >
|
||||||
-D dri3=disabled
|
-D dri3=disabled
|
||||||
-D gallium-vdpau=disabled
|
-D gallium-vdpau=disabled
|
||||||
@@ -376,20 +369,10 @@ debian-android:
|
|||||||
-D gallium-va=disabled
|
-D gallium-va=disabled
|
||||||
-D gallium-xa=disabled
|
-D gallium-xa=disabled
|
||||||
-D gallium-nine=false
|
-D gallium-nine=false
|
||||||
-D gallium-rusticl=false
|
|
||||||
LLVM_VERSION: "15"
|
|
||||||
PKG_CONFIG_LIBDIR: "/disable/non/android/system/pc/files"
|
|
||||||
HOST_BUILD_OPTIONS: >
|
|
||||||
-D build-tests=false
|
|
||||||
-D enable-glcpp-tests=false
|
|
||||||
-D gallium-opencl=disabled
|
-D gallium-opencl=disabled
|
||||||
-D gallium-drivers=
|
-D gallium-rusticl=false
|
||||||
-D vulkan-drivers=
|
LLVM_VERSION: ""
|
||||||
-D video-codecs=
|
PKG_CONFIG_LIBDIR: "/disable/non/android/system/pc/files"
|
||||||
-D glx=disabled
|
|
||||||
-D platforms=
|
|
||||||
-D intel-clc=enabled
|
|
||||||
-D install-intel-clc=true
|
|
||||||
ARTIFACTS_DEBUG_SYMBOLS: 1
|
ARTIFACTS_DEBUG_SYMBOLS: 1
|
||||||
S3_ARTIFACT_NAME: mesa-x86_64-android-${BUILDTYPE}
|
S3_ARTIFACT_NAME: mesa-x86_64-android-${BUILDTYPE}
|
||||||
script:
|
script:
|
||||||
@@ -441,8 +424,6 @@ debian-arm32:
|
|||||||
- .ci-deqp-artifacts
|
- .ci-deqp-artifacts
|
||||||
variables:
|
variables:
|
||||||
CROSS: armhf
|
CROSS: armhf
|
||||||
DRI_LOADERS:
|
|
||||||
-D glvnd=disabled
|
|
||||||
EXTRA_OPTION: >
|
EXTRA_OPTION: >
|
||||||
-D llvm=disabled
|
-D llvm=disabled
|
||||||
-D valgrind=disabled
|
-D valgrind=disabled
|
||||||
@@ -458,8 +439,6 @@ debian-arm32-asan:
|
|||||||
extends:
|
extends:
|
||||||
- debian-arm32
|
- debian-arm32
|
||||||
variables:
|
variables:
|
||||||
DRI_LOADERS:
|
|
||||||
-D glvnd=disabled
|
|
||||||
EXTRA_OPTION: >
|
EXTRA_OPTION: >
|
||||||
-D llvm=disabled
|
-D llvm=disabled
|
||||||
-D b_sanitize=address
|
-D b_sanitize=address
|
||||||
@@ -478,15 +457,11 @@ debian-arm64:
|
|||||||
-Wno-error=array-bounds
|
-Wno-error=array-bounds
|
||||||
-Wno-error=stringop-truncation
|
-Wno-error=stringop-truncation
|
||||||
VULKAN_DRIVERS: "freedreno,broadcom,panfrost,imagination-experimental"
|
VULKAN_DRIVERS: "freedreno,broadcom,panfrost,imagination-experimental"
|
||||||
DRI_LOADERS:
|
|
||||||
-D glvnd=disabled
|
|
||||||
EXTRA_OPTION: >
|
EXTRA_OPTION: >
|
||||||
-D llvm=disabled
|
-D llvm=disabled
|
||||||
-D valgrind=disabled
|
-D valgrind=disabled
|
||||||
-D imagination-srv=true
|
-D imagination-srv=true
|
||||||
-D perfetto=true
|
-D perfetto=true
|
||||||
-D freedreno-kmds=msm,virtio
|
|
||||||
-D teflon=true
|
|
||||||
S3_ARTIFACT_NAME: mesa-arm64-default-${BUILDTYPE}
|
S3_ARTIFACT_NAME: mesa-arm64-default-${BUILDTYPE}
|
||||||
script:
|
script:
|
||||||
- .gitlab-ci/meson/build.sh
|
- .gitlab-ci/meson/build.sh
|
||||||
@@ -496,8 +471,6 @@ debian-arm64-asan:
|
|||||||
extends:
|
extends:
|
||||||
- debian-arm64
|
- debian-arm64
|
||||||
variables:
|
variables:
|
||||||
DRI_LOADERS:
|
|
||||||
-D glvnd=disabled
|
|
||||||
EXTRA_OPTION: >
|
EXTRA_OPTION: >
|
||||||
-D llvm=disabled
|
-D llvm=disabled
|
||||||
-D b_sanitize=address
|
-D b_sanitize=address
|
||||||
@@ -513,10 +486,10 @@ debian-arm64-build-test:
|
|||||||
- .ci-deqp-artifacts
|
- .ci-deqp-artifacts
|
||||||
variables:
|
variables:
|
||||||
VULKAN_DRIVERS: "amd"
|
VULKAN_DRIVERS: "amd"
|
||||||
DRI_LOADERS:
|
|
||||||
-D glvnd=disabled
|
|
||||||
EXTRA_OPTION: >
|
EXTRA_OPTION: >
|
||||||
-Dtools=panfrost,imagination
|
-Dtools=panfrost,imagination
|
||||||
|
script:
|
||||||
|
- .gitlab-ci/meson/build.sh
|
||||||
|
|
||||||
debian-arm64-release:
|
debian-arm64-release:
|
||||||
extends:
|
extends:
|
||||||
@@ -538,14 +511,16 @@ debian-clang:
|
|||||||
BUILDTYPE: debug
|
BUILDTYPE: debug
|
||||||
LLVM_VERSION: 15
|
LLVM_VERSION: 15
|
||||||
UNWIND: "enabled"
|
UNWIND: "enabled"
|
||||||
|
GALLIUM_DUMP_CPU: "true"
|
||||||
C_ARGS: >
|
C_ARGS: >
|
||||||
-Wno-error=constant-conversion
|
-Wno-error=constant-conversion
|
||||||
-Wno-error=enum-conversion
|
-Wno-error=enum-conversion
|
||||||
|
-Wno-error=implicit-const-int-float-conversion
|
||||||
-Wno-error=initializer-overrides
|
-Wno-error=initializer-overrides
|
||||||
-Wno-error=sometimes-uninitialized
|
-Wno-error=sometimes-uninitialized
|
||||||
-Werror=misleading-indentation
|
|
||||||
CPP_ARGS: >
|
CPP_ARGS: >
|
||||||
-Wno-error=c99-designator
|
-Wno-error=c99-designator
|
||||||
|
-Wno-error=implicit-const-int-float-conversion
|
||||||
-Wno-error=overloaded-virtual
|
-Wno-error=overloaded-virtual
|
||||||
-Wno-error=tautological-constant-out-of-range-compare
|
-Wno-error=tautological-constant-out-of-range-compare
|
||||||
-Wno-error=unused-private-field
|
-Wno-error=unused-private-field
|
||||||
@@ -553,7 +528,7 @@ debian-clang:
|
|||||||
-D glx=dri
|
-D glx=dri
|
||||||
-D gbm=enabled
|
-D gbm=enabled
|
||||||
-D egl=enabled
|
-D egl=enabled
|
||||||
-D glvnd=enabled
|
-D glvnd=true
|
||||||
-D platforms=x11,wayland
|
-D platforms=x11,wayland
|
||||||
GALLIUM_ST: >
|
GALLIUM_ST: >
|
||||||
-D dri3=enabled
|
-D dri3=enabled
|
||||||
@@ -563,6 +538,7 @@ debian-clang:
|
|||||||
-D gallium-va=enabled
|
-D gallium-va=enabled
|
||||||
-D gallium-xa=enabled
|
-D gallium-xa=enabled
|
||||||
-D gallium-nine=true
|
-D gallium-nine=true
|
||||||
|
-D gallium-opencl=icd
|
||||||
-D gles1=enabled
|
-D gles1=enabled
|
||||||
-D gles2=enabled
|
-D gles2=enabled
|
||||||
-D llvm=enabled
|
-D llvm=enabled
|
||||||
@@ -571,7 +547,7 @@ debian-clang:
|
|||||||
-D opencl-spirv=true
|
-D opencl-spirv=true
|
||||||
-D shared-glapi=enabled
|
-D shared-glapi=enabled
|
||||||
GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink,radeonsi,tegra,d3d12,crocus,i915,asahi"
|
GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink,radeonsi,tegra,d3d12,crocus,i915,asahi"
|
||||||
VULKAN_DRIVERS: intel,amd,freedreno,broadcom,virtio,swrast,panfrost,imagination-experimental,microsoft-experimental,nouveau
|
VULKAN_DRIVERS: intel,amd,freedreno,broadcom,virtio,swrast,panfrost,imagination-experimental,microsoft-experimental
|
||||||
EXTRA_OPTION:
|
EXTRA_OPTION:
|
||||||
-D spirv-to-dxil=true
|
-D spirv-to-dxil=true
|
||||||
-D osmesa=true
|
-D osmesa=true
|
||||||
@@ -580,9 +556,7 @@ debian-clang:
|
|||||||
-D vulkan-layers=device-select,overlay
|
-D vulkan-layers=device-select,overlay
|
||||||
-D build-aco-tests=true
|
-D build-aco-tests=true
|
||||||
-D intel-clc=enabled
|
-D intel-clc=enabled
|
||||||
-D intel-rt=enabled
|
|
||||||
-D imagination-srv=true
|
-D imagination-srv=true
|
||||||
-D teflon=true
|
|
||||||
CC: clang-${LLVM_VERSION}
|
CC: clang-${LLVM_VERSION}
|
||||||
CXX: clang++-${LLVM_VERSION}
|
CXX: clang++-${LLVM_VERSION}
|
||||||
|
|
||||||
@@ -601,6 +575,7 @@ debian-clang-release:
|
|||||||
-D gallium-va=enabled
|
-D gallium-va=enabled
|
||||||
-D gallium-xa=enabled
|
-D gallium-xa=enabled
|
||||||
-D gallium-nine=true
|
-D gallium-nine=true
|
||||||
|
-D gallium-opencl=icd
|
||||||
-D gles1=disabled
|
-D gles1=disabled
|
||||||
-D gles2=disabled
|
-D gles2=disabled
|
||||||
-D llvm=enabled
|
-D llvm=enabled
|
||||||
@@ -609,10 +584,10 @@ debian-clang-release:
|
|||||||
-D opencl-spirv=true
|
-D opencl-spirv=true
|
||||||
-D shared-glapi=disabled
|
-D shared-glapi=disabled
|
||||||
|
|
||||||
windows-msvc:
|
windows-vs2019:
|
||||||
extends:
|
extends:
|
||||||
- .build-windows
|
- .build-windows
|
||||||
- .use-windows_build_msvc
|
- .use-windows_build_vs2019
|
||||||
- .windows-build-rules
|
- .windows-build-rules
|
||||||
stage: build-misc
|
stage: build-misc
|
||||||
script:
|
script:
|
||||||
@@ -622,6 +597,49 @@ windows-msvc:
|
|||||||
- _build/meson-logs/*.txt
|
- _build/meson-logs/*.txt
|
||||||
- _install/
|
- _install/
|
||||||
|
|
||||||
|
.debian-cl:
|
||||||
|
extends: .meson-build
|
||||||
|
variables:
|
||||||
|
LLVM_VERSION: 15
|
||||||
|
UNWIND: "enabled"
|
||||||
|
DRI_LOADERS: >
|
||||||
|
-D glx=disabled
|
||||||
|
-D egl=disabled
|
||||||
|
-D gbm=disabled
|
||||||
|
EXTRA_OPTION: >
|
||||||
|
-D valgrind=disabled
|
||||||
|
|
||||||
|
# TODO: remove with Clover
|
||||||
|
.debian-clover:
|
||||||
|
extends: .debian-cl
|
||||||
|
variables:
|
||||||
|
GALLIUM_DRIVERS: "r600,radeonsi,swrast"
|
||||||
|
GALLIUM_ST: >
|
||||||
|
-D dri3=disabled
|
||||||
|
-D gallium-vdpau=disabled
|
||||||
|
-D gallium-omx=disabled
|
||||||
|
-D gallium-va=disabled
|
||||||
|
-D gallium-xa=disabled
|
||||||
|
-D gallium-nine=false
|
||||||
|
-D gallium-opencl=icd
|
||||||
|
-D gallium-rusticl=false
|
||||||
|
|
||||||
|
debian-rusticl:
|
||||||
|
extends: .debian-cl
|
||||||
|
variables:
|
||||||
|
BUILDTYPE: debug
|
||||||
|
GALLIUM_DRIVERS: "iris,swrast"
|
||||||
|
GALLIUM_ST: >
|
||||||
|
-D dri3=disabled
|
||||||
|
-D gallium-vdpau=disabled
|
||||||
|
-D gallium-omx=disabled
|
||||||
|
-D gallium-va=disabled
|
||||||
|
-D gallium-xa=disabled
|
||||||
|
-D gallium-nine=false
|
||||||
|
-D gallium-opencl=disabled
|
||||||
|
-D gallium-rusticl=true
|
||||||
|
RUSTC: clippy-driver
|
||||||
|
|
||||||
debian-vulkan:
|
debian-vulkan:
|
||||||
extends: .meson-build
|
extends: .meson-build
|
||||||
variables:
|
variables:
|
||||||
@@ -632,10 +650,6 @@ debian-vulkan:
|
|||||||
-D glx=disabled
|
-D glx=disabled
|
||||||
-D gbm=disabled
|
-D gbm=disabled
|
||||||
-D egl=disabled
|
-D egl=disabled
|
||||||
-D opengl=false
|
|
||||||
-D gles1=disabled
|
|
||||||
-D gles2=disabled
|
|
||||||
-D glvnd=disabled
|
|
||||||
-D platforms=x11,wayland
|
-D platforms=x11,wayland
|
||||||
-D osmesa=false
|
-D osmesa=false
|
||||||
GALLIUM_ST: >
|
GALLIUM_ST: >
|
||||||
@@ -645,16 +659,17 @@ debian-vulkan:
|
|||||||
-D gallium-va=disabled
|
-D gallium-va=disabled
|
||||||
-D gallium-xa=disabled
|
-D gallium-xa=disabled
|
||||||
-D gallium-nine=false
|
-D gallium-nine=false
|
||||||
|
-D gallium-opencl=disabled
|
||||||
-D gallium-rusticl=false
|
-D gallium-rusticl=false
|
||||||
-D b_sanitize=undefined
|
-D b_sanitize=undefined
|
||||||
-D c_args=-fno-sanitize-recover=all
|
-D c_args=-fno-sanitize-recover=all
|
||||||
-D cpp_args=-fno-sanitize-recover=all
|
-D cpp_args=-fno-sanitize-recover=all
|
||||||
UBSAN_OPTIONS: "print_stacktrace=1"
|
UBSAN_OPTIONS: "print_stacktrace=1"
|
||||||
VULKAN_DRIVERS: amd,broadcom,freedreno,intel,intel_hasvk,panfrost,virtio,imagination-experimental,microsoft-experimental,nouveau
|
VULKAN_DRIVERS: intel,amd,freedreno,broadcom,virtio,imagination-experimental,microsoft-experimental
|
||||||
EXTRA_OPTION: >
|
EXTRA_OPTION: >
|
||||||
-D vulkan-layers=device-select,overlay
|
-D vulkan-layers=device-select,overlay
|
||||||
-D build-aco-tests=true
|
-D build-aco-tests=true
|
||||||
-D intel-rt=disabled
|
-D intel-clc=disabled
|
||||||
-D imagination-srv=true
|
-D imagination-srv=true
|
||||||
|
|
||||||
debian-x86_32:
|
debian-x86_32:
|
||||||
@@ -665,24 +680,10 @@ debian-x86_32:
|
|||||||
BUILDTYPE: debug
|
BUILDTYPE: debug
|
||||||
CROSS: i386
|
CROSS: i386
|
||||||
VULKAN_DRIVERS: intel,amd,swrast,virtio
|
VULKAN_DRIVERS: intel,amd,swrast,virtio
|
||||||
GALLIUM_DRIVERS: "iris,nouveau,r300,r600,radeonsi,swrast,virgl,zink,crocus,d3d12"
|
GALLIUM_DRIVERS: "iris,nouveau,r300,r600,radeonsi,swrast,virgl,zink,crocus"
|
||||||
LLVM_VERSION: 15
|
LLVM_VERSION: 15
|
||||||
DRI_LOADERS:
|
|
||||||
-D glvnd=disabled
|
|
||||||
EXTRA_OPTION: >
|
EXTRA_OPTION: >
|
||||||
-D vulkan-layers=device-select,overlay
|
-D vulkan-layers=device-select,overlay
|
||||||
-D intel-clc=system
|
|
||||||
HOST_BUILD_OPTIONS: >
|
|
||||||
-D build-tests=false
|
|
||||||
-D enable-glcpp-tests=false
|
|
||||||
-D gallium-opencl=disabled
|
|
||||||
-D gallium-drivers=
|
|
||||||
-D vulkan-drivers=
|
|
||||||
-D video-codecs=
|
|
||||||
-D glx=disabled
|
|
||||||
-D platforms=
|
|
||||||
-D intel-clc=enabled
|
|
||||||
-D install-intel-clc=true
|
|
||||||
|
|
||||||
debian-s390x:
|
debian-s390x:
|
||||||
extends:
|
extends:
|
||||||
@@ -696,8 +697,6 @@ debian-s390x:
|
|||||||
GALLIUM_DRIVERS: "swrast,zink"
|
GALLIUM_DRIVERS: "swrast,zink"
|
||||||
LLVM_VERSION: 15
|
LLVM_VERSION: 15
|
||||||
VULKAN_DRIVERS: "swrast"
|
VULKAN_DRIVERS: "swrast"
|
||||||
DRI_LOADERS:
|
|
||||||
-D glvnd=disabled
|
|
||||||
|
|
||||||
debian-ppc64el:
|
debian-ppc64el:
|
||||||
extends:
|
extends:
|
||||||
@@ -709,5 +708,41 @@ debian-ppc64el:
|
|||||||
CROSS: ppc64el
|
CROSS: ppc64el
|
||||||
GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl,zink"
|
GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl,zink"
|
||||||
VULKAN_DRIVERS: "amd,swrast"
|
VULKAN_DRIVERS: "amd,swrast"
|
||||||
DRI_LOADERS:
|
|
||||||
-D glvnd=disabled
|
# Disabled as it hangs with winedbg on shared runners
|
||||||
|
.debian-mingw32-x86_64:
|
||||||
|
extends: .meson-build_mingw
|
||||||
|
stage: build-misc
|
||||||
|
variables:
|
||||||
|
UNWIND: "disabled"
|
||||||
|
C_ARGS: >
|
||||||
|
-Wno-error=format
|
||||||
|
-Wno-error=unused-but-set-variable
|
||||||
|
CPP_ARGS: >
|
||||||
|
-Wno-error=format
|
||||||
|
-Wno-error=unused-function
|
||||||
|
-Wno-error=unused-variable
|
||||||
|
-Wno-error=sign-compare
|
||||||
|
-Wno-error=narrowing
|
||||||
|
GALLIUM_DRIVERS: "swrast,d3d12,zink"
|
||||||
|
VULKAN_DRIVERS: "swrast,amd,microsoft-experimental"
|
||||||
|
GALLIUM_ST: >
|
||||||
|
-D gallium-opencl=icd
|
||||||
|
-D gallium-rusticl=false
|
||||||
|
-D opencl-spirv=true
|
||||||
|
-D microsoft-clc=enabled
|
||||||
|
-D static-libclc=all
|
||||||
|
-D opencl-external-clang-headers=disabled
|
||||||
|
-D llvm=enabled
|
||||||
|
-D gallium-va=enabled
|
||||||
|
-D video-codecs=h264dec,h264enc,h265dec,h265enc,vc1dec
|
||||||
|
EXTRA_OPTION: >
|
||||||
|
-D min-windows-version=7
|
||||||
|
-D spirv-to-dxil=true
|
||||||
|
-D gles1=enabled
|
||||||
|
-D gles2=enabled
|
||||||
|
-D osmesa=true
|
||||||
|
-D cpp_rtti=true
|
||||||
|
-D shared-glapi=enabled
|
||||||
|
-D zlib=enabled
|
||||||
|
--cross-file=.gitlab-ci/x86_64-w64-mingw32
|
||||||
|
@@ -1,136 +1,127 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
VARS=(
|
for var in \
|
||||||
ACO_DEBUG
|
ACO_DEBUG \
|
||||||
ARTIFACTS_BASE_URL
|
ASAN_OPTIONS \
|
||||||
ASAN_OPTIONS
|
BASE_SYSTEM_FORK_HOST_PREFIX \
|
||||||
BASE_SYSTEM_FORK_HOST_PREFIX
|
BASE_SYSTEM_MAINLINE_HOST_PREFIX \
|
||||||
BASE_SYSTEM_MAINLINE_HOST_PREFIX
|
CI_COMMIT_BRANCH \
|
||||||
CI_COMMIT_BRANCH
|
CI_COMMIT_REF_NAME \
|
||||||
CI_COMMIT_REF_NAME
|
CI_COMMIT_TITLE \
|
||||||
CI_COMMIT_TITLE
|
CI_JOB_ID \
|
||||||
CI_JOB_ID
|
CI_JOB_JWT_FILE \
|
||||||
S3_JWT_FILE
|
CI_JOB_STARTED_AT \
|
||||||
CI_JOB_STARTED_AT
|
CI_JOB_NAME \
|
||||||
CI_JOB_NAME
|
CI_JOB_URL \
|
||||||
CI_JOB_URL
|
CI_MERGE_REQUEST_SOURCE_BRANCH_NAME \
|
||||||
CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
|
CI_MERGE_REQUEST_TITLE \
|
||||||
CI_MERGE_REQUEST_TITLE
|
CI_NODE_INDEX \
|
||||||
CI_NODE_INDEX
|
CI_NODE_TOTAL \
|
||||||
CI_NODE_TOTAL
|
CI_PAGES_DOMAIN \
|
||||||
CI_PAGES_DOMAIN
|
CI_PIPELINE_ID \
|
||||||
CI_PIPELINE_ID
|
CI_PIPELINE_URL \
|
||||||
CI_PIPELINE_URL
|
CI_PROJECT_DIR \
|
||||||
CI_PROJECT_DIR
|
CI_PROJECT_NAME \
|
||||||
CI_PROJECT_NAME
|
CI_PROJECT_PATH \
|
||||||
CI_PROJECT_PATH
|
CI_PROJECT_ROOT_NAMESPACE \
|
||||||
CI_PROJECT_ROOT_NAMESPACE
|
CI_RUNNER_DESCRIPTION \
|
||||||
CI_RUNNER_DESCRIPTION
|
CI_SERVER_URL \
|
||||||
CI_SERVER_URL
|
CROSVM_GALLIUM_DRIVER \
|
||||||
CROSVM_GALLIUM_DRIVER
|
CROSVM_GPU_ARGS \
|
||||||
CROSVM_GPU_ARGS
|
CURRENT_SECTION \
|
||||||
CURRENT_SECTION
|
DEQP_BIN_DIR \
|
||||||
DEQP_BIN_DIR
|
DEQP_CONFIG \
|
||||||
DEQP_CONFIG
|
DEQP_EXPECTED_RENDERER \
|
||||||
DEQP_EXPECTED_RENDERER
|
DEQP_FRACTION \
|
||||||
DEQP_FRACTION
|
DEQP_HEIGHT \
|
||||||
DEQP_HEIGHT
|
DEQP_RESULTS_DIR \
|
||||||
DEQP_RESULTS_DIR
|
DEQP_RUNNER_OPTIONS \
|
||||||
DEQP_RUNNER_OPTIONS
|
DEQP_SUITE \
|
||||||
DEQP_SUITE
|
DEQP_TEMP_DIR \
|
||||||
DEQP_TEMP_DIR
|
DEQP_VARIANT \
|
||||||
DEQP_VER
|
DEQP_VER \
|
||||||
DEQP_WIDTH
|
DEQP_WIDTH \
|
||||||
DEVICE_NAME
|
DEVICE_NAME \
|
||||||
DRIVER_NAME
|
DRIVER_NAME \
|
||||||
EGL_PLATFORM
|
EGL_PLATFORM \
|
||||||
ETNA_MESA_DEBUG
|
ETNA_MESA_DEBUG \
|
||||||
FDO_CI_CONCURRENT
|
FDO_CI_CONCURRENT \
|
||||||
FDO_UPSTREAM_REPO
|
FDO_UPSTREAM_REPO \
|
||||||
FD_MESA_DEBUG
|
FD_MESA_DEBUG \
|
||||||
FLAKES_CHANNEL
|
FLAKES_CHANNEL \
|
||||||
FREEDRENO_HANGCHECK_MS
|
FREEDRENO_HANGCHECK_MS \
|
||||||
GALLIUM_DRIVER
|
GALLIUM_DRIVER \
|
||||||
GALLIVM_PERF
|
GALLIVM_PERF \
|
||||||
GPU_VERSION
|
GPU_VERSION \
|
||||||
GTEST
|
GTEST \
|
||||||
GTEST_FAILS
|
GTEST_FAILS \
|
||||||
GTEST_FRACTION
|
GTEST_FRACTION \
|
||||||
GTEST_RESULTS_DIR
|
GTEST_RESULTS_DIR \
|
||||||
GTEST_RUNNER_OPTIONS
|
GTEST_RUNNER_OPTIONS \
|
||||||
GTEST_SKIPS
|
GTEST_SKIPS \
|
||||||
HWCI_FREQ_MAX
|
HWCI_FREQ_MAX \
|
||||||
HWCI_KERNEL_MODULES
|
HWCI_KERNEL_MODULES \
|
||||||
HWCI_KVM
|
HWCI_KVM \
|
||||||
HWCI_START_WESTON
|
HWCI_START_WESTON \
|
||||||
HWCI_START_XORG
|
HWCI_START_XORG \
|
||||||
HWCI_TEST_SCRIPT
|
HWCI_TEST_SCRIPT \
|
||||||
IR3_SHADER_DEBUG
|
IR3_SHADER_DEBUG \
|
||||||
JOB_ARTIFACTS_BASE
|
JOB_ARTIFACTS_BASE \
|
||||||
JOB_RESULTS_PATH
|
JOB_RESULTS_PATH \
|
||||||
JOB_ROOTFS_OVERLAY_PATH
|
JOB_ROOTFS_OVERLAY_PATH \
|
||||||
KERNEL_IMAGE_BASE
|
KERNEL_IMAGE_BASE_URL \
|
||||||
KERNEL_IMAGE_NAME
|
KERNEL_IMAGE_NAME \
|
||||||
LD_LIBRARY_PATH
|
LD_LIBRARY_PATH \
|
||||||
LIBGL_ALWAYS_SOFTWARE
|
LP_NUM_THREADS \
|
||||||
LP_NUM_THREADS
|
MESA_BASE_TAG \
|
||||||
MESA_BASE_TAG
|
MESA_BUILD_PATH \
|
||||||
MESA_BUILD_PATH
|
MESA_DEBUG \
|
||||||
MESA_DEBUG
|
MESA_GLES_VERSION_OVERRIDE \
|
||||||
MESA_GLES_VERSION_OVERRIDE
|
MESA_GLSL_VERSION_OVERRIDE \
|
||||||
MESA_GLSL_VERSION_OVERRIDE
|
MESA_GL_VERSION_OVERRIDE \
|
||||||
MESA_GL_VERSION_OVERRIDE
|
MESA_IMAGE \
|
||||||
MESA_IMAGE
|
MESA_IMAGE_PATH \
|
||||||
MESA_IMAGE_PATH
|
MESA_IMAGE_TAG \
|
||||||
MESA_IMAGE_TAG
|
MESA_LOADER_DRIVER_OVERRIDE \
|
||||||
MESA_LOADER_DRIVER_OVERRIDE
|
MESA_TEMPLATES_COMMIT \
|
||||||
MESA_TEMPLATES_COMMIT
|
MESA_VK_IGNORE_CONFORMANCE_WARNING \
|
||||||
MESA_VK_ABORT_ON_DEVICE_LOSS
|
S3_HOST \
|
||||||
MESA_VK_IGNORE_CONFORMANCE_WARNING
|
S3_RESULTS_UPLOAD \
|
||||||
S3_HOST
|
NIR_DEBUG \
|
||||||
S3_RESULTS_UPLOAD
|
PAN_I_WANT_A_BROKEN_VULKAN_DRIVER \
|
||||||
NIR_DEBUG
|
PAN_MESA_DEBUG \
|
||||||
PAN_I_WANT_A_BROKEN_VULKAN_DRIVER
|
PIGLIT_FRACTION \
|
||||||
PAN_MESA_DEBUG
|
PIGLIT_NO_WINDOW \
|
||||||
PANVK_DEBUG
|
PIGLIT_OPTIONS \
|
||||||
PIGLIT_FRACTION
|
PIGLIT_PLATFORM \
|
||||||
PIGLIT_NO_WINDOW
|
PIGLIT_PROFILES \
|
||||||
PIGLIT_OPTIONS
|
PIGLIT_REPLAY_ARTIFACTS_BASE_URL \
|
||||||
PIGLIT_PLATFORM
|
PIGLIT_REPLAY_DESCRIPTION_FILE \
|
||||||
PIGLIT_PROFILES
|
PIGLIT_REPLAY_DEVICE_NAME \
|
||||||
PIGLIT_REPLAY_ANGLE_TAG
|
PIGLIT_REPLAY_EXTRA_ARGS \
|
||||||
PIGLIT_REPLAY_ARTIFACTS_BASE_URL
|
PIGLIT_REPLAY_LOOP_TIMES \
|
||||||
PIGLIT_REPLAY_DEVICE_NAME
|
PIGLIT_REPLAY_REFERENCE_IMAGES_BASE \
|
||||||
PIGLIT_REPLAY_EXTRA_ARGS
|
PIGLIT_REPLAY_SUBCOMMAND \
|
||||||
PIGLIT_REPLAY_LOOP_TIMES
|
PIGLIT_RESULTS \
|
||||||
PIGLIT_REPLAY_REFERENCE_IMAGES_BASE
|
PIGLIT_TESTS \
|
||||||
PIGLIT_REPLAY_SUBCOMMAND
|
PIPELINE_ARTIFACTS_BASE \
|
||||||
PIGLIT_RESULTS
|
RADV_DEBUG \
|
||||||
PIGLIT_TESTS
|
RADV_PERFTEST \
|
||||||
PIGLIT_TRACES_FILE
|
SKQP_ASSETS_DIR \
|
||||||
PIPELINE_ARTIFACTS_BASE
|
SKQP_BACKENDS \
|
||||||
RADEON_DEBUG
|
TU_DEBUG \
|
||||||
RADV_DEBUG
|
USE_ANGLE \
|
||||||
RADV_PERFTEST
|
VIRGL_HOST_API \
|
||||||
SKQP_ASSETS_DIR
|
WAFFLE_PLATFORM \
|
||||||
SKQP_BACKENDS
|
VK_CPU \
|
||||||
TU_DEBUG
|
VK_DRIVER \
|
||||||
USE_ANGLE
|
VK_ICD_FILENAMES \
|
||||||
VIRGL_HOST_API
|
VKD3D_PROTON_RESULTS \
|
||||||
WAFFLE_PLATFORM
|
VKD3D_CONFIG \
|
||||||
VK_CPU
|
ZINK_DESCRIPTORS \
|
||||||
VK_DRIVER
|
ZINK_DEBUG \
|
||||||
# required by virglrender CI
|
LVP_POISON_MEMORY \
|
||||||
VK_DRIVER_FILES
|
; do
|
||||||
VKD3D_PROTON_RESULTS
|
|
||||||
VKD3D_CONFIG
|
|
||||||
VKD3D_TEST_EXCLUDE
|
|
||||||
ZINK_DESCRIPTORS
|
|
||||||
ZINK_DEBUG
|
|
||||||
LVP_POISON_MEMORY
|
|
||||||
)
|
|
||||||
|
|
||||||
for var in "${VARS[@]}"; do
|
|
||||||
if [ -n "${!var+x}" ]; then
|
if [ -n "${!var+x}" ]; then
|
||||||
echo "export $var=${!var@Q}"
|
echo "export $var=${!var@Q}"
|
||||||
fi
|
fi
|
||||||
|
@@ -7,10 +7,10 @@ set -ex
|
|||||||
|
|
||||||
cd /
|
cd /
|
||||||
|
|
||||||
findmnt --mountpoint /proc || mount -t proc none /proc
|
mount -t proc none /proc
|
||||||
findmnt --mountpoint /sys || mount -t sysfs none /sys
|
mount -t sysfs none /sys
|
||||||
mount -t debugfs none /sys/kernel/debug
|
mount -t debugfs none /sys/kernel/debug
|
||||||
findmnt --mountpoint /dev || mount -t devtmpfs none /dev
|
mount -t devtmpfs none /dev || echo possibly already mounted
|
||||||
mkdir -p /dev/pts
|
mkdir -p /dev/pts
|
||||||
mount -t devpts devpts /dev/pts
|
mount -t devpts devpts /dev/pts
|
||||||
mkdir /dev/shm
|
mkdir /dev/shm
|
||||||
|
@@ -7,8 +7,6 @@
|
|||||||
# Second-stage init, used to set up devices and our job environment before
|
# Second-stage init, used to set up devices and our job environment before
|
||||||
# running tests.
|
# running tests.
|
||||||
|
|
||||||
shopt -s extglob
|
|
||||||
|
|
||||||
# Make sure to kill itself and all the children process from this script on
|
# Make sure to kill itself and all the children process from this script on
|
||||||
# exiting, since any console output may interfere with LAVA signals handling,
|
# exiting, since any console output may interfere with LAVA signals handling,
|
||||||
# which based on the log console.
|
# which based on the log console.
|
||||||
@@ -88,7 +86,7 @@ if [ "$HWCI_KVM" = "true" ]; then
|
|||||||
mkdir -p /lava-files
|
mkdir -p /lava-files
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
||||||
-o "/lava-files/${KERNEL_IMAGE_NAME}" \
|
-o "/lava-files/${KERNEL_IMAGE_NAME}" \
|
||||||
"${KERNEL_IMAGE_BASE}/amd64/${KERNEL_IMAGE_NAME}"
|
"${KERNEL_IMAGE_BASE_URL}/${KERNEL_IMAGE_NAME}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Fix prefix confusion: the build installs to $CI_PROJECT_DIR, but we expect
|
# Fix prefix confusion: the build installs to $CI_PROJECT_DIR, but we expect
|
||||||
@@ -108,13 +106,6 @@ export XDG_CACHE_HOME=/tmp
|
|||||||
# Make sure Python can find all our imports
|
# Make sure Python can find all our imports
|
||||||
export PYTHONPATH=$(python3 -c "import sys;print(\":\".join(sys.path))")
|
export PYTHONPATH=$(python3 -c "import sys;print(\":\".join(sys.path))")
|
||||||
|
|
||||||
# If we need to specify a driver, it means several drivers could pick up this gpu;
|
|
||||||
# ensure that the other driver can't accidentally be used
|
|
||||||
if [ -n "$MESA_LOADER_DRIVER_OVERRIDE" ]; then
|
|
||||||
rm /install/lib/dri/!($MESA_LOADER_DRIVER_OVERRIDE)_dri.so
|
|
||||||
fi
|
|
||||||
ls -1 /install/lib/dri/*_dri.so || true
|
|
||||||
|
|
||||||
if [ "$HWCI_FREQ_MAX" = "true" ]; then
|
if [ "$HWCI_FREQ_MAX" = "true" ]; then
|
||||||
# Ensure initialization of the DRM device (needed by MSM)
|
# Ensure initialization of the DRM device (needed by MSM)
|
||||||
head -0 /dev/dri/renderD128
|
head -0 /dev/dri/renderD128
|
||||||
@@ -136,15 +127,6 @@ if [ "$HWCI_FREQ_MAX" = "true" ]; then
|
|||||||
/intel-gpu-freq.sh -s 70% --cpu-set-max 65% -g all -d
|
/intel-gpu-freq.sh -s 70% --cpu-set-max 65% -g all -d
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Start a little daemon to capture sysfs records and produce a JSON file
|
|
||||||
if [ -x /kdl.sh ]; then
|
|
||||||
echo "launch kdl.sh!"
|
|
||||||
/kdl.sh &
|
|
||||||
BACKGROUND_PIDS="$! $BACKGROUND_PIDS"
|
|
||||||
else
|
|
||||||
echo "kdl.sh not found!"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Increase freedreno hangcheck timer because it's right at the edge of the
|
# Increase freedreno hangcheck timer because it's right at the edge of the
|
||||||
# spilling tests timing out (and some traces, too)
|
# spilling tests timing out (and some traces, too)
|
||||||
if [ -n "$FREEDRENO_HANGCHECK_MS" ]; then
|
if [ -n "$FREEDRENO_HANGCHECK_MS" ]; then
|
||||||
@@ -165,7 +147,7 @@ fi
|
|||||||
if [ -n "$HWCI_START_XORG" ]; then
|
if [ -n "$HWCI_START_XORG" ]; then
|
||||||
echo "touch /xorg-started; sleep 100000" > /xorg-script
|
echo "touch /xorg-started; sleep 100000" > /xorg-script
|
||||||
env \
|
env \
|
||||||
VK_DRIVER_FILES="/install/share/vulkan/icd.d/${VK_DRIVER}_icd.$(uname -m).json" \
|
VK_ICD_FILENAMES="/install/share/vulkan/icd.d/${VK_DRIVER}_icd.$(uname -m).json" \
|
||||||
xinit /bin/sh /xorg-script -- /usr/bin/Xorg -noreset -s 0 -dpms -logfile /Xorg.0.log &
|
xinit /bin/sh /xorg-script -- /usr/bin/Xorg -noreset -s 0 -dpms -logfile /Xorg.0.log &
|
||||||
BACKGROUND_PIDS="$! $BACKGROUND_PIDS"
|
BACKGROUND_PIDS="$! $BACKGROUND_PIDS"
|
||||||
|
|
||||||
@@ -192,7 +174,7 @@ if [ -n "$HWCI_START_WESTON" ]; then
|
|||||||
mkdir -p /tmp/.X11-unix
|
mkdir -p /tmp/.X11-unix
|
||||||
|
|
||||||
env \
|
env \
|
||||||
VK_DRIVER_FILES="/install/share/vulkan/icd.d/${VK_DRIVER}_icd.$(uname -m).json" \
|
VK_ICD_FILENAMES="/install/share/vulkan/icd.d/${VK_DRIVER}_icd.$(uname -m).json" \
|
||||||
weston -Bheadless-backend.so --use-gl -Swayland-0 --xwayland --idle-time=0 &
|
weston -Bheadless-backend.so --use-gl -Swayland-0 --xwayland --idle-time=0 &
|
||||||
BACKGROUND_PIDS="$! $BACKGROUND_PIDS"
|
BACKGROUND_PIDS="$! $BACKGROUND_PIDS"
|
||||||
|
|
||||||
@@ -217,7 +199,7 @@ cleanup
|
|||||||
# upload artifacts
|
# upload artifacts
|
||||||
if [ -n "$S3_RESULTS_UPLOAD" ]; then
|
if [ -n "$S3_RESULTS_UPLOAD" ]; then
|
||||||
tar --zstd -cf results.tar.zst results/;
|
tar --zstd -cf results.tar.zst results/;
|
||||||
ci-fairy s3cp --token-file "${S3_JWT_FILE}" results.tar.zst https://"$S3_RESULTS_UPLOAD"/results.tar.zst;
|
ci-fairy s3cp --token-file "${CI_JOB_JWT_FILE}" results.tar.zst https://"$S3_RESULTS_UPLOAD"/results.tar.zst;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# We still need to echo the hwci: mesa message, as some scripts rely on it, such
|
# We still need to echo the hwci: mesa message, as some scripts rely on it, such
|
||||||
@@ -225,11 +207,7 @@ fi
|
|||||||
[ ${EXIT_CODE} -eq 0 ] && RESULT=pass || RESULT=fail
|
[ ${EXIT_CODE} -eq 0 ] && RESULT=pass || RESULT=fail
|
||||||
|
|
||||||
set +x
|
set +x
|
||||||
|
echo "hwci: mesa: $RESULT"
|
||||||
# Print the final result; both bare-metal and LAVA look for this string to get
|
# Sleep a bit to avoid kernel dump message interleave from LAVA ENDTC signal
|
||||||
# the result of our run, so try really hard to get it out rather than losing
|
sleep 1
|
||||||
# the run. The device gets shut down right at this point, and a630 seems to
|
|
||||||
# enjoy corrupting the last line of serial output before shutdown.
|
|
||||||
for _ in $(seq 0 3); do echo "hwci: mesa: $RESULT"; sleep 1; echo; done
|
|
||||||
|
|
||||||
exit $EXIT_CODE
|
exit $EXIT_CODE
|
||||||
|
@@ -1,24 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# shellcheck disable=SC1091 # the path is created in build-kdl and
|
|
||||||
# here is check if exist
|
|
||||||
|
|
||||||
terminate() {
|
|
||||||
echo "ci-kdl.sh caught SIGTERM signal! propagating to child processes"
|
|
||||||
for job in $(jobs -p)
|
|
||||||
do
|
|
||||||
kill -15 "$job"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
trap terminate SIGTERM
|
|
||||||
|
|
||||||
if [ -f /ci-kdl.venv/bin/activate ]; then
|
|
||||||
source /ci-kdl.venv/bin/activate
|
|
||||||
/ci-kdl.venv/bin/python /ci-kdl.venv/bin/ci-kdl | tee -a /results/kdl.log &
|
|
||||||
child=$!
|
|
||||||
wait $child
|
|
||||||
mv kdl_*.json /results/kdl.json
|
|
||||||
else
|
|
||||||
echo -e "Not possible to activate ci-kdl virtual environment"
|
|
||||||
fi
|
|
||||||
|
|
@@ -1,16 +1,18 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
|
|
||||||
# When changing this file, you need to bump the following
|
|
||||||
# .gitlab-ci/image-tags.yml tags:
|
|
||||||
# ALPINE_X86_64_BUILD_TAG
|
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
export LLVM_VERSION="${LLVM_VERSION:=16}"
|
|
||||||
|
|
||||||
EPHEMERAL=(
|
EPHEMERAL=(
|
||||||
|
autoconf
|
||||||
|
automake
|
||||||
|
bzip2
|
||||||
|
libtool
|
||||||
|
libepoxy-dev
|
||||||
|
libtbb-dev
|
||||||
|
make
|
||||||
|
openssl-dev
|
||||||
|
unzip
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@@ -18,7 +20,6 @@ DEPS=(
|
|||||||
bash
|
bash
|
||||||
bison
|
bison
|
||||||
ccache
|
ccache
|
||||||
clang16-dev
|
|
||||||
cmake
|
cmake
|
||||||
clang-dev
|
clang-dev
|
||||||
coreutils
|
coreutils
|
||||||
@@ -30,7 +31,6 @@ DEPS=(
|
|||||||
gettext
|
gettext
|
||||||
glslang
|
glslang
|
||||||
linux-headers
|
linux-headers
|
||||||
llvm16-static
|
|
||||||
llvm16-dev
|
llvm16-dev
|
||||||
meson
|
meson
|
||||||
expat-dev
|
expat-dev
|
||||||
@@ -41,7 +41,6 @@ DEPS=(
|
|||||||
libpciaccess-dev
|
libpciaccess-dev
|
||||||
zlib-dev
|
zlib-dev
|
||||||
python3-dev
|
python3-dev
|
||||||
py3-cparser
|
|
||||||
py3-mako
|
py3-mako
|
||||||
py3-ply
|
py3-ply
|
||||||
vulkan-headers
|
vulkan-headers
|
||||||
@@ -51,14 +50,17 @@ DEPS=(
|
|||||||
wayland-protocols
|
wayland-protocols
|
||||||
)
|
)
|
||||||
|
|
||||||
apk --no-cache add "${DEPS[@]}" "${EPHEMERAL[@]}"
|
apk add "${DEPS[@]}" "${EPHEMERAL[@]}"
|
||||||
|
|
||||||
. .gitlab-ci/container/build-llvm-spirv.sh
|
|
||||||
|
|
||||||
. .gitlab-ci/container/build-libclc.sh
|
|
||||||
|
|
||||||
. .gitlab-ci/container/container_pre_build.sh
|
. .gitlab-ci/container/container_pre_build.sh
|
||||||
|
|
||||||
|
pushd /usr/local
|
||||||
|
git clone https://gitlab.freedesktop.org/mesa/shader-db.git --depth 1
|
||||||
|
rm -rf shader-db/.git
|
||||||
|
cd shader-db
|
||||||
|
make
|
||||||
|
popd
|
||||||
|
|
||||||
|
|
||||||
############### Uninstall the build software
|
############### Uninstall the build software
|
||||||
|
|
||||||
|
@@ -18,7 +18,7 @@ DEPS=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
apk --no-cache add "${DEPS[@]}" "${EPHEMERAL[@]}"
|
apk add "${DEPS[@]}" "${EPHEMERAL[@]}"
|
||||||
|
|
||||||
. .gitlab-ci/container/container_pre_build.sh
|
. .gitlab-ci/container/container_pre_build.sh
|
||||||
|
|
||||||
|
69
.gitlab-ci/container/arm.config
Normal file
69
.gitlab-ci/container/arm.config
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
CONFIG_LOCALVERSION_AUTO=y
|
||||||
|
CONFIG_DEBUG_KERNEL=y
|
||||||
|
|
||||||
|
CONFIG_CRYPTO_ZSTD=y
|
||||||
|
CONFIG_ZRAM_MEMORY_TRACKING=y
|
||||||
|
CONFIG_ZRAM_WRITEBACK=y
|
||||||
|
CONFIG_ZRAM=y
|
||||||
|
CONFIG_ZSMALLOC_STAT=y
|
||||||
|
|
||||||
|
# abootimg with a 'dummy' rootfs fails with root=/dev/nfs
|
||||||
|
CONFIG_BLK_DEV_INITRD=n
|
||||||
|
|
||||||
|
CONFIG_DEVFREQ_GOV_PERFORMANCE=y
|
||||||
|
CONFIG_DEVFREQ_GOV_POWERSAVE=y
|
||||||
|
CONFIG_DEVFREQ_GOV_USERSPACE=y
|
||||||
|
CONFIG_DEVFREQ_GOV_PASSIVE=y
|
||||||
|
CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND=y
|
||||||
|
|
||||||
|
CONFIG_DRM=y
|
||||||
|
CONFIG_DRM_ETNAVIV=y
|
||||||
|
CONFIG_DRM_ROCKCHIP=y
|
||||||
|
CONFIG_DRM_PANFROST=y
|
||||||
|
CONFIG_DRM_LIMA=y
|
||||||
|
CONFIG_DRM_PANEL_SIMPLE=y
|
||||||
|
CONFIG_PWM_CROS_EC=y
|
||||||
|
CONFIG_BACKLIGHT_PWM=y
|
||||||
|
|
||||||
|
CONFIG_ROCKCHIP_CDN_DP=n
|
||||||
|
|
||||||
|
CONFIG_SPI_ROCKCHIP=y
|
||||||
|
CONFIG_PWM_ROCKCHIP=y
|
||||||
|
CONFIG_PHY_ROCKCHIP_DP=y
|
||||||
|
CONFIG_DWMAC_ROCKCHIP=y
|
||||||
|
|
||||||
|
CONFIG_MFD_RK808=y
|
||||||
|
CONFIG_REGULATOR_RK808=y
|
||||||
|
CONFIG_RTC_DRV_RK808=y
|
||||||
|
CONFIG_COMMON_CLK_RK808=y
|
||||||
|
|
||||||
|
CONFIG_REGULATOR_FAN53555=y
|
||||||
|
CONFIG_REGULATOR=y
|
||||||
|
|
||||||
|
CONFIG_REGULATOR_VCTRL=y
|
||||||
|
|
||||||
|
CONFIG_KASAN=n
|
||||||
|
CONFIG_KASAN_INLINE=n
|
||||||
|
CONFIG_STACKTRACE=n
|
||||||
|
|
||||||
|
CONFIG_TMPFS=y
|
||||||
|
|
||||||
|
CONFIG_PROVE_LOCKING=n
|
||||||
|
CONFIG_DEBUG_LOCKDEP=n
|
||||||
|
CONFIG_SOFTLOCKUP_DETECTOR=n
|
||||||
|
CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC=n
|
||||||
|
|
||||||
|
CONFIG_FW_LOADER_COMPRESS=y
|
||||||
|
|
||||||
|
CONFIG_USB_USBNET=y
|
||||||
|
CONFIG_NETDEVICES=y
|
||||||
|
CONFIG_USB_NET_DRIVERS=y
|
||||||
|
CONFIG_USB_RTL8152=y
|
||||||
|
CONFIG_USB_NET_AX8817X=y
|
||||||
|
CONFIG_USB_NET_SMSC95XX=y
|
||||||
|
|
||||||
|
# TK1
|
||||||
|
CONFIG_ARM_TEGRA_DEVFREQ=y
|
||||||
|
|
||||||
|
# 32-bit build failure
|
||||||
|
CONFIG_DRM_MSM=n
|
197
.gitlab-ci/container/arm64.config
Normal file
197
.gitlab-ci/container/arm64.config
Normal file
@@ -0,0 +1,197 @@
|
|||||||
|
CONFIG_LOCALVERSION_AUTO=y
|
||||||
|
CONFIG_DEBUG_KERNEL=y
|
||||||
|
|
||||||
|
CONFIG_CRYPTO_ZSTD=y
|
||||||
|
CONFIG_ZRAM_MEMORY_TRACKING=y
|
||||||
|
CONFIG_ZRAM_WRITEBACK=y
|
||||||
|
CONFIG_ZRAM=y
|
||||||
|
CONFIG_ZSMALLOC_STAT=y
|
||||||
|
|
||||||
|
# abootimg with a 'dummy' rootfs fails with root=/dev/nfs
|
||||||
|
CONFIG_BLK_DEV_INITRD=n
|
||||||
|
|
||||||
|
CONFIG_DEVFREQ_GOV_PERFORMANCE=y
|
||||||
|
CONFIG_DEVFREQ_GOV_POWERSAVE=y
|
||||||
|
CONFIG_DEVFREQ_GOV_USERSPACE=y
|
||||||
|
CONFIG_DEVFREQ_GOV_PASSIVE=y
|
||||||
|
|
||||||
|
CONFIG_DRM=y
|
||||||
|
CONFIG_DRM_ROCKCHIP=y
|
||||||
|
CONFIG_DRM_PANFROST=y
|
||||||
|
CONFIG_DRM_LIMA=y
|
||||||
|
CONFIG_DRM_PANEL_SIMPLE=y
|
||||||
|
CONFIG_DRM_PANEL_EDP=y
|
||||||
|
CONFIG_DRM_MSM=y
|
||||||
|
CONFIG_DRM_ETNAVIV=y
|
||||||
|
CONFIG_DRM_I2C_ADV7511=y
|
||||||
|
CONFIG_PWM_CROS_EC=y
|
||||||
|
CONFIG_BACKLIGHT_PWM=y
|
||||||
|
|
||||||
|
CONFIG_ROCKCHIP_CDN_DP=n
|
||||||
|
|
||||||
|
CONFIG_SPI_ROCKCHIP=y
|
||||||
|
CONFIG_PWM_ROCKCHIP=y
|
||||||
|
CONFIG_PHY_ROCKCHIP_DP=y
|
||||||
|
CONFIG_DWMAC_ROCKCHIP=y
|
||||||
|
CONFIG_STMMAC_ETH=y
|
||||||
|
CONFIG_TYPEC_FUSB302=y
|
||||||
|
CONFIG_TYPEC=y
|
||||||
|
CONFIG_TYPEC_TCPM=y
|
||||||
|
|
||||||
|
# MSM platform bits
|
||||||
|
|
||||||
|
# For CONFIG_QCOM_LMH
|
||||||
|
CONFIG_OF=y
|
||||||
|
|
||||||
|
CONFIG_ARM_SMMU_QCOM=y
|
||||||
|
CONFIG_QCOM_COMMAND_DB=y
|
||||||
|
CONFIG_QCOM_RPMHPD=y
|
||||||
|
CONFIG_QCOM_RPMPD=y
|
||||||
|
CONFIG_QCOM_OCMEM=y
|
||||||
|
CONFIG_SDM_GPUCC_845=y
|
||||||
|
CONFIG_SDM_VIDEOCC_845=y
|
||||||
|
CONFIG_SDM_DISPCC_845=y
|
||||||
|
CONFIG_SDM_LPASSCC_845=y
|
||||||
|
CONFIG_SDM_CAMCC_845=y
|
||||||
|
CONFIG_RESET_QCOM_PDC=y
|
||||||
|
CONFIG_DRM_TI_SN65DSI86=y
|
||||||
|
CONFIG_I2C_QCOM_GENI=y
|
||||||
|
CONFIG_SPI_QCOM_GENI=y
|
||||||
|
CONFIG_PHY_QCOM_QUSB2=y
|
||||||
|
CONFIG_PHY_QCOM_QMP=y
|
||||||
|
CONFIG_QCOM_CLK_APCC_MSM8996=y
|
||||||
|
CONFIG_QCOM_LLCC=y
|
||||||
|
CONFIG_QCOM_LMH=y
|
||||||
|
CONFIG_QCOM_SPMI_TEMP_ALARM=y
|
||||||
|
CONFIG_QCOM_WDT=y
|
||||||
|
CONFIG_POWER_RESET_QCOM_PON=y
|
||||||
|
CONFIG_RTC_DRV_PM8XXX=y
|
||||||
|
CONFIG_INTERCONNECT=y
|
||||||
|
CONFIG_INTERCONNECT_QCOM=y
|
||||||
|
CONFIG_INTERCONNECT_QCOM_MSM8996=y
|
||||||
|
CONFIG_INTERCONNECT_QCOM_SDM845=y
|
||||||
|
CONFIG_INTERCONNECT_QCOM_MSM8916=y
|
||||||
|
CONFIG_INTERCONNECT_QCOM_OSM_L3=y
|
||||||
|
CONFIG_INTERCONNECT_QCOM_SC7180=y
|
||||||
|
CONFIG_INTERCONNECT_QCOM_SM8350=y
|
||||||
|
CONFIG_CRYPTO_DEV_QCOM_RNG=y
|
||||||
|
CONFIG_SC_DISPCC_7180=y
|
||||||
|
CONFIG_SC_GPUCC_7180=y
|
||||||
|
CONFIG_SM_GPUCC_8350=y
|
||||||
|
CONFIG_QCOM_SPMI_ADC5=y
|
||||||
|
CONFIG_DRM_PARADE_PS8640=y
|
||||||
|
CONFIG_DRM_LONTIUM_LT9611UXC=y
|
||||||
|
CONFIG_PHY_QCOM_USB_HS=y
|
||||||
|
CONFIG_QCOM_GPI_DMA=y
|
||||||
|
CONFIG_USB_ONBOARD_HUB=y
|
||||||
|
CONFIG_NVMEM_QCOM_QFPROM=y
|
||||||
|
CONFIG_PHY_QCOM_USB_SNPS_FEMTO_V2=y
|
||||||
|
|
||||||
|
|
||||||
|
# db410c ethernet
|
||||||
|
CONFIG_USB_RTL8152=y
|
||||||
|
# db820c ethernet
|
||||||
|
CONFIG_ATL1C=y
|
||||||
|
# Chromebooks ethernet
|
||||||
|
CONFIG_USB_ONBOARD_HUB=y
|
||||||
|
# 888 HDK ethernet
|
||||||
|
CONFIG_USB_LAN78XX=y
|
||||||
|
|
||||||
|
CONFIG_ARCH_ALPINE=n
|
||||||
|
CONFIG_ARCH_BCM2835=n
|
||||||
|
CONFIG_ARCH_BCM_IPROC=n
|
||||||
|
CONFIG_ARCH_BERLIN=n
|
||||||
|
CONFIG_ARCH_BRCMSTB=n
|
||||||
|
CONFIG_ARCH_EXYNOS=n
|
||||||
|
CONFIG_ARCH_K3=n
|
||||||
|
CONFIG_ARCH_LAYERSCAPE=n
|
||||||
|
CONFIG_ARCH_LG1K=n
|
||||||
|
CONFIG_ARCH_HISI=n
|
||||||
|
CONFIG_ARCH_MVEBU=n
|
||||||
|
CONFIG_ARCH_SEATTLE=n
|
||||||
|
CONFIG_ARCH_SYNQUACER=n
|
||||||
|
CONFIG_ARCH_RENESAS=n
|
||||||
|
CONFIG_ARCH_R8A774A1=n
|
||||||
|
CONFIG_ARCH_R8A774C0=n
|
||||||
|
CONFIG_ARCH_R8A7795=n
|
||||||
|
CONFIG_ARCH_R8A7796=n
|
||||||
|
CONFIG_ARCH_R8A77965=n
|
||||||
|
CONFIG_ARCH_R8A77970=n
|
||||||
|
CONFIG_ARCH_R8A77980=n
|
||||||
|
CONFIG_ARCH_R8A77990=n
|
||||||
|
CONFIG_ARCH_R8A77995=n
|
||||||
|
CONFIG_ARCH_STRATIX10=n
|
||||||
|
CONFIG_ARCH_TEGRA=n
|
||||||
|
CONFIG_ARCH_SPRD=n
|
||||||
|
CONFIG_ARCH_THUNDER=n
|
||||||
|
CONFIG_ARCH_THUNDER2=n
|
||||||
|
CONFIG_ARCH_UNIPHIER=n
|
||||||
|
CONFIG_ARCH_VEXPRESS=n
|
||||||
|
CONFIG_ARCH_XGENE=n
|
||||||
|
CONFIG_ARCH_ZX=n
|
||||||
|
CONFIG_ARCH_ZYNQMP=n
|
||||||
|
|
||||||
|
# Strip out some stuff we don't need for graphics testing, to reduce
|
||||||
|
# the build.
|
||||||
|
CONFIG_CAN=n
|
||||||
|
CONFIG_WIRELESS=n
|
||||||
|
CONFIG_RFKILL=n
|
||||||
|
CONFIG_WLAN=n
|
||||||
|
|
||||||
|
CONFIG_REGULATOR_FAN53555=y
|
||||||
|
CONFIG_REGULATOR=y
|
||||||
|
|
||||||
|
CONFIG_REGULATOR_VCTRL=y
|
||||||
|
|
||||||
|
CONFIG_KASAN=n
|
||||||
|
CONFIG_KASAN_INLINE=n
|
||||||
|
CONFIG_STACKTRACE=n
|
||||||
|
|
||||||
|
CONFIG_TMPFS=y
|
||||||
|
|
||||||
|
CONFIG_PROVE_LOCKING=n
|
||||||
|
CONFIG_DEBUG_LOCKDEP=n
|
||||||
|
CONFIG_SOFTLOCKUP_DETECTOR=y
|
||||||
|
CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC=y
|
||||||
|
|
||||||
|
CONFIG_DETECT_HUNG_TASK=y
|
||||||
|
|
||||||
|
CONFIG_FW_LOADER_COMPRESS=y
|
||||||
|
CONFIG_FW_LOADER_USER_HELPER=n
|
||||||
|
|
||||||
|
CONFIG_USB_USBNET=y
|
||||||
|
CONFIG_NETDEVICES=y
|
||||||
|
CONFIG_USB_NET_DRIVERS=y
|
||||||
|
CONFIG_USB_RTL8152=y
|
||||||
|
CONFIG_USB_NET_AX8817X=y
|
||||||
|
CONFIG_USB_NET_SMSC95XX=y
|
||||||
|
|
||||||
|
# For amlogic
|
||||||
|
CONFIG_MESON_GXL_PHY=y
|
||||||
|
CONFIG_MDIO_BUS_MUX_MESON_G12A=y
|
||||||
|
CONFIG_DRM_MESON=y
|
||||||
|
|
||||||
|
# For Mediatek
|
||||||
|
CONFIG_DRM_MEDIATEK=y
|
||||||
|
CONFIG_PWM_MEDIATEK=y
|
||||||
|
CONFIG_DRM_MEDIATEK_HDMI=y
|
||||||
|
CONFIG_GNSS=y
|
||||||
|
CONFIG_GNSS_MTK_SERIAL=y
|
||||||
|
CONFIG_HW_RANDOM=y
|
||||||
|
CONFIG_HW_RANDOM_MTK=y
|
||||||
|
CONFIG_MTK_DEVAPC=y
|
||||||
|
CONFIG_PWM_MTK_DISP=y
|
||||||
|
CONFIG_MTK_CMDQ=y
|
||||||
|
|
||||||
|
# For nouveau. Note that DRM must be a module so that it's loaded after NFS is up to provide the firmware.
|
||||||
|
CONFIG_ARCH_TEGRA=y
|
||||||
|
CONFIG_DRM_NOUVEAU=m
|
||||||
|
CONFIG_DRM_TEGRA=m
|
||||||
|
CONFIG_R8169=y
|
||||||
|
CONFIG_STAGING=y
|
||||||
|
CONFIG_DRM_TEGRA_STAGING=y
|
||||||
|
CONFIG_TEGRA_HOST1X=y
|
||||||
|
CONFIG_ARM_TEGRA_DEVFREQ=y
|
||||||
|
CONFIG_TEGRA_SOCTHERM=y
|
||||||
|
CONFIG_DRM_TEGRA_DEBUG=y
|
||||||
|
CONFIG_PWM_TEGRA=y
|
@@ -24,11 +24,11 @@ if [[ $arch == "arm64" ]]; then
|
|||||||
pushd /baremetal-files
|
pushd /baremetal-files
|
||||||
|
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
||||||
-O "${KERNEL_IMAGE_BASE}"/arm64/Image
|
-O "${ARTIFACTS_URL}"/Image
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
||||||
-O "${KERNEL_IMAGE_BASE}"/arm64/Image.gz
|
-O "${ARTIFACTS_URL}"/Image.gz
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
||||||
-O "${KERNEL_IMAGE_BASE}"/arm64/cheza-kernel
|
-O "${ARTIFACTS_URL}"/cheza-kernel
|
||||||
|
|
||||||
DEVICE_TREES=""
|
DEVICE_TREES=""
|
||||||
DEVICE_TREES="$DEVICE_TREES apq8016-sbc.dtb"
|
DEVICE_TREES="$DEVICE_TREES apq8016-sbc.dtb"
|
||||||
@@ -38,7 +38,7 @@ if [[ $arch == "arm64" ]]; then
|
|||||||
|
|
||||||
for DTB in $DEVICE_TREES; do
|
for DTB in $DEVICE_TREES; do
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
||||||
-O "${KERNEL_IMAGE_BASE}/arm64/$DTB"
|
-O "${ARTIFACTS_URL}/$DTB"
|
||||||
done
|
done
|
||||||
|
|
||||||
popd
|
popd
|
||||||
@@ -47,7 +47,7 @@ elif [[ $arch == "armhf" ]]; then
|
|||||||
pushd /baremetal-files
|
pushd /baremetal-files
|
||||||
|
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
||||||
-O "${KERNEL_IMAGE_BASE}"/armhf/zImage
|
-O "${ARTIFACTS_URL}"/zImage
|
||||||
|
|
||||||
DEVICE_TREES=""
|
DEVICE_TREES=""
|
||||||
DEVICE_TREES="$DEVICE_TREES imx6q-cubox-i.dtb"
|
DEVICE_TREES="$DEVICE_TREES imx6q-cubox-i.dtb"
|
||||||
@@ -55,7 +55,7 @@ elif [[ $arch == "armhf" ]]; then
|
|||||||
|
|
||||||
for DTB in $DEVICE_TREES; do
|
for DTB in $DEVICE_TREES; do
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
||||||
-O "${KERNEL_IMAGE_BASE}/armhf/$DTB"
|
-O "${ARTIFACTS_URL}/$DTB"
|
||||||
done
|
done
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
ANGLE_REV="0518a3ff4d4e7e5b2ce8203358f719613a31c118"
|
ANGLE_REV="82f1cee01a9ea24960e8f23b24d348fccbe0aae0"
|
||||||
|
|
||||||
# DEPOT tools
|
# DEPOT tools
|
||||||
git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git
|
git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git
|
||||||
|
@@ -6,13 +6,13 @@ set -ex
|
|||||||
git config --global user.email "mesa@example.com"
|
git config --global user.email "mesa@example.com"
|
||||||
git config --global user.name "Mesa CI"
|
git config --global user.name "Mesa CI"
|
||||||
|
|
||||||
CROSVM_VERSION=1641c55bcc922588e24de73e9cca7b5e4005bd6d
|
CROSVM_VERSION=d0cbf0b23eb4bd2355b011184025c7c5d8749376
|
||||||
git clone --single-branch -b main --no-checkout https://chromium.googlesource.com/crosvm/crosvm /platform/crosvm
|
git clone --single-branch -b main --no-checkout https://chromium.googlesource.com/crosvm/crosvm /platform/crosvm
|
||||||
pushd /platform/crosvm
|
pushd /platform/crosvm
|
||||||
git checkout "$CROSVM_VERSION"
|
git checkout "$CROSVM_VERSION"
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
|
|
||||||
VIRGLRENDERER_VERSION=d9c002fac153b834a2c17731f2b85c36e333e102
|
VIRGLRENDERER_VERSION=45bb2449b81336b88c267b1c1735f3b4946c7b3a
|
||||||
rm -rf third_party/virglrenderer
|
rm -rf third_party/virglrenderer
|
||||||
git clone --single-branch -b main --no-checkout https://gitlab.freedesktop.org/virgl/virglrenderer.git third_party/virglrenderer
|
git clone --single-branch -b main --no-checkout https://gitlab.freedesktop.org/virgl/virglrenderer.git third_party/virglrenderer
|
||||||
pushd third_party/virglrenderer
|
pushd third_party/virglrenderer
|
||||||
@@ -31,10 +31,10 @@ RUSTFLAGS='-L native=/usr/local/lib' cargo install \
|
|||||||
--version 0.65.1 \
|
--version 0.65.1 \
|
||||||
$EXTRA_CARGO_ARGS
|
$EXTRA_CARGO_ARGS
|
||||||
|
|
||||||
CROSVM_USE_SYSTEM_MINIGBM=1 CROSVM_USE_SYSTEM_VIRGLRENDERER=1 RUSTFLAGS='-L native=/usr/local/lib' cargo install \
|
CROSVM_USE_SYSTEM_VIRGLRENDERER=1 RUSTFLAGS='-L native=/usr/local/lib' cargo install \
|
||||||
-j ${FDO_CI_CONCURRENT:-4} \
|
-j ${FDO_CI_CONCURRENT:-4} \
|
||||||
--locked \
|
--locked \
|
||||||
--features 'default-no-sandbox gpu x virgl_renderer' \
|
--features 'default-no-sandbox gpu x virgl_renderer virgl_renderer_next' \
|
||||||
--path . \
|
--path . \
|
||||||
--root /usr/local \
|
--root /usr/local \
|
||||||
$EXTRA_CARGO_ARGS
|
$EXTRA_CARGO_ARGS
|
||||||
|
@@ -1,39 +1,25 @@
|
|||||||
#!/usr/bin/env bash
|
#!/bin/sh
|
||||||
# shellcheck disable=SC2086 # we want word splitting
|
# shellcheck disable=SC2086 # we want word splitting
|
||||||
|
|
||||||
# When changing this file, you need to bump the following
|
|
||||||
# .gitlab-ci/image-tags.yml tags:
|
|
||||||
# DEBIAN_X86_64_TEST_ANDROID_TAG
|
|
||||||
# DEBIAN_X86_64_TEST_GL_TAG
|
|
||||||
# DEBIAN_X86_64_TEST_VK_TAG
|
|
||||||
# KERNEL_ROOTFS_TAG
|
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
DEQP_RUNNER_VERSION=0.18.0
|
|
||||||
|
|
||||||
DEQP_RUNNER_GIT_URL="${DEQP_RUNNER_GIT_URL:-https://gitlab.freedesktop.org/mesa/deqp-runner.git}"
|
|
||||||
|
|
||||||
if [ -n "${DEQP_RUNNER_GIT_TAG}${DEQP_RUNNER_GIT_REV}" ]; then
|
if [ -n "${DEQP_RUNNER_GIT_TAG}${DEQP_RUNNER_GIT_REV}" ]; then
|
||||||
# Build and install from source
|
# Build and install from source
|
||||||
DEQP_RUNNER_CARGO_ARGS="--git $DEQP_RUNNER_GIT_URL"
|
DEQP_RUNNER_CARGO_ARGS="--git ${DEQP_RUNNER_GIT_URL:-https://gitlab.freedesktop.org/anholt/deqp-runner.git}"
|
||||||
|
|
||||||
if [ -n "${DEQP_RUNNER_GIT_TAG}" ]; then
|
if [ -n "${DEQP_RUNNER_GIT_TAG}" ]; then
|
||||||
DEQP_RUNNER_CARGO_ARGS="--tag ${DEQP_RUNNER_GIT_TAG} ${DEQP_RUNNER_CARGO_ARGS}"
|
DEQP_RUNNER_CARGO_ARGS="--tag ${DEQP_RUNNER_GIT_TAG} ${DEQP_RUNNER_CARGO_ARGS}"
|
||||||
DEQP_RUNNER_GIT_CHECKOUT="$DEQP_RUNNER_GIT_TAG"
|
|
||||||
else
|
else
|
||||||
DEQP_RUNNER_CARGO_ARGS="--rev ${DEQP_RUNNER_GIT_REV} ${DEQP_RUNNER_CARGO_ARGS}"
|
DEQP_RUNNER_CARGO_ARGS="--rev ${DEQP_RUNNER_GIT_REV} ${DEQP_RUNNER_CARGO_ARGS}"
|
||||||
DEQP_RUNNER_GIT_CHECKOUT="$DEQP_RUNNER_GIT_REV"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DEQP_RUNNER_CARGO_ARGS="${DEQP_RUNNER_CARGO_ARGS} ${EXTRA_CARGO_ARGS}"
|
DEQP_RUNNER_CARGO_ARGS="${DEQP_RUNNER_CARGO_ARGS} ${EXTRA_CARGO_ARGS}"
|
||||||
else
|
else
|
||||||
# Install from package registry
|
# Install from package registry
|
||||||
DEQP_RUNNER_CARGO_ARGS="--version ${DEQP_RUNNER_VERSION} ${EXTRA_CARGO_ARGS} -- deqp-runner"
|
DEQP_RUNNER_CARGO_ARGS="--version 0.16.0 ${EXTRA_CARGO_ARGS} -- deqp-runner"
|
||||||
DEQP_RUNNER_GIT_CHECKOUT="v$DEQP_RUNNER_VERSION"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$RUST_TARGET" != *-android ]]; then
|
if [ -z "$ANDROID_NDK_HOME" ]; then
|
||||||
cargo install --locked \
|
cargo install --locked \
|
||||||
-j ${FDO_CI_CONCURRENT:-4} \
|
-j ${FDO_CI_CONCURRENT:-4} \
|
||||||
--root /usr/local \
|
--root /usr/local \
|
||||||
@@ -41,7 +27,7 @@ if [[ "$RUST_TARGET" != *-android ]]; then
|
|||||||
else
|
else
|
||||||
mkdir -p /deqp-runner
|
mkdir -p /deqp-runner
|
||||||
pushd /deqp-runner
|
pushd /deqp-runner
|
||||||
git clone --branch "$DEQP_RUNNER_GIT_CHECKOUT" --depth 1 "$DEQP_RUNNER_GIT_URL" deqp-runner-git
|
git clone --branch v0.16.1 --depth 1 https://gitlab.freedesktop.org/anholt/deqp-runner.git deqp-runner-git
|
||||||
pushd deqp-runner-git
|
pushd deqp-runner-git
|
||||||
|
|
||||||
cargo install --locked \
|
cargo install --locked \
|
||||||
@@ -49,10 +35,10 @@ else
|
|||||||
--root /usr/local --version 2.10.0 \
|
--root /usr/local --version 2.10.0 \
|
||||||
cargo-ndk
|
cargo-ndk
|
||||||
|
|
||||||
rustup target add $RUST_TARGET
|
rustup target add x86_64-linux-android
|
||||||
RUSTFLAGS='-C target-feature=+crt-static' cargo ndk --target $RUST_TARGET build --release
|
RUSTFLAGS='-C target-feature=+crt-static' cargo ndk --target x86_64-linux-android build
|
||||||
|
|
||||||
mv target/$RUST_TARGET/release/deqp-runner /deqp-runner
|
mv target/x86_64-linux-android/debug/deqp-runner /deqp-runner
|
||||||
|
|
||||||
cargo uninstall --locked \
|
cargo uninstall --locked \
|
||||||
--root /usr/local \
|
--root /usr/local \
|
||||||
|
@@ -8,17 +8,16 @@
|
|||||||
# DEBIAN_X86_64_TEST_VK_TAG
|
# DEBIAN_X86_64_TEST_VK_TAG
|
||||||
# KERNEL_ROOTFS_TAG
|
# KERNEL_ROOTFS_TAG
|
||||||
|
|
||||||
set -ex -o pipefail
|
set -ex
|
||||||
|
|
||||||
# See `deqp_build_targets` below for which release is used to produce which
|
git config --global user.email "mesa@example.com"
|
||||||
# binary. Unless this comment has bitrotten:
|
git config --global user.name "Mesa CI"
|
||||||
# - the VK release produces `deqp-vk`,
|
git clone \
|
||||||
# - the GL release produces `glcts`, and
|
https://github.com/KhronosGroup/VK-GL-CTS.git \
|
||||||
# - the GLES release produces `deqp-gles*` and `deqp-egl`
|
-b vulkan-cts-1.3.5.2 \
|
||||||
|
--depth 1 \
|
||||||
DEQP_VK_VERSION=1.3.8.2
|
/VK-GL-CTS
|
||||||
DEQP_GL_VERSION=4.6.4.0
|
pushd /VK-GL-CTS
|
||||||
DEQP_GLES_VERSION=3.2.10.0
|
|
||||||
|
|
||||||
# Patches to VulkanCTS may come from commits in their repo (listed in
|
# Patches to VulkanCTS may come from commits in their repo (listed in
|
||||||
# cts_commits_to_backport) or patch files stored in our repo (in the patch
|
# cts_commits_to_backport) or patch files stored in our repo (in the patch
|
||||||
@@ -26,211 +25,133 @@ DEQP_GLES_VERSION=3.2.10.0
|
|||||||
# Both list variables would have comments explaining the reasons behind the
|
# Both list variables would have comments explaining the reasons behind the
|
||||||
# patches.
|
# patches.
|
||||||
|
|
||||||
# shellcheck disable=SC2034
|
cts_commits_to_backport=(
|
||||||
vk_cts_commits_to_backport=(
|
# sync fix for SSBO writes
|
||||||
# Fix more ASAN errors due to missing virtual destructors
|
44f1be32fe6bd2a7de7b9169fc71cc44e0b26124
|
||||||
dd40bcfef1b4035ea55480b6fd4d884447120768
|
|
||||||
|
|
||||||
# Remove "unused shader stages" tests
|
# sync fix for KHR-GL46.multi_bind.dispatch_bind_image_textures
|
||||||
7dac86c6bbd15dec91d7d9a98cd6dd57c11092a7
|
db6c9e295ab38054ace425cb75ff966719ccc609
|
||||||
|
|
||||||
|
# VK robustness barriers fix
|
||||||
|
6052f21c4d6077438d644f525c10cc58dcdf25bf
|
||||||
|
|
||||||
|
# correctness fixes for zink validation fails
|
||||||
|
1923cbc89ed3969a3afe7c6926124b51157902e1
|
||||||
|
af3a979c49dc65f8809c27660405ae3a76c7da4a
|
||||||
|
|
||||||
|
# GL/GLES vertex_attrib_binding.advanced-largeStrideAndOffsetsNewAndLegacyAPI fix
|
||||||
|
bdb456dcf85e34fced872ebdaf06f6b73451f99c
|
||||||
|
|
||||||
|
# KHR-GLES31.core.compute_shader.max fix
|
||||||
|
7aa3ebb49d07982f5c44edd4799edb5a894567e9
|
||||||
|
|
||||||
|
# GL arrays_of_arrays perf fix
|
||||||
|
b481dada59734e8e34050fe884ba6d627d9e5c54
|
||||||
|
|
||||||
|
# GL shadow samplers require depth compares fix
|
||||||
|
a8bc242ec234bf8d7df8b4eec1eeccab4e401288
|
||||||
|
|
||||||
|
# GL PolygonOffsetClamp fix
|
||||||
|
1f2feb2388da88b4e46eba55547d50856467cc20
|
||||||
|
|
||||||
|
# KHR-GL46.texture_view.view_sampling fix
|
||||||
|
aca29fb9553ebe28094513ce18bb46bad138cf46
|
||||||
|
|
||||||
|
# video validation fails
|
||||||
|
4cc3980a86ba5b7fe6e76b559cc1a9cb5fd1b253
|
||||||
|
a7a2ce442db51ca058ce051de7e09d62db44ae81
|
||||||
|
|
||||||
|
# Check for robustness before testing it
|
||||||
|
ee7138d8adf5ed3c4845e5ac2553c4f9697be9d8
|
||||||
|
|
||||||
|
# dEQP-VK.wsi.acquire_drm_display.*invalid_fd
|
||||||
|
98ad9402e7d94030d1689fd59135da7a2f52384c
|
||||||
)
|
)
|
||||||
|
|
||||||
# shellcheck disable=SC2034
|
for commit in "${cts_commits_to_backport[@]}"
|
||||||
vk_cts_patch_files=(
|
|
||||||
)
|
|
||||||
|
|
||||||
if [ "${DEQP_TARGET}" = 'android' ]; then
|
|
||||||
vk_cts_patch_files+=(
|
|
||||||
build-deqp-vk_Allow-running-on-Android-from-the-command-line.patch
|
|
||||||
build-deqp-vk_Android-prints-to-stdout-instead-of-logcat.patch
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# shellcheck disable=SC2034
|
|
||||||
gl_cts_commits_to_backport=(
|
|
||||||
)
|
|
||||||
|
|
||||||
# shellcheck disable=SC2034
|
|
||||||
gl_cts_patch_files=(
|
|
||||||
)
|
|
||||||
|
|
||||||
if [ "${DEQP_TARGET}" = 'android' ]; then
|
|
||||||
gl_cts_patch_files+=(
|
|
||||||
build-deqp-gl_Allow-running-on-Android-from-the-command-line.patch
|
|
||||||
build-deqp-gl_Android-prints-to-stdout-instead-of-logcat.patch
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# shellcheck disable=SC2034
|
|
||||||
# GLES builds also EGL
|
|
||||||
gles_cts_commits_to_backport=(
|
|
||||||
# Implement support for the EGL_EXT_config_select_group extension
|
|
||||||
88ba9ac270db5be600b1ecacbc6d9db0c55d5be4
|
|
||||||
)
|
|
||||||
|
|
||||||
# shellcheck disable=SC2034
|
|
||||||
gles_cts_patch_files=(
|
|
||||||
# Correct detection mechanism for EGL_EXT_config_select_group extension
|
|
||||||
build-deqp-egl_Correct-EGL_EXT_config_select_group-extension-query.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
if [ "${DEQP_TARGET}" = 'android' ]; then
|
|
||||||
gles_cts_patch_files+=(
|
|
||||||
build-deqp-gles_Allow-running-on-Android-from-the-command-line.patch
|
|
||||||
build-deqp-gles_Android-prints-to-stdout-instead-of-logcat.patch
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
### Careful editing anything below this line
|
|
||||||
|
|
||||||
|
|
||||||
git config --global user.email "mesa@example.com"
|
|
||||||
git config --global user.name "Mesa CI"
|
|
||||||
|
|
||||||
# shellcheck disable=SC2153
|
|
||||||
case "${DEQP_API}" in
|
|
||||||
VK) DEQP_VERSION="vulkan-cts-$DEQP_VK_VERSION";;
|
|
||||||
GL) DEQP_VERSION="opengl-cts-$DEQP_GL_VERSION";;
|
|
||||||
GLES) DEQP_VERSION="opengl-es-cts-$DEQP_GLES_VERSION";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
git clone \
|
|
||||||
https://github.com/KhronosGroup/VK-GL-CTS.git \
|
|
||||||
-b $DEQP_VERSION \
|
|
||||||
--depth 1 \
|
|
||||||
/VK-GL-CTS
|
|
||||||
pushd /VK-GL-CTS
|
|
||||||
|
|
||||||
mkdir -p /deqp
|
|
||||||
|
|
||||||
# shellcheck disable=SC2153
|
|
||||||
deqp_api=${DEQP_API,,}
|
|
||||||
|
|
||||||
cts_commits_to_backport="${deqp_api}_cts_commits_to_backport[@]"
|
|
||||||
for commit in "${!cts_commits_to_backport}"
|
|
||||||
do
|
do
|
||||||
PATCH_URL="https://github.com/KhronosGroup/VK-GL-CTS/commit/$commit.patch"
|
PATCH_URL="https://github.com/KhronosGroup/VK-GL-CTS/commit/$commit.patch"
|
||||||
echo "Apply patch to ${DEQP_API} CTS from $PATCH_URL"
|
echo "Apply patch to VK-GL-CTS from $PATCH_URL"
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 $PATCH_URL | \
|
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 $PATCH_URL | \
|
||||||
git am -
|
git am -
|
||||||
done
|
done
|
||||||
|
|
||||||
cts_patch_files="${deqp_api}_cts_patch_files[@]"
|
cts_patch_files=(
|
||||||
for patch in "${!cts_patch_files}"
|
# Android specific patches.
|
||||||
|
build-deqp_Allow-running-on-Android-from-the-command-line.patch
|
||||||
|
build-deqp_Android-prints-to-stdout-instead-of-logcat.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
for patch in "${cts_patch_files[@]}"
|
||||||
do
|
do
|
||||||
echo "Apply patch to ${DEQP_API} CTS from $patch"
|
echo "Apply patch to VK-GL-CTS from $patch"
|
||||||
git am < $OLDPWD/.gitlab-ci/container/patches/$patch
|
git am < $OLDPWD/.gitlab-ci/container/patches/$patch
|
||||||
done
|
done
|
||||||
|
|
||||||
{
|
|
||||||
echo "dEQP base version $DEQP_VERSION"
|
|
||||||
echo "The following local patches are applied on top:"
|
|
||||||
git log --reverse --oneline $DEQP_VERSION.. --format=%s | sed 's/^/- /'
|
|
||||||
} > /deqp/version-$deqp_api
|
|
||||||
|
|
||||||
# --insecure is due to SSL cert failures hitting sourceforge for zlib and
|
# --insecure is due to SSL cert failures hitting sourceforge for zlib and
|
||||||
# libpng (sigh). The archives get their checksums checked anyway, and git
|
# libpng (sigh). The archives get their checksums checked anyway, and git
|
||||||
# always goes through ssh or https.
|
# always goes through ssh or https.
|
||||||
python3 external/fetch_sources.py --insecure
|
python3 external/fetch_sources.py --insecure
|
||||||
|
|
||||||
|
mkdir -p /deqp
|
||||||
|
|
||||||
# Save the testlog stylesheets:
|
# Save the testlog stylesheets:
|
||||||
cp doc/testlog-stylesheet/testlog.{css,xsl} /deqp
|
cp doc/testlog-stylesheet/testlog.{css,xsl} /deqp
|
||||||
popd
|
popd
|
||||||
|
|
||||||
pushd /deqp
|
pushd /deqp
|
||||||
|
|
||||||
if [ "${DEQP_API}" = 'GLES' ]; then
|
if [ "${DEQP_TARGET}" != 'android' ]; then
|
||||||
if [ "${DEQP_TARGET}" = 'android' ]; then
|
|
||||||
cmake -S /VK-GL-CTS -B . -G Ninja \
|
|
||||||
-DDEQP_TARGET=android \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
|
||||||
$EXTRA_CMAKE_ARGS
|
|
||||||
mold --run ninja modules/egl/deqp-egl
|
|
||||||
mv /deqp/modules/egl/deqp-egl /deqp/modules/egl/deqp-egl-android
|
|
||||||
else
|
|
||||||
# When including EGL/X11 testing, do that build first and save off its
|
# When including EGL/X11 testing, do that build first and save off its
|
||||||
# deqp-egl binary.
|
# deqp-egl binary.
|
||||||
cmake -S /VK-GL-CTS -B . -G Ninja \
|
cmake -S /VK-GL-CTS -B . -G Ninja \
|
||||||
-DDEQP_TARGET=x11_egl_glx \
|
-DDEQP_TARGET=x11_egl_glx \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
$EXTRA_CMAKE_ARGS
|
$EXTRA_CMAKE_ARGS
|
||||||
mold --run ninja modules/egl/deqp-egl
|
ninja modules/egl/deqp-egl
|
||||||
mv /deqp/modules/egl/deqp-egl /deqp/modules/egl/deqp-egl-x11
|
mv /deqp/modules/egl/deqp-egl /deqp/modules/egl/deqp-egl-x11
|
||||||
|
|
||||||
cmake -S /VK-GL-CTS -B . -G Ninja \
|
cmake -S /VK-GL-CTS -B . -G Ninja \
|
||||||
-DDEQP_TARGET=wayland \
|
-DDEQP_TARGET=wayland \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
$EXTRA_CMAKE_ARGS
|
$EXTRA_CMAKE_ARGS
|
||||||
mold --run ninja modules/egl/deqp-egl
|
ninja modules/egl/deqp-egl
|
||||||
mv /deqp/modules/egl/deqp-egl /deqp/modules/egl/deqp-egl-wayland
|
mv /deqp/modules/egl/deqp-egl /deqp/modules/egl/deqp-egl-wayland
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cmake -S /VK-GL-CTS -B . -G Ninja \
|
cmake -S /VK-GL-CTS -B . -G Ninja \
|
||||||
-DDEQP_TARGET=${DEQP_TARGET} \
|
-DDEQP_TARGET=${DEQP_TARGET:-x11_glx} \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
$EXTRA_CMAKE_ARGS
|
$EXTRA_CMAKE_ARGS
|
||||||
|
ninja
|
||||||
|
|
||||||
# Make sure `default` doesn't silently stop detecting one of the platforms we care about
|
if [ "${DEQP_TARGET}" = 'android' ]; then
|
||||||
if [ "${DEQP_TARGET}" = 'default' ]; then
|
mv /deqp/modules/egl/deqp-egl /deqp/modules/egl/deqp-egl-android
|
||||||
grep -q DEQP_SUPPORT_WAYLAND=1 build.ninja
|
|
||||||
grep -q DEQP_SUPPORT_X11=1 build.ninja
|
|
||||||
grep -q DEQP_SUPPORT_XCB=1 build.ninja
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
deqp_build_targets=()
|
# Copy out the mustpass lists we want.
|
||||||
case "${DEQP_API}" in
|
mkdir /deqp/mustpass
|
||||||
VK)
|
for mustpass in $(< /VK-GL-CTS/external/vulkancts/mustpass/main/vk-default.txt) ; do
|
||||||
deqp_build_targets+=(deqp-vk)
|
|
||||||
;;
|
|
||||||
GL)
|
|
||||||
deqp_build_targets+=(glcts)
|
|
||||||
;;
|
|
||||||
GLES)
|
|
||||||
deqp_build_targets+=(deqp-gles{2,3,31})
|
|
||||||
# deqp-egl also comes from this build, but it is handled separately above.
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
if [ "${DEQP_TARGET}" != 'android' ]; then
|
|
||||||
deqp_build_targets+=(testlog-to-xml)
|
|
||||||
deqp_build_targets+=(testlog-to-csv)
|
|
||||||
deqp_build_targets+=(testlog-to-junit)
|
|
||||||
fi
|
|
||||||
|
|
||||||
mold --run ninja "${deqp_build_targets[@]}"
|
|
||||||
|
|
||||||
if [ "${DEQP_TARGET}" != 'android' ]; then
|
|
||||||
# Copy out the mustpass lists we want.
|
|
||||||
mkdir -p /deqp/mustpass
|
|
||||||
|
|
||||||
if [ "${DEQP_API}" = 'VK' ]; then
|
|
||||||
for mustpass in $(< /VK-GL-CTS/external/vulkancts/mustpass/main/vk-default.txt) ; do
|
|
||||||
cat /VK-GL-CTS/external/vulkancts/mustpass/main/$mustpass \
|
cat /VK-GL-CTS/external/vulkancts/mustpass/main/$mustpass \
|
||||||
>> /deqp/mustpass/vk-main.txt
|
>> /deqp/mustpass/vk-master.txt
|
||||||
done
|
done
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${DEQP_API}" = 'GL' ]; then
|
if [ "${DEQP_TARGET}" != 'android' ]; then
|
||||||
cp \
|
cp \
|
||||||
/VK-GL-CTS/external/openglcts/data/mustpass/gl/khronos_mustpass/4.6.1.x/*-main.txt \
|
/deqp/external/openglcts/modules/gl_cts/data/mustpass/gles/aosp_mustpass/3.2.6.x/*.txt \
|
||||||
/deqp/mustpass/
|
/deqp/mustpass/.
|
||||||
cp \
|
cp \
|
||||||
/VK-GL-CTS/external/openglcts/data/mustpass/gl/khronos_mustpass_single/4.6.1.x/*-single.txt \
|
/deqp/external/openglcts/modules/gl_cts/data/mustpass/egl/aosp_mustpass/3.2.6.x/egl-master.txt \
|
||||||
/deqp/mustpass/
|
/deqp/mustpass/.
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${DEQP_API}" = 'GLES' ]; then
|
|
||||||
cp \
|
cp \
|
||||||
/VK-GL-CTS/external/openglcts/data/mustpass/gles/aosp_mustpass/3.2.6.x/*.txt \
|
/deqp/external/openglcts/modules/gl_cts/data/mustpass/gles/khronos_mustpass/3.2.6.x/*-master.txt \
|
||||||
/deqp/mustpass/
|
/deqp/mustpass/.
|
||||||
cp \
|
cp \
|
||||||
/VK-GL-CTS/external/openglcts/data/mustpass/egl/aosp_mustpass/3.2.6.x/egl-main.txt \
|
/deqp/external/openglcts/modules/gl_cts/data/mustpass/gl/khronos_mustpass/4.6.1.x/*-master.txt \
|
||||||
/deqp/mustpass/
|
/deqp/mustpass/.
|
||||||
cp \
|
cp \
|
||||||
/VK-GL-CTS/external/openglcts/data/mustpass/gles/khronos_mustpass/3.2.6.x/*-main.txt \
|
/deqp/external/openglcts/modules/gl_cts/data/mustpass/gl/khronos_mustpass_single/4.6.1.x/*-single.txt \
|
||||||
/deqp/mustpass/
|
/deqp/mustpass/.
|
||||||
fi
|
|
||||||
|
|
||||||
# Save *some* executor utils, but otherwise strip things down
|
# Save *some* executor utils, but otherwise strip things down
|
||||||
# to reduct deqp build size:
|
# to reduct deqp build size:
|
||||||
@@ -241,24 +162,19 @@ if [ "${DEQP_TARGET}" != 'android' ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove other mustpass files, since we saved off the ones we wanted to conventient locations above.
|
# Remove other mustpass files, since we saved off the ones we wanted to conventient locations above.
|
||||||
rm -rf /deqp/external/**/mustpass/
|
rm -rf /deqp/external/openglcts/modules/gl_cts/data/mustpass
|
||||||
rm -rf /deqp/external/vulkancts/modules/vulkan/vk-main*
|
rm -rf /deqp/external/vulkancts/modules/vulkan/vk-master*
|
||||||
rm -rf /deqp/external/vulkancts/modules/vulkan/vk-default
|
rm -rf /deqp/external/vulkancts/modules/vulkan/vk-default
|
||||||
|
|
||||||
rm -rf /deqp/external/openglcts/modules/cts-runner
|
rm -rf /deqp/external/openglcts/modules/cts-runner
|
||||||
rm -rf /deqp/modules/internal
|
rm -rf /deqp/modules/internal
|
||||||
rm -rf /deqp/execserver
|
rm -rf /deqp/execserver
|
||||||
rm -rf /deqp/framework
|
rm -rf /deqp/framework
|
||||||
find . -depth \( -iname '*cmake*' -o -name '*ninja*' -o -name '*.o' -o -name '*.a' \) -exec rm -rf {} \;
|
# shellcheck disable=SC2038,SC2185 # TODO: rewrite find
|
||||||
if [ "${DEQP_API}" = 'VK' ]; then
|
find -iname '*cmake*' -o -name '*ninja*' -o -name '*.o' -o -name '*.a' | xargs rm -rf
|
||||||
${STRIP_CMD:-strip} external/vulkancts/modules/vulkan/deqp-vk
|
${STRIP_CMD:-strip} external/vulkancts/modules/vulkan/deqp-vk
|
||||||
fi
|
${STRIP_CMD:-strip} external/openglcts/modules/glcts
|
||||||
if [ "${DEQP_API}" = 'GL' ]; then
|
${STRIP_CMD:-strip} modules/*/deqp-*
|
||||||
${STRIP_CMD:-strip} external/openglcts/modules/glcts
|
|
||||||
fi
|
|
||||||
if [ "${DEQP_API}" = 'GLES' ]; then
|
|
||||||
${STRIP_CMD:-strip} modules/*/deqp-*
|
|
||||||
fi
|
|
||||||
du -sh ./*
|
du -sh ./*
|
||||||
rm -rf /VK-GL-CTS
|
rm -rf /VK-GL-CTS
|
||||||
popd
|
popd
|
||||||
|
@@ -1,15 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# shellcheck disable=SC2086 # we want word splitting
|
|
||||||
|
|
||||||
# When changing this file, you need to bump the following
|
|
||||||
# .gitlab-ci/image-tags.yml tags:
|
|
||||||
# DEBIAN_BUILD_TAG
|
|
||||||
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
git clone https://github.com/microsoft/DirectX-Headers -b v1.613.1 --depth 1
|
|
||||||
pushd DirectX-Headers
|
|
||||||
meson setup build --backend=ninja --buildtype=release -Dbuild-test=false $EXTRA_MESON_ARGS
|
|
||||||
meson install -C build
|
|
||||||
popd
|
|
||||||
rm -rf DirectX-Headers
|
|
@@ -1,15 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# When changing this file, you need to bump the following
|
|
||||||
# .gitlab-ci/image-tags.yml tags:
|
|
||||||
# DEBIAN_X86_64_TEST_VK_TAG
|
|
||||||
# KERNEL_ROOTFS_TAG
|
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
git clone https://github.com/ValveSoftware/Fossilize.git
|
git clone https://github.com/ValveSoftware/Fossilize.git
|
||||||
cd Fossilize
|
cd Fossilize
|
||||||
git checkout b43ee42bbd5631ea21fe9a2dee4190d5d875c327
|
git checkout 16fba1b8b5d9310126bb02323d7bae3227338461
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
@@ -1,23 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# shellcheck disable=SC1091 # the path is created by the script
|
|
||||||
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
KDL_REVISION="5056f71b100a68b72b285c6fc845a66a2ed25985"
|
|
||||||
|
|
||||||
mkdir ci-kdl.git
|
|
||||||
pushd ci-kdl.git
|
|
||||||
git init
|
|
||||||
git remote add origin https://gitlab.freedesktop.org/gfx-ci/ci-kdl.git
|
|
||||||
git fetch --depth 1 origin ${KDL_REVISION}
|
|
||||||
git checkout FETCH_HEAD
|
|
||||||
popd
|
|
||||||
|
|
||||||
python3 -m venv ci-kdl.venv
|
|
||||||
source ci-kdl.venv/bin/activate
|
|
||||||
pushd ci-kdl.git
|
|
||||||
pip install -r requirements.txt
|
|
||||||
pip install .
|
|
||||||
popd
|
|
||||||
|
|
||||||
rm -rf ci-kdl.git
|
|
@@ -1,30 +1,53 @@
|
|||||||
#!/usr/bin/env bash
|
#!/bin/bash
|
||||||
# shellcheck disable=SC2086 # we want word splitting
|
# shellcheck disable=SC2086 # we want word splitting
|
||||||
# shellcheck disable=SC2153
|
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
mkdir -p kernel
|
mkdir -p kernel
|
||||||
|
curl -L -s --retry 4 -f --retry-all-errors --retry-delay 60 ${KERNEL_URL} \
|
||||||
|
| tar -xj --strip-components=1 -C kernel
|
||||||
pushd kernel
|
pushd kernel
|
||||||
|
|
||||||
if [[ ${DEBIAN_ARCH} = "arm64" ]]; then
|
# The kernel doesn't like the gold linker (or the old lld in our debians).
|
||||||
KERNEL_IMAGE_NAME+=" cheza-kernel"
|
# Sneak in some override symlinks during kernel build until we can update
|
||||||
fi
|
# debian (they'll get blown away by the rm of the kernel dir at the end).
|
||||||
|
mkdir -p ld-links
|
||||||
for image in ${KERNEL_IMAGE_NAME}; do
|
for i in /usr/bin/*-ld /usr/bin/ld; do
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
i=$(basename $i)
|
||||||
-o "/lava-files/${image}" "${KERNEL_IMAGE_BASE}/${DEBIAN_ARCH}/${image}"
|
ln -sf /usr/bin/$i.bfd ld-links/$i
|
||||||
done
|
done
|
||||||
|
|
||||||
for dtb in ${DEVICE_TREES}; do
|
NEWPATH=$(pwd)/ld-links
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
export PATH=$NEWPATH:$PATH
|
||||||
-o "/lava-files/${dtb}" "${KERNEL_IMAGE_BASE}/${DEBIAN_ARCH}/${dtb}"
|
|
||||||
done
|
|
||||||
|
|
||||||
mkdir -p "/lava-files/rootfs-${DEBIAN_ARCH}"
|
KERNEL_FILENAME=$(basename $KERNEL_URL)
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
export LOCALVERSION="$KERNEL_FILENAME"
|
||||||
-O "${KERNEL_IMAGE_BASE}/${DEBIAN_ARCH}/modules.tar.zst"
|
./scripts/kconfig/merge_config.sh ${DEFCONFIG} ../.gitlab-ci/container/${KERNEL_ARCH}.config
|
||||||
tar --keep-directory-symlink --zstd -xf modules.tar.zst -C "/lava-files/rootfs-${DEBIAN_ARCH}/"
|
make ${KERNEL_IMAGE_NAME}
|
||||||
|
for image in ${KERNEL_IMAGE_NAME}; do
|
||||||
|
cp arch/${KERNEL_ARCH}/boot/${image} /lava-files/.
|
||||||
|
done
|
||||||
|
|
||||||
|
if [[ -n ${DEVICE_TREES} ]]; then
|
||||||
|
make dtbs
|
||||||
|
cp ${DEVICE_TREES} /lava-files/.
|
||||||
|
fi
|
||||||
|
|
||||||
|
make modules
|
||||||
|
INSTALL_MOD_PATH=/lava-files/rootfs-${DEBIAN_ARCH}/ make modules_install
|
||||||
|
|
||||||
|
if [[ ${DEBIAN_ARCH} = "arm64" ]]; then
|
||||||
|
make Image.lzma
|
||||||
|
mkimage \
|
||||||
|
-f auto \
|
||||||
|
-A arm \
|
||||||
|
-O linux \
|
||||||
|
-d arch/arm64/boot/Image.lzma \
|
||||||
|
-C lzma\
|
||||||
|
-b arch/arm64/boot/dts/qcom/sdm845-cheza-r3.dtb \
|
||||||
|
/lava-files/cheza-kernel
|
||||||
|
KERNEL_IMAGE_NAME+=" cheza-kernel"
|
||||||
|
fi
|
||||||
|
|
||||||
popd
|
popd
|
||||||
rm -rf kernel
|
rm -rf kernel
|
||||||
|
@@ -1,10 +1,9 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Script used for Android and Fedora builds
|
|
||||||
# shellcheck disable=SC2086 # we want word splitting
|
# shellcheck disable=SC2086 # we want word splitting
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
export LIBDRM_VERSION=libdrm-2.4.119
|
export LIBDRM_VERSION=libdrm-2.4.114
|
||||||
|
|
||||||
curl -L -O --retry 4 -f --retry-all-errors --retry-delay 60 \
|
curl -L -O --retry 4 -f --retry-all-errors --retry-delay 60 \
|
||||||
https://dri.freedesktop.org/libdrm/"$LIBDRM_VERSION".tar.xz
|
https://dri.freedesktop.org/libdrm/"$LIBDRM_VERSION".tar.xz
|
||||||
|
@@ -2,14 +2,7 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
# When changing this file, you need to bump the following
|
MOLD_VERSION="1.11.0"
|
||||||
# .gitlab-ci/image-tags.yml tags:
|
|
||||||
# DEBIAN_BASE_TAG
|
|
||||||
# DEBIAN_BUILD_TAG
|
|
||||||
# FEDORA_X86_64_BUILD_TAG
|
|
||||||
# KERNEL_ROOTFS_TAG
|
|
||||||
|
|
||||||
MOLD_VERSION="2.4.1"
|
|
||||||
|
|
||||||
git clone -b v"$MOLD_VERSION" --single-branch --depth 1 https://github.com/rui314/mold.git
|
git clone -b v"$MOLD_VERSION" --single-branch --depth 1 https://github.com/rui314/mold.git
|
||||||
pushd mold
|
pushd mold
|
||||||
|
@@ -1,25 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# When changing this file, you need to bump the following
|
|
||||||
# .gitlab-ci/image-tags.yml tags:
|
|
||||||
# DEBIAN_X86_64_TEST_GL_TAG
|
|
||||||
|
|
||||||
set -ex -o pipefail
|
|
||||||
|
|
||||||
### Careful editing anything below this line
|
|
||||||
|
|
||||||
git config --global user.email "mesa@example.com"
|
|
||||||
git config --global user.name "Mesa CI"
|
|
||||||
git clone https://github.com/axeldavy/Xnine.git /Xnine
|
|
||||||
mkdir /Xnine/build
|
|
||||||
pushd /Xnine/build
|
|
||||||
git checkout c64753d224c08006bcdcfa7880ada826f27164b1
|
|
||||||
|
|
||||||
cmake .. -DBUILD_TESTS=1 -DWITH_DRI3=1 -DD3DADAPTER9_LOCATION=/install/lib/d3d/d3dadapter9.so
|
|
||||||
make
|
|
||||||
|
|
||||||
mkdir -p /NineTests/
|
|
||||||
mv NineTests/NineTests /NineTests/
|
|
||||||
|
|
||||||
popd
|
|
||||||
rm -rf /Xnine
|
|
@@ -1,14 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# shellcheck disable=SC2086 # we want word splitting
|
# shellcheck disable=SC2086 # we want word splitting
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
# When changing this file, you need to bump the following
|
REV="5036601c43fff63f7be5cd8ad7b319a5c1f6652c"
|
||||||
# .gitlab-ci/image-tags.yml tags:
|
|
||||||
# DEBIAN_X86_64_TEST_GL_TAG
|
|
||||||
# DEBIAN_X86_64_TEST_VK_TAG
|
|
||||||
# KERNEL_ROOTFS_TAG
|
|
||||||
|
|
||||||
REV="f7ece74a107a2f99b2f494d978c84f8d51faa703"
|
|
||||||
|
|
||||||
git clone https://gitlab.freedesktop.org/mesa/piglit.git --single-branch --no-checkout /piglit
|
git clone https://gitlab.freedesktop.org/mesa/piglit.git --single-branch --no-checkout /piglit
|
||||||
pushd /piglit
|
pushd /piglit
|
||||||
@@ -16,18 +11,18 @@ git checkout "$REV"
|
|||||||
patch -p1 <$OLDPWD/.gitlab-ci/piglit/disable-vs_in.diff
|
patch -p1 <$OLDPWD/.gitlab-ci/piglit/disable-vs_in.diff
|
||||||
cmake -S . -B . -G Ninja -DCMAKE_BUILD_TYPE=Release $PIGLIT_OPTS $EXTRA_CMAKE_ARGS
|
cmake -S . -B . -G Ninja -DCMAKE_BUILD_TYPE=Release $PIGLIT_OPTS $EXTRA_CMAKE_ARGS
|
||||||
ninja $PIGLIT_BUILD_TARGETS
|
ninja $PIGLIT_BUILD_TARGETS
|
||||||
find . -depth \( -name .git -o -name '*ninja*' -o -iname '*cmake*' -o -name '*.[chao]' \) -exec rm -rf {} \;
|
# shellcheck disable=SC2038,SC2185 # TODO: rewrite find
|
||||||
|
find -name .git -o -name '*ninja*' -o -iname '*cmake*' -o -name '*.[chao]' | xargs rm -rf
|
||||||
rm -rf target_api
|
rm -rf target_api
|
||||||
if [ "$PIGLIT_BUILD_TARGETS" = "piglit_replayer" ]; then
|
if [ "$PIGLIT_BUILD_TARGETS" = "piglit_replayer" ]; then
|
||||||
find . -depth \
|
# shellcheck disable=SC2038,SC2185 # TODO: rewrite find
|
||||||
! -regex "^\.$" \
|
find ! -regex "^\.$" \
|
||||||
! -regex "^\.\/piglit.*" \
|
! -regex "^\.\/piglit.*" \
|
||||||
! -regex "^\.\/framework.*" \
|
! -regex "^\.\/framework.*" \
|
||||||
! -regex "^\.\/bin$" \
|
! -regex "^\.\/bin$" \
|
||||||
! -regex "^\.\/bin\/replayer\.py" \
|
! -regex "^\.\/bin\/replayer\.py" \
|
||||||
! -regex "^\.\/templates.*" \
|
! -regex "^\.\/templates.*" \
|
||||||
! -regex "^\.\/tests$" \
|
! -regex "^\.\/tests$" \
|
||||||
! -regex "^\.\/tests\/replay\.py" \
|
! -regex "^\.\/tests\/replay\.py" 2>/dev/null | xargs rm -rf
|
||||||
-exec rm -rf {} \; 2>/dev/null
|
|
||||||
fi
|
fi
|
||||||
popd
|
popd
|
||||||
|
@@ -11,11 +11,11 @@ set -ex
|
|||||||
mkdir -p "$HOME"/.cargo
|
mkdir -p "$HOME"/.cargo
|
||||||
ln -s /usr/local/bin "$HOME"/.cargo/bin
|
ln -s /usr/local/bin "$HOME"/.cargo/bin
|
||||||
|
|
||||||
# Rusticl requires at least Rust 1.66.0 and NAK requires 1.73.0
|
# Rusticl requires at least Rust 1.60.0
|
||||||
#
|
#
|
||||||
# Also, pick a specific snapshot from rustup so the compiler doesn't drift on
|
# Also, pick a specific snapshot from rustup so the compiler doesn't drift on
|
||||||
# us.
|
# us.
|
||||||
RUST_VERSION=1.73.0-2023-10-05
|
RUST_VERSION=1.60.0-2022-04-07
|
||||||
|
|
||||||
# For rust in Mesa, we use rustup to install. This lets us pick an arbitrary
|
# 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
|
# version of the compiler, rather than whatever the container's Debian comes
|
||||||
|
@@ -1,14 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# When changing this file, you need to bump the following
|
|
||||||
# .gitlab-ci/image-tags.yml tags:
|
|
||||||
# DEBIAN_BUILD_TAG
|
|
||||||
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
pushd /usr/local
|
|
||||||
git clone https://gitlab.freedesktop.org/mesa/shader-db.git --depth 1
|
|
||||||
rm -rf shader-db/.git
|
|
||||||
cd shader-db
|
|
||||||
make
|
|
||||||
popd
|
|
@@ -6,7 +6,7 @@
|
|||||||
# KERNEL_ROOTFS_TAG
|
# KERNEL_ROOTFS_TAG
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
VKD3D_PROTON_COMMIT="c3b385606a93baed42482d822805e0d9c2f3f603"
|
VKD3D_PROTON_COMMIT="6365efeba253807beecaed0eaa963295522c6b70"
|
||||||
|
|
||||||
VKD3D_PROTON_DST_DIR="/vkd3d-proton-tests"
|
VKD3D_PROTON_DST_DIR="/vkd3d-proton-tests"
|
||||||
VKD3D_PROTON_SRC_DIR="/vkd3d-proton-src"
|
VKD3D_PROTON_SRC_DIR="/vkd3d-proton-src"
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
VALIDATION_TAG="v1.3.281"
|
VALIDATION_TAG="v1.3.251"
|
||||||
|
|
||||||
git clone -b "$VALIDATION_TAG" --single-branch --depth 1 https://github.com/KhronosGroup/Vulkan-ValidationLayers.git
|
git clone -b "$VALIDATION_TAG" --single-branch --depth 1 https://github.com/KhronosGroup/Vulkan-ValidationLayers.git
|
||||||
pushd Vulkan-ValidationLayers
|
pushd Vulkan-ValidationLayers
|
||||||
|
@@ -3,17 +3,8 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
# When changing this file, you need to bump the following
|
|
||||||
# .gitlab-ci/image-tags.yml tags:
|
|
||||||
# DEBIAN_BUILD_TAG
|
|
||||||
# DEBIAN_X86_64_TEST_ANDROID_TAG
|
|
||||||
# DEBIAN_X86_64_TEST_GL_TAG
|
|
||||||
# DEBIAN_X86_64_TEST_VK_TAG
|
|
||||||
# FEDORA_X86_64_BUILD_TAG
|
|
||||||
# KERNEL_ROOTFS_TAG
|
|
||||||
|
|
||||||
export LIBWAYLAND_VERSION="1.21.0"
|
export LIBWAYLAND_VERSION="1.21.0"
|
||||||
export WAYLAND_PROTOCOLS_VERSION="1.34"
|
export WAYLAND_PROTOCOLS_VERSION="1.31"
|
||||||
|
|
||||||
git clone https://gitlab.freedesktop.org/wayland/wayland
|
git clone https://gitlab.freedesktop.org/wayland/wayland
|
||||||
cd wayland
|
cd wayland
|
||||||
|
@@ -1,12 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/bin/sh
|
||||||
|
|
||||||
if test -f /etc/debian_version; then
|
if test -f /etc/debian_version; then
|
||||||
apt-get autoremove -y --purge
|
apt-get autoremove -y --purge
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Clean up any build cache
|
# Clean up any build cache for rust.
|
||||||
rm -rf /root/.cache
|
|
||||||
rm -rf /root/.cargo
|
|
||||||
rm -rf /.cargo
|
rm -rf /.cargo
|
||||||
|
|
||||||
if test -x /usr/bin/ccache; then
|
if test -x /usr/bin/ccache; then
|
||||||
|
@@ -25,7 +25,7 @@ fi
|
|||||||
|
|
||||||
# When not using the mold linker (e.g. unsupported architecture), force
|
# When not using the mold linker (e.g. unsupported architecture), force
|
||||||
# linkers to gold, since it's so much faster for building. We can't use
|
# linkers to gold, since it's so much faster for building. We can't use
|
||||||
# lld because we're on old debian and it's buggy. mingw fails meson builds
|
# lld because we're on old debian and it's buggy. ming fails meson builds
|
||||||
# with it with "meson.build:21:0: ERROR: Unable to determine dynamic linker"
|
# with it with "meson.build:21:0: ERROR: Unable to determine dynamic linker"
|
||||||
find /usr/bin -name \*-ld -o -name ld | \
|
find /usr/bin -name \*-ld -o -name ld | \
|
||||||
grep -v mingw | \
|
grep -v mingw | \
|
||||||
|
@@ -8,62 +8,55 @@ export DEBIAN_FRONTEND=noninteractive
|
|||||||
export LLVM_VERSION="${LLVM_VERSION:=15}"
|
export LLVM_VERSION="${LLVM_VERSION:=15}"
|
||||||
|
|
||||||
# Ephemeral packages (installed for this script and removed again at the end)
|
# Ephemeral packages (installed for this script and removed again at the end)
|
||||||
EPHEMERAL=(
|
STABLE_EPHEMERAL=" \
|
||||||
)
|
"
|
||||||
|
|
||||||
DEPS=(
|
|
||||||
"crossbuild-essential-$arch"
|
|
||||||
"pkgconf:$arch"
|
|
||||||
"libasan8:$arch"
|
|
||||||
"libdrm-dev:$arch"
|
|
||||||
"libelf-dev:$arch"
|
|
||||||
"libexpat1-dev:$arch"
|
|
||||||
"libffi-dev:$arch"
|
|
||||||
"libpciaccess-dev:$arch"
|
|
||||||
"libstdc++6:$arch"
|
|
||||||
"libvulkan-dev:$arch"
|
|
||||||
"libx11-dev:$arch"
|
|
||||||
"libx11-xcb-dev:$arch"
|
|
||||||
"libxcb-dri2-0-dev:$arch"
|
|
||||||
"libxcb-dri3-dev:$arch"
|
|
||||||
"libxcb-glx0-dev:$arch"
|
|
||||||
"libxcb-present-dev:$arch"
|
|
||||||
"libxcb-randr0-dev:$arch"
|
|
||||||
"libxcb-shm0-dev:$arch"
|
|
||||||
"libxcb-xfixes0-dev:$arch"
|
|
||||||
"libxdamage-dev:$arch"
|
|
||||||
"libxext-dev:$arch"
|
|
||||||
"libxrandr-dev:$arch"
|
|
||||||
"libxshmfence-dev:$arch"
|
|
||||||
"libxxf86vm-dev:$arch"
|
|
||||||
"libwayland-dev:$arch"
|
|
||||||
)
|
|
||||||
|
|
||||||
dpkg --add-architecture $arch
|
dpkg --add-architecture $arch
|
||||||
|
|
||||||
echo "deb [trusted=yes] https://gitlab.freedesktop.org/gfx-ci/ci-deb-repo/-/raw/${PKG_REPO_REV}/ ${FDO_DISTRIBUTION_VERSION%-*} main" | tee /etc/apt/sources.list.d/gfx-ci_.list
|
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
apt-get install -y --no-remove "${DEPS[@]}" "${EPHEMERAL[@]}" \
|
apt-get install -y --no-remove \
|
||||||
$EXTRA_LOCAL_PACKAGES
|
$STABLE_EPHEMERAL \
|
||||||
|
crossbuild-essential-$arch \
|
||||||
|
pkgconf:$arch \
|
||||||
|
libasan8:$arch \
|
||||||
|
libdrm-dev:$arch \
|
||||||
|
libelf-dev:$arch \
|
||||||
|
libexpat1-dev:$arch \
|
||||||
|
libffi-dev:$arch \
|
||||||
|
libpciaccess-dev:$arch \
|
||||||
|
libstdc++6:$arch \
|
||||||
|
libvulkan-dev:$arch \
|
||||||
|
libx11-dev:$arch \
|
||||||
|
libx11-xcb-dev:$arch \
|
||||||
|
libxcb-dri2-0-dev:$arch \
|
||||||
|
libxcb-dri3-dev:$arch \
|
||||||
|
libxcb-glx0-dev:$arch \
|
||||||
|
libxcb-present-dev:$arch \
|
||||||
|
libxcb-randr0-dev:$arch \
|
||||||
|
libxcb-shm0-dev:$arch \
|
||||||
|
libxcb-xfixes0-dev:$arch \
|
||||||
|
libxdamage-dev:$arch \
|
||||||
|
libxext-dev:$arch \
|
||||||
|
libxrandr-dev:$arch \
|
||||||
|
libxshmfence-dev:$arch \
|
||||||
|
libxxf86vm-dev:$arch \
|
||||||
|
libwayland-dev:$arch
|
||||||
|
|
||||||
if [[ $arch != "armhf" ]]; then
|
if [[ $arch != "armhf" ]]; then
|
||||||
# We don't need clang-format for the crossbuilds, but the installed amd64
|
# We don't need clang-format for the crossbuilds, but the installed amd64
|
||||||
# package will conflict with libclang. Uninstall clang-format (and its
|
# package will conflict with libclang. Uninstall clang-format (and its
|
||||||
# problematic dependency) to fix.
|
# problematic dependency) to fix.
|
||||||
apt-get remove -y "clang-format-${LLVM_VERSION}" "libclang-cpp${LLVM_VERSION}" \
|
apt-get remove -y clang-format-${LLVM_VERSION} libclang-cpp${LLVM_VERSION}
|
||||||
"llvm-${LLVM_VERSION}-runtime" "llvm-${LLVM_VERSION}-linker-tools"
|
|
||||||
|
|
||||||
# llvm-*-tools:$arch conflicts with python3:amd64. Install dependencies only
|
# llvm-*-tools:$arch conflicts with python3:amd64. Install dependencies only
|
||||||
# with apt-get, then force-install llvm-*-{dev,tools}:$arch with dpkg to get
|
# with apt-get, then force-install llvm-*-{dev,tools}:$arch with dpkg to get
|
||||||
# around this.
|
# around this.
|
||||||
apt-get install -y --no-remove --no-install-recommends \
|
apt-get install -y --no-remove --no-install-recommends \
|
||||||
"libclang-cpp${LLVM_VERSION}:$arch" \
|
libclang-cpp${LLVM_VERSION}:$arch \
|
||||||
"libgcc-s1:$arch" \
|
libgcc-s1:$arch \
|
||||||
"libtinfo-dev:$arch" \
|
libtinfo-dev:$arch \
|
||||||
"libz3-dev:$arch" \
|
libz3-dev:$arch \
|
||||||
"llvm-${LLVM_VERSION}:$arch" \
|
llvm-${LLVM_VERSION}:$arch \
|
||||||
zlib1g
|
zlib1g
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -74,19 +67,19 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
# dependencies where we want a specific version
|
# dependencies where we want a specific version
|
||||||
MULTIARCH_PATH=$(dpkg-architecture -A $arch -qDEB_TARGET_MULTIARCH)
|
EXTRA_MESON_ARGS="--cross-file=/cross_file-${arch}.txt -D libdir=lib/$(dpkg-architecture -A $arch -qDEB_TARGET_MULTIARCH)"
|
||||||
export EXTRA_MESON_ARGS="--cross-file=/cross_file-${arch}.txt -D libdir=lib/${MULTIARCH_PATH}"
|
. .gitlab-ci/container/build-libdrm.sh
|
||||||
|
|
||||||
. .gitlab-ci/container/build-wayland.sh
|
. .gitlab-ci/container/build-wayland.sh
|
||||||
|
|
||||||
. .gitlab-ci/container/build-directx-headers.sh
|
apt-get purge -y \
|
||||||
|
$STABLE_EPHEMERAL
|
||||||
apt-get purge -y "${EPHEMERAL[@]}"
|
|
||||||
|
|
||||||
. .gitlab-ci/container/container_post_build.sh
|
. .gitlab-ci/container/container_post_build.sh
|
||||||
|
|
||||||
# This needs to be done after container_post_build.sh, or apt-get breaks in there
|
# This needs to be done after container_post_build.sh, or apt-get breaks in there
|
||||||
if [[ $arch != "armhf" ]]; then
|
if [[ $arch != "armhf" ]]; then
|
||||||
apt-get download llvm-"${LLVM_VERSION}"-{dev,tools}:"$arch"
|
apt-get download llvm-${LLVM_VERSION}-{dev,tools}:$arch
|
||||||
dpkg -i --force-depends llvm-"${LLVM_VERSION}"-*_"${arch}".deb
|
dpkg -i --force-depends llvm-${LLVM_VERSION}-*_${arch}.deb
|
||||||
rm llvm-"${LLVM_VERSION}"-*_"${arch}".deb
|
rm llvm-${LLVM_VERSION}-*_${arch}.deb
|
||||||
fi
|
fi
|
||||||
|
@@ -1,19 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# shellcheck disable=SC2086 # we want word splitting
|
# shellcheck disable=SC2086 # we want word splitting
|
||||||
|
|
||||||
# When changing this file, you need to bump the following
|
|
||||||
# .gitlab-ci/image-tags.yml tags:
|
|
||||||
# DEBIAN_BUILD_TAG
|
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
EPHEMERAL=(
|
EPHEMERAL="\
|
||||||
autoconf
|
autoconf \
|
||||||
rdfind
|
rdfind \
|
||||||
unzip
|
unzip \
|
||||||
)
|
"
|
||||||
|
|
||||||
apt-get install -y --no-remove "${EPHEMERAL[@]}"
|
apt-get install -y --no-remove $EPHEMERAL
|
||||||
|
|
||||||
# Fetch the NDK and extract just the toolchain we want.
|
# Fetch the NDK and extract just the toolchain we want.
|
||||||
ndk=$ANDROID_NDK
|
ndk=$ANDROID_NDK
|
||||||
@@ -25,7 +21,7 @@ rm $ndk.zip
|
|||||||
# duplicate files. Turn them into hardlinks to save on container space.
|
# duplicate files. Turn them into hardlinks to save on container space.
|
||||||
rdfind -makehardlinks true -makeresultsfile false /${ndk}/
|
rdfind -makehardlinks true -makeresultsfile false /${ndk}/
|
||||||
# Drop some large tools we won't use in this build.
|
# Drop some large tools we won't use in this build.
|
||||||
find /${ndk}/ -type f \( -iname '*clang-check*' -o -iname '*clang-tidy*' -o -iname '*lldb*' \) -exec rm -f {} \;
|
find /${ndk}/ -type f | grep -E -i "clang-check|clang-tidy|lldb" | xargs rm -f
|
||||||
|
|
||||||
sh .gitlab-ci/container/create-android-ndk-pc.sh /$ndk zlib.pc "" "-lz" "1.2.3" $ANDROID_SDK_VERSION
|
sh .gitlab-ci/container/create-android-ndk-pc.sh /$ndk zlib.pc "" "-lz" "1.2.3" $ANDROID_SDK_VERSION
|
||||||
|
|
||||||
@@ -34,13 +30,33 @@ sh .gitlab-ci/container/create-android-cross-file.sh /$ndk i686-linux-android x8
|
|||||||
sh .gitlab-ci/container/create-android-cross-file.sh /$ndk aarch64-linux-android aarch64 armv8 $ANDROID_SDK_VERSION
|
sh .gitlab-ci/container/create-android-cross-file.sh /$ndk aarch64-linux-android aarch64 armv8 $ANDROID_SDK_VERSION
|
||||||
sh .gitlab-ci/container/create-android-cross-file.sh /$ndk arm-linux-androideabi arm armv7hl $ANDROID_SDK_VERSION armv7a-linux-androideabi
|
sh .gitlab-ci/container/create-android-cross-file.sh /$ndk arm-linux-androideabi arm armv7hl $ANDROID_SDK_VERSION armv7a-linux-androideabi
|
||||||
|
|
||||||
|
# Not using build-libdrm.sh because we don't want its cleanup after building
|
||||||
|
# each arch. Fetch and extract now.
|
||||||
|
export LIBDRM_VERSION=libdrm-2.4.114
|
||||||
|
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
||||||
|
-O https://dri.freedesktop.org/libdrm/$LIBDRM_VERSION.tar.xz
|
||||||
|
tar -xf $LIBDRM_VERSION.tar.xz && rm $LIBDRM_VERSION.tar.xz
|
||||||
|
|
||||||
for arch in \
|
for arch in \
|
||||||
x86_64-linux-android \
|
x86_64-linux-android \
|
||||||
i686-linux-android \
|
i686-linux-android \
|
||||||
aarch64-linux-android \
|
aarch64-linux-android \
|
||||||
arm-linux-androideabi ; do
|
arm-linux-androideabi ; do
|
||||||
EXTRA_MESON_ARGS="--cross-file=/cross_file-$arch.txt --libdir=lib/$arch -Dnouveau=disabled -Dintel=disabled" \
|
|
||||||
. .gitlab-ci/container/build-libdrm.sh
|
cd $LIBDRM_VERSION
|
||||||
|
rm -rf build-$arch
|
||||||
|
meson setup build-$arch \
|
||||||
|
--cross-file=/cross_file-$arch.txt \
|
||||||
|
--libdir=lib/$arch \
|
||||||
|
-Dnouveau=disabled \
|
||||||
|
-Dvc4=disabled \
|
||||||
|
-Detnaviv=disabled \
|
||||||
|
-Dfreedreno=disabled \
|
||||||
|
-Dintel=disabled \
|
||||||
|
-Dcairo-tests=disabled \
|
||||||
|
-Dvalgrind=disabled
|
||||||
|
meson install -C build-$arch
|
||||||
|
cd ..
|
||||||
done
|
done
|
||||||
|
|
||||||
rm -rf $LIBDRM_VERSION
|
rm -rf $LIBDRM_VERSION
|
||||||
@@ -90,4 +106,4 @@ done
|
|||||||
cd ..
|
cd ..
|
||||||
rm -rf $LIBELF_VERSION
|
rm -rf $LIBELF_VERSION
|
||||||
|
|
||||||
apt-get purge -y "${EPHEMERAL[@]}"
|
apt-get purge -y $EPHEMERAL
|
||||||
|
@@ -8,72 +8,67 @@ export LLVM_VERSION="${LLVM_VERSION:=15}"
|
|||||||
|
|
||||||
apt-get -y install ca-certificates
|
apt-get -y install ca-certificates
|
||||||
sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list.d/*
|
sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list.d/*
|
||||||
echo "deb [trusted=yes] https://gitlab.freedesktop.org/gfx-ci/ci-deb-repo/-/raw/${PKG_REPO_REV}/ ${FDO_DISTRIBUTION_VERSION%-*} main" | tee /etc/apt/sources.list.d/gfx-ci_.list
|
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
# Ephemeral packages (installed for this script and removed again at the end)
|
# Ephemeral packages (installed for this script and removed again at
|
||||||
EPHEMERAL=(
|
# the end)
|
||||||
libssl-dev
|
STABLE_EPHEMERAL=" \
|
||||||
)
|
libssl-dev \
|
||||||
|
"
|
||||||
|
|
||||||
DEPS=(
|
apt-get -y install \
|
||||||
apt-utils
|
${STABLE_EPHEMERAL} \
|
||||||
android-libext4-utils
|
apt-utils \
|
||||||
autoconf
|
android-libext4-utils \
|
||||||
automake
|
autoconf \
|
||||||
bc
|
automake \
|
||||||
bison
|
bc \
|
||||||
ccache
|
bison \
|
||||||
cmake
|
ccache \
|
||||||
curl
|
cmake \
|
||||||
fastboot
|
curl \
|
||||||
flatbuffers-compiler
|
debootstrap \
|
||||||
flex
|
fastboot \
|
||||||
g++
|
flex \
|
||||||
git
|
g++ \
|
||||||
glslang-tools
|
git \
|
||||||
kmod
|
glslang-tools \
|
||||||
libasan8
|
kmod \
|
||||||
libdrm-dev
|
libasan8 \
|
||||||
libelf-dev
|
libdrm-dev \
|
||||||
libexpat1-dev
|
libelf-dev \
|
||||||
libflatbuffers-dev
|
libexpat1-dev \
|
||||||
libvulkan-dev
|
libvulkan-dev \
|
||||||
libx11-dev
|
libx11-dev \
|
||||||
libx11-xcb-dev
|
libx11-xcb-dev \
|
||||||
libxcb-dri2-0-dev
|
libxcb-dri2-0-dev \
|
||||||
libxcb-dri3-dev
|
libxcb-dri3-dev \
|
||||||
libxcb-glx0-dev
|
libxcb-glx0-dev \
|
||||||
libxcb-present-dev
|
libxcb-present-dev \
|
||||||
libxcb-randr0-dev
|
libxcb-randr0-dev \
|
||||||
libxcb-shm0-dev
|
libxcb-shm0-dev \
|
||||||
libxcb-xfixes0-dev
|
libxcb-xfixes0-dev \
|
||||||
libxdamage-dev
|
libxdamage-dev \
|
||||||
libxext-dev
|
libxext-dev \
|
||||||
libxrandr-dev
|
libxrandr-dev \
|
||||||
libxshmfence-dev
|
libxshmfence-dev \
|
||||||
libxtensor-dev
|
libxxf86vm-dev \
|
||||||
libxxf86vm-dev
|
libwayland-dev \
|
||||||
libwayland-dev
|
libwayland-egl-backend-dev \
|
||||||
libwayland-egl-backend-dev
|
llvm-${LLVM_VERSION}-dev \
|
||||||
"llvm-${LLVM_VERSION}-dev"
|
ninja-build \
|
||||||
ninja-build
|
meson \
|
||||||
meson
|
openssh-server \
|
||||||
openssh-server
|
pkgconf \
|
||||||
pkgconf
|
python3-mako \
|
||||||
python3-mako
|
python3-pil \
|
||||||
python3-pil
|
python3-pip \
|
||||||
python3-pip
|
python3-requests \
|
||||||
python3-pycparser
|
python3-setuptools \
|
||||||
python3-requests
|
u-boot-tools \
|
||||||
python3-setuptools
|
xz-utils \
|
||||||
u-boot-tools
|
zlib1g-dev \
|
||||||
xz-utils
|
|
||||||
zlib1g-dev
|
|
||||||
zstd
|
zstd
|
||||||
)
|
|
||||||
|
|
||||||
apt-get -y install "${DEPS[@]}" "${EPHEMERAL[@]}"
|
|
||||||
|
|
||||||
pip3 install --break-system-packages git+http://gitlab.freedesktop.org/freedesktop/ci-templates@ffe4d1b10aab7534489f0c4bbc4c5899df17d3f2
|
pip3 install --break-system-packages git+http://gitlab.freedesktop.org/freedesktop/ci-templates@ffe4d1b10aab7534489f0c4bbc4c5899df17d3f2
|
||||||
|
|
||||||
@@ -86,6 +81,6 @@ arch=armhf
|
|||||||
|
|
||||||
. .gitlab-ci/container/build-wayland.sh
|
. .gitlab-ci/container/build-wayland.sh
|
||||||
|
|
||||||
apt-get purge -y "${EPHEMERAL[@]}"
|
apt-get purge -y $STABLE_EPHEMERAL
|
||||||
|
|
||||||
. .gitlab-ci/container/container_post_build.sh
|
. .gitlab-ci/container/container_post_build.sh
|
||||||
|
@@ -9,29 +9,23 @@ set -e
|
|||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
############### Install packages for baremetal testing
|
############### Install packages for baremetal testing
|
||||||
DEPS=(
|
|
||||||
cpio
|
|
||||||
curl
|
|
||||||
fastboot
|
|
||||||
netcat-openbsd
|
|
||||||
openssh-server
|
|
||||||
procps
|
|
||||||
python3-distutils
|
|
||||||
python3-filelock
|
|
||||||
python3-fire
|
|
||||||
python3-minimal
|
|
||||||
python3-serial
|
|
||||||
rsync
|
|
||||||
snmp
|
|
||||||
zstd
|
|
||||||
)
|
|
||||||
|
|
||||||
apt-get install -y ca-certificates
|
apt-get install -y ca-certificates
|
||||||
sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list.d/*
|
sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list.d/*
|
||||||
echo "deb [trusted=yes] https://gitlab.freedesktop.org/gfx-ci/ci-deb-repo/-/raw/${PKG_REPO_REV}/ ${FDO_DISTRIBUTION_VERSION%-*} main" | tee /etc/apt/sources.list.d/gfx-ci_.list
|
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
apt-get install -y --no-remove "${DEPS[@]}"
|
apt-get install -y --no-remove \
|
||||||
|
cpio \
|
||||||
|
curl \
|
||||||
|
fastboot \
|
||||||
|
netcat-openbsd \
|
||||||
|
openssh-server \
|
||||||
|
procps \
|
||||||
|
python3-distutils \
|
||||||
|
python3-minimal \
|
||||||
|
python3-serial \
|
||||||
|
rsync \
|
||||||
|
snmp \
|
||||||
|
zstd
|
||||||
|
|
||||||
# setup SNMPv2 SMI MIB
|
# setup SNMPv2 SMI MIB
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/bin/bash
|
||||||
|
|
||||||
arch=ppc64el
|
arch=ppc64el
|
||||||
|
|
||||||
|
@@ -1,18 +1,16 @@
|
|||||||
#!/usr/bin/env bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
arch=s390x
|
arch=s390x
|
||||||
|
|
||||||
# Ephemeral packages (installed for this script and removed again at the end)
|
# Ephemeral packages (installed for this script and removed again at the end)
|
||||||
EPHEMERAL=(
|
STABLE_EPHEMERAL="libssl-dev"
|
||||||
libssl-dev
|
|
||||||
)
|
|
||||||
|
|
||||||
apt-get -y install "${EPHEMERAL[@]}"
|
apt-get -y install "$STABLE_EPHEMERAL"
|
||||||
|
|
||||||
. .gitlab-ci/container/build-mold.sh
|
. .gitlab-ci/container/build-mold.sh
|
||||||
|
|
||||||
apt-get purge -y "${EPHEMERAL[@]}"
|
apt-get purge -y "$STABLE_EPHEMERAL"
|
||||||
|
|
||||||
. .gitlab-ci/container/cross_build.sh
|
. .gitlab-ci/container/cross_build.sh
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/bin/bash
|
||||||
|
|
||||||
arch=i386
|
arch=i386
|
||||||
|
|
||||||
|
15
.gitlab-ci/container/debian/x86_64_build-base-wine.sh
Normal file
15
.gitlab-ci/container/debian/x86_64_build-base-wine.sh
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -o xtrace
|
||||||
|
|
||||||
|
# Installing wine, need this for testing mingw or nine
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y --no-remove \
|
||||||
|
wine \
|
||||||
|
wine64 \
|
||||||
|
xvfb
|
||||||
|
|
||||||
|
# Used to initialize the Wine environment to reduce build time
|
||||||
|
wine wineboot.exe --init
|
@@ -1,10 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/bin/bash
|
||||||
# shellcheck disable=SC2086 # we want word splitting
|
# shellcheck disable=SC2086 # we want word splitting
|
||||||
|
|
||||||
# When changing this file, you need to bump the following
|
|
||||||
# .gitlab-ci/image-tags.yml tags:
|
|
||||||
# DEBIAN_BUILD_TAG
|
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
@@ -13,95 +9,82 @@ export LLVM_VERSION="${LLVM_VERSION:=15}"
|
|||||||
|
|
||||||
apt-get install -y ca-certificates
|
apt-get install -y ca-certificates
|
||||||
sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list.d/*
|
sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list.d/*
|
||||||
echo "deb [trusted=yes] https://gitlab.freedesktop.org/gfx-ci/ci-deb-repo/-/raw/${PKG_REPO_REV}/ ${FDO_DISTRIBUTION_VERSION%-*} main" | tee /etc/apt/sources.list.d/gfx-ci_.list
|
|
||||||
|
|
||||||
# Ephemeral packages (installed for this script and removed again at
|
# Ephemeral packages (installed for this script and removed again at
|
||||||
# the end)
|
# the end)
|
||||||
EPHEMERAL=(
|
STABLE_EPHEMERAL=" \
|
||||||
)
|
"
|
||||||
|
|
||||||
DEPS=(
|
|
||||||
apt-utils
|
|
||||||
bison
|
|
||||||
ccache
|
|
||||||
curl
|
|
||||||
"clang-${LLVM_VERSION}"
|
|
||||||
"clang-format-${LLVM_VERSION}"
|
|
||||||
dpkg-cross
|
|
||||||
findutils
|
|
||||||
flex
|
|
||||||
flatbuffers-compiler
|
|
||||||
g++
|
|
||||||
cmake
|
|
||||||
gcc
|
|
||||||
git
|
|
||||||
glslang-tools
|
|
||||||
kmod
|
|
||||||
"libclang-${LLVM_VERSION}-dev"
|
|
||||||
"libclang-cpp${LLVM_VERSION}-dev"
|
|
||||||
"libclang-common-${LLVM_VERSION}-dev"
|
|
||||||
libelf-dev
|
|
||||||
libepoxy-dev
|
|
||||||
libexpat1-dev
|
|
||||||
libflatbuffers-dev
|
|
||||||
libgtk-3-dev
|
|
||||||
"libllvm${LLVM_VERSION}"
|
|
||||||
libomxil-bellagio-dev
|
|
||||||
libpciaccess-dev
|
|
||||||
libunwind-dev
|
|
||||||
libva-dev
|
|
||||||
libvdpau-dev
|
|
||||||
libvulkan-dev
|
|
||||||
libx11-dev
|
|
||||||
libx11-xcb-dev
|
|
||||||
libxext-dev
|
|
||||||
libxml2-utils
|
|
||||||
libxrandr-dev
|
|
||||||
libxrender-dev
|
|
||||||
libxshmfence-dev
|
|
||||||
libxtensor-dev
|
|
||||||
libxxf86vm-dev
|
|
||||||
libwayland-egl-backend-dev
|
|
||||||
make
|
|
||||||
ninja-build
|
|
||||||
openssh-server
|
|
||||||
pkgconf
|
|
||||||
python3-mako
|
|
||||||
python3-pil
|
|
||||||
python3-pip
|
|
||||||
python3-ply
|
|
||||||
python3-pycparser
|
|
||||||
python3-requests
|
|
||||||
python3-setuptools
|
|
||||||
qemu-user
|
|
||||||
valgrind
|
|
||||||
x11proto-dri2-dev
|
|
||||||
x11proto-gl-dev
|
|
||||||
x11proto-randr-dev
|
|
||||||
xz-utils
|
|
||||||
zlib1g-dev
|
|
||||||
zstd
|
|
||||||
)
|
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
apt-get install -y --no-remove "${DEPS[@]}" "${EPHEMERAL[@]}" \
|
apt-get install -y --no-remove \
|
||||||
$EXTRA_LOCAL_PACKAGES
|
$STABLE_EPHEMERAL \
|
||||||
|
apt-utils \
|
||||||
. .gitlab-ci/container/build-llvm-spirv.sh
|
bison \
|
||||||
|
ccache \
|
||||||
. .gitlab-ci/container/build-libclc.sh
|
curl \
|
||||||
|
clang-format-${LLVM_VERSION} \
|
||||||
|
dpkg-cross \
|
||||||
|
findutils \
|
||||||
|
flex \
|
||||||
|
g++ \
|
||||||
|
cmake \
|
||||||
|
gcc \
|
||||||
|
git \
|
||||||
|
glslang-tools \
|
||||||
|
kmod \
|
||||||
|
libclang-${LLVM_VERSION}-dev \
|
||||||
|
libclang-cpp${LLVM_VERSION}-dev \
|
||||||
|
libclang-common-${LLVM_VERSION}-dev \
|
||||||
|
libelf-dev \
|
||||||
|
libepoxy-dev \
|
||||||
|
libexpat1-dev \
|
||||||
|
libgtk-3-dev \
|
||||||
|
libllvm${LLVM_VERSION} \
|
||||||
|
libomxil-bellagio-dev \
|
||||||
|
libpciaccess-dev \
|
||||||
|
libunwind-dev \
|
||||||
|
libva-dev \
|
||||||
|
libvdpau-dev \
|
||||||
|
libvulkan-dev \
|
||||||
|
libx11-dev \
|
||||||
|
libx11-xcb-dev \
|
||||||
|
libxext-dev \
|
||||||
|
libxml2-utils \
|
||||||
|
libxrandr-dev \
|
||||||
|
libxrender-dev \
|
||||||
|
libxshmfence-dev \
|
||||||
|
libxxf86vm-dev \
|
||||||
|
libwayland-egl-backend-dev \
|
||||||
|
make \
|
||||||
|
meson \
|
||||||
|
ninja-build \
|
||||||
|
openssh-server \
|
||||||
|
pkgconf \
|
||||||
|
python3-mako \
|
||||||
|
python3-pil \
|
||||||
|
python3-pip \
|
||||||
|
python3-ply \
|
||||||
|
python3-requests \
|
||||||
|
python3-setuptools \
|
||||||
|
qemu-user \
|
||||||
|
valgrind \
|
||||||
|
x11proto-dri2-dev \
|
||||||
|
x11proto-gl-dev \
|
||||||
|
x11proto-randr-dev \
|
||||||
|
xz-utils \
|
||||||
|
zlib1g-dev \
|
||||||
|
zstd
|
||||||
|
|
||||||
# Needed for ci-fairy, this revision is able to upload files to S3
|
# Needed for ci-fairy, this revision is able to upload files to S3
|
||||||
pip3 install --break-system-packages git+http://gitlab.freedesktop.org/freedesktop/ci-templates@ffe4d1b10aab7534489f0c4bbc4c5899df17d3f2
|
pip3 install --break-system-packages git+http://gitlab.freedesktop.org/freedesktop/ci-templates@ffe4d1b10aab7534489f0c4bbc4c5899df17d3f2
|
||||||
|
|
||||||
# We need at least 1.3.1 for rusticl
|
|
||||||
pip3 install --break-system-packages 'meson==1.3.1'
|
|
||||||
|
|
||||||
. .gitlab-ci/container/build-rust.sh
|
. .gitlab-ci/container/build-rust.sh
|
||||||
|
|
||||||
|
. .gitlab-ci/container/debian/x86_64_build-base-wine.sh
|
||||||
|
|
||||||
############### Uninstall ephemeral packages
|
############### Uninstall ephemeral packages
|
||||||
|
|
||||||
apt-get purge -y "${EPHEMERAL[@]}"
|
apt-get purge -y $STABLE_EPHEMERAL
|
||||||
|
|
||||||
. .gitlab-ci/container/container_post_build.sh
|
. .gitlab-ci/container/container_post_build.sh
|
||||||
|
78
.gitlab-ci/container/debian/x86_64_build-mingw-patch.sh
Normal file
78
.gitlab-ci/container/debian/x86_64_build-mingw-patch.sh
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# shellcheck disable=SC2086 # we want word splitting
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Pull packages from msys2 repository that can be directly used.
|
||||||
|
# We can use https://packages.msys2.org/ to retrieve the newest package
|
||||||
|
mkdir ~/tmp
|
||||||
|
pushd ~/tmp
|
||||||
|
MINGW_PACKET_LIST="
|
||||||
|
mingw-w64-x86_64-headers-git-10.0.0.r14.ga08c638f8-1-any.pkg.tar.zst
|
||||||
|
mingw-w64-x86_64-vulkan-loader-1.3.211-1-any.pkg.tar.zst
|
||||||
|
mingw-w64-x86_64-libelf-0.8.13-6-any.pkg.tar.zst
|
||||||
|
mingw-w64-x86_64-zlib-1.2.12-1-any.pkg.tar.zst
|
||||||
|
mingw-w64-x86_64-zstd-1.5.2-2-any.pkg.tar.zst
|
||||||
|
"
|
||||||
|
|
||||||
|
for i in $MINGW_PACKET_LIST
|
||||||
|
do
|
||||||
|
curl -L -s --retry 4 -f --retry-all-errors --retry-delay 60 \
|
||||||
|
-O "https://mirror.msys2.org/mingw/mingw64/$i"
|
||||||
|
tar xf $i --strip-components=1 -C /usr/x86_64-w64-mingw32/
|
||||||
|
done
|
||||||
|
popd
|
||||||
|
rm -rf ~/tmp
|
||||||
|
|
||||||
|
mkdir -p /usr/x86_64-w64-mingw32/bin
|
||||||
|
|
||||||
|
# The output of `wine64 llvm-config --system-libs --cxxflags mcdisassembler`
|
||||||
|
# containes absolute path like '-IZ:'
|
||||||
|
# The sed is used to replace `-IZ:/usr/x86_64-w64-mingw32/include`
|
||||||
|
# to `-I/usr/x86_64-w64-mingw32/include`
|
||||||
|
|
||||||
|
# Debian's pkg-config wrapers for mingw are broken, and there's no sign that
|
||||||
|
# they're going to be fixed, so we'll just have to fix it ourselves
|
||||||
|
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930492
|
||||||
|
cat >/usr/x86_64-w64-mingw32/bin/pkg-config <<EOF
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
PKG_CONFIG_LIBDIR=/usr/x86_64-w64-mingw32/lib/pkgconfig:/usr/x86_64-w64-mingw32/share/pkgconfig pkg-config \$@
|
||||||
|
EOF
|
||||||
|
chmod +x /usr/x86_64-w64-mingw32/bin/pkg-config
|
||||||
|
|
||||||
|
cat >/usr/x86_64-w64-mingw32/bin/llvm-config <<EOF
|
||||||
|
#!/bin/sh
|
||||||
|
wine64 llvm-config \$@ | sed -e "s,Z:/,/,gi"
|
||||||
|
EOF
|
||||||
|
chmod +x /usr/x86_64-w64-mingw32/bin/llvm-config
|
||||||
|
|
||||||
|
cat >/usr/x86_64-w64-mingw32/bin/clang <<EOF
|
||||||
|
#!/bin/sh
|
||||||
|
wine64 clang \$@
|
||||||
|
EOF
|
||||||
|
chmod +x /usr/x86_64-w64-mingw32/bin/clang
|
||||||
|
|
||||||
|
cat >/usr/x86_64-w64-mingw32/bin/llvm-as <<EOF
|
||||||
|
#!/bin/sh
|
||||||
|
wine64 llvm-as \$@
|
||||||
|
EOF
|
||||||
|
chmod +x /usr/x86_64-w64-mingw32/bin/llvm-as
|
||||||
|
|
||||||
|
cat >/usr/x86_64-w64-mingw32/bin/llvm-link <<EOF
|
||||||
|
#!/bin/sh
|
||||||
|
wine64 llvm-link \$@
|
||||||
|
EOF
|
||||||
|
chmod +x /usr/x86_64-w64-mingw32/bin/llvm-link
|
||||||
|
|
||||||
|
cat >/usr/x86_64-w64-mingw32/bin/opt <<EOF
|
||||||
|
#!/bin/sh
|
||||||
|
wine64 opt \$@
|
||||||
|
EOF
|
||||||
|
chmod +x /usr/x86_64-w64-mingw32/bin/opt
|
||||||
|
|
||||||
|
cat >/usr/x86_64-w64-mingw32/bin/llvm-spirv <<EOF
|
||||||
|
#!/bin/sh
|
||||||
|
wine64 llvm-spirv \$@
|
||||||
|
EOF
|
||||||
|
chmod +x /usr/x86_64-w64-mingw32/bin/llvm-spirv
|
125
.gitlab-ci/container/debian/x86_64_build-mingw-source-deps.sh
Normal file
125
.gitlab-ci/container/debian/x86_64_build-mingw-source-deps.sh
Normal file
@@ -0,0 +1,125 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# shellcheck disable=SC2086 # we want word splitting
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Building libdrm (libva dependency)
|
||||||
|
. .gitlab-ci/container/build-libdrm.sh
|
||||||
|
|
||||||
|
wd=$PWD
|
||||||
|
CMAKE_TOOLCHAIN_MINGW_PATH=$wd/.gitlab-ci/container/debian/x86_mingw-toolchain.cmake
|
||||||
|
mkdir -p ~/tmp
|
||||||
|
pushd ~/tmp
|
||||||
|
|
||||||
|
# Building DirectX-Headers
|
||||||
|
git clone https://github.com/microsoft/DirectX-Headers -b v1.606.4 --depth 1
|
||||||
|
mkdir -p DirectX-Headers/build
|
||||||
|
pushd DirectX-Headers/build
|
||||||
|
meson .. \
|
||||||
|
--backend=ninja \
|
||||||
|
--buildtype=release -Dbuild-test=false \
|
||||||
|
-Dprefix=/usr/x86_64-w64-mingw32/ \
|
||||||
|
--cross-file=$wd/.gitlab-ci/x86_64-w64-mingw32
|
||||||
|
|
||||||
|
ninja install
|
||||||
|
popd
|
||||||
|
|
||||||
|
# Building libva
|
||||||
|
git clone https://github.com/intel/libva
|
||||||
|
pushd libva/
|
||||||
|
# libva-win32 is released with libva version 2.17 (see https://github.com/intel/libva/releases/tag/2.17.0)
|
||||||
|
git checkout 2.17.0
|
||||||
|
popd
|
||||||
|
# libva already has a build dir in their repo, use builddir instead
|
||||||
|
mkdir -p libva/builddir
|
||||||
|
pushd libva/builddir
|
||||||
|
meson .. \
|
||||||
|
--backend=ninja \
|
||||||
|
--buildtype=release \
|
||||||
|
-Dprefix=/usr/x86_64-w64-mingw32/ \
|
||||||
|
--cross-file=$wd/.gitlab-ci/x86_64-w64-mingw32
|
||||||
|
|
||||||
|
ninja install
|
||||||
|
popd
|
||||||
|
|
||||||
|
export VULKAN_SDK_VERSION=1.3.211.0
|
||||||
|
|
||||||
|
# Building SPIRV Tools
|
||||||
|
git clone -b sdk-$VULKAN_SDK_VERSION --depth=1 \
|
||||||
|
https://github.com/KhronosGroup/SPIRV-Tools SPIRV-Tools
|
||||||
|
|
||||||
|
git clone -b sdk-$VULKAN_SDK_VERSION --depth=1 \
|
||||||
|
https://github.com/KhronosGroup/SPIRV-Headers SPIRV-Tools/external/SPIRV-Headers
|
||||||
|
|
||||||
|
mkdir -p SPIRV-Tools/build
|
||||||
|
pushd SPIRV-Tools/build
|
||||||
|
cmake .. \
|
||||||
|
-DCMAKE_TOOLCHAIN_FILE=$CMAKE_TOOLCHAIN_MINGW_PATH \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr/x86_64-w64-mingw32/ \
|
||||||
|
-GNinja -DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DCMAKE_CROSSCOMPILING=1 \
|
||||||
|
-DCMAKE_POLICY_DEFAULT_CMP0091=NEW
|
||||||
|
|
||||||
|
ninja install
|
||||||
|
popd
|
||||||
|
|
||||||
|
# Building LLVM
|
||||||
|
git clone -b release/15.x --depth=1 \
|
||||||
|
https://github.com/llvm/llvm-project llvm-project
|
||||||
|
|
||||||
|
git clone -b v15.0.0 --depth=1 \
|
||||||
|
https://github.com/KhronosGroup/SPIRV-LLVM-Translator llvm-project/llvm/projects/SPIRV-LLVM-Translator
|
||||||
|
|
||||||
|
mkdir llvm-project/build
|
||||||
|
pushd llvm-project/build
|
||||||
|
cmake ../llvm \
|
||||||
|
-DCMAKE_TOOLCHAIN_FILE=$CMAKE_TOOLCHAIN_MINGW_PATH \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr/x86_64-w64-mingw32/ \
|
||||||
|
-GNinja -DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DCMAKE_CROSSCOMPILING=1 \
|
||||||
|
-DLLVM_ENABLE_RTTI=ON \
|
||||||
|
-DCROSS_TOOLCHAIN_FLAGS_NATIVE=-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=$PWD/../../SPIRV-Tools/external/SPIRV-Headers \
|
||||||
|
-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=$PWD/../../SPIRV-Tools/external/SPIRV-Headers \
|
||||||
|
-DLLVM_ENABLE_PROJECTS="clang" \
|
||||||
|
-DLLVM_TARGETS_TO_BUILD="AMDGPU;X86" \
|
||||||
|
-DLLVM_OPTIMIZED_TABLEGEN=TRUE \
|
||||||
|
-DLLVM_ENABLE_ASSERTIONS=TRUE \
|
||||||
|
-DLLVM_INCLUDE_UTILS=OFF \
|
||||||
|
-DLLVM_INCLUDE_RUNTIMES=OFF \
|
||||||
|
-DLLVM_INCLUDE_TESTS=OFF \
|
||||||
|
-DLLVM_INCLUDE_EXAMPLES=OFF \
|
||||||
|
-DLLVM_INCLUDE_GO_TESTS=OFF \
|
||||||
|
-DLLVM_INCLUDE_BENCHMARKS=OFF \
|
||||||
|
-DLLVM_BUILD_LLVM_C_DYLIB=OFF \
|
||||||
|
-DLLVM_ENABLE_DIA_SDK=OFF \
|
||||||
|
-DCLANG_BUILD_TOOLS=ON \
|
||||||
|
-DLLVM_SPIRV_INCLUDE_TESTS=OFF
|
||||||
|
|
||||||
|
ninja install
|
||||||
|
popd
|
||||||
|
|
||||||
|
# Building libclc
|
||||||
|
mkdir llvm-project/build-libclc
|
||||||
|
pushd llvm-project/build-libclc
|
||||||
|
cmake ../libclc \
|
||||||
|
-DCMAKE_TOOLCHAIN_FILE=$CMAKE_TOOLCHAIN_MINGW_PATH \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr/x86_64-w64-mingw32/ \
|
||||||
|
-GNinja -DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DCMAKE_CROSSCOMPILING=1 \
|
||||||
|
-DCMAKE_POLICY_DEFAULT_CMP0091=NEW \
|
||||||
|
-DCMAKE_CXX_FLAGS="-m64" \
|
||||||
|
-DLLVM_CONFIG="/usr/x86_64-w64-mingw32/bin/llvm-config" \
|
||||||
|
-DLLVM_CLANG="/usr/x86_64-w64-mingw32/bin/clang" \
|
||||||
|
-DLLVM_AS="/usr/x86_64-w64-mingw32/bin/llvm-as" \
|
||||||
|
-DLLVM_LINK="/usr/x86_64-w64-mingw32/bin/llvm-link" \
|
||||||
|
-DLLVM_OPT="/usr/x86_64-w64-mingw32/bin/opt" \
|
||||||
|
-DLLVM_SPIRV="/usr/x86_64-w64-mingw32/bin/llvm-spirv" \
|
||||||
|
-DLIBCLC_TARGETS_TO_BUILD="spirv-mesa3d-;spirv64-mesa3d-"
|
||||||
|
|
||||||
|
ninja install
|
||||||
|
popd
|
||||||
|
|
||||||
|
popd # ~/tmp
|
||||||
|
|
||||||
|
# Cleanup ~/tmp
|
||||||
|
rm -rf ~/tmp
|
13
.gitlab-ci/container/debian/x86_64_build-mingw.sh
Normal file
13
.gitlab-ci/container/debian/x86_64_build-mingw.sh
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -o xtrace
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y --no-remove \
|
||||||
|
zstd \
|
||||||
|
g++-mingw-w64-i686 \
|
||||||
|
g++-mingw-w64-x86-64
|
||||||
|
|
||||||
|
. .gitlab-ci/container/debian/x86_64_build-mingw-patch.sh
|
||||||
|
. .gitlab-ci/container/debian/x86_64_build-mingw-source-deps.sh
|
@@ -1,10 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# shellcheck disable=SC2086 # we want word splitting
|
# shellcheck disable=SC2086 # we want word splitting
|
||||||
|
|
||||||
# When changing this file, you need to bump the following
|
|
||||||
# .gitlab-ci/image-tags.yml tags:
|
|
||||||
# DEBIAN_BUILD_TAG
|
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
@@ -12,52 +8,49 @@ export DEBIAN_FRONTEND=noninteractive
|
|||||||
export LLVM_VERSION="${LLVM_VERSION:=15}"
|
export LLVM_VERSION="${LLVM_VERSION:=15}"
|
||||||
|
|
||||||
# Ephemeral packages (installed for this script and removed again at the end)
|
# Ephemeral packages (installed for this script and removed again at the end)
|
||||||
EPHEMERAL=(
|
STABLE_EPHEMERAL=" \
|
||||||
autoconf
|
autoconf \
|
||||||
automake
|
automake \
|
||||||
autotools-dev
|
autotools-dev \
|
||||||
bzip2
|
bzip2 \
|
||||||
libtool
|
libtool \
|
||||||
libssl-dev
|
libssl-dev \
|
||||||
)
|
"
|
||||||
|
|
||||||
DEPS=(
|
|
||||||
check
|
|
||||||
"clang-${LLVM_VERSION}"
|
|
||||||
libasan8
|
|
||||||
libarchive-dev
|
|
||||||
libdrm-dev
|
|
||||||
"libclang-cpp${LLVM_VERSION}-dev"
|
|
||||||
libgbm-dev
|
|
||||||
libglvnd-dev
|
|
||||||
liblua5.3-dev
|
|
||||||
libxcb-dri2-0-dev
|
|
||||||
libxcb-dri3-dev
|
|
||||||
libxcb-glx0-dev
|
|
||||||
libxcb-present-dev
|
|
||||||
libxcb-randr0-dev
|
|
||||||
libxcb-shm0-dev
|
|
||||||
libxcb-sync-dev
|
|
||||||
libxcb-xfixes0-dev
|
|
||||||
libxcb1-dev
|
|
||||||
libxml2-dev
|
|
||||||
"llvm-${LLVM_VERSION}-dev"
|
|
||||||
ocl-icd-opencl-dev
|
|
||||||
python3-pip
|
|
||||||
python3-venv
|
|
||||||
procps
|
|
||||||
spirv-tools
|
|
||||||
shellcheck
|
|
||||||
strace
|
|
||||||
time
|
|
||||||
yamllint
|
|
||||||
zstd
|
|
||||||
)
|
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
apt-get install -y --no-remove \
|
apt-get install -y --no-remove \
|
||||||
"${DEPS[@]}" "${EPHEMERAL[@]}"
|
$STABLE_EPHEMERAL \
|
||||||
|
check \
|
||||||
|
clang-${LLVM_VERSION} \
|
||||||
|
libasan8 \
|
||||||
|
libarchive-dev \
|
||||||
|
libdrm-dev \
|
||||||
|
libclang-cpp${LLVM_VERSION}-dev \
|
||||||
|
libgbm-dev \
|
||||||
|
libglvnd-dev \
|
||||||
|
liblua5.3-dev \
|
||||||
|
libxcb-dri2-0-dev \
|
||||||
|
libxcb-dri3-dev \
|
||||||
|
libxcb-glx0-dev \
|
||||||
|
libxcb-present-dev \
|
||||||
|
libxcb-randr0-dev \
|
||||||
|
libxcb-shm0-dev \
|
||||||
|
libxcb-sync-dev \
|
||||||
|
libxcb-xfixes0-dev \
|
||||||
|
libxcb1-dev \
|
||||||
|
libxml2-dev \
|
||||||
|
llvm-${LLVM_VERSION}-dev \
|
||||||
|
ocl-icd-opencl-dev \
|
||||||
|
python3-pip \
|
||||||
|
python3-venv \
|
||||||
|
procps \
|
||||||
|
spirv-tools \
|
||||||
|
shellcheck \
|
||||||
|
strace \
|
||||||
|
time \
|
||||||
|
yamllint \
|
||||||
|
zstd
|
||||||
|
|
||||||
|
|
||||||
. .gitlab-ci/container/container_pre_build.sh
|
. .gitlab-ci/container/container_pre_build.sh
|
||||||
@@ -75,30 +68,37 @@ tar -xvf $XORGMACROS_VERSION.tar.bz2 && rm $XORGMACROS_VERSION.tar.bz2
|
|||||||
cd $XORGMACROS_VERSION; ./configure; make install; cd ..
|
cd $XORGMACROS_VERSION; ./configure; make install; cd ..
|
||||||
rm -rf $XORGMACROS_VERSION
|
rm -rf $XORGMACROS_VERSION
|
||||||
|
|
||||||
|
. .gitlab-ci/container/build-llvm-spirv.sh
|
||||||
|
|
||||||
|
. .gitlab-ci/container/build-libclc.sh
|
||||||
|
|
||||||
. .gitlab-ci/container/build-wayland.sh
|
. .gitlab-ci/container/build-wayland.sh
|
||||||
|
|
||||||
. .gitlab-ci/container/build-shader-db.sh
|
pushd /usr/local
|
||||||
|
git clone https://gitlab.freedesktop.org/mesa/shader-db.git --depth 1
|
||||||
|
rm -rf shader-db/.git
|
||||||
|
cd shader-db
|
||||||
|
make
|
||||||
|
popd
|
||||||
|
|
||||||
. .gitlab-ci/container/build-directx-headers.sh
|
git clone https://github.com/microsoft/DirectX-Headers -b v1.711.3-preview --depth 1
|
||||||
|
pushd DirectX-Headers
|
||||||
|
meson setup build --backend=ninja --buildtype=release -Dbuild-test=false
|
||||||
|
meson install -C build
|
||||||
|
popd
|
||||||
|
rm -rf DirectX-Headers
|
||||||
|
|
||||||
python3 -m pip install --break-system-packages -r .gitlab-ci/lava/requirements.txt
|
python3 -m pip install --break-system-packages -r .gitlab-ci/lava/requirements.txt
|
||||||
|
|
||||||
# install bindgen
|
# install bindgen
|
||||||
RUSTFLAGS='-L native=/usr/local/lib' cargo install \
|
RUSTFLAGS='-L native=/usr/local/lib' cargo install \
|
||||||
bindgen-cli --version 0.65.1 \
|
bindgen-cli --version 0.62.0 \
|
||||||
--locked \
|
|
||||||
-j ${FDO_CI_CONCURRENT:-4} \
|
|
||||||
--root /usr/local
|
|
||||||
|
|
||||||
# install cbindgen
|
|
||||||
RUSTFLAGS='-L native=/usr/local/lib' cargo install \
|
|
||||||
cbindgen --version 0.26.0 \
|
|
||||||
--locked \
|
|
||||||
-j ${FDO_CI_CONCURRENT:-4} \
|
-j ${FDO_CI_CONCURRENT:-4} \
|
||||||
--root /usr/local
|
--root /usr/local
|
||||||
|
|
||||||
############### Uninstall the build software
|
############### Uninstall the build software
|
||||||
|
|
||||||
apt-get purge -y "${EPHEMERAL[@]}"
|
apt-get purge -y \
|
||||||
|
$STABLE_EPHEMERAL
|
||||||
|
|
||||||
. .gitlab-ci/container/container_post_build.sh
|
. .gitlab-ci/container/container_post_build.sh
|
||||||
|
8
.gitlab-ci/container/debian/x86_64_mingw-toolchain.cmake
Normal file
8
.gitlab-ci/container/debian/x86_64_mingw-toolchain.cmake
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
set(CMAKE_SYSTEM_NAME Windows)
|
||||||
|
set(CMAKE_SYSTEM_PROCESSOR x86_64)
|
||||||
|
|
||||||
|
set(CMAKE_SYSROOT /usr/x86_64-w64-mingw32/)
|
||||||
|
set(ENV{PKG_CONFIG} /usr/x86_64-w64-mingw32/bin/pkgconf)
|
||||||
|
|
||||||
|
set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc-posix)
|
||||||
|
set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++-posix)
|
@@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# The relative paths in this file only become valid at runtime.
|
# The relative paths in this file only become valid at runtime.
|
||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
|
# shellcheck disable=SC2086 # we want word splitting
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
@@ -8,22 +9,20 @@ set -o xtrace
|
|||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
# Ephemeral packages (installed for this script and removed again at the end)
|
# Ephemeral packages (installed for this script and removed again at the end)
|
||||||
EPHEMERAL=(
|
STABLE_EPHEMERAL=" \
|
||||||
build-essential:native
|
ccache \
|
||||||
ccache
|
unzip \
|
||||||
cmake
|
dpkg-dev \
|
||||||
config-package-dev
|
build-essential:native \
|
||||||
debhelper-compat
|
config-package-dev \
|
||||||
dpkg-dev
|
debhelper-compat \
|
||||||
ninja-build
|
cmake \
|
||||||
unzip
|
ninja-build \
|
||||||
)
|
"
|
||||||
|
|
||||||
DEPS=(
|
|
||||||
iproute2
|
|
||||||
)
|
|
||||||
apt-get install -y --no-remove --no-install-recommends \
|
apt-get install -y --no-remove --no-install-recommends \
|
||||||
"${DEPS[@]}" "${EPHEMERAL[@]}"
|
$STABLE_EPHEMERAL \
|
||||||
|
iproute2
|
||||||
|
|
||||||
############### Building ...
|
############### Building ...
|
||||||
|
|
||||||
@@ -34,14 +33,13 @@ apt-get install -y --no-remove --no-install-recommends \
|
|||||||
# Fetch the NDK and extract just the toolchain we want.
|
# Fetch the NDK and extract just the toolchain we want.
|
||||||
ndk=$ANDROID_NDK
|
ndk=$ANDROID_NDK
|
||||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
||||||
-o "$ndk.zip" "https://dl.google.com/android/repository/$ndk-linux.zip"
|
-o $ndk.zip https://dl.google.com/android/repository/$ndk-linux.zip
|
||||||
unzip -d / "$ndk.zip"
|
unzip -d / $ndk.zip
|
||||||
rm "$ndk.zip"
|
rm $ndk.zip
|
||||||
|
|
||||||
############### Build dEQP runner
|
############### Build dEQP runner
|
||||||
|
|
||||||
export ANDROID_NDK_HOME=/$ndk
|
export ANDROID_NDK_HOME=/$ndk
|
||||||
export RUST_TARGET=x86_64-linux-android
|
|
||||||
. .gitlab-ci/container/build-rust.sh
|
. .gitlab-ci/container/build-rust.sh
|
||||||
. .gitlab-ci/container/build-deqp-runner.sh
|
. .gitlab-ci/container/build-deqp-runner.sh
|
||||||
|
|
||||||
@@ -50,12 +48,6 @@ rm -rf /root/.rustup
|
|||||||
|
|
||||||
############### Build dEQP GL
|
############### Build dEQP GL
|
||||||
|
|
||||||
DEQP_API=GL \
|
|
||||||
DEQP_TARGET="android" \
|
|
||||||
EXTRA_CMAKE_ARGS="-DDEQP_TARGET_TOOLCHAIN=ndk-modern -DANDROID_NDK_PATH=/$ndk -DANDROID_ABI=x86_64 -DDE_ANDROID_API=28" \
|
|
||||||
. .gitlab-ci/container/build-deqp.sh
|
|
||||||
|
|
||||||
DEQP_API=GLES \
|
|
||||||
DEQP_TARGET="android" \
|
DEQP_TARGET="android" \
|
||||||
EXTRA_CMAKE_ARGS="-DDEQP_TARGET_TOOLCHAIN=ndk-modern -DANDROID_NDK_PATH=/$ndk -DANDROID_ABI=x86_64 -DDE_ANDROID_API=28" \
|
EXTRA_CMAKE_ARGS="-DDEQP_TARGET_TOOLCHAIN=ndk-modern -DANDROID_NDK_PATH=/$ndk -DANDROID_ABI=x86_64 -DDE_ANDROID_API=28" \
|
||||||
. .gitlab-ci/container/build-deqp.sh
|
. .gitlab-ci/container/build-deqp.sh
|
||||||
@@ -80,14 +72,8 @@ popd
|
|||||||
|
|
||||||
############### Building and installing Debian package ...
|
############### Building and installing Debian package ...
|
||||||
|
|
||||||
ANDROID_CUTTLEFISH_VERSION=f6494d9fbeaa9974b56923e3029909e5d5f440dd
|
git clone --depth 1 https://github.com/google/android-cuttlefish.git
|
||||||
|
|
||||||
mkdir android-cuttlefish
|
|
||||||
pushd android-cuttlefish
|
pushd android-cuttlefish
|
||||||
git init
|
|
||||||
git remote add origin https://github.com/google/android-cuttlefish.git
|
|
||||||
git fetch --depth 1 origin "$ANDROID_CUTTLEFISH_VERSION"
|
|
||||||
git checkout FETCH_HEAD
|
|
||||||
|
|
||||||
pushd base
|
pushd base
|
||||||
dpkg-buildpackage -uc -us
|
dpkg-buildpackage -uc -us
|
||||||
@@ -105,6 +91,9 @@ usermod -a -G kvm,cvdnetwork root
|
|||||||
|
|
||||||
rm -rf "/${ndk:?}"
|
rm -rf "/${ndk:?}"
|
||||||
|
|
||||||
apt-get purge -y "${EPHEMERAL[@]}"
|
ccache --show-stats
|
||||||
|
|
||||||
. .gitlab-ci/container/container_post_build.sh
|
apt-get purge -y \
|
||||||
|
$STABLE_EPHEMERAL
|
||||||
|
|
||||||
|
apt-get autoremove -y --purge
|
@@ -1,10 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# shellcheck disable=SC2086 # we want word splitting
|
# shellcheck disable=SC2086 # we want word splitting
|
||||||
|
|
||||||
# When changing this file, you need to bump the following
|
|
||||||
# .gitlab-ci/image-tags.yml tags:
|
|
||||||
# DEBIAN_BASE_TAG
|
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
@@ -14,92 +10,50 @@ apt-get install -y ca-certificates gnupg2 software-properties-common
|
|||||||
|
|
||||||
sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list.d/*
|
sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list.d/*
|
||||||
|
|
||||||
echo "deb [trusted=yes] https://gitlab.freedesktop.org/gfx-ci/ci-deb-repo/-/raw/${PKG_REPO_REV}/ ${FDO_DISTRIBUTION_VERSION%-*} main" | tee /etc/apt/sources.list.d/gfx-ci_.list
|
|
||||||
|
|
||||||
export LLVM_VERSION="${LLVM_VERSION:=15}"
|
export LLVM_VERSION="${LLVM_VERSION:=15}"
|
||||||
|
|
||||||
# Ephemeral packages (installed for this script and removed again at the end)
|
# Ephemeral packages (installed for this script and removed again at
|
||||||
EPHEMERAL=(
|
# the end)
|
||||||
autoconf
|
STABLE_EPHEMERAL=" \
|
||||||
automake
|
autoconf \
|
||||||
bc
|
automake \
|
||||||
bison
|
bc \
|
||||||
bzip2
|
bison \
|
||||||
ccache
|
bzip2 \
|
||||||
cmake
|
ccache \
|
||||||
"clang-${LLVM_VERSION}"
|
cmake \
|
||||||
flex
|
clang-${LLVM_VERSION} \
|
||||||
glslang-tools
|
flex \
|
||||||
g++
|
glslang-tools \
|
||||||
libasound2-dev
|
g++ \
|
||||||
libcap-dev
|
libasound2-dev \
|
||||||
"libclang-cpp${LLVM_VERSION}-dev"
|
libcap-dev \
|
||||||
libdrm-dev
|
libclang-cpp${LLVM_VERSION}-dev \
|
||||||
libegl-dev
|
libdrm-dev \
|
||||||
libelf-dev
|
libegl-dev \
|
||||||
libepoxy-dev
|
libelf-dev \
|
||||||
libgbm-dev
|
libepoxy-dev \
|
||||||
libpciaccess-dev
|
libgbm-dev \
|
||||||
libssl-dev
|
libpciaccess-dev \
|
||||||
libvulkan-dev
|
libvulkan-dev \
|
||||||
libwayland-dev
|
libwayland-dev \
|
||||||
libx11-xcb-dev
|
libx11-xcb-dev \
|
||||||
libxext-dev
|
libxext-dev \
|
||||||
"llvm-${LLVM_VERSION}-dev"
|
llvm-${LLVM_VERSION}-dev \
|
||||||
make
|
make \
|
||||||
meson
|
meson \
|
||||||
openssh-server
|
openssh-server \
|
||||||
patch
|
patch \
|
||||||
pkgconf
|
pkgconf \
|
||||||
protobuf-compiler
|
protobuf-compiler \
|
||||||
python3-dev
|
python3-dev \
|
||||||
python3-pip
|
python3-pip \
|
||||||
python3-setuptools
|
python3-setuptools \
|
||||||
python3-wheel
|
python3-wheel \
|
||||||
spirv-tools
|
spirv-tools \
|
||||||
wayland-protocols
|
wayland-protocols \
|
||||||
xz-utils
|
xz-utils \
|
||||||
)
|
"
|
||||||
|
|
||||||
DEPS=(
|
|
||||||
apt-utils
|
|
||||||
curl
|
|
||||||
git
|
|
||||||
git-lfs
|
|
||||||
inetutils-syslogd
|
|
||||||
iptables
|
|
||||||
jq
|
|
||||||
libasan8
|
|
||||||
libdrm2
|
|
||||||
libexpat1
|
|
||||||
"libllvm${LLVM_VERSION}"
|
|
||||||
liblz4-1
|
|
||||||
libpng16-16
|
|
||||||
libpython3.11
|
|
||||||
libvulkan1
|
|
||||||
libwayland-client0
|
|
||||||
libwayland-server0
|
|
||||||
libxcb-ewmh2
|
|
||||||
libxcb-randr0
|
|
||||||
libxcb-xfixes0
|
|
||||||
libxkbcommon0
|
|
||||||
libxrandr2
|
|
||||||
libxrender1
|
|
||||||
python3-mako
|
|
||||||
python3-numpy
|
|
||||||
python3-packaging
|
|
||||||
python3-pil
|
|
||||||
python3-requests
|
|
||||||
python3-six
|
|
||||||
python3-yaml
|
|
||||||
socat
|
|
||||||
vulkan-tools
|
|
||||||
waffle-utils
|
|
||||||
xauth
|
|
||||||
xvfb
|
|
||||||
zlib1g
|
|
||||||
zstd
|
|
||||||
)
|
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get dist-upgrade -y
|
apt-get dist-upgrade -y
|
||||||
@@ -107,9 +61,48 @@ apt-get dist-upgrade -y
|
|||||||
apt-get install --purge -y \
|
apt-get install --purge -y \
|
||||||
sysvinit-core libelogind0
|
sysvinit-core libelogind0
|
||||||
|
|
||||||
apt-get install -y --no-remove "${DEPS[@]}"
|
apt-get install -y --no-remove \
|
||||||
|
apt-utils \
|
||||||
|
curl \
|
||||||
|
git \
|
||||||
|
git-lfs \
|
||||||
|
inetutils-syslogd \
|
||||||
|
iptables \
|
||||||
|
jq \
|
||||||
|
libasan8 \
|
||||||
|
libdrm2 \
|
||||||
|
libexpat1 \
|
||||||
|
libllvm${LLVM_VERSION} \
|
||||||
|
liblz4-1 \
|
||||||
|
libpng16-16 \
|
||||||
|
libpython3.11 \
|
||||||
|
libvulkan1 \
|
||||||
|
libwayland-client0 \
|
||||||
|
libwayland-server0 \
|
||||||
|
libxcb-ewmh2 \
|
||||||
|
libxcb-randr0 \
|
||||||
|
libxcb-xfixes0 \
|
||||||
|
libxkbcommon0 \
|
||||||
|
libxrandr2 \
|
||||||
|
libxrender1 \
|
||||||
|
python3-mako \
|
||||||
|
python3-numpy \
|
||||||
|
python3-packaging \
|
||||||
|
python3-pil \
|
||||||
|
python3-requests \
|
||||||
|
python3-six \
|
||||||
|
python3-yaml \
|
||||||
|
socat \
|
||||||
|
vulkan-tools \
|
||||||
|
waffle-utils \
|
||||||
|
xauth \
|
||||||
|
xvfb \
|
||||||
|
zlib1g \
|
||||||
|
zstd
|
||||||
|
|
||||||
|
apt-get install -y --no-install-recommends \
|
||||||
|
$STABLE_EPHEMERAL
|
||||||
|
|
||||||
apt-get install -y --no-install-recommends "${EPHEMERAL[@]}"
|
|
||||||
|
|
||||||
. .gitlab-ci/container/container_pre_build.sh
|
. .gitlab-ci/container/container_pre_build.sh
|
||||||
|
|
||||||
@@ -130,8 +123,6 @@ pip3 install --break-system-packages git+http://gitlab.freedesktop.org/freedeskt
|
|||||||
# Needed for manipulation with traces yaml files.
|
# Needed for manipulation with traces yaml files.
|
||||||
pip3 install --break-system-packages yq
|
pip3 install --break-system-packages yq
|
||||||
|
|
||||||
. .gitlab-ci/container/build-mold.sh
|
|
||||||
|
|
||||||
############### Build LLVM-SPIRV translator
|
############### Build LLVM-SPIRV translator
|
||||||
|
|
||||||
. .gitlab-ci/container/build-llvm-spirv.sh
|
. .gitlab-ci/container/build-llvm-spirv.sh
|
||||||
@@ -152,9 +143,11 @@ pip3 install --break-system-packages yq
|
|||||||
############### Build dEQP runner
|
############### Build dEQP runner
|
||||||
. .gitlab-ci/container/build-deqp-runner.sh
|
. .gitlab-ci/container/build-deqp-runner.sh
|
||||||
|
|
||||||
|
rm -rf /root/.cargo
|
||||||
apt-get purge -y "${EPHEMERAL[@]}"
|
|
||||||
|
|
||||||
rm -rf /root/.rustup
|
rm -rf /root/.rustup
|
||||||
|
|
||||||
. .gitlab-ci/container/container_post_build.sh
|
ccache --show-stats
|
||||||
|
|
||||||
|
apt-get purge -y $STABLE_EPHEMERAL
|
||||||
|
|
||||||
|
apt-get autoremove -y --purge
|
||||||
|
@@ -10,68 +10,59 @@ export LLVM_VERSION="${LLVM_VERSION:=15}"
|
|||||||
apt-get install -y libelogind0 # this interfere with systemd deps, install separately
|
apt-get install -y libelogind0 # this interfere with systemd deps, install separately
|
||||||
|
|
||||||
# Ephemeral packages (installed for this script and removed again at the end)
|
# Ephemeral packages (installed for this script and removed again at the end)
|
||||||
EPHEMERAL=(
|
STABLE_EPHEMERAL=" \
|
||||||
bzip2
|
bzip2 \
|
||||||
ccache
|
ccache \
|
||||||
"clang-${LLVM_VERSION}"
|
clang-${LLVM_VERSION} \
|
||||||
cmake
|
cmake \
|
||||||
g++
|
g++ \
|
||||||
glslang-tools
|
glslang-tools \
|
||||||
libasound2-dev
|
libasound2-dev \
|
||||||
libcap-dev
|
libcap-dev \
|
||||||
"libclang-cpp${LLVM_VERSION}-dev"
|
libclang-cpp${LLVM_VERSION}-dev \
|
||||||
libdrm-dev
|
libdrm-dev \
|
||||||
libgles2-mesa-dev
|
libgles2-mesa-dev \
|
||||||
libgtest-dev
|
libpciaccess-dev \
|
||||||
libpciaccess-dev
|
libpng-dev \
|
||||||
libpng-dev
|
libudev-dev \
|
||||||
libudev-dev
|
libvulkan-dev \
|
||||||
libvulkan-dev
|
libwaffle-dev \
|
||||||
libwaffle-dev
|
libwayland-dev \
|
||||||
libwayland-dev
|
libx11-xcb-dev \
|
||||||
libx11-xcb-dev
|
libxcb-dri2-0-dev \
|
||||||
libxcb-dri2-0-dev
|
libxkbcommon-dev \
|
||||||
libxcb-dri3-dev
|
libxrandr-dev \
|
||||||
libxcb-present-dev
|
libxrender-dev \
|
||||||
libxfixes-dev
|
llvm-${LLVM_VERSION}-dev \
|
||||||
libxkbcommon-dev
|
make \
|
||||||
libxrandr-dev
|
meson \
|
||||||
libxrender-dev
|
ocl-icd-opencl-dev \
|
||||||
"llvm-${LLVM_VERSION}-dev"
|
patch \
|
||||||
make
|
pkgconf \
|
||||||
meson
|
python3-distutils \
|
||||||
ocl-icd-opencl-dev
|
xz-utils \
|
||||||
patch
|
"
|
||||||
pkgconf
|
|
||||||
python3-distutils
|
|
||||||
xz-utils
|
|
||||||
)
|
|
||||||
|
|
||||||
DEPS=(
|
|
||||||
clinfo
|
|
||||||
iptables
|
|
||||||
kmod
|
|
||||||
"libclang-common-${LLVM_VERSION}-dev"
|
|
||||||
"libclang-cpp${LLVM_VERSION}"
|
|
||||||
libcap2
|
|
||||||
libegl1
|
|
||||||
libepoxy0
|
|
||||||
libfdt1
|
|
||||||
libxcb-shm0
|
|
||||||
ocl-icd-libopencl1
|
|
||||||
python3-lxml
|
|
||||||
python3-renderdoc
|
|
||||||
python3-simplejson
|
|
||||||
spirv-tools
|
|
||||||
sysvinit-core
|
|
||||||
weston
|
|
||||||
xwayland
|
|
||||||
)
|
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
apt-get install -y --no-remove "${DEPS[@]}" "${EPHEMERAL[@]}" \
|
apt-get install -y --no-remove \
|
||||||
$EXTRA_LOCAL_PACKAGES
|
$STABLE_EPHEMERAL \
|
||||||
|
clinfo \
|
||||||
|
iptables \
|
||||||
|
libclang-common-${LLVM_VERSION}-dev \
|
||||||
|
libclang-cpp${LLVM_VERSION} \
|
||||||
|
libcap2 \
|
||||||
|
libegl1 \
|
||||||
|
libepoxy0 \
|
||||||
|
libfdt1 \
|
||||||
|
libxcb-shm0 \
|
||||||
|
ocl-icd-libopencl1 \
|
||||||
|
python3-lxml \
|
||||||
|
python3-renderdoc \
|
||||||
|
python3-simplejson \
|
||||||
|
spirv-tools \
|
||||||
|
sysvinit-core \
|
||||||
|
weston
|
||||||
|
|
||||||
|
|
||||||
. .gitlab-ci/container/container_pre_build.sh
|
. .gitlab-ci/container/container_pre_build.sh
|
||||||
@@ -82,13 +73,7 @@ PIGLIT_OPTS="-DPIGLIT_BUILD_GLX_TESTS=ON -DPIGLIT_BUILD_CL_TESTS=ON -DPIGLIT_BUI
|
|||||||
|
|
||||||
############### Build dEQP GL
|
############### Build dEQP GL
|
||||||
|
|
||||||
DEQP_API=GL \
|
DEQP_TARGET=surfaceless . .gitlab-ci/container/build-deqp.sh
|
||||||
DEQP_TARGET=surfaceless \
|
|
||||||
. .gitlab-ci/container/build-deqp.sh
|
|
||||||
|
|
||||||
DEQP_API=GLES \
|
|
||||||
DEQP_TARGET=surfaceless \
|
|
||||||
. .gitlab-ci/container/build-deqp.sh
|
|
||||||
|
|
||||||
############### Build apitrace
|
############### Build apitrace
|
||||||
|
|
||||||
@@ -98,12 +83,11 @@ DEQP_TARGET=surfaceless \
|
|||||||
|
|
||||||
. .gitlab-ci/container/build-vulkan-validation.sh
|
. .gitlab-ci/container/build-vulkan-validation.sh
|
||||||
|
|
||||||
############### Build nine tests
|
|
||||||
|
|
||||||
. .gitlab-ci/container/build-ninetests.sh
|
|
||||||
|
|
||||||
############### Uninstall the build software
|
############### Uninstall the build software
|
||||||
|
|
||||||
apt-get purge -y "${EPHEMERAL[@]}"
|
ccache --show-stats
|
||||||
|
|
||||||
. .gitlab-ci/container/container_post_build.sh
|
apt-get purge -y \
|
||||||
|
$STABLE_EPHEMERAL
|
||||||
|
|
||||||
|
apt-get autoremove -y --purge
|
||||||
|
@@ -11,64 +11,65 @@ export DEBIAN_FRONTEND=noninteractive
|
|||||||
apt-get install -y libelogind0 # this interfere with systemd deps, install separately
|
apt-get install -y libelogind0 # this interfere with systemd deps, install separately
|
||||||
|
|
||||||
# Ephemeral packages (installed for this script and removed again at the end)
|
# Ephemeral packages (installed for this script and removed again at the end)
|
||||||
EPHEMERAL=(
|
STABLE_EPHEMERAL=" \
|
||||||
ccache
|
ccache \
|
||||||
cmake
|
cmake \
|
||||||
g++
|
g++ \
|
||||||
glslang-tools
|
g++-mingw-w64-i686-posix \
|
||||||
libexpat1-dev
|
g++-mingw-w64-x86-64-posix \
|
||||||
gnupg2
|
glslang-tools \
|
||||||
libdrm-dev
|
libexpat1-dev \
|
||||||
libgbm-dev
|
gnupg2 \
|
||||||
libgles2-mesa-dev
|
libdrm-dev \
|
||||||
liblz4-dev
|
libgbm-dev \
|
||||||
libpciaccess-dev
|
libgles2-mesa-dev \
|
||||||
libudev-dev
|
liblz4-dev \
|
||||||
libvulkan-dev
|
libpciaccess-dev \
|
||||||
libwaffle-dev
|
libudev-dev \
|
||||||
libx11-xcb-dev
|
libvulkan-dev \
|
||||||
libxcb-dri2-0-dev
|
libwaffle-dev \
|
||||||
libxcb-ewmh-dev
|
libx11-xcb-dev \
|
||||||
libxcb-keysyms1-dev
|
libxcb-ewmh-dev \
|
||||||
libxkbcommon-dev
|
libxcb-keysyms1-dev \
|
||||||
libxrandr-dev
|
libxkbcommon-dev \
|
||||||
libxrender-dev
|
libxrandr-dev \
|
||||||
libzstd-dev
|
libxrender-dev \
|
||||||
meson
|
libzstd-dev \
|
||||||
p7zip
|
meson \
|
||||||
patch
|
mingw-w64-i686-dev \
|
||||||
pkgconf
|
mingw-w64-tools \
|
||||||
python3-dev
|
mingw-w64-x86-64-dev \
|
||||||
python3-distutils
|
p7zip \
|
||||||
python3-pip
|
patch \
|
||||||
python3-setuptools
|
pkgconf \
|
||||||
python3-wheel
|
python3-dev \
|
||||||
software-properties-common
|
python3-distutils \
|
||||||
wine64-tools
|
python3-pip \
|
||||||
xz-utils
|
python3-setuptools \
|
||||||
)
|
python3-wheel \
|
||||||
|
software-properties-common \
|
||||||
DEPS=(
|
wine64-tools \
|
||||||
curl
|
xz-utils \
|
||||||
libepoxy0
|
"
|
||||||
libxcb-shm0
|
|
||||||
pciutils
|
|
||||||
python3-lxml
|
|
||||||
python3-simplejson
|
|
||||||
sysvinit-core
|
|
||||||
weston
|
|
||||||
xwayland
|
|
||||||
wine
|
|
||||||
wine64
|
|
||||||
xinit
|
|
||||||
xserver-xorg-video-amdgpu
|
|
||||||
xserver-xorg-video-ati
|
|
||||||
)
|
|
||||||
|
|
||||||
apt-get update
|
|
||||||
|
|
||||||
apt-get install -y --no-remove --no-install-recommends \
|
apt-get install -y --no-remove --no-install-recommends \
|
||||||
"${DEPS[@]}" "${EPHEMERAL[@]}"
|
$STABLE_EPHEMERAL \
|
||||||
|
curl \
|
||||||
|
libepoxy0 \
|
||||||
|
libxcb-shm0 \
|
||||||
|
pciutils \
|
||||||
|
python3-lxml \
|
||||||
|
python3-simplejson \
|
||||||
|
sysvinit-core \
|
||||||
|
weston \
|
||||||
|
xwayland \
|
||||||
|
wine \
|
||||||
|
wine64 \
|
||||||
|
xinit \
|
||||||
|
xserver-xorg-video-amdgpu \
|
||||||
|
xserver-xorg-video-ati
|
||||||
|
|
||||||
|
apt-get update -q
|
||||||
|
|
||||||
############### Install DXVK
|
############### Install DXVK
|
||||||
|
|
||||||
@@ -104,8 +105,6 @@ PIGLIT_BUILD_TARGETS="piglit_replayer" . .gitlab-ci/container/build-piglit.sh
|
|||||||
|
|
||||||
############### Build dEQP VK
|
############### Build dEQP VK
|
||||||
|
|
||||||
DEQP_API=VK \
|
|
||||||
DEQP_TARGET=default \
|
|
||||||
. .gitlab-ci/container/build-deqp.sh
|
. .gitlab-ci/container/build-deqp.sh
|
||||||
|
|
||||||
############### Build apitrace
|
############### Build apitrace
|
||||||
@@ -124,6 +123,11 @@ DEQP_TARGET=default \
|
|||||||
|
|
||||||
############### Uninstall the build software
|
############### Uninstall the build software
|
||||||
|
|
||||||
apt-get purge -y "${EPHEMERAL[@]}"
|
ccache --show-stats
|
||||||
|
|
||||||
. .gitlab-ci/container/container_post_build.sh
|
apt-get purge -y \
|
||||||
|
$STABLE_EPHEMERAL
|
||||||
|
|
||||||
|
apt-get autoremove -y --purge
|
||||||
|
|
||||||
|
#dpkg -r --force-depends "mesa-vulkan-drivers" "mesa-vdpau-drivers" "mesa-va-drivers" "libgl1-mesa-dri" "libglx-mesa0" "vdpau-driver-all" "va-driver-all" "libglx0" "libgl1" "libvdpau-va-gl1" "libglu1-mesa" "libegl-mesa0" "libgl1-mesa-dri" "libglapi-mesa" "libosmesa6"
|
||||||
|
@@ -1,10 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
|
|
||||||
# When changing this file, you need to bump the following
|
|
||||||
# .gitlab-ci/image-tags.yml tags:
|
|
||||||
# FEDORA_X86_64_BUILD_TAG
|
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
@@ -19,7 +14,6 @@ EPHEMERAL=(
|
|||||||
"pkgconfig(epoxy)"
|
"pkgconfig(epoxy)"
|
||||||
"pkgconfig(gbm)"
|
"pkgconfig(gbm)"
|
||||||
"pkgconfig(openssl)"
|
"pkgconfig(openssl)"
|
||||||
python3-pip
|
|
||||||
unzip
|
unzip
|
||||||
xz
|
xz
|
||||||
)
|
)
|
||||||
@@ -27,23 +21,20 @@ EPHEMERAL=(
|
|||||||
DEPS=(
|
DEPS=(
|
||||||
bindgen
|
bindgen
|
||||||
bison
|
bison
|
||||||
cbindgen
|
|
||||||
ccache
|
ccache
|
||||||
clang-devel
|
clang-devel
|
||||||
flex
|
flex
|
||||||
flatbuffers-compiler
|
|
||||||
gcc
|
gcc
|
||||||
gcc-c++
|
gcc-c++
|
||||||
gettext
|
gettext
|
||||||
glslang
|
glslang
|
||||||
kernel-headers
|
kernel-headers
|
||||||
llvm-devel
|
llvm-devel
|
||||||
ninja-build
|
meson
|
||||||
"pkgconfig(LLVMSPIRVLib)"
|
"pkgconfig(LLVMSPIRVLib)"
|
||||||
"pkgconfig(SPIRV-Tools)"
|
"pkgconfig(SPIRV-Tools)"
|
||||||
"pkgconfig(dri2proto)"
|
"pkgconfig(dri2proto)"
|
||||||
"pkgconfig(expat)"
|
"pkgconfig(expat)"
|
||||||
"pkgconfig(flatbuffers)"
|
|
||||||
"pkgconfig(glproto)"
|
"pkgconfig(glproto)"
|
||||||
"pkgconfig(libclc)"
|
"pkgconfig(libclc)"
|
||||||
"pkgconfig(libelf)"
|
"pkgconfig(libelf)"
|
||||||
@@ -69,7 +60,6 @@ DEPS=(
|
|||||||
"pkgconfig(xfixes)"
|
"pkgconfig(xfixes)"
|
||||||
"pkgconfig(xrandr)"
|
"pkgconfig(xrandr)"
|
||||||
"pkgconfig(xshmfence)"
|
"pkgconfig(xshmfence)"
|
||||||
"pkgconfig(xtensor)"
|
|
||||||
"pkgconfig(xxf86vm)"
|
"pkgconfig(xxf86vm)"
|
||||||
"pkgconfig(zlib)"
|
"pkgconfig(zlib)"
|
||||||
procps-ng
|
procps-ng
|
||||||
@@ -77,7 +67,6 @@ DEPS=(
|
|||||||
python3-devel
|
python3-devel
|
||||||
python3-mako
|
python3-mako
|
||||||
python3-ply
|
python3-ply
|
||||||
python3-pycparser
|
|
||||||
rust-packaging
|
rust-packaging
|
||||||
vulkan-headers
|
vulkan-headers
|
||||||
spirv-tools-devel
|
spirv-tools-devel
|
||||||
@@ -101,15 +90,19 @@ tar -xvf $XORGMACROS_VERSION.tar.bz2 && rm $XORGMACROS_VERSION.tar.bz2
|
|||||||
cd $XORGMACROS_VERSION; ./configure; make install; cd ..
|
cd $XORGMACROS_VERSION; ./configure; make install; cd ..
|
||||||
rm -rf $XORGMACROS_VERSION
|
rm -rf $XORGMACROS_VERSION
|
||||||
|
|
||||||
# We need at least 1.3.1 for rusticl
|
|
||||||
pip install meson==1.3.1
|
|
||||||
|
|
||||||
. .gitlab-ci/container/build-mold.sh
|
. .gitlab-ci/container/build-mold.sh
|
||||||
|
|
||||||
. .gitlab-ci/container/build-libdrm.sh
|
. .gitlab-ci/container/build-libdrm.sh
|
||||||
|
|
||||||
. .gitlab-ci/container/build-wayland.sh
|
. .gitlab-ci/container/build-wayland.sh
|
||||||
|
|
||||||
|
pushd /usr/local
|
||||||
|
git clone https://gitlab.freedesktop.org/mesa/shader-db.git --depth 1
|
||||||
|
rm -rf shader-db/.git
|
||||||
|
cd shader-db
|
||||||
|
make
|
||||||
|
popd
|
||||||
|
|
||||||
|
|
||||||
############### Uninstall the build software
|
############### Uninstall the build software
|
||||||
|
|
||||||
|
@@ -23,6 +23,10 @@
|
|||||||
variables:
|
variables:
|
||||||
MESA_IMAGE: "$CI_REGISTRY_IMAGE/${MESA_IMAGE_PATH}:${FDO_DISTRIBUTION_TAG}"
|
MESA_IMAGE: "$CI_REGISTRY_IMAGE/${MESA_IMAGE_PATH}:${FDO_DISTRIBUTION_TAG}"
|
||||||
|
|
||||||
|
.use-wine:
|
||||||
|
variables:
|
||||||
|
WINEPATH: "/usr/x86_64-w64-mingw32/bin;/usr/x86_64-w64-mingw32/lib;/usr/lib/gcc/x86_64-w64-mingw32/10-posix;c:/windows;c:/windows/system32"
|
||||||
|
|
||||||
# Build the CI docker images.
|
# Build the CI docker images.
|
||||||
#
|
#
|
||||||
# MESA_IMAGE_TAG is the tag of the docker image used by later stage jobs. If the
|
# MESA_IMAGE_TAG is the tag of the docker image used by later stage jobs. If the
|
||||||
@@ -40,16 +44,14 @@
|
|||||||
# repository's container registry, so that the image from the main
|
# repository's container registry, so that the image from the main
|
||||||
# repository's registry will be used there as well.
|
# repository's registry will be used there as well.
|
||||||
|
|
||||||
.debian-container:
|
|
||||||
variables:
|
|
||||||
FDO_DISTRIBUTION_VERSION: bookworm-slim
|
|
||||||
|
|
||||||
.container:
|
.container:
|
||||||
stage: container
|
stage: container
|
||||||
extends:
|
extends:
|
||||||
- .container+build-rules
|
- .container-rules
|
||||||
- .incorporate-templates-commit
|
- .incorporate-templates-commit
|
||||||
|
- .use-wine
|
||||||
variables:
|
variables:
|
||||||
|
FDO_DISTRIBUTION_VERSION: bookworm-slim
|
||||||
FDO_REPO_SUFFIX: $CI_JOB_NAME
|
FDO_REPO_SUFFIX: $CI_JOB_NAME
|
||||||
FDO_DISTRIBUTION_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
|
FDO_DISTRIBUTION_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
|
||||||
# no need to pull the whole repo to build the container image
|
# no need to pull the whole repo to build the container image
|
||||||
@@ -59,24 +61,20 @@
|
|||||||
extends:
|
extends:
|
||||||
- .container
|
- .container
|
||||||
- .incorporate-base-tag+templates-commit
|
- .incorporate-base-tag+templates-commit
|
||||||
|
# Don't want the .container rules
|
||||||
|
- .build-rules
|
||||||
|
|
||||||
# Debian based x86_64 build image base
|
# Debian based x86_64 build image base
|
||||||
debian/x86_64_build-base:
|
debian/x86_64_build-base:
|
||||||
extends:
|
extends:
|
||||||
- .fdo.container-build@debian
|
- .fdo.container-build@debian
|
||||||
- .container
|
- .container
|
||||||
- .debian-container
|
|
||||||
variables:
|
variables:
|
||||||
MESA_IMAGE_TAG: &debian-x86_64_build-base "${DEBIAN_BASE_TAG}--${PKG_REPO_REV}"
|
MESA_IMAGE_TAG: &debian-x86_64_build-base ${DEBIAN_BASE_TAG}
|
||||||
rules:
|
|
||||||
# python-test requires debian/x86_64_build, which requires this job
|
|
||||||
- !reference [python-test, rules]
|
|
||||||
- !reference [.container, rules]
|
|
||||||
|
|
||||||
.use-debian/x86_64_build-base:
|
.use-debian/x86_64_build-base:
|
||||||
extends:
|
extends:
|
||||||
- .fdo.container-build@debian
|
- .fdo.container-build@debian
|
||||||
- .debian-container
|
|
||||||
- .use-base-image
|
- .use-base-image
|
||||||
variables:
|
variables:
|
||||||
MESA_BASE_IMAGE: ${DEBIAN_X86_64_BUILD_BASE_IMAGE}
|
MESA_BASE_IMAGE: ${DEBIAN_X86_64_BUILD_BASE_IMAGE}
|
||||||
@@ -91,10 +89,6 @@ debian/x86_64_build:
|
|||||||
- .use-debian/x86_64_build-base
|
- .use-debian/x86_64_build-base
|
||||||
variables:
|
variables:
|
||||||
MESA_IMAGE_TAG: &debian-x86_64_build ${DEBIAN_BUILD_TAG}
|
MESA_IMAGE_TAG: &debian-x86_64_build ${DEBIAN_BUILD_TAG}
|
||||||
rules:
|
|
||||||
# python-test requires this job
|
|
||||||
- !reference [python-test, rules]
|
|
||||||
- !reference [.use-debian/x86_64_build-base, rules]
|
|
||||||
|
|
||||||
.use-debian/x86_64_build:
|
.use-debian/x86_64_build:
|
||||||
extends:
|
extends:
|
||||||
@@ -123,6 +117,24 @@ debian/x86_32_build:
|
|||||||
needs:
|
needs:
|
||||||
- debian/x86_32_build
|
- debian/x86_32_build
|
||||||
|
|
||||||
|
# Debian based x86_64-mingw cross main build image
|
||||||
|
# FIXME: Until gets fixed on Debian 12, disabled.
|
||||||
|
.debian/x86_64_build-mingw:
|
||||||
|
extends:
|
||||||
|
- .use-debian/x86_64_build-base
|
||||||
|
variables:
|
||||||
|
MESA_IMAGE_TAG: &debian-x86_64_build_mingw ${DEBIAN_BUILD_MINGW_TAG}
|
||||||
|
|
||||||
|
.use-debian/x86_64_build_mingw:
|
||||||
|
extends:
|
||||||
|
- .set-image-base-tag
|
||||||
|
variables:
|
||||||
|
MESA_BASE_TAG: *debian-x86_64_build-base
|
||||||
|
MESA_IMAGE_PATH: ${DEBIAN_X86_64_BUILD_MINGW_IMAGE_PATH}
|
||||||
|
MESA_IMAGE_TAG: *debian-x86_64_build_mingw
|
||||||
|
needs:
|
||||||
|
- .debian/x86_64_build-mingw
|
||||||
|
|
||||||
# Debian based ppc64el cross-build image
|
# Debian based ppc64el cross-build image
|
||||||
debian/ppc64el_build:
|
debian/ppc64el_build:
|
||||||
extends:
|
extends:
|
||||||
@@ -180,12 +192,12 @@ debian/android_build:
|
|||||||
debian/x86_64_test-base:
|
debian/x86_64_test-base:
|
||||||
extends: debian/x86_64_build-base
|
extends: debian/x86_64_build-base
|
||||||
variables:
|
variables:
|
||||||
MESA_IMAGE_TAG: &debian-x86_64_test-base "${DEBIAN_BASE_TAG}--${PKG_REPO_REV}--${KERNEL_TAG}"
|
KERNEL_URL: &kernel-rootfs-url "https://gitlab.freedesktop.org/gfx-ci/linux/-/archive/v6.3-for-mesa-ci-43c973a8ff91/linux-v6.3-for-mesa-ci-6fc749a2a59a.tar.bz2"
|
||||||
|
MESA_IMAGE_TAG: &debian-x86_64_test-base ${DEBIAN_BASE_TAG}
|
||||||
|
|
||||||
.use-debian/x86_64_test-base:
|
.use-debian/x86_64_test-base:
|
||||||
extends:
|
extends:
|
||||||
- .fdo.container-build@debian
|
- .fdo.container-build@debian
|
||||||
- .debian-container
|
|
||||||
- .use-base-image
|
- .use-base-image
|
||||||
variables:
|
variables:
|
||||||
MESA_BASE_IMAGE: ${DEBIAN_X86_64_TEST_BASE_IMAGE}
|
MESA_BASE_IMAGE: ${DEBIAN_X86_64_TEST_BASE_IMAGE}
|
||||||
@@ -226,7 +238,7 @@ debian/x86_64_test-vk:
|
|||||||
- debian/x86_64_test-vk
|
- debian/x86_64_test-vk
|
||||||
|
|
||||||
# Debian based x86_64 test image for Android
|
# Debian based x86_64 test image for Android
|
||||||
.debian/x86_64_test-android:
|
debian/x86_64_test-android:
|
||||||
extends: .use-debian/x86_64_test-base
|
extends: .use-debian/x86_64_test-base
|
||||||
variables:
|
variables:
|
||||||
MESA_IMAGE_TAG: &debian-x86_64_test-android ${DEBIAN_X86_64_TEST_ANDROID_TAG}
|
MESA_IMAGE_TAG: &debian-x86_64_test-android ${DEBIAN_X86_64_TEST_ANDROID_TAG}
|
||||||
@@ -247,11 +259,10 @@ debian/arm64_build:
|
|||||||
extends:
|
extends:
|
||||||
- .fdo.container-build@debian
|
- .fdo.container-build@debian
|
||||||
- .container
|
- .container
|
||||||
- .debian-container
|
|
||||||
tags:
|
tags:
|
||||||
- aarch64
|
- aarch64
|
||||||
variables:
|
variables:
|
||||||
MESA_IMAGE_TAG: &debian-arm64_build "${DEBIAN_BASE_TAG}--${PKG_REPO_REV}"
|
MESA_IMAGE_TAG: &debian-arm64_build ${DEBIAN_BASE_TAG}
|
||||||
|
|
||||||
.use-debian/arm64_build:
|
.use-debian/arm64_build:
|
||||||
extends:
|
extends:
|
||||||
@@ -270,8 +281,7 @@ debian/arm64_build:
|
|||||||
- .fdo.container-build@alpine
|
- .fdo.container-build@alpine
|
||||||
- .container
|
- .container
|
||||||
variables:
|
variables:
|
||||||
FDO_DISTRIBUTION_VERSION: "edge" # switch to 3.20 when gets released
|
FDO_DISTRIBUTION_VERSION: "3.18"
|
||||||
FDO_BASE_IMAGE: alpine:$FDO_DISTRIBUTION_VERSION # since cbuild ignores it
|
|
||||||
|
|
||||||
# Alpine based x86_64 build image
|
# Alpine based x86_64 build image
|
||||||
alpine/x86_64_build:
|
alpine/x86_64_build:
|
||||||
@@ -317,13 +327,13 @@ fedora/x86_64_build:
|
|||||||
|
|
||||||
.kernel+rootfs:
|
.kernel+rootfs:
|
||||||
extends:
|
extends:
|
||||||
- .container+build-rules
|
- .build-rules
|
||||||
- .debian-container
|
|
||||||
stage: container
|
stage: container
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: fetch
|
GIT_STRATEGY: fetch
|
||||||
|
KERNEL_URL: *kernel-rootfs-url
|
||||||
MESA_ROOTFS_TAG: &kernel-rootfs ${KERNEL_ROOTFS_TAG}
|
MESA_ROOTFS_TAG: &kernel-rootfs ${KERNEL_ROOTFS_TAG}
|
||||||
DISTRIBUTION_TAG: &distribution-tag-arm "${MESA_ROOTFS_TAG}--${KERNEL_TAG}--${MESA_ARTIFACTS_TAG}--${MESA_TEMPLATES_COMMIT}"
|
DISTRIBUTION_TAG: &distribution-tag-arm "${MESA_ROOTFS_TAG}--${MESA_ARTIFACTS_TAG}--${MESA_TEMPLATES_COMMIT}"
|
||||||
script:
|
script:
|
||||||
- .gitlab-ci/container/lava_build.sh
|
- .gitlab-ci/container/lava_build.sh
|
||||||
|
|
||||||
@@ -334,7 +344,7 @@ kernel+rootfs_x86_64:
|
|||||||
image: "$FDO_BASE_IMAGE"
|
image: "$FDO_BASE_IMAGE"
|
||||||
variables:
|
variables:
|
||||||
DEBIAN_ARCH: "amd64"
|
DEBIAN_ARCH: "amd64"
|
||||||
DISTRIBUTION_TAG: &distribution-tag-x86_64 "${MESA_ROOTFS_TAG}--${KERNEL_TAG}--${MESA_ARTIFACTS_BASE_TAG}--${MESA_TEMPLATES_COMMIT}"
|
DISTRIBUTION_TAG: &distribution-tag-x86_64 "${MESA_ROOTFS_TAG}--${MESA_ARTIFACTS_BASE_TAG}--${MESA_TEMPLATES_COMMIT}"
|
||||||
|
|
||||||
kernel+rootfs_arm64:
|
kernel+rootfs_arm64:
|
||||||
extends:
|
extends:
|
||||||
@@ -367,13 +377,12 @@ kernel+rootfs_arm32:
|
|||||||
extends:
|
extends:
|
||||||
- .fdo.container-build@debian
|
- .fdo.container-build@debian
|
||||||
- .container
|
- .container
|
||||||
- .debian-container
|
|
||||||
# Don't want the .container rules
|
# Don't want the .container rules
|
||||||
- .container+build-rules
|
- .build-rules
|
||||||
variables:
|
variables:
|
||||||
FDO_DISTRIBUTION_TAG: "${MESA_IMAGE_TAG}--${MESA_ROOTFS_TAG}--${KERNEL_TAG}--${MESA_TEMPLATES_COMMIT}"
|
FDO_DISTRIBUTION_TAG: "${MESA_IMAGE_TAG}--${MESA_ROOTFS_TAG}--${MESA_TEMPLATES_COMMIT}"
|
||||||
ARTIFACTS_PREFIX: "https://${S3_HOST}/${S3_KERNEL_BUCKET}"
|
ARTIFACTS_PREFIX: "https://${S3_HOST}/mesa-lava"
|
||||||
ARTIFACTS_SUFFIX: "${MESA_ROOTFS_TAG}--${KERNEL_TAG}--${MESA_ARTIFACTS_TAG}--${MESA_TEMPLATES_COMMIT}"
|
ARTIFACTS_SUFFIX: "${MESA_ROOTFS_TAG}--${MESA_ARTIFACTS_TAG}--${MESA_TEMPLATES_COMMIT}"
|
||||||
MESA_ARTIFACTS_TAG: *debian-arm64_build
|
MESA_ARTIFACTS_TAG: *debian-arm64_build
|
||||||
MESA_ROOTFS_TAG: *kernel-rootfs
|
MESA_ROOTFS_TAG: *kernel-rootfs
|
||||||
|
|
||||||
@@ -383,7 +392,7 @@ debian/arm32_test:
|
|||||||
needs:
|
needs:
|
||||||
- kernel+rootfs_arm32
|
- kernel+rootfs_arm32
|
||||||
variables:
|
variables:
|
||||||
MESA_IMAGE_TAG: &debian-arm32_test "${DEBIAN_BASE_TAG}--${PKG_REPO_REV}"
|
MESA_IMAGE_TAG: &debian-arm32_test ${DEBIAN_BASE_TAG}
|
||||||
|
|
||||||
debian/arm64_test:
|
debian/arm64_test:
|
||||||
extends:
|
extends:
|
||||||
@@ -391,14 +400,14 @@ debian/arm64_test:
|
|||||||
needs:
|
needs:
|
||||||
- kernel+rootfs_arm64
|
- kernel+rootfs_arm64
|
||||||
variables:
|
variables:
|
||||||
MESA_IMAGE_TAG: &debian-arm64_test "${DEBIAN_BASE_TAG}--${PKG_REPO_REV}"
|
MESA_IMAGE_TAG: &debian-arm64_test ${DEBIAN_BASE_TAG}
|
||||||
|
|
||||||
.use-debian/arm_test:
|
.use-debian/arm_test:
|
||||||
variables:
|
variables:
|
||||||
MESA_ROOTFS_TAG: *kernel-rootfs
|
MESA_ROOTFS_TAG: *kernel-rootfs
|
||||||
|
|
||||||
.use-debian/arm32_test:
|
.use-debian/arm32_test:
|
||||||
image: "$CI_REGISTRY_IMAGE/${MESA_IMAGE_PATH}:${MESA_IMAGE_TAG}--${MESA_ROOTFS_TAG}--${KERNEL_TAG}--${MESA_TEMPLATES_COMMIT}"
|
image: "$CI_REGISTRY_IMAGE/${MESA_IMAGE_PATH}:${MESA_IMAGE_TAG}--${MESA_ROOTFS_TAG}--${MESA_TEMPLATES_COMMIT}"
|
||||||
extends:
|
extends:
|
||||||
- .use-debian/arm_test
|
- .use-debian/arm_test
|
||||||
variables:
|
variables:
|
||||||
@@ -408,7 +417,7 @@ debian/arm64_test:
|
|||||||
- debian/arm_test
|
- debian/arm_test
|
||||||
|
|
||||||
.use-debian/arm64_test:
|
.use-debian/arm64_test:
|
||||||
image: "$CI_REGISTRY_IMAGE/${MESA_IMAGE_PATH}:${MESA_IMAGE_TAG}--${MESA_ROOTFS_TAG}--${KERNEL_TAG}--${MESA_TEMPLATES_COMMIT}"
|
image: "$CI_REGISTRY_IMAGE/${MESA_IMAGE_PATH}:${MESA_IMAGE_TAG}--${MESA_ROOTFS_TAG}--${MESA_TEMPLATES_COMMIT}"
|
||||||
extends:
|
extends:
|
||||||
- .use-debian/arm_test
|
- .use-debian/arm_test
|
||||||
variables:
|
variables:
|
||||||
@@ -429,92 +438,98 @@ debian/arm64_test:
|
|||||||
# (host PowerShell) in the container stage to build and push the image,
|
# (host PowerShell) in the container stage to build and push the image,
|
||||||
# then in the build stage by executing inside Docker.
|
# then in the build stage by executing inside Docker.
|
||||||
|
|
||||||
.windows-docker-msvc:
|
.windows-docker-vs2019:
|
||||||
variables:
|
variables:
|
||||||
MESA_IMAGE: "$CI_REGISTRY_IMAGE/${MESA_IMAGE_PATH}:${MESA_IMAGE_TAG}"
|
MESA_IMAGE: "$CI_REGISTRY_IMAGE/${MESA_IMAGE_PATH}:${MESA_IMAGE_TAG}"
|
||||||
MESA_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/$MESA_IMAGE_PATH:${MESA_IMAGE_TAG}"
|
MESA_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/$MESA_IMAGE_PATH:${MESA_IMAGE_TAG}"
|
||||||
extends:
|
|
||||||
- .windows-docker-tags
|
|
||||||
|
|
||||||
.windows_container_build:
|
.windows_container_build:
|
||||||
inherit:
|
inherit:
|
||||||
default: [retry]
|
default: [retry]
|
||||||
extends:
|
extends:
|
||||||
- .container
|
- .container
|
||||||
- .windows-docker-msvc
|
- .windows-docker-vs2019
|
||||||
- .windows-shell-tags
|
|
||||||
rules:
|
rules:
|
||||||
- !reference [.microsoft-farm-container-rules, rules]
|
- !reference [.microsoft-farm-container-rules, rules]
|
||||||
- !reference [.container+build-rules, rules]
|
- !reference [.container-rules, rules]
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: fetch # we do actually need the full repository though
|
GIT_STRATEGY: fetch # we do actually need the full repository though
|
||||||
MESA_BASE_IMAGE: None
|
MESA_BASE_IMAGE: None
|
||||||
|
tags:
|
||||||
|
- windows
|
||||||
|
- shell
|
||||||
|
- "2022"
|
||||||
|
- mesa
|
||||||
script:
|
script:
|
||||||
- .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $MESA_IMAGE $MESA_UPSTREAM_IMAGE ${DOCKERFILE} ${MESA_BASE_IMAGE}
|
- .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $MESA_IMAGE $MESA_UPSTREAM_IMAGE ${DOCKERFILE} ${MESA_BASE_IMAGE}
|
||||||
|
|
||||||
windows_msvc:
|
windows_vs2019:
|
||||||
inherit:
|
inherit:
|
||||||
default: [retry]
|
default: [retry]
|
||||||
extends:
|
extends:
|
||||||
- .windows_container_build
|
- .windows_container_build
|
||||||
variables:
|
variables:
|
||||||
MESA_IMAGE_PATH: &windows_msvc_image_path ${WINDOWS_X64_MSVC_PATH}
|
MESA_IMAGE_PATH: &windows_vs_image_path ${WINDOWS_X64_VS_PATH}
|
||||||
MESA_IMAGE_TAG: ${WINDOWS_X64_MSVC_TAG}
|
MESA_IMAGE_TAG: &windows_vs_image_tag ${WINDOWS_X64_VS_TAG}
|
||||||
DOCKERFILE: Dockerfile_msvc
|
DOCKERFILE: Dockerfile_vs
|
||||||
MESA_BASE_IMAGE: "mcr.microsoft.com/windows/server:ltsc2022"
|
MESA_BASE_IMAGE: "mcr.microsoft.com/windows/server:ltsc2022"
|
||||||
|
|
||||||
windows_build_msvc:
|
windows_build_vs2019:
|
||||||
inherit:
|
inherit:
|
||||||
default: [retry]
|
default: [retry]
|
||||||
extends:
|
extends:
|
||||||
- .windows_container_build
|
- .windows_container_build
|
||||||
rules:
|
rules:
|
||||||
- !reference [.microsoft-farm-rules, rules]
|
- !reference [.microsoft-farm-rules, rules]
|
||||||
- !reference [.container+build-rules, rules]
|
- !reference [.build-rules, rules]
|
||||||
variables:
|
variables:
|
||||||
MESA_IMAGE_PATH: &windows_build_image_path ${WINDOWS_X64_BUILD_PATH}
|
MESA_IMAGE_PATH: &windows_build_image_path ${WINDOWS_X64_BUILD_PATH}
|
||||||
MESA_IMAGE_TAG: &windows_build_image_tag ${WINDOWS_X64_MSVC_TAG}--${WINDOWS_X64_BUILD_TAG}
|
MESA_IMAGE_TAG: &windows_build_image_tag ${MESA_BASE_IMAGE_TAG}--${WINDOWS_X64_BUILD_TAG}
|
||||||
DOCKERFILE: Dockerfile_build
|
DOCKERFILE: Dockerfile_build
|
||||||
MESA_BASE_IMAGE_PATH: *windows_msvc_image_path
|
MESA_BASE_IMAGE_PATH: *windows_vs_image_path
|
||||||
MESA_BASE_IMAGE: "$CI_REGISTRY_IMAGE/${MESA_BASE_IMAGE_PATH}:${WINDOWS_X64_MSVC_TAG}"
|
MESA_BASE_IMAGE_TAG: *windows_vs_image_tag
|
||||||
|
MESA_BASE_IMAGE: "$CI_REGISTRY_IMAGE/${MESA_BASE_IMAGE_PATH}:${MESA_BASE_IMAGE_TAG}"
|
||||||
timeout: 2h 30m # LLVM takes ages
|
timeout: 2h 30m # LLVM takes ages
|
||||||
needs:
|
needs:
|
||||||
- windows_msvc
|
- windows_vs2019
|
||||||
|
|
||||||
windows_test_msvc:
|
windows_test_vs2019:
|
||||||
inherit:
|
inherit:
|
||||||
default: [retry]
|
default: [retry]
|
||||||
extends:
|
extends:
|
||||||
- .windows_container_build
|
- .windows_container_build
|
||||||
rules:
|
rules:
|
||||||
- !reference [.microsoft-farm-rules, rules]
|
- !reference [.microsoft-farm-rules, rules]
|
||||||
- !reference [.container+build-rules, rules]
|
- !reference [.build-rules, rules]
|
||||||
variables:
|
variables:
|
||||||
MESA_IMAGE_PATH: &windows_test_image_path ${WINDOWS_X64_TEST_PATH}
|
MESA_IMAGE_PATH: &windows_test_image_path ${WINDOWS_X64_TEST_PATH}
|
||||||
MESA_IMAGE_TAG: &windows_test_image_tag ${WINDOWS_X64_MSVC_TAG}--${WINDOWS_X64_TEST_TAG}
|
MESA_IMAGE_TAG: &windows_test_image_tag ${MESA_BASE_IMAGE_TAG}--${WINDOWS_X64_TEST_TAG}
|
||||||
DOCKERFILE: Dockerfile_test
|
DOCKERFILE: Dockerfile_test
|
||||||
MESA_BASE_IMAGE_PATH: *windows_msvc_image_path
|
MESA_BASE_IMAGE_PATH: *windows_vs_image_path
|
||||||
MESA_BASE_IMAGE: "$CI_REGISTRY_IMAGE/${MESA_BASE_IMAGE_PATH}:${WINDOWS_X64_MSVC_TAG}"
|
MESA_BASE_IMAGE_TAG: *windows_vs_image_tag
|
||||||
|
MESA_BASE_IMAGE: "$CI_REGISTRY_IMAGE/${MESA_BASE_IMAGE_PATH}:${MESA_BASE_IMAGE_TAG}"
|
||||||
timeout: 2h 30m
|
timeout: 2h 30m
|
||||||
needs:
|
needs:
|
||||||
- windows_msvc
|
- windows_vs2019
|
||||||
|
|
||||||
.use-windows_build_msvc:
|
.use-windows_build_vs2019:
|
||||||
inherit:
|
inherit:
|
||||||
default: [retry]
|
default: [retry]
|
||||||
extends: .windows-docker-msvc
|
extends: .windows-docker-vs2019
|
||||||
image: "$MESA_IMAGE"
|
image: "$MESA_IMAGE"
|
||||||
variables:
|
variables:
|
||||||
MESA_IMAGE_PATH: *windows_build_image_path
|
MESA_IMAGE_PATH: *windows_build_image_path
|
||||||
MESA_IMAGE_TAG: *windows_build_image_tag
|
MESA_IMAGE_TAG: *windows_build_image_tag
|
||||||
|
MESA_BASE_IMAGE_TAG: *windows_vs_image_tag
|
||||||
needs:
|
needs:
|
||||||
- windows_build_msvc
|
- windows_build_vs2019
|
||||||
|
|
||||||
.use-windows_test_msvc:
|
.use-windows_test_vs2019:
|
||||||
inherit:
|
inherit:
|
||||||
default: [retry]
|
default: [retry]
|
||||||
extends: .windows-docker-msvc
|
extends: .windows-docker-vs2019
|
||||||
image: "$MESA_IMAGE"
|
image: "$MESA_IMAGE"
|
||||||
variables:
|
variables:
|
||||||
MESA_IMAGE_PATH: *windows_test_image_path
|
MESA_IMAGE_PATH: *windows_test_image_path
|
||||||
MESA_IMAGE_TAG: *windows_test_image_tag
|
MESA_IMAGE_TAG: *windows_test_image_tag
|
||||||
|
MESA_BASE_IMAGE_TAG: *windows_vs_image_tag
|
||||||
|
@@ -14,7 +14,7 @@ export LLVM_VERSION="${LLVM_VERSION:=15}"
|
|||||||
|
|
||||||
check_minio()
|
check_minio()
|
||||||
{
|
{
|
||||||
S3_PATH="${S3_HOST}/${S3_KERNEL_BUCKET}/$1/${DISTRIBUTION_TAG}/${DEBIAN_ARCH}"
|
S3_PATH="${S3_HOST}/mesa-lava/$1/${DISTRIBUTION_TAG}/${DEBIAN_ARCH}"
|
||||||
if curl -L --retry 4 -f --retry-delay 60 -s -X HEAD \
|
if curl -L --retry 4 -f --retry-delay 60 -s -X HEAD \
|
||||||
"https://${S3_PATH}/done"; then
|
"https://${S3_PATH}/done"; then
|
||||||
echo "Remote files are up-to-date, skip rebuilding them."
|
echo "Remote files are up-to-date, skip rebuilding them."
|
||||||
@@ -35,20 +35,20 @@ if [[ "$DEBIAN_ARCH" = "arm64" ]]; then
|
|||||||
KERNEL_ARCH="arm64"
|
KERNEL_ARCH="arm64"
|
||||||
SKQP_ARCH="arm64"
|
SKQP_ARCH="arm64"
|
||||||
DEFCONFIG="arch/arm64/configs/defconfig"
|
DEFCONFIG="arch/arm64/configs/defconfig"
|
||||||
DEVICE_TREES="rk3399-gru-kevin.dtb"
|
DEVICE_TREES="arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dtb"
|
||||||
DEVICE_TREES+=" meson-g12b-a311d-khadas-vim3.dtb"
|
DEVICE_TREES+=" arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dtb"
|
||||||
DEVICE_TREES+=" meson-gxl-s805x-libretech-ac.dtb"
|
DEVICE_TREES+=" arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dtb"
|
||||||
DEVICE_TREES+=" meson-gxm-khadas-vim2.dtb"
|
DEVICE_TREES+=" arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dtb"
|
||||||
DEVICE_TREES+=" sun50i-h6-pine-h64.dtb"
|
DEVICE_TREES+=" arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dtb"
|
||||||
DEVICE_TREES+=" imx8mq-nitrogen.dtb"
|
DEVICE_TREES+=" arch/arm64/boot/dts/freescale/imx8mq-nitrogen.dtb"
|
||||||
DEVICE_TREES+=" mt8192-asurada-spherion-r0.dtb"
|
DEVICE_TREES+=" arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r0.dtb"
|
||||||
DEVICE_TREES+=" mt8183-kukui-jacuzzi-juniper-sku16.dtb"
|
DEVICE_TREES+=" arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-juniper-sku16.dtb"
|
||||||
DEVICE_TREES+=" tegra210-p3450-0000.dtb"
|
DEVICE_TREES+=" arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dtb"
|
||||||
DEVICE_TREES+=" apq8016-sbc.dtb"
|
DEVICE_TREES+=" arch/arm64/boot/dts/qcom/apq8016-sbc.dtb"
|
||||||
DEVICE_TREES+=" apq8096-db820c.dtb"
|
DEVICE_TREES+=" arch/arm64/boot/dts/qcom/apq8096-db820c.dtb"
|
||||||
DEVICE_TREES+=" sc7180-trogdor-lazor-limozeen-nots-r5.dtb"
|
DEVICE_TREES+=" arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-limozeen-nots-r5.dtb"
|
||||||
DEVICE_TREES+=" sc7180-trogdor-kingoftown.dtb"
|
DEVICE_TREES+=" arch/arm64/boot/dts/qcom/sc7180-trogdor-kingoftown-r1.dtb"
|
||||||
DEVICE_TREES+=" sm8350-hdk.dtb"
|
DEVICE_TREES+=" arch/arm64/boot/dts/qcom/sm8350-hdk.dtb"
|
||||||
KERNEL_IMAGE_NAME="Image"
|
KERNEL_IMAGE_NAME="Image"
|
||||||
|
|
||||||
elif [[ "$DEBIAN_ARCH" = "armhf" ]]; then
|
elif [[ "$DEBIAN_ARCH" = "armhf" ]]; then
|
||||||
@@ -56,25 +56,12 @@ elif [[ "$DEBIAN_ARCH" = "armhf" ]]; then
|
|||||||
KERNEL_ARCH="arm"
|
KERNEL_ARCH="arm"
|
||||||
SKQP_ARCH="arm"
|
SKQP_ARCH="arm"
|
||||||
DEFCONFIG="arch/arm/configs/multi_v7_defconfig"
|
DEFCONFIG="arch/arm/configs/multi_v7_defconfig"
|
||||||
DEVICE_TREES="rk3288-veyron-jaq.dtb"
|
DEVICE_TREES="arch/arm/boot/dts/rk3288-veyron-jaq.dtb"
|
||||||
DEVICE_TREES+=" sun8i-h3-libretech-all-h3-cc.dtb"
|
DEVICE_TREES+=" arch/arm/boot/dts/sun8i-h3-libretech-all-h3-cc.dtb"
|
||||||
DEVICE_TREES+=" imx6q-cubox-i.dtb"
|
DEVICE_TREES+=" arch/arm/boot/dts/imx6q-cubox-i.dtb"
|
||||||
DEVICE_TREES+=" tegra124-jetson-tk1.dtb"
|
DEVICE_TREES+=" arch/arm/boot/dts/tegra124-jetson-tk1.dtb"
|
||||||
KERNEL_IMAGE_NAME="zImage"
|
KERNEL_IMAGE_NAME="zImage"
|
||||||
. .gitlab-ci/container/create-cross-file.sh armhf
|
. .gitlab-ci/container/create-cross-file.sh armhf
|
||||||
CONTAINER_ARCH_PACKAGES=(
|
|
||||||
libegl1-mesa-dev:armhf
|
|
||||||
libelf-dev:armhf
|
|
||||||
libgbm-dev:armhf
|
|
||||||
libgles2-mesa-dev:armhf
|
|
||||||
libpng-dev:armhf
|
|
||||||
libudev-dev:armhf
|
|
||||||
libvulkan-dev:armhf
|
|
||||||
libwaffle-dev:armhf
|
|
||||||
libwayland-dev:armhf
|
|
||||||
libx11-xcb-dev:armhf
|
|
||||||
libxkbcommon-dev:armhf
|
|
||||||
)
|
|
||||||
else
|
else
|
||||||
GCC_ARCH="x86_64-linux-gnu"
|
GCC_ARCH="x86_64-linux-gnu"
|
||||||
KERNEL_ARCH="x86_64"
|
KERNEL_ARCH="x86_64"
|
||||||
@@ -82,9 +69,7 @@ else
|
|||||||
DEFCONFIG="arch/x86/configs/x86_64_defconfig"
|
DEFCONFIG="arch/x86/configs/x86_64_defconfig"
|
||||||
DEVICE_TREES=""
|
DEVICE_TREES=""
|
||||||
KERNEL_IMAGE_NAME="bzImage"
|
KERNEL_IMAGE_NAME="bzImage"
|
||||||
CONTAINER_ARCH_PACKAGES=(
|
ARCH_PACKAGES="libasound2-dev libcap-dev libfdt-dev libva-dev wayland-protocols p7zip"
|
||||||
libasound2-dev libcap-dev libfdt-dev libva-dev wayland-protocols p7zip wine
|
|
||||||
)
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Determine if we're in a cross build.
|
# Determine if we're in a cross build.
|
||||||
@@ -104,57 +89,64 @@ if [[ -e /cross_file-$DEBIAN_ARCH.txt ]]; then
|
|||||||
export CROSS_COMPILE="${GCC_ARCH}-"
|
export CROSS_COMPILE="${GCC_ARCH}-"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# no need to remove these at end, image isn't saved at the end
|
|
||||||
CONTAINER_EPHEMERAL=(
|
|
||||||
automake
|
|
||||||
bc
|
|
||||||
"clang-${LLVM_VERSION}"
|
|
||||||
cmake
|
|
||||||
curl
|
|
||||||
mmdebstrap
|
|
||||||
git
|
|
||||||
glslang-tools
|
|
||||||
libdrm-dev
|
|
||||||
libegl1-mesa-dev
|
|
||||||
libxext-dev
|
|
||||||
libfontconfig-dev
|
|
||||||
libgbm-dev
|
|
||||||
libgl-dev
|
|
||||||
libgles2-mesa-dev
|
|
||||||
libglu1-mesa-dev
|
|
||||||
libglx-dev
|
|
||||||
libpng-dev
|
|
||||||
libssl-dev
|
|
||||||
libudev-dev
|
|
||||||
libvulkan-dev
|
|
||||||
libwaffle-dev
|
|
||||||
libwayland-dev
|
|
||||||
libx11-xcb-dev
|
|
||||||
libxcb-dri2-0-dev
|
|
||||||
libxkbcommon-dev
|
|
||||||
libwayland-dev
|
|
||||||
ninja-build
|
|
||||||
openssh-server
|
|
||||||
patch
|
|
||||||
protobuf-compiler
|
|
||||||
python-is-python3
|
|
||||||
python3-distutils
|
|
||||||
python3-mako
|
|
||||||
python3-numpy
|
|
||||||
python3-serial
|
|
||||||
python3-venv
|
|
||||||
unzip
|
|
||||||
zstd
|
|
||||||
)
|
|
||||||
|
|
||||||
echo "deb [trusted=yes] https://gitlab.freedesktop.org/gfx-ci/ci-deb-repo/-/raw/${PKG_REPO_REV}/ ${FDO_DISTRIBUTION_VERSION%-*} main" | tee /etc/apt/sources.list.d/gfx-ci_.list
|
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y --no-remove \
|
apt-get install -y --no-remove \
|
||||||
-o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' \
|
-o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' \
|
||||||
"${CONTAINER_EPHEMERAL[@]}" \
|
${ARCH_PACKAGES} \
|
||||||
"${CONTAINER_ARCH_PACKAGES[@]}" \
|
automake \
|
||||||
${EXTRA_LOCAL_PACKAGES}
|
bc \
|
||||||
|
clang-${LLVM_VERSION} \
|
||||||
|
cmake \
|
||||||
|
curl \
|
||||||
|
mmdebstrap \
|
||||||
|
git \
|
||||||
|
glslang-tools \
|
||||||
|
libdrm-dev \
|
||||||
|
libegl1-mesa-dev \
|
||||||
|
libxext-dev \
|
||||||
|
libfontconfig-dev \
|
||||||
|
libgbm-dev \
|
||||||
|
libgl-dev \
|
||||||
|
libgles2-mesa-dev \
|
||||||
|
libglu1-mesa-dev \
|
||||||
|
libglx-dev \
|
||||||
|
libpng-dev \
|
||||||
|
libssl-dev \
|
||||||
|
libudev-dev \
|
||||||
|
libvulkan-dev \
|
||||||
|
libwaffle-dev \
|
||||||
|
libwayland-dev \
|
||||||
|
libx11-xcb-dev \
|
||||||
|
libxcb-dri2-0-dev \
|
||||||
|
libxkbcommon-dev \
|
||||||
|
libwayland-dev \
|
||||||
|
ninja-build \
|
||||||
|
openssh-server \
|
||||||
|
patch \
|
||||||
|
protobuf-compiler \
|
||||||
|
python-is-python3 \
|
||||||
|
python3-distutils \
|
||||||
|
python3-mako \
|
||||||
|
python3-numpy \
|
||||||
|
python3-serial \
|
||||||
|
unzip \
|
||||||
|
zstd
|
||||||
|
|
||||||
|
|
||||||
|
if [[ "$DEBIAN_ARCH" = "armhf" ]]; then
|
||||||
|
apt-get install -y --no-remove \
|
||||||
|
libegl1-mesa-dev:armhf \
|
||||||
|
libelf-dev:armhf \
|
||||||
|
libgbm-dev:armhf \
|
||||||
|
libgles2-mesa-dev:armhf \
|
||||||
|
libpng-dev:armhf \
|
||||||
|
libudev-dev:armhf \
|
||||||
|
libvulkan-dev:armhf \
|
||||||
|
libwaffle-dev:armhf \
|
||||||
|
libwayland-dev:armhf \
|
||||||
|
libx11-xcb-dev:armhf \
|
||||||
|
libxkbcommon-dev:armhf
|
||||||
|
fi
|
||||||
|
|
||||||
ROOTFS=/lava-files/rootfs-${DEBIAN_ARCH}
|
ROOTFS=/lava-files/rootfs-${DEBIAN_ARCH}
|
||||||
mkdir -p "$ROOTFS"
|
mkdir -p "$ROOTFS"
|
||||||
@@ -196,7 +188,6 @@ PKG_DEP=(
|
|||||||
)
|
)
|
||||||
[ "$DEBIAN_ARCH" = "amd64" ] && PKG_ARCH=(
|
[ "$DEBIAN_ARCH" = "amd64" ] && PKG_ARCH=(
|
||||||
firmware-amd-graphics
|
firmware-amd-graphics
|
||||||
firmware-misc-nonfree
|
|
||||||
libgl1 libglu1-mesa
|
libgl1 libglu1-mesa
|
||||||
inetutils-syslogd iptables libcap2
|
inetutils-syslogd iptables libcap2
|
||||||
libfontconfig1
|
libfontconfig1
|
||||||
@@ -219,11 +210,7 @@ mmdebstrap \
|
|||||||
--include "${PKG_BASE[*]} ${PKG_CI[*]} ${PKG_DEP[*]} ${PKG_MESA_DEP[*]} ${PKG_ARCH[*]}" \
|
--include "${PKG_BASE[*]} ${PKG_CI[*]} ${PKG_DEP[*]} ${PKG_MESA_DEP[*]} ${PKG_ARCH[*]}" \
|
||||||
bookworm \
|
bookworm \
|
||||||
"$ROOTFS/" \
|
"$ROOTFS/" \
|
||||||
"http://deb.debian.org/debian" \
|
"http://deb.debian.org/debian"
|
||||||
"deb [trusted=yes] https://gitlab.freedesktop.org/gfx-ci/ci-deb-repo/-/raw/${PKG_REPO_REV}/ ${FDO_DISTRIBUTION_VERSION%-*} main"
|
|
||||||
|
|
||||||
############### Install mold
|
|
||||||
. .gitlab-ci/container/build-mold.sh
|
|
||||||
|
|
||||||
############### Setuping
|
############### Setuping
|
||||||
if [ "$DEBIAN_ARCH" = "amd64" ]; then
|
if [ "$DEBIAN_ARCH" = "amd64" ]; then
|
||||||
@@ -272,17 +259,7 @@ mv /usr/local/bin/*-runner $ROOTFS/usr/bin/.
|
|||||||
|
|
||||||
|
|
||||||
############### Build dEQP
|
############### Build dEQP
|
||||||
DEQP_API=GL \
|
DEQP_TARGET=surfaceless . .gitlab-ci/container/build-deqp.sh
|
||||||
DEQP_TARGET=surfaceless \
|
|
||||||
. .gitlab-ci/container/build-deqp.sh
|
|
||||||
|
|
||||||
DEQP_API=GLES \
|
|
||||||
DEQP_TARGET=surfaceless \
|
|
||||||
. .gitlab-ci/container/build-deqp.sh
|
|
||||||
|
|
||||||
DEQP_API=VK \
|
|
||||||
DEQP_TARGET=default \
|
|
||||||
. .gitlab-ci/container/build-deqp.sh
|
|
||||||
|
|
||||||
mv /deqp $ROOTFS/.
|
mv /deqp $ROOTFS/.
|
||||||
|
|
||||||
@@ -313,12 +290,6 @@ if [[ ${DEBIAN_ARCH} = "amd64" ]]; then
|
|||||||
mv /usr/local/libexec/virgl* $ROOTFS/usr/local/libexec/
|
mv /usr/local/libexec/virgl* $ROOTFS/usr/local/libexec/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
############### Build ci-kdl
|
|
||||||
section_start kdl "Prepare a venv for kdl"
|
|
||||||
. .gitlab-ci/container/build-kdl.sh
|
|
||||||
mv ci-kdl.venv $ROOTFS
|
|
||||||
section_end kdl
|
|
||||||
|
|
||||||
############### Build local stuff for use by igt and kernel testing, which
|
############### Build local stuff for use by igt and kernel testing, which
|
||||||
############### will reuse most of our container build process from a specific
|
############### will reuse most of our container build process from a specific
|
||||||
############### hash of the Mesa tree.
|
############### hash of the Mesa tree.
|
||||||
@@ -334,11 +305,6 @@ fi
|
|||||||
rm -rf /root/.cargo
|
rm -rf /root/.cargo
|
||||||
rm -rf /root/.rustup
|
rm -rf /root/.rustup
|
||||||
|
|
||||||
############### Delete firmware files we don't need
|
|
||||||
if [ "$DEBIAN_ARCH" = "amd64" ]; then
|
|
||||||
dpkg -L firmware-misc-nonfree | grep -v "i915" | xargs rm || true
|
|
||||||
fi
|
|
||||||
|
|
||||||
############### Fill rootfs
|
############### Fill rootfs
|
||||||
cp .gitlab-ci/container/setup-rootfs.sh $ROOTFS/.
|
cp .gitlab-ci/container/setup-rootfs.sh $ROOTFS/.
|
||||||
cp .gitlab-ci/container/strip-rootfs.sh $ROOTFS/.
|
cp .gitlab-ci/container/strip-rootfs.sh $ROOTFS/.
|
||||||
@@ -357,16 +323,25 @@ if [ "${DEBIAN_ARCH}" = "arm64" ]; then
|
|||||||
KERNEL_IMAGE_NAME+=" Image.gz"
|
KERNEL_IMAGE_NAME+=" Image.gz"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ROOTFSTAR="lava-rootfs.tar.zst"
|
|
||||||
du -ah "$ROOTFS" | sort -h | tail -100
|
du -ah "$ROOTFS" | sort -h | tail -100
|
||||||
pushd $ROOTFS
|
pushd $ROOTFS
|
||||||
tar --zstd -cf /lava-files/${ROOTFSTAR} .
|
tar --zstd -cf /lava-files/lava-rootfs.tar.zst .
|
||||||
popd
|
popd
|
||||||
|
|
||||||
. .gitlab-ci/container/container_post_build.sh
|
. .gitlab-ci/container/container_post_build.sh
|
||||||
|
|
||||||
ci-fairy s3cp --token-file "${S3_JWT_FILE}" /lava-files/"${ROOTFSTAR}" \
|
############### Upload the files!
|
||||||
https://${S3_PATH}/"${ROOTFSTAR}"
|
FILES_TO_UPLOAD="lava-rootfs.tar.zst \
|
||||||
|
$KERNEL_IMAGE_NAME"
|
||||||
|
|
||||||
|
if [[ -n $DEVICE_TREES ]]; then
|
||||||
|
FILES_TO_UPLOAD="$FILES_TO_UPLOAD $(basename -a $DEVICE_TREES)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
for f in $FILES_TO_UPLOAD; do
|
||||||
|
ci-fairy s3cp --token-file "${CI_JOB_JWT_FILE}" /lava-files/$f \
|
||||||
|
https://${S3_PATH}/$f
|
||||||
|
done
|
||||||
|
|
||||||
touch /lava-files/done
|
touch /lava-files/done
|
||||||
ci-fairy s3cp --token-file "${S3_JWT_FILE}" /lava-files/done https://${S3_PATH}/done
|
ci-fairy s3cp --token-file "${CI_JOB_JWT_FILE}" /lava-files/done https://${S3_PATH}/done
|
||||||
|
@@ -1,45 +0,0 @@
|
|||||||
From cab41ed387c66a5e7f3454c547fc9ea53587ec1e Mon Sep 17 00:00:00 2001
|
|
||||||
From: David Heidelberg <david.heidelberg@collabora.com>
|
|
||||||
Date: Thu, 9 May 2024 14:08:59 -0700
|
|
||||||
Subject: [PATCH] Correct EGL_EXT_config_select_group extension query
|
|
||||||
|
|
||||||
EGL_EXT_config_select_group is a display extension,
|
|
||||||
not a client extension.
|
|
||||||
|
|
||||||
Affects:
|
|
||||||
dEQP-EGL.functional.choose_config.simple.selection_and_sort.*
|
|
||||||
|
|
||||||
Ref: https://github.com/KhronosGroup/EGL-Registry/pull/199
|
|
||||||
|
|
||||||
Fixes: 88ba9ac270db ("Implement support for the EGL_EXT_config_select_group extension")
|
|
||||||
|
|
||||||
Change-Id: I38956511bdcb8e99d585ea9b99aeab53da0457e2
|
|
||||||
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
|
|
||||||
---
|
|
||||||
framework/egl/egluConfigInfo.cpp | 3 +--
|
|
||||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/framework/egl/egluConfigInfo.cpp b/framework/egl/egluConfigInfo.cpp
|
|
||||||
index 88c30fd65..10936055a 100644
|
|
||||||
--- a/framework/egl/egluConfigInfo.cpp
|
|
||||||
+++ b/framework/egl/egluConfigInfo.cpp
|
|
||||||
@@ -129,7 +129,6 @@ void queryCoreConfigInfo (const Library& egl, EGLDisplay display, EGLConfig conf
|
|
||||||
void queryExtConfigInfo (const eglw::Library& egl, eglw::EGLDisplay display, eglw::EGLConfig config, ConfigInfo* dst)
|
|
||||||
{
|
|
||||||
const std::vector<std::string> extensions = getDisplayExtensions(egl, display);
|
|
||||||
- const std::vector<std::string> clientExtensions = getClientExtensions(egl);
|
|
||||||
|
|
||||||
if (de::contains(extensions.begin(), extensions.end(), "EGL_EXT_yuv_surface"))
|
|
||||||
{
|
|
||||||
@@ -159,7 +158,7 @@ void queryExtConfigInfo (const eglw::Library& egl, eglw::EGLDisplay display, egl
|
|
||||||
else
|
|
||||||
dst->colorComponentType = EGL_COLOR_COMPONENT_TYPE_FIXED_EXT;
|
|
||||||
|
|
||||||
- if (de::contains(clientExtensions.begin(), clientExtensions.end(), "EGL_EXT_config_select_group"))
|
|
||||||
+ if (hasExtension(egl, display, "EGL_EXT_config_select_group"))
|
|
||||||
{
|
|
||||||
egl.getConfigAttrib(display, config, EGL_CONFIG_SELECT_GROUP_EXT, (EGLint*)&dst->groupId);
|
|
||||||
|
|
||||||
--
|
|
||||||
2.43.0
|
|
||||||
|
|
@@ -1,182 +0,0 @@
|
|||||||
From dc97ee83a813f6b170079ddf2a04bbb06221a5a7 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Tomeu Vizoso <tomeu.vizoso@collabora.com>
|
|
||||||
Date: Fri, 26 Aug 2022 18:24:27 +0200
|
|
||||||
Subject: [PATCH 1/2] Allow running on Android from the command line
|
|
||||||
|
|
||||||
For testing the Android EGL platform without having to go via the
|
|
||||||
Android activity manager, build deqp-egl.
|
|
||||||
|
|
||||||
Tests that render to native windows are unsupported, as command line
|
|
||||||
programs cannot create windows on Android.
|
|
||||||
|
|
||||||
$ cmake -S . -B build/ -DDEQP_TARGET=android -DDEQP_TARGET_TOOLCHAIN=ndk-modern -DCMAKE_C_FLAGS=-Werror -DCMAKE_CXX_FLAGS=-Werror -DANDROID_NDK_PATH=./android-ndk-r21d -DANDROID_ABI=x86_64 -DDE_ANDROID_API=28 -DGLCTS_GTF_TARGET=gles32 -G Ninja
|
|
||||||
$ ninja -C build modules/egl/deqp-egl
|
|
||||||
|
|
||||||
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
|
|
||||||
---
|
|
||||||
CMakeLists.txt | 38 ++-----------------
|
|
||||||
.../android/tcuAndroidNativeActivity.cpp | 36 +++++++++---------
|
|
||||||
.../platform/android/tcuAndroidPlatform.cpp | 12 +++++-
|
|
||||||
3 files changed, 34 insertions(+), 52 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
||||||
index eb58cc7ba..98b8fc6cc 100644
|
|
||||||
--- a/CMakeLists.txt
|
|
||||||
+++ b/CMakeLists.txt
|
|
||||||
@@ -272,7 +272,7 @@ include_directories(
|
|
||||||
external/vulkancts/framework/vulkan
|
|
||||||
)
|
|
||||||
|
|
||||||
-if (DE_OS_IS_ANDROID OR DE_OS_IS_IOS)
|
|
||||||
+if (DE_OS_IS_IOS)
|
|
||||||
# On Android deqp modules are compiled as libraries and linked into final .so
|
|
||||||
set(DEQP_MODULE_LIBRARIES )
|
|
||||||
set(DEQP_MODULE_ENTRY_POINTS )
|
|
||||||
@@ -316,7 +316,7 @@ macro (add_deqp_module MODULE_NAME SRCS LIBS EXECLIBS ENTRY)
|
|
||||||
set(DEQP_MODULE_LIBRARIES ${DEQP_MODULE_LIBRARIES} PARENT_SCOPE)
|
|
||||||
set(DEQP_MODULE_ENTRY_POINTS ${DEQP_MODULE_ENTRY_POINTS} PARENT_SCOPE)
|
|
||||||
|
|
||||||
- if (NOT DE_OS_IS_ANDROID AND NOT DE_OS_IS_IOS)
|
|
||||||
+ if (NOT DE_OS_IS_IOS)
|
|
||||||
# Executable target
|
|
||||||
add_executable(${MODULE_NAME} ${PROJECT_SOURCE_DIR}/framework/platform/tcuMain.cpp ${ENTRY})
|
|
||||||
target_link_libraries(${MODULE_NAME} PUBLIC "${EXECLIBS}" "${MODULE_NAME}${MODULE_LIB_TARGET_POSTFIX}")
|
|
||||||
@@ -338,7 +338,7 @@ macro (add_deqp_module_skip_android MODULE_NAME SRCS LIBS EXECLIBS ENTRY)
|
|
||||||
add_library("${MODULE_NAME}${MODULE_LIB_TARGET_POSTFIX}" STATIC ${SRCS})
|
|
||||||
target_link_libraries("${MODULE_NAME}${MODULE_LIB_TARGET_POSTFIX}" ${LIBS})
|
|
||||||
|
|
||||||
- if (NOT DE_OS_IS_ANDROID AND NOT DE_OS_IS_IOS)
|
|
||||||
+ if (NOT DE_OS_IS_IOS)
|
|
||||||
# Executable target
|
|
||||||
add_executable(${MODULE_NAME} ${PROJECT_SOURCE_DIR}/framework/platform/tcuMain.cpp ${ENTRY})
|
|
||||||
target_link_libraries(${MODULE_NAME} PUBLIC "${EXECLIBS}" "${MODULE_NAME}${MODULE_LIB_TARGET_POSTFIX}")
|
|
||||||
@@ -390,37 +390,7 @@ add_subdirectory(external/vulkancts/vkscpc ${MAYBE_EXCLUDE_FROM_ALL})
|
|
||||||
add_subdirectory(external/openglcts ${MAYBE_EXCLUDE_FROM_ALL})
|
|
||||||
|
|
||||||
# Single-binary targets
|
|
||||||
-if (DE_OS_IS_ANDROID)
|
|
||||||
- include_directories(executor)
|
|
||||||
- include_directories(${PROJECT_BINARY_DIR}/external/vulkancts/framework/vulkan)
|
|
||||||
-
|
|
||||||
- set(DEQP_SRCS
|
|
||||||
- framework/platform/android/tcuAndroidMain.cpp
|
|
||||||
- framework/platform/android/tcuAndroidJNI.cpp
|
|
||||||
- framework/platform/android/tcuAndroidPlatformCapabilityQueryJNI.cpp
|
|
||||||
- framework/platform/android/tcuTestLogParserJNI.cpp
|
|
||||||
- ${DEQP_MODULE_ENTRY_POINTS}
|
|
||||||
- )
|
|
||||||
-
|
|
||||||
- set(DEQP_LIBS
|
|
||||||
- tcutil-platform
|
|
||||||
- xecore
|
|
||||||
- ${DEQP_MODULE_LIBRARIES}
|
|
||||||
- )
|
|
||||||
-
|
|
||||||
- add_library(deqp SHARED ${DEQP_SRCS})
|
|
||||||
- target_link_libraries(deqp ${DEQP_LIBS})
|
|
||||||
-
|
|
||||||
- # Separate out the debug information because it's enormous
|
|
||||||
- add_custom_command(TARGET deqp POST_BUILD
|
|
||||||
- COMMAND ${CMAKE_STRIP} --only-keep-debug -o $<TARGET_FILE:deqp>.debug $<TARGET_FILE:deqp>
|
|
||||||
- COMMAND ${CMAKE_STRIP} -g $<TARGET_FILE:deqp>)
|
|
||||||
-
|
|
||||||
- # Needed by OpenGL CTS that defines its own activity but depends on
|
|
||||||
- # common Android support code.
|
|
||||||
- target_include_directories(deqp PRIVATE framework/platform/android)
|
|
||||||
-
|
|
||||||
-elseif (DE_OS_IS_IOS)
|
|
||||||
+if (DE_OS_IS_IOS)
|
|
||||||
# Code sign identity
|
|
||||||
set(DEQP_IOS_CODE_SIGN_IDENTITY "drawElements" CACHE STRING "Code sign identity for iOS build")
|
|
||||||
|
|
||||||
diff --git a/framework/platform/android/tcuAndroidNativeActivity.cpp b/framework/platform/android/tcuAndroidNativeActivity.cpp
|
|
||||||
index 6f8cd8fc5..b83e30f41 100644
|
|
||||||
--- a/framework/platform/android/tcuAndroidNativeActivity.cpp
|
|
||||||
+++ b/framework/platform/android/tcuAndroidNativeActivity.cpp
|
|
||||||
@@ -116,23 +116,25 @@ namespace Android
|
|
||||||
NativeActivity::NativeActivity (ANativeActivity* activity)
|
|
||||||
: m_activity(activity)
|
|
||||||
{
|
|
||||||
- activity->instance = (void*)this;
|
|
||||||
- activity->callbacks->onStart = onStartCallback;
|
|
||||||
- activity->callbacks->onResume = onResumeCallback;
|
|
||||||
- activity->callbacks->onSaveInstanceState = onSaveInstanceStateCallback;
|
|
||||||
- activity->callbacks->onPause = onPauseCallback;
|
|
||||||
- activity->callbacks->onStop = onStopCallback;
|
|
||||||
- activity->callbacks->onDestroy = onDestroyCallback;
|
|
||||||
- activity->callbacks->onWindowFocusChanged = onWindowFocusChangedCallback;
|
|
||||||
- activity->callbacks->onNativeWindowCreated = onNativeWindowCreatedCallback;
|
|
||||||
- activity->callbacks->onNativeWindowResized = onNativeWindowResizedCallback;
|
|
||||||
- activity->callbacks->onNativeWindowRedrawNeeded = onNativeWindowRedrawNeededCallback;
|
|
||||||
- activity->callbacks->onNativeWindowDestroyed = onNativeWindowDestroyedCallback;
|
|
||||||
- activity->callbacks->onInputQueueCreated = onInputQueueCreatedCallback;
|
|
||||||
- activity->callbacks->onInputQueueDestroyed = onInputQueueDestroyedCallback;
|
|
||||||
- activity->callbacks->onContentRectChanged = onContentRectChangedCallback;
|
|
||||||
- activity->callbacks->onConfigurationChanged = onConfigurationChangedCallback;
|
|
||||||
- activity->callbacks->onLowMemory = onLowMemoryCallback;
|
|
||||||
+ if (activity) {
|
|
||||||
+ activity->instance = (void*)this;
|
|
||||||
+ activity->callbacks->onStart = onStartCallback;
|
|
||||||
+ activity->callbacks->onResume = onResumeCallback;
|
|
||||||
+ activity->callbacks->onSaveInstanceState = onSaveInstanceStateCallback;
|
|
||||||
+ activity->callbacks->onPause = onPauseCallback;
|
|
||||||
+ activity->callbacks->onStop = onStopCallback;
|
|
||||||
+ activity->callbacks->onDestroy = onDestroyCallback;
|
|
||||||
+ activity->callbacks->onWindowFocusChanged = onWindowFocusChangedCallback;
|
|
||||||
+ activity->callbacks->onNativeWindowCreated = onNativeWindowCreatedCallback;
|
|
||||||
+ activity->callbacks->onNativeWindowResized = onNativeWindowResizedCallback;
|
|
||||||
+ activity->callbacks->onNativeWindowRedrawNeeded = onNativeWindowRedrawNeededCallback;
|
|
||||||
+ activity->callbacks->onNativeWindowDestroyed = onNativeWindowDestroyedCallback;
|
|
||||||
+ activity->callbacks->onInputQueueCreated = onInputQueueCreatedCallback;
|
|
||||||
+ activity->callbacks->onInputQueueDestroyed = onInputQueueDestroyedCallback;
|
|
||||||
+ activity->callbacks->onContentRectChanged = onContentRectChangedCallback;
|
|
||||||
+ activity->callbacks->onConfigurationChanged = onConfigurationChangedCallback;
|
|
||||||
+ activity->callbacks->onLowMemory = onLowMemoryCallback;
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
|
|
||||||
NativeActivity::~NativeActivity (void)
|
|
||||||
diff --git a/framework/platform/android/tcuAndroidPlatform.cpp b/framework/platform/android/tcuAndroidPlatform.cpp
|
|
||||||
index b8a35898c..cf02e6b70 100644
|
|
||||||
--- a/framework/platform/android/tcuAndroidPlatform.cpp
|
|
||||||
+++ b/framework/platform/android/tcuAndroidPlatform.cpp
|
|
||||||
@@ -22,6 +22,7 @@
|
|
||||||
*//*--------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#include "tcuAndroidPlatform.hpp"
|
|
||||||
+#include "tcuAndroidNativeActivity.hpp"
|
|
||||||
#include "tcuAndroidUtil.hpp"
|
|
||||||
#include "gluRenderContext.hpp"
|
|
||||||
#include "egluNativeDisplay.hpp"
|
|
||||||
@@ -170,7 +171,7 @@ eglu::NativeWindow* NativeWindowFactory::createWindow (const eglu::WindowParams&
|
|
||||||
Window* window = m_windowRegistry.tryAcquireWindow();
|
|
||||||
|
|
||||||
if (!window)
|
|
||||||
- throw ResourceError("Native window is not available", DE_NULL, __FILE__, __LINE__);
|
|
||||||
+ throw NotSupportedError("Native window is not available", DE_NULL, __FILE__, __LINE__);
|
|
||||||
|
|
||||||
return new NativeWindow(window, params.width, params.height, format);
|
|
||||||
}
|
|
||||||
@@ -292,6 +293,9 @@ static size_t getTotalSystemMemory (ANativeActivity* activity)
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
+ if (!activity)
|
|
||||||
+ throw tcu::InternalError("No activity (running from command line?");
|
|
||||||
+
|
|
||||||
const size_t totalMemory = getTotalAndroidSystemMemory(activity);
|
|
||||||
print("Device has %.2f MiB of system memory\n", static_cast<double>(totalMemory) / static_cast<double>(MiB));
|
|
||||||
return totalMemory;
|
|
||||||
@@ -388,3 +392,9 @@ bool Platform::hasDisplay (vk::wsi::Type wsiType) const
|
|
||||||
|
|
||||||
} // Android
|
|
||||||
} // tcu
|
|
||||||
+
|
|
||||||
+tcu::Platform* createPlatform (void)
|
|
||||||
+{
|
|
||||||
+ tcu::Android::NativeActivity activity(NULL);
|
|
||||||
+ return new tcu::Android::Platform(activity);
|
|
||||||
+}
|
|
||||||
--
|
|
||||||
2.42.0
|
|
||||||
|
|
@@ -1,26 +0,0 @@
|
|||||||
From a602822c53e22e985f942f843ccadbfb64613212 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Helen Koike <helen.koike@collabora.com>
|
|
||||||
Date: Tue, 27 Sep 2022 12:35:22 -0300
|
|
||||||
Subject: [PATCH 2/2] Android prints to stdout instead of logcat
|
|
||||||
|
|
||||||
Signed-off-by: Helen Koike <helen.koike@collabora.com>
|
|
||||||
---
|
|
||||||
framework/qphelper/qpDebugOut.c | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/framework/qphelper/qpDebugOut.c b/framework/qphelper/qpDebugOut.c
|
|
||||||
index 6579e9f48..c200c6f6b 100644
|
|
||||||
--- a/framework/qphelper/qpDebugOut.c
|
|
||||||
+++ b/framework/qphelper/qpDebugOut.c
|
|
||||||
@@ -98,7 +98,7 @@ void qpDiev (const char* format, va_list args)
|
|
||||||
}
|
|
||||||
|
|
||||||
/* print() implementation. */
|
|
||||||
-#if (DE_OS == DE_OS_ANDROID)
|
|
||||||
+#if (0)
|
|
||||||
|
|
||||||
#include <android/log.h>
|
|
||||||
|
|
||||||
--
|
|
||||||
2.42.0
|
|
||||||
|
|
@@ -1,182 +0,0 @@
|
|||||||
From dc97ee83a813f6b170079ddf2a04bbb06221a5a7 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Tomeu Vizoso <tomeu.vizoso@collabora.com>
|
|
||||||
Date: Fri, 26 Aug 2022 18:24:27 +0200
|
|
||||||
Subject: [PATCH 1/2] Allow running on Android from the command line
|
|
||||||
|
|
||||||
For testing the Android EGL platform without having to go via the
|
|
||||||
Android activity manager, build deqp-egl.
|
|
||||||
|
|
||||||
Tests that render to native windows are unsupported, as command line
|
|
||||||
programs cannot create windows on Android.
|
|
||||||
|
|
||||||
$ cmake -S . -B build/ -DDEQP_TARGET=android -DDEQP_TARGET_TOOLCHAIN=ndk-modern -DCMAKE_C_FLAGS=-Werror -DCMAKE_CXX_FLAGS=-Werror -DANDROID_NDK_PATH=./android-ndk-r21d -DANDROID_ABI=x86_64 -DDE_ANDROID_API=28 -DGLCTS_GTF_TARGET=gles32 -G Ninja
|
|
||||||
$ ninja -C build modules/egl/deqp-egl
|
|
||||||
|
|
||||||
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
|
|
||||||
---
|
|
||||||
CMakeLists.txt | 38 ++-----------------
|
|
||||||
.../android/tcuAndroidNativeActivity.cpp | 36 +++++++++---------
|
|
||||||
.../platform/android/tcuAndroidPlatform.cpp | 12 +++++-
|
|
||||||
3 files changed, 34 insertions(+), 52 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
||||||
index eb58cc7ba..98b8fc6cc 100644
|
|
||||||
--- a/CMakeLists.txt
|
|
||||||
+++ b/CMakeLists.txt
|
|
||||||
@@ -272,7 +272,7 @@ include_directories(
|
|
||||||
external/vulkancts/framework/vulkan
|
|
||||||
)
|
|
||||||
|
|
||||||
-if (DE_OS_IS_ANDROID OR DE_OS_IS_IOS)
|
|
||||||
+if (DE_OS_IS_IOS)
|
|
||||||
# On Android deqp modules are compiled as libraries and linked into final .so
|
|
||||||
set(DEQP_MODULE_LIBRARIES )
|
|
||||||
set(DEQP_MODULE_ENTRY_POINTS )
|
|
||||||
@@ -316,7 +316,7 @@ macro (add_deqp_module MODULE_NAME SRCS LIBS EXECLIBS ENTRY)
|
|
||||||
set(DEQP_MODULE_LIBRARIES ${DEQP_MODULE_LIBRARIES} PARENT_SCOPE)
|
|
||||||
set(DEQP_MODULE_ENTRY_POINTS ${DEQP_MODULE_ENTRY_POINTS} PARENT_SCOPE)
|
|
||||||
|
|
||||||
- if (NOT DE_OS_IS_ANDROID AND NOT DE_OS_IS_IOS)
|
|
||||||
+ if (NOT DE_OS_IS_IOS)
|
|
||||||
# Executable target
|
|
||||||
add_executable(${MODULE_NAME} ${PROJECT_SOURCE_DIR}/framework/platform/tcuMain.cpp ${ENTRY})
|
|
||||||
target_link_libraries(${MODULE_NAME} PUBLIC "${EXECLIBS}" "${MODULE_NAME}${MODULE_LIB_TARGET_POSTFIX}")
|
|
||||||
@@ -338,7 +338,7 @@ macro (add_deqp_module_skip_android MODULE_NAME SRCS LIBS EXECLIBS ENTRY)
|
|
||||||
add_library("${MODULE_NAME}${MODULE_LIB_TARGET_POSTFIX}" STATIC ${SRCS})
|
|
||||||
target_link_libraries("${MODULE_NAME}${MODULE_LIB_TARGET_POSTFIX}" ${LIBS})
|
|
||||||
|
|
||||||
- if (NOT DE_OS_IS_ANDROID AND NOT DE_OS_IS_IOS)
|
|
||||||
+ if (NOT DE_OS_IS_IOS)
|
|
||||||
# Executable target
|
|
||||||
add_executable(${MODULE_NAME} ${PROJECT_SOURCE_DIR}/framework/platform/tcuMain.cpp ${ENTRY})
|
|
||||||
target_link_libraries(${MODULE_NAME} PUBLIC "${EXECLIBS}" "${MODULE_NAME}${MODULE_LIB_TARGET_POSTFIX}")
|
|
||||||
@@ -390,37 +390,7 @@ add_subdirectory(external/vulkancts/vkscpc ${MAYBE_EXCLUDE_FROM_ALL})
|
|
||||||
add_subdirectory(external/openglcts ${MAYBE_EXCLUDE_FROM_ALL})
|
|
||||||
|
|
||||||
# Single-binary targets
|
|
||||||
-if (DE_OS_IS_ANDROID)
|
|
||||||
- include_directories(executor)
|
|
||||||
- include_directories(${PROJECT_BINARY_DIR}/external/vulkancts/framework/vulkan)
|
|
||||||
-
|
|
||||||
- set(DEQP_SRCS
|
|
||||||
- framework/platform/android/tcuAndroidMain.cpp
|
|
||||||
- framework/platform/android/tcuAndroidJNI.cpp
|
|
||||||
- framework/platform/android/tcuAndroidPlatformCapabilityQueryJNI.cpp
|
|
||||||
- framework/platform/android/tcuTestLogParserJNI.cpp
|
|
||||||
- ${DEQP_MODULE_ENTRY_POINTS}
|
|
||||||
- )
|
|
||||||
-
|
|
||||||
- set(DEQP_LIBS
|
|
||||||
- tcutil-platform
|
|
||||||
- xecore
|
|
||||||
- ${DEQP_MODULE_LIBRARIES}
|
|
||||||
- )
|
|
||||||
-
|
|
||||||
- add_library(deqp SHARED ${DEQP_SRCS})
|
|
||||||
- target_link_libraries(deqp ${DEQP_LIBS})
|
|
||||||
-
|
|
||||||
- # Separate out the debug information because it's enormous
|
|
||||||
- add_custom_command(TARGET deqp POST_BUILD
|
|
||||||
- COMMAND ${CMAKE_STRIP} --only-keep-debug -o $<TARGET_FILE:deqp>.debug $<TARGET_FILE:deqp>
|
|
||||||
- COMMAND ${CMAKE_STRIP} -g $<TARGET_FILE:deqp>)
|
|
||||||
-
|
|
||||||
- # Needed by OpenGL CTS that defines its own activity but depends on
|
|
||||||
- # common Android support code.
|
|
||||||
- target_include_directories(deqp PRIVATE framework/platform/android)
|
|
||||||
-
|
|
||||||
-elseif (DE_OS_IS_IOS)
|
|
||||||
+if (DE_OS_IS_IOS)
|
|
||||||
# Code sign identity
|
|
||||||
set(DEQP_IOS_CODE_SIGN_IDENTITY "drawElements" CACHE STRING "Code sign identity for iOS build")
|
|
||||||
|
|
||||||
diff --git a/framework/platform/android/tcuAndroidNativeActivity.cpp b/framework/platform/android/tcuAndroidNativeActivity.cpp
|
|
||||||
index 6f8cd8fc5..b83e30f41 100644
|
|
||||||
--- a/framework/platform/android/tcuAndroidNativeActivity.cpp
|
|
||||||
+++ b/framework/platform/android/tcuAndroidNativeActivity.cpp
|
|
||||||
@@ -116,23 +116,25 @@ namespace Android
|
|
||||||
NativeActivity::NativeActivity (ANativeActivity* activity)
|
|
||||||
: m_activity(activity)
|
|
||||||
{
|
|
||||||
- activity->instance = (void*)this;
|
|
||||||
- activity->callbacks->onStart = onStartCallback;
|
|
||||||
- activity->callbacks->onResume = onResumeCallback;
|
|
||||||
- activity->callbacks->onSaveInstanceState = onSaveInstanceStateCallback;
|
|
||||||
- activity->callbacks->onPause = onPauseCallback;
|
|
||||||
- activity->callbacks->onStop = onStopCallback;
|
|
||||||
- activity->callbacks->onDestroy = onDestroyCallback;
|
|
||||||
- activity->callbacks->onWindowFocusChanged = onWindowFocusChangedCallback;
|
|
||||||
- activity->callbacks->onNativeWindowCreated = onNativeWindowCreatedCallback;
|
|
||||||
- activity->callbacks->onNativeWindowResized = onNativeWindowResizedCallback;
|
|
||||||
- activity->callbacks->onNativeWindowRedrawNeeded = onNativeWindowRedrawNeededCallback;
|
|
||||||
- activity->callbacks->onNativeWindowDestroyed = onNativeWindowDestroyedCallback;
|
|
||||||
- activity->callbacks->onInputQueueCreated = onInputQueueCreatedCallback;
|
|
||||||
- activity->callbacks->onInputQueueDestroyed = onInputQueueDestroyedCallback;
|
|
||||||
- activity->callbacks->onContentRectChanged = onContentRectChangedCallback;
|
|
||||||
- activity->callbacks->onConfigurationChanged = onConfigurationChangedCallback;
|
|
||||||
- activity->callbacks->onLowMemory = onLowMemoryCallback;
|
|
||||||
+ if (activity) {
|
|
||||||
+ activity->instance = (void*)this;
|
|
||||||
+ activity->callbacks->onStart = onStartCallback;
|
|
||||||
+ activity->callbacks->onResume = onResumeCallback;
|
|
||||||
+ activity->callbacks->onSaveInstanceState = onSaveInstanceStateCallback;
|
|
||||||
+ activity->callbacks->onPause = onPauseCallback;
|
|
||||||
+ activity->callbacks->onStop = onStopCallback;
|
|
||||||
+ activity->callbacks->onDestroy = onDestroyCallback;
|
|
||||||
+ activity->callbacks->onWindowFocusChanged = onWindowFocusChangedCallback;
|
|
||||||
+ activity->callbacks->onNativeWindowCreated = onNativeWindowCreatedCallback;
|
|
||||||
+ activity->callbacks->onNativeWindowResized = onNativeWindowResizedCallback;
|
|
||||||
+ activity->callbacks->onNativeWindowRedrawNeeded = onNativeWindowRedrawNeededCallback;
|
|
||||||
+ activity->callbacks->onNativeWindowDestroyed = onNativeWindowDestroyedCallback;
|
|
||||||
+ activity->callbacks->onInputQueueCreated = onInputQueueCreatedCallback;
|
|
||||||
+ activity->callbacks->onInputQueueDestroyed = onInputQueueDestroyedCallback;
|
|
||||||
+ activity->callbacks->onContentRectChanged = onContentRectChangedCallback;
|
|
||||||
+ activity->callbacks->onConfigurationChanged = onConfigurationChangedCallback;
|
|
||||||
+ activity->callbacks->onLowMemory = onLowMemoryCallback;
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
|
|
||||||
NativeActivity::~NativeActivity (void)
|
|
||||||
diff --git a/framework/platform/android/tcuAndroidPlatform.cpp b/framework/platform/android/tcuAndroidPlatform.cpp
|
|
||||||
index b8a35898c..cf02e6b70 100644
|
|
||||||
--- a/framework/platform/android/tcuAndroidPlatform.cpp
|
|
||||||
+++ b/framework/platform/android/tcuAndroidPlatform.cpp
|
|
||||||
@@ -22,6 +22,7 @@
|
|
||||||
*//*--------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#include "tcuAndroidPlatform.hpp"
|
|
||||||
+#include "tcuAndroidNativeActivity.hpp"
|
|
||||||
#include "tcuAndroidUtil.hpp"
|
|
||||||
#include "gluRenderContext.hpp"
|
|
||||||
#include "egluNativeDisplay.hpp"
|
|
||||||
@@ -170,7 +171,7 @@ eglu::NativeWindow* NativeWindowFactory::createWindow (const eglu::WindowParams&
|
|
||||||
Window* window = m_windowRegistry.tryAcquireWindow();
|
|
||||||
|
|
||||||
if (!window)
|
|
||||||
- throw ResourceError("Native window is not available", DE_NULL, __FILE__, __LINE__);
|
|
||||||
+ throw NotSupportedError("Native window is not available", DE_NULL, __FILE__, __LINE__);
|
|
||||||
|
|
||||||
return new NativeWindow(window, params.width, params.height, format);
|
|
||||||
}
|
|
||||||
@@ -292,6 +293,9 @@ static size_t getTotalSystemMemory (ANativeActivity* activity)
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
+ if (!activity)
|
|
||||||
+ throw tcu::InternalError("No activity (running from command line?");
|
|
||||||
+
|
|
||||||
const size_t totalMemory = getTotalAndroidSystemMemory(activity);
|
|
||||||
print("Device has %.2f MiB of system memory\n", static_cast<double>(totalMemory) / static_cast<double>(MiB));
|
|
||||||
return totalMemory;
|
|
||||||
@@ -388,3 +392,9 @@ bool Platform::hasDisplay (vk::wsi::Type wsiType) const
|
|
||||||
|
|
||||||
} // Android
|
|
||||||
} // tcu
|
|
||||||
+
|
|
||||||
+tcu::Platform* createPlatform (void)
|
|
||||||
+{
|
|
||||||
+ tcu::Android::NativeActivity activity(NULL);
|
|
||||||
+ return new tcu::Android::Platform(activity);
|
|
||||||
+}
|
|
||||||
--
|
|
||||||
2.42.0
|
|
||||||
|
|
@@ -1,26 +0,0 @@
|
|||||||
From a602822c53e22e985f942f843ccadbfb64613212 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Helen Koike <helen.koike@collabora.com>
|
|
||||||
Date: Tue, 27 Sep 2022 12:35:22 -0300
|
|
||||||
Subject: [PATCH 2/2] Android prints to stdout instead of logcat
|
|
||||||
|
|
||||||
Signed-off-by: Helen Koike <helen.koike@collabora.com>
|
|
||||||
---
|
|
||||||
framework/qphelper/qpDebugOut.c | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/framework/qphelper/qpDebugOut.c b/framework/qphelper/qpDebugOut.c
|
|
||||||
index 6579e9f48..c200c6f6b 100644
|
|
||||||
--- a/framework/qphelper/qpDebugOut.c
|
|
||||||
+++ b/framework/qphelper/qpDebugOut.c
|
|
||||||
@@ -98,7 +98,7 @@ void qpDiev (const char* format, va_list args)
|
|
||||||
}
|
|
||||||
|
|
||||||
/* print() implementation. */
|
|
||||||
-#if (DE_OS == DE_OS_ANDROID)
|
|
||||||
+#if (0)
|
|
||||||
|
|
||||||
#include <android/log.h>
|
|
||||||
|
|
||||||
--
|
|
||||||
2.42.0
|
|
||||||
|
|
@@ -1,4 +1,4 @@
|
|||||||
From dc97ee83a813f6b170079ddf2a04bbb06221a5a7 Mon Sep 17 00:00:00 2001
|
From bf8ada0d15f94824ee1643d4e17a66dffdbaf2e5 Mon Sep 17 00:00:00 2001
|
||||||
From: Tomeu Vizoso <tomeu.vizoso@collabora.com>
|
From: Tomeu Vizoso <tomeu.vizoso@collabora.com>
|
||||||
Date: Fri, 26 Aug 2022 18:24:27 +0200
|
Date: Fri, 26 Aug 2022 18:24:27 +0200
|
||||||
Subject: [PATCH 1/2] Allow running on Android from the command line
|
Subject: [PATCH 1/2] Allow running on Android from the command line
|
||||||
@@ -13,6 +13,7 @@ $ cmake -S . -B build/ -DDEQP_TARGET=android -DDEQP_TARGET_TOOLCHAIN=ndk-modern
|
|||||||
$ ninja -C build modules/egl/deqp-egl
|
$ ninja -C build modules/egl/deqp-egl
|
||||||
|
|
||||||
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
|
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
|
||||||
|
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
|
||||||
---
|
---
|
||||||
CMakeLists.txt | 36 ++-----------------
|
CMakeLists.txt | 36 ++-----------------
|
||||||
.../android/tcuAndroidNativeActivity.cpp | 36 ++++++++++---------
|
.../android/tcuAndroidNativeActivity.cpp | 36 ++++++++++---------
|
||||||
@@ -20,11 +21,11 @@ Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
|
|||||||
3 files changed, 33 insertions(+), 51 deletions(-)
|
3 files changed, 33 insertions(+), 51 deletions(-)
|
||||||
|
|
||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
index f9c61d0db..d6ad2990b 100644
|
index 1ff2bb9..8c76abb 100644
|
||||||
--- a/CMakeLists.txt
|
--- a/CMakeLists.txt
|
||||||
+++ b/CMakeLists.txt
|
+++ b/CMakeLists.txt
|
||||||
@@ -272,7 +272,7 @@ include_directories(
|
@@ -249,7 +249,7 @@ include_directories(
|
||||||
external/vulkancts/framework/vulkan
|
external/vulkancts/framework/vulkan/generated/vulkan
|
||||||
)
|
)
|
||||||
|
|
||||||
-if (DE_OS_IS_ANDROID OR DE_OS_IS_IOS)
|
-if (DE_OS_IS_ANDROID OR DE_OS_IS_IOS)
|
||||||
@@ -32,7 +33,7 @@ index f9c61d0db..d6ad2990b 100644
|
|||||||
# On Android deqp modules are compiled as libraries and linked into final .so
|
# On Android deqp modules are compiled as libraries and linked into final .so
|
||||||
set(DEQP_MODULE_LIBRARIES )
|
set(DEQP_MODULE_LIBRARIES )
|
||||||
set(DEQP_MODULE_ENTRY_POINTS )
|
set(DEQP_MODULE_ENTRY_POINTS )
|
||||||
@@ -316,7 +316,7 @@ macro (add_deqp_module MODULE_NAME SRCS LIBS EXECLIBS ENTRY)
|
@@ -293,7 +293,7 @@ macro (add_deqp_module MODULE_NAME SRCS LIBS EXECLIBS ENTRY)
|
||||||
set(DEQP_MODULE_LIBRARIES ${DEQP_MODULE_LIBRARIES} PARENT_SCOPE)
|
set(DEQP_MODULE_LIBRARIES ${DEQP_MODULE_LIBRARIES} PARENT_SCOPE)
|
||||||
set(DEQP_MODULE_ENTRY_POINTS ${DEQP_MODULE_ENTRY_POINTS} PARENT_SCOPE)
|
set(DEQP_MODULE_ENTRY_POINTS ${DEQP_MODULE_ENTRY_POINTS} PARENT_SCOPE)
|
||||||
|
|
||||||
@@ -41,8 +42,8 @@ index f9c61d0db..d6ad2990b 100644
|
|||||||
# Executable target
|
# Executable target
|
||||||
add_executable(${MODULE_NAME} ${PROJECT_SOURCE_DIR}/framework/platform/tcuMain.cpp ${ENTRY})
|
add_executable(${MODULE_NAME} ${PROJECT_SOURCE_DIR}/framework/platform/tcuMain.cpp ${ENTRY})
|
||||||
target_link_libraries(${MODULE_NAME} PUBLIC "${EXECLIBS}" "${MODULE_NAME}${MODULE_LIB_TARGET_POSTFIX}")
|
target_link_libraries(${MODULE_NAME} PUBLIC "${EXECLIBS}" "${MODULE_NAME}${MODULE_LIB_TARGET_POSTFIX}")
|
||||||
@@ -390,37 +390,7 @@ add_subdirectory(external/vulkancts/vkscpc ${MAYBE_EXCLUDE_FROM_ALL})
|
@@ -367,37 +367,7 @@ add_subdirectory(external/vulkancts/vkscpc)
|
||||||
add_subdirectory(external/openglcts ${MAYBE_EXCLUDE_FROM_ALL})
|
add_subdirectory(external/openglcts)
|
||||||
|
|
||||||
# Single-binary targets
|
# Single-binary targets
|
||||||
-if (DE_OS_IS_ANDROID)
|
-if (DE_OS_IS_ANDROID)
|
||||||
@@ -81,7 +82,7 @@ index f9c61d0db..d6ad2990b 100644
|
|||||||
set(DEQP_IOS_CODE_SIGN_IDENTITY "drawElements" CACHE STRING "Code sign identity for iOS build")
|
set(DEQP_IOS_CODE_SIGN_IDENTITY "drawElements" CACHE STRING "Code sign identity for iOS build")
|
||||||
|
|
||||||
diff --git a/framework/platform/android/tcuAndroidNativeActivity.cpp b/framework/platform/android/tcuAndroidNativeActivity.cpp
|
diff --git a/framework/platform/android/tcuAndroidNativeActivity.cpp b/framework/platform/android/tcuAndroidNativeActivity.cpp
|
||||||
index 6f8cd8fc5..b83e30f41 100644
|
index 6f8cd8f..b83e30f 100644
|
||||||
--- a/framework/platform/android/tcuAndroidNativeActivity.cpp
|
--- a/framework/platform/android/tcuAndroidNativeActivity.cpp
|
||||||
+++ b/framework/platform/android/tcuAndroidNativeActivity.cpp
|
+++ b/framework/platform/android/tcuAndroidNativeActivity.cpp
|
||||||
@@ -116,23 +116,25 @@ namespace Android
|
@@ -116,23 +116,25 @@ namespace Android
|
||||||
@@ -128,7 +129,7 @@ index 6f8cd8fc5..b83e30f41 100644
|
|||||||
|
|
||||||
NativeActivity::~NativeActivity (void)
|
NativeActivity::~NativeActivity (void)
|
||||||
diff --git a/framework/platform/android/tcuAndroidPlatform.cpp b/framework/platform/android/tcuAndroidPlatform.cpp
|
diff --git a/framework/platform/android/tcuAndroidPlatform.cpp b/framework/platform/android/tcuAndroidPlatform.cpp
|
||||||
index b8a35898c..cf02e6b70 100644
|
index 69ab384..d7288f6 100644
|
||||||
--- a/framework/platform/android/tcuAndroidPlatform.cpp
|
--- a/framework/platform/android/tcuAndroidPlatform.cpp
|
||||||
+++ b/framework/platform/android/tcuAndroidPlatform.cpp
|
+++ b/framework/platform/android/tcuAndroidPlatform.cpp
|
||||||
@@ -22,6 +22,7 @@
|
@@ -22,6 +22,7 @@
|
||||||
@@ -148,7 +149,7 @@ index b8a35898c..cf02e6b70 100644
|
|||||||
|
|
||||||
return new NativeWindow(window, params.width, params.height, format);
|
return new NativeWindow(window, params.width, params.height, format);
|
||||||
}
|
}
|
||||||
@@ -292,6 +293,9 @@ static size_t getTotalSystemMemory (ANativeActivity* activity)
|
@@ -286,6 +287,9 @@ static size_t getTotalSystemMemory (ANativeActivity* activity)
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -158,7 +159,7 @@ index b8a35898c..cf02e6b70 100644
|
|||||||
const size_t totalMemory = getTotalAndroidSystemMemory(activity);
|
const size_t totalMemory = getTotalAndroidSystemMemory(activity);
|
||||||
print("Device has %.2f MiB of system memory\n", static_cast<double>(totalMemory) / static_cast<double>(MiB));
|
print("Device has %.2f MiB of system memory\n", static_cast<double>(totalMemory) / static_cast<double>(MiB));
|
||||||
return totalMemory;
|
return totalMemory;
|
||||||
@@ -388,3 +392,9 @@ bool Platform::hasDisplay (vk::wsi::Type wsiType) const
|
@@ -382,3 +386,9 @@ bool Platform::hasDisplay (vk::wsi::Type wsiType) const
|
||||||
|
|
||||||
} // Android
|
} // Android
|
||||||
} // tcu
|
} // tcu
|
||||||
@@ -169,5 +170,5 @@ index b8a35898c..cf02e6b70 100644
|
|||||||
+ return new tcu::Android::Platform(activity);
|
+ return new tcu::Android::Platform(activity);
|
||||||
+}
|
+}
|
||||||
--
|
--
|
||||||
2.42.0
|
2.39.1
|
||||||
|
|
@@ -1,15 +1,16 @@
|
|||||||
From a602822c53e22e985f942f843ccadbfb64613212 Mon Sep 17 00:00:00 2001
|
From c2d5252f4a8be94720235feb9e358ecb0a2e8e11 Mon Sep 17 00:00:00 2001
|
||||||
From: Helen Koike <helen.koike@collabora.com>
|
From: Helen Koike <helen.koike@collabora.com>
|
||||||
Date: Tue, 27 Sep 2022 12:35:22 -0300
|
Date: Tue, 27 Sep 2022 12:35:22 -0300
|
||||||
Subject: [PATCH 2/2] Android prints to stdout instead of logcat
|
Subject: [PATCH 2/2] Android prints to stdout instead of logcat
|
||||||
|
|
||||||
Signed-off-by: Helen Koike <helen.koike@collabora.com>
|
Signed-off-by: Helen Koike <helen.koike@collabora.com>
|
||||||
|
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
|
||||||
---
|
---
|
||||||
framework/qphelper/qpDebugOut.c | 2 +-
|
framework/qphelper/qpDebugOut.c | 2 +-
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/framework/qphelper/qpDebugOut.c b/framework/qphelper/qpDebugOut.c
|
diff --git a/framework/qphelper/qpDebugOut.c b/framework/qphelper/qpDebugOut.c
|
||||||
index 6579e9f48..c200c6f6b 100644
|
index 6579e9f..c200c6f 100644
|
||||||
--- a/framework/qphelper/qpDebugOut.c
|
--- a/framework/qphelper/qpDebugOut.c
|
||||||
+++ b/framework/qphelper/qpDebugOut.c
|
+++ b/framework/qphelper/qpDebugOut.c
|
||||||
@@ -98,7 +98,7 @@ void qpDiev (const char* format, va_list args)
|
@@ -98,7 +98,7 @@ void qpDiev (const char* format, va_list args)
|
||||||
@@ -22,5 +23,5 @@ index 6579e9f48..c200c6f6b 100644
|
|||||||
#include <android/log.h>
|
#include <android/log.h>
|
||||||
|
|
||||||
--
|
--
|
||||||
2.42.0
|
2.39.1
|
||||||
|
|
111
.gitlab-ci/container/x86_64.config
Normal file
111
.gitlab-ci/container/x86_64.config
Normal file
@@ -0,0 +1,111 @@
|
|||||||
|
CONFIG_LOCALVERSION_AUTO=y
|
||||||
|
CONFIG_DEBUG_KERNEL=y
|
||||||
|
|
||||||
|
CONFIG_CRYPTO_ZSTD=y
|
||||||
|
CONFIG_ZRAM_MEMORY_TRACKING=y
|
||||||
|
CONFIG_ZRAM_WRITEBACK=y
|
||||||
|
CONFIG_ZRAM=y
|
||||||
|
CONFIG_ZSMALLOC_STAT=y
|
||||||
|
|
||||||
|
CONFIG_PWM=y
|
||||||
|
CONFIG_PM_DEVFREQ=y
|
||||||
|
CONFIG_OF=y
|
||||||
|
CONFIG_CROS_EC=y
|
||||||
|
|
||||||
|
# abootimg with a 'dummy' rootfs fails with root=/dev/nfs
|
||||||
|
CONFIG_BLK_DEV_INITRD=n
|
||||||
|
|
||||||
|
CONFIG_DEVFREQ_GOV_PERFORMANCE=y
|
||||||
|
CONFIG_DEVFREQ_GOV_POWERSAVE=y
|
||||||
|
CONFIG_DEVFREQ_GOV_USERSPACE=y
|
||||||
|
CONFIG_DEVFREQ_GOV_PASSIVE=y
|
||||||
|
|
||||||
|
CONFIG_DRM=y
|
||||||
|
CONFIG_DRM_PANEL_SIMPLE=y
|
||||||
|
CONFIG_PWM_CROS_EC=y
|
||||||
|
CONFIG_BACKLIGHT_PWM=y
|
||||||
|
|
||||||
|
# Strip out some stuff we don't need for graphics testing, to reduce
|
||||||
|
# the build.
|
||||||
|
CONFIG_CAN=n
|
||||||
|
CONFIG_WIRELESS=n
|
||||||
|
CONFIG_RFKILL=n
|
||||||
|
CONFIG_WLAN=n
|
||||||
|
|
||||||
|
CONFIG_REGULATOR_FAN53555=y
|
||||||
|
CONFIG_REGULATOR=y
|
||||||
|
|
||||||
|
CONFIG_REGULATOR_VCTRL=y
|
||||||
|
|
||||||
|
CONFIG_KASAN=n
|
||||||
|
CONFIG_KASAN_INLINE=n
|
||||||
|
CONFIG_STACKTRACE=n
|
||||||
|
|
||||||
|
CONFIG_TMPFS=y
|
||||||
|
|
||||||
|
CONFIG_PROVE_LOCKING=n
|
||||||
|
CONFIG_DEBUG_LOCKDEP=n
|
||||||
|
CONFIG_SOFTLOCKUP_DETECTOR=y
|
||||||
|
CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC=y
|
||||||
|
|
||||||
|
CONFIG_DETECT_HUNG_TASK=y
|
||||||
|
|
||||||
|
CONFIG_USB_USBNET=y
|
||||||
|
CONFIG_NETDEVICES=y
|
||||||
|
CONFIG_USB_NET_DRIVERS=y
|
||||||
|
CONFIG_USB_RTL8152=y
|
||||||
|
CONFIG_USB_NET_AX8817X=y
|
||||||
|
CONFIG_USB_NET_SMSC95XX=y
|
||||||
|
CONFIG_USB_GADGET=y
|
||||||
|
CONFIG_USB_ETH=y
|
||||||
|
|
||||||
|
CONFIG_FW_LOADER_COMPRESS=y
|
||||||
|
|
||||||
|
# options for AMD devices
|
||||||
|
CONFIG_X86_AMD_PLATFORM_DEVICE=y
|
||||||
|
CONFIG_ACPI_VIDEO=y
|
||||||
|
CONFIG_X86_AMD_FREQ_SENSITIVITY=y
|
||||||
|
CONFIG_PINCTRL=y
|
||||||
|
CONFIG_PINCTRL_AMD=y
|
||||||
|
CONFIG_DRM_AMDGPU=m
|
||||||
|
CONFIG_DRM_AMDGPU_SI=y
|
||||||
|
CONFIG_DRM_AMDGPU_USERPTR=y
|
||||||
|
CONFIG_DRM_AMD_ACP=n
|
||||||
|
CONFIG_ACPI_WMI=y
|
||||||
|
CONFIG_MXM_WMI=y
|
||||||
|
CONFIG_PARPORT=y
|
||||||
|
CONFIG_PARPORT_PC=y
|
||||||
|
CONFIG_PARPORT_SERIAL=y
|
||||||
|
CONFIG_SERIAL_8250_DW=y
|
||||||
|
CONFIG_CHROME_PLATFORMS=y
|
||||||
|
CONFIG_KVM_AMD=m
|
||||||
|
|
||||||
|
#options for Intel devices
|
||||||
|
CONFIG_MFD_INTEL_LPSS_PCI=y
|
||||||
|
CONFIG_KVM_INTEL=m
|
||||||
|
|
||||||
|
#options for KVM guests
|
||||||
|
CONFIG_FUSE_FS=y
|
||||||
|
CONFIG_HYPERVISOR_GUEST=y
|
||||||
|
CONFIG_KVM=y
|
||||||
|
CONFIG_KVM_GUEST=y
|
||||||
|
CONFIG_VIRT_DRIVERS=y
|
||||||
|
CONFIG_VIRTIO_FS=y
|
||||||
|
CONFIG_DRM_VIRTIO_GPU=y
|
||||||
|
CONFIG_SERIAL_8250_CONSOLE=y
|
||||||
|
CONFIG_VIRTIO_NET=y
|
||||||
|
CONFIG_VIRTIO_CONSOLE=y
|
||||||
|
CONFIG_PARAVIRT=y
|
||||||
|
CONFIG_VIRTIO_BLK=y
|
||||||
|
CONFIG_VIRTUALIZATION=y
|
||||||
|
CONFIG_VIRTIO=y
|
||||||
|
CONFIG_VIRTIO_PCI=y
|
||||||
|
CONFIG_VIRTIO_MMIO=y
|
||||||
|
CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=y
|
||||||
|
CONFIG_CRYPTO_DEV_VIRTIO=y
|
||||||
|
CONFIG_HW_RANDOM_VIRTIO=y
|
||||||
|
CONFIG_BLK_MQ_VIRTIO=y
|
||||||
|
CONFIG_TUN=y
|
||||||
|
CONFIG_VSOCKETS=y
|
||||||
|
CONFIG_VIRTIO_VSOCKETS=y
|
||||||
|
CONFIG_VHOST_VSOCK=m
|
@@ -96,7 +96,7 @@ set +e -x
|
|||||||
NIR_DEBUG="novalidate" \
|
NIR_DEBUG="novalidate" \
|
||||||
LIBGL_ALWAYS_SOFTWARE=${CROSVM_LIBGL_ALWAYS_SOFTWARE} \
|
LIBGL_ALWAYS_SOFTWARE=${CROSVM_LIBGL_ALWAYS_SOFTWARE} \
|
||||||
GALLIUM_DRIVER=${CROSVM_GALLIUM_DRIVER} \
|
GALLIUM_DRIVER=${CROSVM_GALLIUM_DRIVER} \
|
||||||
VK_DRIVER_FILES=$CI_PROJECT_DIR/install/share/vulkan/icd.d/${CROSVM_VK_DRIVER}_icd.x86_64.json \
|
VK_ICD_FILENAMES=$CI_PROJECT_DIR/install/share/vulkan/icd.d/${CROSVM_VK_DRIVER}_icd.x86_64.json \
|
||||||
crosvm --no-syslog run \
|
crosvm --no-syslog run \
|
||||||
--gpu "${CROSVM_GPU_ARGS}" --gpu-render-server "path=/usr/local/libexec/virgl_render_server" \
|
--gpu "${CROSVM_GPU_ARGS}" --gpu-render-server "path=/usr/local/libexec/virgl_render_server" \
|
||||||
-m "${CROSVM_MEMORY:-4096}" -c "${CROSVM_CPU:-2}" --disable-sandbox \
|
-m "${CROSVM_MEMORY:-4096}" -c "${CROSVM_CPU:-2}" --disable-sandbox \
|
||||||
|
@@ -48,7 +48,7 @@ $ADB shell setenforce 0
|
|||||||
# deqp
|
# deqp
|
||||||
|
|
||||||
$ADB push /deqp/modules/egl/deqp-egl-android /data/.
|
$ADB push /deqp/modules/egl/deqp-egl-android /data/.
|
||||||
$ADB push /deqp/assets/gl_cts/data/mustpass/egl/aosp_mustpass/3.2.6.x/egl-main.txt /data/
|
$ADB push /deqp/assets/gl_cts/data/mustpass/egl/aosp_mustpass/3.2.6.x/egl-master.txt /data/.
|
||||||
$ADB push /deqp-runner/deqp-runner /data/.
|
$ADB push /deqp-runner/deqp-runner /data/.
|
||||||
|
|
||||||
# download Android Mesa from S3
|
# download Android Mesa from S3
|
||||||
@@ -92,7 +92,7 @@ RESULTS=/data/results
|
|||||||
uncollapsed_section_switch cuttlefish_test "cuttlefish: testing"
|
uncollapsed_section_switch cuttlefish_test "cuttlefish: testing"
|
||||||
|
|
||||||
set +e
|
set +e
|
||||||
$ADB shell "mkdir /data/results; cd /data; ./deqp-runner \
|
$ADB shell "mkdir /data/results; cd /data; strace -o /data/results/out.strace -f -s 1000 ./deqp-runner \
|
||||||
suite \
|
suite \
|
||||||
--suite /data/deqp-$DEQP_SUITE.toml \
|
--suite /data/deqp-$DEQP_SUITE.toml \
|
||||||
--output $RESULTS \
|
--output $RESULTS \
|
||||||
|
@@ -18,7 +18,7 @@ INSTALL=$(realpath -s "$PWD"/install)
|
|||||||
# Set up the driver environment.
|
# Set up the driver environment.
|
||||||
export LD_LIBRARY_PATH="$INSTALL"/lib/:$LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH="$INSTALL"/lib/:$LD_LIBRARY_PATH
|
||||||
export EGL_PLATFORM=surfaceless
|
export EGL_PLATFORM=surfaceless
|
||||||
export VK_DRIVER_FILES="$PWD"/install/share/vulkan/icd.d/"$VK_DRIVER"_icd.${VK_CPU:-$(uname -m)}.json
|
export VK_ICD_FILENAMES="$PWD"/install/share/vulkan/icd.d/"$VK_DRIVER"_icd.${VK_CPU:-$(uname -m)}.json
|
||||||
export OCL_ICD_VENDORS="$PWD"/install/etc/OpenCL/vendors/
|
export OCL_ICD_VENDORS="$PWD"/install/etc/OpenCL/vendors/
|
||||||
|
|
||||||
if [ -n "$USE_ANGLE" ]; then
|
if [ -n "$USE_ANGLE" ]; then
|
||||||
@@ -46,6 +46,7 @@ if [ -z "$DEQP_SUITE" ]; then
|
|||||||
DEQP_WIDTH=${DEQP_WIDTH:-256}
|
DEQP_WIDTH=${DEQP_WIDTH:-256}
|
||||||
DEQP_HEIGHT=${DEQP_HEIGHT:-256}
|
DEQP_HEIGHT=${DEQP_HEIGHT:-256}
|
||||||
DEQP_CONFIG=${DEQP_CONFIG:-rgba8888d24s8ms0}
|
DEQP_CONFIG=${DEQP_CONFIG:-rgba8888d24s8ms0}
|
||||||
|
DEQP_VARIANT=${DEQP_VARIANT:-master}
|
||||||
|
|
||||||
DEQP_OPTIONS="$DEQP_OPTIONS --deqp-surface-width=$DEQP_WIDTH --deqp-surface-height=$DEQP_HEIGHT"
|
DEQP_OPTIONS="$DEQP_OPTIONS --deqp-surface-width=$DEQP_WIDTH --deqp-surface-height=$DEQP_HEIGHT"
|
||||||
DEQP_OPTIONS="$DEQP_OPTIONS --deqp-surface-type=${DEQP_SURFACE_TYPE:-pbuffer}"
|
DEQP_OPTIONS="$DEQP_OPTIONS --deqp-surface-type=${DEQP_SURFACE_TYPE:-pbuffer}"
|
||||||
@@ -59,16 +60,16 @@ if [ -z "$DEQP_SUITE" ]; then
|
|||||||
|
|
||||||
# Generate test case list file.
|
# Generate test case list file.
|
||||||
if [ "$DEQP_VER" = "vk" ]; then
|
if [ "$DEQP_VER" = "vk" ]; then
|
||||||
MUSTPASS=/deqp/mustpass/vk-main.txt
|
MUSTPASS=/deqp/mustpass/vk-$DEQP_VARIANT.txt
|
||||||
DEQP=/deqp/external/vulkancts/modules/vulkan/deqp-vk
|
DEQP=/deqp/external/vulkancts/modules/vulkan/deqp-vk
|
||||||
elif [ "$DEQP_VER" = "gles2" ] || [ "$DEQP_VER" = "gles3" ] || [ "$DEQP_VER" = "gles31" ] || [ "$DEQP_VER" = "egl" ]; then
|
elif [ "$DEQP_VER" = "gles2" ] || [ "$DEQP_VER" = "gles3" ] || [ "$DEQP_VER" = "gles31" ] || [ "$DEQP_VER" = "egl" ]; then
|
||||||
MUSTPASS=/deqp/mustpass/$DEQP_VER-main.txt
|
MUSTPASS=/deqp/mustpass/$DEQP_VER-$DEQP_VARIANT.txt
|
||||||
DEQP=/deqp/modules/$DEQP_VER/deqp-$DEQP_VER
|
DEQP=/deqp/modules/$DEQP_VER/deqp-$DEQP_VER
|
||||||
elif [ "$DEQP_VER" = "gles2-khr" ] || [ "$DEQP_VER" = "gles3-khr" ] || [ "$DEQP_VER" = "gles31-khr" ] || [ "$DEQP_VER" = "gles32-khr" ]; then
|
elif [ "$DEQP_VER" = "gles2-khr" ] || [ "$DEQP_VER" = "gles3-khr" ] || [ "$DEQP_VER" = "gles31-khr" ] || [ "$DEQP_VER" = "gles32-khr" ]; then
|
||||||
MUSTPASS=/deqp/mustpass/$DEQP_VER-main.txt
|
MUSTPASS=/deqp/mustpass/$DEQP_VER-$DEQP_VARIANT.txt
|
||||||
DEQP=/deqp/external/openglcts/modules/glcts
|
DEQP=/deqp/external/openglcts/modules/glcts
|
||||||
else
|
else
|
||||||
MUSTPASS=/deqp/mustpass/$DEQP_VER-main.txt
|
MUSTPASS=/deqp/mustpass/$DEQP_VER-$DEQP_VARIANT.txt
|
||||||
DEQP=/deqp/external/openglcts/modules/glcts
|
DEQP=/deqp/external/openglcts/modules/glcts
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -125,15 +126,7 @@ if [ "$PIGLIT_PLATFORM" = "gbm" ]; then
|
|||||||
DEQP_SKIPS="$DEQP_SKIPS $INSTALL/gbm-skips.txt"
|
DEQP_SKIPS="$DEQP_SKIPS $INSTALL/gbm-skips.txt"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$VK_DRIVER" ] && [ -z "$DEQP_SUITE" ]; then
|
|
||||||
# Bump the number of tests per group to reduce the startup time of VKCTS.
|
|
||||||
DEQP_RUNNER_OPTIONS="$DEQP_RUNNER_OPTIONS --tests-per-group ${DEQP_RUNNER_TESTS_PER_GROUP:-5000}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Set the path to VK validation layer settings (in case it ends up getting loaded)
|
# Set the path to VK validation layer settings (in case it ends up getting loaded)
|
||||||
# Note: If you change the format of this filename, look through the rest of the
|
|
||||||
# tree for other places that need to be kept in sync (e.g.
|
|
||||||
# src/gallium/drivers/zink/ci/gitlab-ci-inc.yml)
|
|
||||||
export VK_LAYER_SETTINGS_PATH=$INSTALL/$GPU_VERSION-validation-settings.txt
|
export VK_LAYER_SETTINGS_PATH=$INSTALL/$GPU_VERSION-validation-settings.txt
|
||||||
|
|
||||||
report_load() {
|
report_load() {
|
||||||
@@ -168,14 +161,6 @@ fi
|
|||||||
|
|
||||||
uncollapsed_section_switch deqp "deqp: deqp-runner"
|
uncollapsed_section_switch deqp "deqp: deqp-runner"
|
||||||
|
|
||||||
# Print the detailed version with the list of backports and local patches
|
|
||||||
for api in vk gl gles; do
|
|
||||||
deqp_version_log=/deqp/version-$api
|
|
||||||
if [ -r "$deqp_version_log" ]; then
|
|
||||||
cat "$deqp_version_log"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
set +e
|
set +e
|
||||||
if [ -z "$DEQP_SUITE" ]; then
|
if [ -z "$DEQP_SUITE" ]; then
|
||||||
deqp-runner \
|
deqp-runner \
|
||||||
@@ -191,10 +176,6 @@ if [ -z "$DEQP_SUITE" ]; then
|
|||||||
-- \
|
-- \
|
||||||
$DEQP_OPTIONS
|
$DEQP_OPTIONS
|
||||||
else
|
else
|
||||||
# If you change the format of the suite toml filenames or the
|
|
||||||
# $GPU_VERSION-{fails,flakes,skips}.txt filenames, look through the rest
|
|
||||||
# of the tree for other places that need to be kept in sync (e.g.
|
|
||||||
# src/**/ci/gitlab-ci*.yml)
|
|
||||||
deqp-runner \
|
deqp-runner \
|
||||||
suite \
|
suite \
|
||||||
--suite $INSTALL/deqp-$DEQP_SUITE.toml \
|
--suite $INSTALL/deqp-$DEQP_SUITE.toml \
|
||||||
@@ -209,7 +190,6 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
DEQP_EXITCODE=$?
|
DEQP_EXITCODE=$?
|
||||||
set -e
|
|
||||||
|
|
||||||
set +x
|
set +x
|
||||||
|
|
||||||
@@ -235,7 +215,7 @@ deqp-runner junit \
|
|||||||
--results $RESULTS/failures.csv \
|
--results $RESULTS/failures.csv \
|
||||||
--output $RESULTS/junit.xml \
|
--output $RESULTS/junit.xml \
|
||||||
--limit 50 \
|
--limit 50 \
|
||||||
--template "See $ARTIFACTS_BASE_URL/results/{{testcase}}.xml"
|
--template "See https://$CI_PROJECT_ROOT_NAMESPACE.pages.freedesktop.org/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/results/{{testcase}}.xml"
|
||||||
|
|
||||||
# Report the flakes to the IRC channel for monitoring (if configured):
|
# Report the flakes to the IRC channel for monitoring (if configured):
|
||||||
if [ -n "$FLAKES_CHANNEL" ]; then
|
if [ -n "$FLAKES_CHANNEL" ]; then
|
||||||
@@ -249,7 +229,7 @@ if [ -n "$FLAKES_CHANNEL" ]; then
|
|||||||
--job "$CI_JOB_ID" \
|
--job "$CI_JOB_ID" \
|
||||||
--url "$CI_JOB_URL" \
|
--url "$CI_JOB_URL" \
|
||||||
--branch "${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME:-$CI_COMMIT_BRANCH}" \
|
--branch "${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME:-$CI_COMMIT_BRANCH}" \
|
||||||
--branch-title "${CI_MERGE_REQUEST_TITLE:-$CI_COMMIT_TITLE}" || true
|
--branch-title "${CI_MERGE_REQUEST_TITLE:-$CI_COMMIT_TITLE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Compress results.csv to save on bandwidth during the upload of artifacts to
|
# Compress results.csv to save on bandwidth during the upload of artifacts to
|
||||||
|
@@ -15,10 +15,10 @@ fi
|
|||||||
|
|
||||||
TMP_DIR=$(mktemp -d)
|
TMP_DIR=$(mktemp -d)
|
||||||
|
|
||||||
echo "$(date +"%F %T") Downloading archived master..."
|
echo "Downloading archived master..."
|
||||||
if ! /usr/bin/wget \
|
if ! /usr/bin/wget \
|
||||||
-O "$TMP_DIR/$CI_PROJECT_NAME.tar.gz" \
|
-O "$TMP_DIR/$CI_PROJECT_NAME.tar.gz" \
|
||||||
"https://${S3_HOST}/${S3_GITCACHE_BUCKET}/${FDO_UPSTREAM_REPO}/$CI_PROJECT_NAME.tar.gz";
|
"https://${S3_HOST}/git-cache/${FDO_UPSTREAM_REPO}/$CI_PROJECT_NAME.tar.gz";
|
||||||
then
|
then
|
||||||
echo "Repository cache not available"
|
echo "Repository cache not available"
|
||||||
exit
|
exit
|
||||||
@@ -27,10 +27,8 @@ fi
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
rm -rf "$CI_PROJECT_DIR"
|
rm -rf "$CI_PROJECT_DIR"
|
||||||
echo "$(date +"%F %T") Extracting tarball into '$CI_PROJECT_DIR'..."
|
echo "Extracting tarball into '$CI_PROJECT_DIR'..."
|
||||||
mkdir -p "$CI_PROJECT_DIR"
|
mkdir -p "$CI_PROJECT_DIR"
|
||||||
tar xzf "$TMP_DIR/$CI_PROJECT_NAME.tar.gz" -C "$CI_PROJECT_DIR"
|
tar xzf "$TMP_DIR/$CI_PROJECT_NAME.tar.gz" -C "$CI_PROJECT_DIR"
|
||||||
rm -rf "$TMP_DIR"
|
rm -rf "$TMP_DIR"
|
||||||
chmod a+w "$CI_PROJECT_DIR"
|
chmod a+w "$CI_PROJECT_DIR"
|
||||||
|
|
||||||
echo "$(date +"%F %T") Git cache download done"
|
|
||||||
|
@@ -1,33 +1,3 @@
|
|||||||
# The logic for each $FARM is as follows:
|
|
||||||
#
|
|
||||||
# If the disable file exists, we are disabling the farm, or it's already
|
|
||||||
# disabled:
|
|
||||||
# - exists: [ .ci-farms-disabled/$FARM ]
|
|
||||||
# when: never
|
|
||||||
#
|
|
||||||
# Otherwise, changing the disable file means removing it, so we are
|
|
||||||
# re-enabling the farm:
|
|
||||||
# - changes: [ .ci-farms-disabled/$FARM ]
|
|
||||||
# if: '$CI_PIPELINE_SOURCE != "schedule"'
|
|
||||||
# when: on_success
|
|
||||||
# Note: the "manual" variant of each farm rules changes the above to `never`,
|
|
||||||
# so that jobs meant to be manual don't run in re-enablement MRs. This is the
|
|
||||||
# only difference between `.$FARM-farm-rules` and `.$FARM-farm-manual-rules`.
|
|
||||||
#
|
|
||||||
# If any other disable file is modified, we are disabling/re-enabling another
|
|
||||||
# farm:
|
|
||||||
# - changes: [ .ci-farms-disabled/* ]
|
|
||||||
# if: '$CI_PIPELINE_SOURCE != "schedule"'
|
|
||||||
# when: never
|
|
||||||
#
|
|
||||||
# The `not schedule` condition is there to make sure scheduled pipelines
|
|
||||||
# contains all the jobs, as `changes` conditions in scheduled pipelines are
|
|
||||||
# always evaluated to `true`.
|
|
||||||
#
|
|
||||||
# The "fallback", if none of these rules match, is usually the list of files
|
|
||||||
# that are used by a driver. See the various `.$DRIVER-rules` in the
|
|
||||||
# corresponding `src/**/ci/gitlab-ci.yml`.
|
|
||||||
|
|
||||||
.microsoft-farm-rules:
|
.microsoft-farm-rules:
|
||||||
rules:
|
rules:
|
||||||
- exists: [ .ci-farms-disabled/microsoft ] # 1. Is disabled, never run
|
- exists: [ .ci-farms-disabled/microsoft ] # 1. Is disabled, never run
|
||||||
@@ -58,41 +28,29 @@
|
|||||||
- exists: [ .ci-farms-disabled/microsoft ]
|
- exists: [ .ci-farms-disabled/microsoft ]
|
||||||
when: never
|
when: never
|
||||||
- changes: [ .ci-farms-disabled/microsoft ]
|
- changes: [ .ci-farms-disabled/microsoft ]
|
||||||
if: '$CI_PROJECT_NAMESPACE == "mesa" && $CI_COMMIT_BRANCH'
|
if: '$CI_PIPELINE_SOURCE != "schedule"'
|
||||||
when: on_success
|
when: on_success
|
||||||
- changes: [ .ci-farms-disabled/microsoft ]
|
- !reference [.microsoft-farm-rules, rules]
|
||||||
if: '$GITLAB_USER_LOGIN == "marge-bot" && $CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
||||||
when: on_success
|
|
||||||
- changes: [ .ci-farms-disabled/microsoft ]
|
|
||||||
if: '$CI_PROJECT_NAMESPACE == "mesa" && $GITLAB_USER_LOGIN != "marge-bot" && $CI_COMMIT_BRANCH'
|
|
||||||
when: on_success
|
|
||||||
- changes: [ .ci-farms-disabled/* ]
|
|
||||||
if: '$CI_PROJECT_NAMESPACE == "mesa" && $CI_COMMIT_BRANCH'
|
|
||||||
when: never
|
|
||||||
- changes: [ .ci-farms-disabled/* ]
|
|
||||||
if: '$GITLAB_USER_LOGIN == "marge-bot" && $CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
||||||
when: never
|
|
||||||
- changes: [ .ci-farms-disabled/* ]
|
|
||||||
if: '$CI_PROJECT_NAMESPACE == "mesa" && $GITLAB_USER_LOGIN != "marge-bot" && $CI_COMMIT_BRANCH'
|
|
||||||
when: never
|
|
||||||
|
|
||||||
|
|
||||||
.collabora-farm-rules:
|
.collabora-farm-rules:
|
||||||
rules:
|
rules:
|
||||||
- exists: [ .ci-farms-disabled/collabora ]
|
- if: '$RUNNER_TAG =~ /^mesa-ci-x86-64-lava-/'
|
||||||
|
exists: [ .ci-farms-disabled/collabora ]
|
||||||
when: never
|
when: never
|
||||||
- if: '$CI_PIPELINE_SOURCE != "schedule"'
|
- if: '$RUNNER_TAG =~ /^mesa-ci-x86-64-lava-/ && $CI_PIPELINE_SOURCE != "schedule"'
|
||||||
changes: [ .ci-farms-disabled/collabora ]
|
changes: [ .ci-farms-disabled/collabora ]
|
||||||
when: on_success
|
when: on_success
|
||||||
- if: '$CI_PIPELINE_SOURCE != "schedule"'
|
- if: '$RUNNER_TAG =~ /^mesa-ci-x86-64-lava-/ && $CI_PIPELINE_SOURCE != "schedule"'
|
||||||
changes: [ .ci-farms-disabled/* ]
|
changes: [ .ci-farms-disabled/* ]
|
||||||
when: never
|
when: never
|
||||||
|
|
||||||
.collabora-farm-manual-rules:
|
.collabora-farm-manual-rules:
|
||||||
rules:
|
rules:
|
||||||
- exists: [ .ci-farms-disabled/collabora ]
|
- if: '$RUNNER_TAG =~ /^mesa-ci-x86-64-lava-/'
|
||||||
|
exists: [ .ci-farms-disabled/collabora ]
|
||||||
when: never
|
when: never
|
||||||
- if: '$CI_PIPELINE_SOURCE != "schedule"'
|
- if: '$RUNNER_TAG =~ /^mesa-ci-x86-64-lava-/ && $CI_PIPELINE_SOURCE != "schedule"'
|
||||||
changes: [ .ci-farms-disabled/collabora ]
|
changes: [ .ci-farms-disabled/collabora ]
|
||||||
when: never
|
when: never
|
||||||
- !reference [.collabora-farm-rules, rules]
|
- !reference [.collabora-farm-rules, rules]
|
||||||
@@ -176,7 +134,6 @@
|
|||||||
if: '$RUNNER_FARM_LOCATION == "keywords" && $CI_PIPELINE_SOURCE != "schedule"'
|
if: '$RUNNER_FARM_LOCATION == "keywords" && $CI_PIPELINE_SOURCE != "schedule"'
|
||||||
when: on_success
|
when: on_success
|
||||||
- changes: [ .ci-farms-disabled/* ]
|
- changes: [ .ci-farms-disabled/* ]
|
||||||
if: '$CI_PIPELINE_SOURCE != "schedule"'
|
|
||||||
when: never
|
when: never
|
||||||
|
|
||||||
.valve-farm-manual-rules:
|
.valve-farm-manual-rules:
|
||||||
@@ -237,105 +194,3 @@
|
|||||||
when: never
|
when: never
|
||||||
- !reference [.freedreno-farm-rules, rules]
|
- !reference [.freedreno-farm-rules, rules]
|
||||||
|
|
||||||
.vmware-farm-rules:
|
|
||||||
rules:
|
|
||||||
- exists: [ .ci-farms-disabled/vmware ]
|
|
||||||
when: never
|
|
||||||
- changes: [ .ci-farms-disabled/vmware ]
|
|
||||||
if: '$CI_PIPELINE_SOURCE != "schedule"'
|
|
||||||
when: on_success
|
|
||||||
- changes: [ .ci-farms-disabled/* ]
|
|
||||||
if: '$CI_PIPELINE_SOURCE != "schedule"'
|
|
||||||
when: never
|
|
||||||
|
|
||||||
.vmware-farm-manual-rules:
|
|
||||||
rules:
|
|
||||||
- exists: [ .ci-farms-disabled/vmware ]
|
|
||||||
when: never
|
|
||||||
- changes: [ .ci-farms-disabled/vmware ]
|
|
||||||
if: '$CI_PIPELINE_SOURCE != "schedule"'
|
|
||||||
when: never
|
|
||||||
- !reference [.vmware-farm-rules, rules]
|
|
||||||
|
|
||||||
.ondracka-farm-rules:
|
|
||||||
rules:
|
|
||||||
- exists: [ .ci-farms-disabled/ondracka ]
|
|
||||||
when: never
|
|
||||||
- changes: [ .ci-farms-disabled/ondracka ]
|
|
||||||
if: '$CI_PIPELINE_SOURCE != "schedule"'
|
|
||||||
when: on_success
|
|
||||||
- changes: [ .ci-farms-disabled/* ]
|
|
||||||
if: '$CI_PIPELINE_SOURCE != "schedule"'
|
|
||||||
when: never
|
|
||||||
|
|
||||||
.ondracka-farm-manual-rules:
|
|
||||||
rules:
|
|
||||||
- exists: [ .ci-farms-disabled/ondracka ]
|
|
||||||
when: never
|
|
||||||
- changes: [ .ci-farms-disabled/ondracka ]
|
|
||||||
if: '$CI_PIPELINE_SOURCE != "schedule"'
|
|
||||||
when: never
|
|
||||||
- !reference [.ondracka-farm-rules, rules]
|
|
||||||
|
|
||||||
|
|
||||||
# Skip container & build jobs when disabling any farm, and run them if any
|
|
||||||
# farm gets re-enabled.
|
|
||||||
# Only apply these rules in MR context, because otherwise we get a false
|
|
||||||
# positive on files being 'created' when pushing to a new branch, and break
|
|
||||||
# our pipeline
|
|
||||||
.disable-farm-mr-rules:
|
|
||||||
rules:
|
|
||||||
# changes(disabled) + exists(disabled) = disabling the farm
|
|
||||||
# Note: this cannot be simplified into a single `.ci-farms-disabled/*` rule
|
|
||||||
# because if there are more than one disabled farm and we only re-enable
|
|
||||||
# one, the exits(.ci-farms-disabled/*) would match and what should be
|
|
||||||
# a farm re-enable pipeline will be detected as a farm disable pipeline.
|
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
||||||
changes: [ .ci-farms-disabled/microsoft ]
|
|
||||||
exists: [ .ci-farms-disabled/microsoft ]
|
|
||||||
when: never
|
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
||||||
changes: [ .ci-farms-disabled/collabora ]
|
|
||||||
exists: [ .ci-farms-disabled/collabora ]
|
|
||||||
when: never
|
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
||||||
changes: [ .ci-farms-disabled/igalia ]
|
|
||||||
exists: [ .ci-farms-disabled/igalia ]
|
|
||||||
when: never
|
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
||||||
changes: [ .ci-farms-disabled/lima ]
|
|
||||||
exists: [ .ci-farms-disabled/lima ]
|
|
||||||
when: never
|
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
||||||
changes: [ .ci-farms-disabled/anholt ]
|
|
||||||
exists: [ .ci-farms-disabled/anholt ]
|
|
||||||
when: never
|
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
||||||
changes: [ .ci-farms-disabled/valve-mupuf ]
|
|
||||||
exists: [ .ci-farms-disabled/valve-mupuf ]
|
|
||||||
when: never
|
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
||||||
changes: [ .ci-farms-disabled/valve-kws ]
|
|
||||||
exists: [ .ci-farms-disabled/valve-kws ]
|
|
||||||
when: never
|
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
||||||
changes: [ .ci-farms-disabled/austriancoder ]
|
|
||||||
exists: [ .ci-farms-disabled/austriancoder ]
|
|
||||||
when: never
|
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
||||||
changes: [ .ci-farms-disabled/freedreno ]
|
|
||||||
exists: [ .ci-farms-disabled/freedreno ]
|
|
||||||
when: never
|
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
||||||
changes: [ .ci-farms-disabled/ondracka ]
|
|
||||||
exists: [ .ci-farms-disabled/ondracka ]
|
|
||||||
when: never
|
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
||||||
changes: [ .ci-farms-disabled/vmware ]
|
|
||||||
exists: [ .ci-farms-disabled/vmware ]
|
|
||||||
when: never
|
|
||||||
# Any other change to ci-farms/* means some farm is getting re-enabled.
|
|
||||||
# Run jobs in Marge pipelines (and let it fallback to manual otherwise)
|
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $GITLAB_USER_LOGIN == "marge-bot"'
|
|
||||||
changes: [ .ci-farms/* ]
|
|
||||||
when: on_success
|
|
||||||
|
@@ -11,7 +11,7 @@ INSTALL=$PWD/install
|
|||||||
|
|
||||||
# Set up the driver environment.
|
# Set up the driver environment.
|
||||||
export LD_LIBRARY_PATH="$INSTALL/lib/"
|
export LD_LIBRARY_PATH="$INSTALL/lib/"
|
||||||
export VK_DRIVER_FILES="$INSTALL/share/vulkan/icd.d/${VK_DRIVER}_icd.x86_64.json"
|
export VK_ICD_FILENAMES="$INSTALL/share/vulkan/icd.d/${VK_DRIVER}_icd.x86_64.json"
|
||||||
|
|
||||||
# To store Fossilize logs on failure.
|
# To store Fossilize logs on failure.
|
||||||
RESULTS="$PWD/results"
|
RESULTS="$PWD/results"
|
||||||
|
@@ -55,7 +55,7 @@ deqp-runner junit \
|
|||||||
--results $RESULTS/failures.csv \
|
--results $RESULTS/failures.csv \
|
||||||
--output $RESULTS/junit.xml \
|
--output $RESULTS/junit.xml \
|
||||||
--limit 50 \
|
--limit 50 \
|
||||||
--template "See $ARTIFACTS_BASE_URL/results/{{testcase}}.xml"
|
--template "See https://$CI_PROJECT_ROOT_NAMESPACE.pages.freedesktop.org/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/results/{{testcase}}.xml"
|
||||||
|
|
||||||
# Report the flakes to the IRC channel for monitoring (if configured):
|
# Report the flakes to the IRC channel for monitoring (if configured):
|
||||||
if [ -n "$FLAKES_CHANNEL" ]; then
|
if [ -n "$FLAKES_CHANNEL" ]; then
|
||||||
@@ -69,7 +69,7 @@ if [ -n "$FLAKES_CHANNEL" ]; then
|
|||||||
--job "$CI_JOB_ID" \
|
--job "$CI_JOB_ID" \
|
||||||
--url "$CI_JOB_URL" \
|
--url "$CI_JOB_URL" \
|
||||||
--branch "${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME:-$CI_COMMIT_BRANCH}" \
|
--branch "${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME:-$CI_COMMIT_BRANCH}" \
|
||||||
--branch-title "${CI_MERGE_REQUEST_TITLE:-$CI_COMMIT_TITLE}" || true
|
--branch-title "${CI_MERGE_REQUEST_TITLE:-$CI_COMMIT_TITLE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit $GTEST_EXITCODE
|
exit $GTEST_EXITCODE
|
||||||
|
@@ -1,22 +1,12 @@
|
|||||||
# Keep the tags below under 20 chars each, as they end up combined into
|
|
||||||
# docker image tags, and docker has a length limit of 128 chars total in tags.
|
|
||||||
#
|
|
||||||
# The word after the date doesn't need to be overly descriptive, it exists
|
|
||||||
# purely to avoid the risk of two people updating an image tag on the same day
|
|
||||||
# while working on different changes, so it doesn't matter whether that word
|
|
||||||
# will make sense to someone else. Aim for "nobody else will pick that word
|
|
||||||
# for their change".
|
|
||||||
#
|
|
||||||
# If you update a tag and you get an error like this:
|
|
||||||
# cannot parse input: "$image:$tag": invalid reference format
|
|
||||||
# check the length of $tag; if it's > 128 chars you need to shorten your tag.
|
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
DEBIAN_X86_64_BUILD_BASE_IMAGE: "debian/x86_64_build-base"
|
DEBIAN_X86_64_BUILD_BASE_IMAGE: "debian/x86_64_build-base"
|
||||||
DEBIAN_BASE_TAG: "20240412-pycparser"
|
DEBIAN_BASE_TAG: "2023-08-30-bindgen-cli"
|
||||||
|
|
||||||
DEBIAN_X86_64_BUILD_IMAGE_PATH: "debian/x86_64_build"
|
DEBIAN_X86_64_BUILD_IMAGE_PATH: "debian/x86_64_build"
|
||||||
DEBIAN_BUILD_TAG: "20240723-241cbindgen"
|
DEBIAN_BUILD_TAG: "2023-06-24-agility-711"
|
||||||
|
|
||||||
|
DEBIAN_X86_64_BUILD_MINGW_IMAGE_PATH: "debian/x86_64_build-mingw"
|
||||||
|
DEBIAN_BUILD_MINGW_TAG: "2023-05-25-bookworm"
|
||||||
|
|
||||||
DEBIAN_X86_64_TEST_BASE_IMAGE: "debian/x86_64_test-base"
|
DEBIAN_X86_64_TEST_BASE_IMAGE: "debian/x86_64_test-base"
|
||||||
|
|
||||||
@@ -24,23 +14,20 @@ variables:
|
|||||||
DEBIAN_X86_64_TEST_IMAGE_VK_PATH: "debian/x86_64_test-vk"
|
DEBIAN_X86_64_TEST_IMAGE_VK_PATH: "debian/x86_64_test-vk"
|
||||||
DEBIAN_X86_64_TEST_ANDROID_IMAGE_PATH: "debian/x86_64_test-android"
|
DEBIAN_X86_64_TEST_ANDROID_IMAGE_PATH: "debian/x86_64_test-android"
|
||||||
|
|
||||||
DEBIAN_X86_64_TEST_ANDROID_TAG: "20240423-deqp"
|
DEBIAN_X86_64_TEST_ANDROID_TAG: "2023-06-07-deqp"
|
||||||
DEBIAN_X86_64_TEST_GL_TAG: "20240514-egltrans241"
|
DEBIAN_X86_64_TEST_GL_TAG: "2023-07-02-apitrace-lto"
|
||||||
DEBIAN_X86_64_TEST_VK_TAG: "20240423-deqp"
|
DEBIAN_X86_64_TEST_VK_TAG: "2023-07-08-weston-0"
|
||||||
KERNEL_ROOTFS_TAG: "20240507-kernel241"
|
|
||||||
|
|
||||||
ALPINE_X86_64_BUILD_TAG: "20240412-pycparser"
|
ALPINE_X86_64_BUILD_TAG: "2023-05-01-3.18-bump-1"
|
||||||
ALPINE_X86_64_LAVA_SSH_TAG: "20240401-wlproto"
|
ALPINE_X86_64_LAVA_SSH_TAG: "2023-06-26-first-version"
|
||||||
FEDORA_X86_64_BUILD_TAG: "20240412-pycparser"
|
FEDORA_X86_64_BUILD_TAG: "2023-05-05-ccache-on"
|
||||||
KERNEL_TAG: "v6.6.21-mesa-f8ea"
|
KERNEL_ROOTFS_TAG: "2023-07-10-virglrenderer"
|
||||||
KERNEL_REPO: "gfx-ci/linux"
|
|
||||||
PKG_REPO_REV: "3cc12a2a"
|
|
||||||
|
|
||||||
WINDOWS_X64_MSVC_PATH: "windows/x86_64_msvc"
|
WINDOWS_X64_VS_PATH: "windows/x64_vs"
|
||||||
WINDOWS_X64_MSVC_TAG: "20231222-msvc"
|
WINDOWS_X64_VS_TAG: "2022-10-20-upgrade-zlib"
|
||||||
|
|
||||||
WINDOWS_X64_BUILD_PATH: "windows/x86_64_build"
|
WINDOWS_X64_BUILD_PATH: "windows/x64_build"
|
||||||
WINDOWS_X64_BUILD_TAG: "20240405-vainfo-ci-1"
|
WINDOWS_X64_BUILD_TAG: "2023-06-24-agility-711"
|
||||||
|
|
||||||
WINDOWS_X64_TEST_PATH: "windows/x86_64_test"
|
WINDOWS_X64_TEST_PATH: "windows/x64_test"
|
||||||
WINDOWS_X64_TEST_TAG: "20240405-vainfo-ci-1"
|
WINDOWS_X64_TEST_TAG: "2023-05-30-warp-1.0.7.1"
|
||||||
|
@@ -5,36 +5,24 @@ class MesaCIException(Exception):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class MesaCIRetriableException(MesaCIException):
|
class MesaCITimeoutError(MesaCIException):
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class MesaCITimeoutError(MesaCIRetriableException):
|
|
||||||
def __init__(self, *args, timeout_duration: timedelta) -> None:
|
def __init__(self, *args, timeout_duration: timedelta) -> None:
|
||||||
super().__init__(*args)
|
super().__init__(*args)
|
||||||
self.timeout_duration = timeout_duration
|
self.timeout_duration = timeout_duration
|
||||||
|
|
||||||
|
|
||||||
class MesaCIRetryError(MesaCIRetriableException):
|
class MesaCIRetryError(MesaCIException):
|
||||||
def __init__(self, *args, retry_count: int, last_job: None) -> None:
|
def __init__(self, *args, retry_count: int, last_job: None) -> None:
|
||||||
super().__init__(*args)
|
super().__init__(*args)
|
||||||
self.retry_count = retry_count
|
self.retry_count = retry_count
|
||||||
self.last_job = last_job
|
self.last_job = last_job
|
||||||
|
|
||||||
|
|
||||||
class MesaCIFatalException(MesaCIException):
|
class MesaCIParseException(MesaCIException):
|
||||||
"""Exception raised when the Mesa CI script encounters a fatal error that
|
|
||||||
prevents the script from continuing."""
|
|
||||||
|
|
||||||
def __init__(self, *args) -> None:
|
|
||||||
super().__init__(*args)
|
|
||||||
|
|
||||||
|
|
||||||
class MesaCIParseException(MesaCIRetriableException):
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class MesaCIKnownIssueException(MesaCIRetriableException):
|
class MesaCIKnownIssueException(MesaCIException):
|
||||||
"""Exception raised when the Mesa CI script finds something in the logs that
|
"""Exception raised when the Mesa CI script finds something in the logs that
|
||||||
is known to cause the LAVA job to eventually fail"""
|
is known to cause the LAVA job to eventually fail"""
|
||||||
|
|
||||||
|
@@ -11,7 +11,7 @@ variables:
|
|||||||
# proxy used to cache data locally
|
# proxy used to cache data locally
|
||||||
FDO_HTTP_CACHE_URI: "http://caching-proxy/cache/?uri="
|
FDO_HTTP_CACHE_URI: "http://caching-proxy/cache/?uri="
|
||||||
# base system generated by the container build job, shared between many pipelines
|
# base system generated by the container build job, shared between many pipelines
|
||||||
BASE_SYSTEM_HOST_PREFIX: "${S3_HOST}/${S3_KERNEL_BUCKET}"
|
BASE_SYSTEM_HOST_PREFIX: "${S3_HOST}/mesa-lava"
|
||||||
BASE_SYSTEM_MAINLINE_HOST_PATH: "${BASE_SYSTEM_HOST_PREFIX}/${FDO_UPSTREAM_REPO}/${DISTRIBUTION_TAG}/${DEBIAN_ARCH}"
|
BASE_SYSTEM_MAINLINE_HOST_PATH: "${BASE_SYSTEM_HOST_PREFIX}/${FDO_UPSTREAM_REPO}/${DISTRIBUTION_TAG}/${DEBIAN_ARCH}"
|
||||||
BASE_SYSTEM_FORK_HOST_PATH: "${BASE_SYSTEM_HOST_PREFIX}/${CI_PROJECT_PATH}/${DISTRIBUTION_TAG}/${DEBIAN_ARCH}"
|
BASE_SYSTEM_FORK_HOST_PATH: "${BASE_SYSTEM_HOST_PREFIX}/${CI_PROJECT_PATH}/${DISTRIBUTION_TAG}/${DEBIAN_ARCH}"
|
||||||
# per-job build artifacts
|
# per-job build artifacts
|
||||||
@@ -116,8 +116,6 @@ variables:
|
|||||||
.lava-traces-base:
|
.lava-traces-base:
|
||||||
variables:
|
variables:
|
||||||
HWCI_TEST_SCRIPT: "/install/piglit/piglit-traces.sh"
|
HWCI_TEST_SCRIPT: "/install/piglit/piglit-traces.sh"
|
||||||
# until we overcome Infrastructure issues, give traces extra 5 min before timeout
|
|
||||||
DEVICE_HANGING_TIMEOUT_SEC: 600
|
|
||||||
artifacts:
|
artifacts:
|
||||||
reports:
|
reports:
|
||||||
junit: results/junit.xml
|
junit: results/junit.xml
|
||||||
|
@@ -21,16 +21,16 @@ mkdir -p results/job-rootfs-overlay/
|
|||||||
cp artifacts/ci-common/capture-devcoredump.sh results/job-rootfs-overlay/
|
cp artifacts/ci-common/capture-devcoredump.sh results/job-rootfs-overlay/
|
||||||
cp artifacts/ci-common/init-*.sh results/job-rootfs-overlay/
|
cp artifacts/ci-common/init-*.sh results/job-rootfs-overlay/
|
||||||
cp artifacts/ci-common/intel-gpu-freq.sh results/job-rootfs-overlay/
|
cp artifacts/ci-common/intel-gpu-freq.sh results/job-rootfs-overlay/
|
||||||
cp artifacts/ci-common/kdl.sh results/job-rootfs-overlay/
|
|
||||||
cp "$SCRIPTS_DIR"/setup-test-env.sh results/job-rootfs-overlay/
|
cp "$SCRIPTS_DIR"/setup-test-env.sh results/job-rootfs-overlay/
|
||||||
|
|
||||||
# Prepare env vars for upload.
|
# Prepare env vars for upload.
|
||||||
section_start variables "Variables passed through:"
|
section_start variables "Variables passed through:"
|
||||||
artifacts/ci-common/generate-env.sh | tee results/job-rootfs-overlay/set-job-env-vars.sh
|
KERNEL_IMAGE_BASE_URL="https://${BASE_SYSTEM_HOST_PATH}" \
|
||||||
|
artifacts/ci-common/generate-env.sh | tee results/job-rootfs-overlay/set-job-env-vars.sh
|
||||||
section_end variables
|
section_end variables
|
||||||
|
|
||||||
tar zcf job-rootfs-overlay.tar.gz -C results/job-rootfs-overlay/ .
|
tar zcf job-rootfs-overlay.tar.gz -C results/job-rootfs-overlay/ .
|
||||||
ci-fairy s3cp --token-file "${S3_JWT_FILE}" job-rootfs-overlay.tar.gz "https://${JOB_ROOTFS_OVERLAY_PATH}"
|
ci-fairy s3cp --token-file "${CI_JOB_JWT_FILE}" job-rootfs-overlay.tar.gz "https://${JOB_ROOTFS_OVERLAY_PATH}"
|
||||||
|
|
||||||
ARTIFACT_URL="${FDO_HTTP_CACHE_URI:-}https://${PIPELINE_ARTIFACTS_BASE}/${S3_ARTIFACT_NAME:?}.tar.zst"
|
ARTIFACT_URL="${FDO_HTTP_CACHE_URI:-}https://${PIPELINE_ARTIFACTS_BASE}/${S3_ARTIFACT_NAME:?}.tar.zst"
|
||||||
|
|
||||||
@@ -41,8 +41,7 @@ PYTHONPATH=artifacts/ artifacts/lava/lava_job_submitter.py \
|
|||||||
--dump-yaml \
|
--dump-yaml \
|
||||||
--pipeline-info "$CI_JOB_NAME: $CI_PIPELINE_URL on $CI_COMMIT_REF_NAME ${CI_NODE_INDEX}/${CI_NODE_TOTAL}" \
|
--pipeline-info "$CI_JOB_NAME: $CI_PIPELINE_URL on $CI_COMMIT_REF_NAME ${CI_NODE_INDEX}/${CI_NODE_TOTAL}" \
|
||||||
--rootfs-url-prefix "https://${BASE_SYSTEM_HOST_PATH}" \
|
--rootfs-url-prefix "https://${BASE_SYSTEM_HOST_PATH}" \
|
||||||
--kernel-url-prefix "${KERNEL_IMAGE_BASE}/${DEBIAN_ARCH}" \
|
--kernel-url-prefix "https://${BASE_SYSTEM_HOST_PATH}" \
|
||||||
--kernel-external "${FORCE_KERNEL_TAG}" \
|
|
||||||
--build-url "${ARTIFACT_URL}" \
|
--build-url "${ARTIFACT_URL}" \
|
||||||
--job-rootfs-overlay-url "${FDO_HTTP_CACHE_URI:-}https://${JOB_ROOTFS_OVERLAY_PATH}" \
|
--job-rootfs-overlay-url "${FDO_HTTP_CACHE_URI:-}https://${JOB_ROOTFS_OVERLAY_PATH}" \
|
||||||
--job-timeout-min ${JOB_TIMEOUT:-30} \
|
--job-timeout-min ${JOB_TIMEOUT:-30} \
|
||||||
@@ -50,7 +49,7 @@ PYTHONPATH=artifacts/ artifacts/lava/lava_job_submitter.py \
|
|||||||
--ci-project-dir "${CI_PROJECT_DIR}" \
|
--ci-project-dir "${CI_PROJECT_DIR}" \
|
||||||
--device-type "${DEVICE_TYPE}" \
|
--device-type "${DEVICE_TYPE}" \
|
||||||
--dtb-filename "${DTB}" \
|
--dtb-filename "${DTB}" \
|
||||||
--jwt-file "${S3_JWT_FILE}" \
|
--jwt-file "${CI_JOB_JWT_FILE}" \
|
||||||
--kernel-image-name "${KERNEL_IMAGE_NAME}" \
|
--kernel-image-name "${KERNEL_IMAGE_NAME}" \
|
||||||
--kernel-image-type "${KERNEL_IMAGE_TYPE}" \
|
--kernel-image-type "${KERNEL_IMAGE_TYPE}" \
|
||||||
--boot-method "${BOOT_METHOD}" \
|
--boot-method "${BOOT_METHOD}" \
|
||||||
@@ -59,5 +58,4 @@ PYTHONPATH=artifacts/ artifacts/lava/lava_job_submitter.py \
|
|||||||
--mesa-job-name "$CI_JOB_NAME" \
|
--mesa-job-name "$CI_JOB_NAME" \
|
||||||
--structured-log-file "results/lava_job_detail.json" \
|
--structured-log-file "results/lava_job_detail.json" \
|
||||||
--ssh-client-image "${LAVA_SSH_CLIENT_IMAGE}" \
|
--ssh-client-image "${LAVA_SSH_CLIENT_IMAGE}" \
|
||||||
--project-name "${CI_PROJECT_NAME}" \
|
|
||||||
>> results/lava.log
|
>> results/lava.log
|
||||||
|
@@ -16,35 +16,33 @@ import sys
|
|||||||
import time
|
import time
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from dataclasses import dataclass, fields
|
from dataclasses import dataclass, fields
|
||||||
from datetime import datetime, timedelta, timezone
|
from datetime import datetime, timedelta
|
||||||
|
from io import StringIO
|
||||||
from os import environ, getenv, path
|
from os import environ, getenv, path
|
||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
import fire
|
import fire
|
||||||
from lavacli.utils import flow_yaml as lava_yaml
|
|
||||||
|
|
||||||
from lava.exceptions import (
|
from lava.exceptions import (
|
||||||
MesaCIException,
|
MesaCIException,
|
||||||
MesaCIFatalException,
|
|
||||||
MesaCIRetriableException,
|
|
||||||
MesaCIParseException,
|
MesaCIParseException,
|
||||||
MesaCIRetryError,
|
MesaCIRetryError,
|
||||||
MesaCITimeoutError,
|
MesaCITimeoutError,
|
||||||
)
|
)
|
||||||
|
from lava.utils import CONSOLE_LOG
|
||||||
|
from lava.utils import DEFAULT_GITLAB_SECTION_TIMEOUTS as GL_SECTION_TIMEOUTS
|
||||||
from lava.utils import (
|
from lava.utils import (
|
||||||
CONSOLE_LOG,
|
|
||||||
GitlabSection,
|
GitlabSection,
|
||||||
LAVAJob,
|
LAVAJob,
|
||||||
LAVAJobDefinition,
|
|
||||||
LogFollower,
|
LogFollower,
|
||||||
LogSectionType,
|
LogSectionType,
|
||||||
call_proxy,
|
call_proxy,
|
||||||
fatal_err,
|
fatal_err,
|
||||||
|
generate_lava_job_definition,
|
||||||
hide_sensitive_data,
|
hide_sensitive_data,
|
||||||
print_log,
|
print_log,
|
||||||
setup_lava_proxy,
|
setup_lava_proxy,
|
||||||
)
|
)
|
||||||
from lava.utils import DEFAULT_GITLAB_SECTION_TIMEOUTS as GL_SECTION_TIMEOUTS
|
from lavacli.utils import flow_yaml as lava_yaml
|
||||||
|
|
||||||
# Initialize structural logging with a defaultdict, it can be changed for more
|
# Initialize structural logging with a defaultdict, it can be changed for more
|
||||||
# sophisticated dict-like data abstractions.
|
# sophisticated dict-like data abstractions.
|
||||||
@@ -60,7 +58,7 @@ except ImportError as e:
|
|||||||
|
|
||||||
# Timeout in seconds to decide if the device from the dispatched LAVA job has
|
# Timeout in seconds to decide if the device from the dispatched LAVA job has
|
||||||
# hung or not due to the lack of new log output.
|
# hung or not due to the lack of new log output.
|
||||||
DEVICE_HANGING_TIMEOUT_SEC = int(getenv("DEVICE_HANGING_TIMEOUT_SEC", 5 * 60))
|
DEVICE_HANGING_TIMEOUT_SEC = int(getenv("LAVA_DEVICE_HANGING_TIMEOUT_SEC", 5*60))
|
||||||
|
|
||||||
# How many seconds the script should wait before try a new polling iteration to
|
# How many seconds the script should wait before try a new polling iteration to
|
||||||
# check if the dispatched LAVA job is running or waiting in the job queue.
|
# check if the dispatched LAVA job is running or waiting in the job queue.
|
||||||
@@ -83,29 +81,18 @@ NUMBER_OF_RETRIES_TIMEOUT_DETECTION = int(
|
|||||||
getenv("LAVA_NUMBER_OF_RETRIES_TIMEOUT_DETECTION", 2)
|
getenv("LAVA_NUMBER_OF_RETRIES_TIMEOUT_DETECTION", 2)
|
||||||
)
|
)
|
||||||
|
|
||||||
CI_JOB_TIMEOUT_SEC = int(getenv("CI_JOB_TIMEOUT", 3600))
|
|
||||||
# How many seconds the script will wait to let LAVA run the job and give the final details.
|
|
||||||
EXPECTED_JOB_DURATION_SEC = int(getenv("EXPECTED_JOB_DURATION_SEC", 60 * 10))
|
|
||||||
# CI_JOB_STARTED is given by GitLab CI/CD in UTC timezone by default.
|
|
||||||
CI_JOB_STARTED_AT_RAW = getenv("CI_JOB_STARTED_AT", "")
|
|
||||||
CI_JOB_STARTED_AT: datetime = (
|
|
||||||
datetime.fromisoformat(CI_JOB_STARTED_AT_RAW)
|
|
||||||
if CI_JOB_STARTED_AT_RAW
|
|
||||||
else datetime.now(timezone.utc)
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def raise_exception_from_metadata(metadata: dict, job_id: int) -> None:
|
def raise_exception_from_metadata(metadata: dict, job_id: int) -> None:
|
||||||
"""
|
"""
|
||||||
Investigate infrastructure errors from the job metadata.
|
Investigate infrastructure errors from the job metadata.
|
||||||
If it finds an error, raise it as MesaCIRetriableException.
|
If it finds an error, raise it as MesaCIException.
|
||||||
"""
|
"""
|
||||||
if "result" not in metadata or metadata["result"] != "fail":
|
if "result" not in metadata or metadata["result"] != "fail":
|
||||||
return
|
return
|
||||||
if "error_type" in metadata:
|
if "error_type" in metadata:
|
||||||
error_type = metadata["error_type"]
|
error_type = metadata["error_type"]
|
||||||
if error_type == "Infrastructure":
|
if error_type == "Infrastructure":
|
||||||
raise MesaCIRetriableException(
|
raise MesaCIException(
|
||||||
f"LAVA job {job_id} failed with Infrastructure Error. Retry."
|
f"LAVA job {job_id} failed with Infrastructure Error. Retry."
|
||||||
)
|
)
|
||||||
if error_type == "Job":
|
if error_type == "Job":
|
||||||
@@ -113,12 +100,12 @@ def raise_exception_from_metadata(metadata: dict, job_id: int) -> None:
|
|||||||
# with mal-formed job definitions. As we are always validating the
|
# with mal-formed job definitions. As we are always validating the
|
||||||
# jobs, only the former is probable to happen. E.g.: When some LAVA
|
# jobs, only the former is probable to happen. E.g.: When some LAVA
|
||||||
# action timed out more times than expected in job definition.
|
# action timed out more times than expected in job definition.
|
||||||
raise MesaCIRetriableException(
|
raise MesaCIException(
|
||||||
f"LAVA job {job_id} failed with JobError "
|
f"LAVA job {job_id} failed with JobError "
|
||||||
"(possible LAVA timeout misconfiguration/bug). Retry."
|
"(possible LAVA timeout misconfiguration/bug). Retry."
|
||||||
)
|
)
|
||||||
if "case" in metadata and metadata["case"] == "validate":
|
if "case" in metadata and metadata["case"] == "validate":
|
||||||
raise MesaCIRetriableException(
|
raise MesaCIException(
|
||||||
f"LAVA job {job_id} failed validation (possible download error). Retry."
|
f"LAVA job {job_id} failed validation (possible download error). Retry."
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -195,6 +182,7 @@ def is_job_hanging(job, max_idle_time):
|
|||||||
|
|
||||||
|
|
||||||
def parse_log_lines(job, log_follower, new_log_lines):
|
def parse_log_lines(job, log_follower, new_log_lines):
|
||||||
|
|
||||||
if log_follower.feed(new_log_lines):
|
if log_follower.feed(new_log_lines):
|
||||||
# If we had non-empty log data, we can assure that the device is alive.
|
# If we had non-empty log data, we can assure that the device is alive.
|
||||||
job.heartbeat()
|
job.heartbeat()
|
||||||
@@ -212,6 +200,7 @@ def parse_log_lines(job, log_follower, new_log_lines):
|
|||||||
|
|
||||||
|
|
||||||
def fetch_new_log_lines(job):
|
def fetch_new_log_lines(job):
|
||||||
|
|
||||||
# The XMLRPC binary packet may be corrupted, causing a YAML scanner error.
|
# The XMLRPC binary packet may be corrupted, causing a YAML scanner error.
|
||||||
# Retry the log fetching several times before exposing the error.
|
# Retry the log fetching several times before exposing the error.
|
||||||
for _ in range(5):
|
for _ in range(5):
|
||||||
@@ -227,28 +216,14 @@ def submit_job(job):
|
|||||||
try:
|
try:
|
||||||
job.submit()
|
job.submit()
|
||||||
except Exception as mesa_ci_err:
|
except Exception as mesa_ci_err:
|
||||||
raise MesaCIRetriableException(
|
raise MesaCIException(
|
||||||
f"Could not submit LAVA job. Reason: {mesa_ci_err}"
|
f"Could not submit LAVA job. Reason: {mesa_ci_err}"
|
||||||
) from mesa_ci_err
|
) from mesa_ci_err
|
||||||
|
|
||||||
|
|
||||||
def wait_for_job_get_started(job, attempt_no):
|
def wait_for_job_get_started(job):
|
||||||
print_log(f"Waiting for job {job.job_id} to start.")
|
print_log(f"Waiting for job {job.job_id} to start.")
|
||||||
while not job.is_started():
|
while not job.is_started():
|
||||||
current_job_duration_sec: int = int(
|
|
||||||
(datetime.now(timezone.utc) - CI_JOB_STARTED_AT).total_seconds()
|
|
||||||
)
|
|
||||||
remaining_time_sec: int = max(0, CI_JOB_TIMEOUT_SEC - current_job_duration_sec)
|
|
||||||
if remaining_time_sec < EXPECTED_JOB_DURATION_SEC:
|
|
||||||
job.cancel()
|
|
||||||
raise MesaCIFatalException(
|
|
||||||
f"{CONSOLE_LOG['BOLD']}"
|
|
||||||
f"{CONSOLE_LOG['FG_YELLOW']}"
|
|
||||||
f"Job {job.job_id} only has {remaining_time_sec} seconds "
|
|
||||||
"remaining to run, but it is expected to take at least "
|
|
||||||
f"{EXPECTED_JOB_DURATION_SEC} seconds."
|
|
||||||
f"{CONSOLE_LOG['RESET']}",
|
|
||||||
)
|
|
||||||
time.sleep(WAIT_FOR_DEVICE_POLLING_TIME_SEC)
|
time.sleep(WAIT_FOR_DEVICE_POLLING_TIME_SEC)
|
||||||
job.refresh_log()
|
job.refresh_log()
|
||||||
print_log(f"Job {job.job_id} started.")
|
print_log(f"Job {job.job_id} started.")
|
||||||
@@ -324,7 +299,7 @@ def execute_job_with_retries(
|
|||||||
try:
|
try:
|
||||||
job_log["submitter_start_time"] = datetime.now().isoformat()
|
job_log["submitter_start_time"] = datetime.now().isoformat()
|
||||||
submit_job(job)
|
submit_job(job)
|
||||||
wait_for_job_get_started(job, attempt_no)
|
wait_for_job_get_started(job)
|
||||||
log_follower: LogFollower = bootstrap_log_follower()
|
log_follower: LogFollower = bootstrap_log_follower()
|
||||||
follow_job_execution(job, log_follower)
|
follow_job_execution(job, log_follower)
|
||||||
return job
|
return job
|
||||||
@@ -343,8 +318,6 @@ def execute_job_with_retries(
|
|||||||
f"Finished executing LAVA job in the attempt #{attempt_no}"
|
f"Finished executing LAVA job in the attempt #{attempt_no}"
|
||||||
f"{CONSOLE_LOG['RESET']}"
|
f"{CONSOLE_LOG['RESET']}"
|
||||||
)
|
)
|
||||||
if job.exception and not isinstance(job.exception, MesaCIRetriableException):
|
|
||||||
break
|
|
||||||
|
|
||||||
return last_failed_job
|
return last_failed_job
|
||||||
|
|
||||||
@@ -397,7 +370,6 @@ class LAVAJobSubmitter(PathResolver):
|
|||||||
kernel_image_name: str = None
|
kernel_image_name: str = None
|
||||||
kernel_image_type: str = ""
|
kernel_image_type: str = ""
|
||||||
kernel_url_prefix: str = None
|
kernel_url_prefix: str = None
|
||||||
kernel_external: str = None
|
|
||||||
lava_tags: str = "" # Comma-separated LAVA tags for the job
|
lava_tags: str = "" # Comma-separated LAVA tags for the job
|
||||||
mesa_job_name: str = "mesa_ci_job"
|
mesa_job_name: str = "mesa_ci_job"
|
||||||
pipeline_info: str = ""
|
pipeline_info: str = ""
|
||||||
@@ -407,7 +379,6 @@ class LAVAJobSubmitter(PathResolver):
|
|||||||
job_rootfs_overlay_url: str = None
|
job_rootfs_overlay_url: str = None
|
||||||
structured_log_file: pathlib.Path = None # Log file path with structured LAVA log
|
structured_log_file: pathlib.Path = None # Log file path with structured LAVA log
|
||||||
ssh_client_image: str = None # x86_64 SSH client image to follow the job's output
|
ssh_client_image: str = None # x86_64 SSH client image to follow the job's output
|
||||||
project_name: str = None # Project name to be used in the job name
|
|
||||||
__structured_log_context = contextlib.nullcontext() # Structured Logger context
|
__structured_log_context = contextlib.nullcontext() # Structured Logger context
|
||||||
|
|
||||||
def __post_init__(self) -> None:
|
def __post_init__(self) -> None:
|
||||||
@@ -431,7 +402,7 @@ class LAVAJobSubmitter(PathResolver):
|
|||||||
minutes=self.job_timeout_min
|
minutes=self.job_timeout_min
|
||||||
)
|
)
|
||||||
|
|
||||||
job_definition = LAVAJobDefinition(self).generate_lava_job_definition()
|
job_definition = generate_lava_job_definition(self)
|
||||||
|
|
||||||
if self.dump_yaml:
|
if self.dump_yaml:
|
||||||
self.dump_job_definition(job_definition)
|
self.dump_job_definition(job_definition)
|
||||||
@@ -485,8 +456,10 @@ class LAVAJobSubmitter(PathResolver):
|
|||||||
self.finish_script(last_attempt_job)
|
self.finish_script(last_attempt_job)
|
||||||
|
|
||||||
def print_log_artifact_url(self):
|
def print_log_artifact_url(self):
|
||||||
|
base_url = "https://$CI_PROJECT_ROOT_NAMESPACE.pages.freedesktop.org/"
|
||||||
|
artifacts_path = "-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/"
|
||||||
relative_log_path = self.structured_log_file.relative_to(pathlib.Path.cwd())
|
relative_log_path = self.structured_log_file.relative_to(pathlib.Path.cwd())
|
||||||
full_path = f"$ARTIFACTS_BASE_URL/{relative_log_path}"
|
full_path = f"{base_url}{artifacts_path}{relative_log_path}"
|
||||||
artifact_url = path.expandvars(full_path)
|
artifact_url = path.expandvars(full_path)
|
||||||
|
|
||||||
print_log(f"Structural Logging data available at: {artifact_url}")
|
print_log(f"Structural Logging data available at: {artifact_url}")
|
||||||
@@ -498,9 +471,8 @@ class LAVAJobSubmitter(PathResolver):
|
|||||||
if not last_attempt_job:
|
if not last_attempt_job:
|
||||||
# No job was run, something bad happened
|
# No job was run, something bad happened
|
||||||
STRUCTURAL_LOG["job_combined_status"] = "script_crash"
|
STRUCTURAL_LOG["job_combined_status"] = "script_crash"
|
||||||
current_exception = str(sys.exc_info()[1])
|
current_exception = str(sys.exc_info()[0])
|
||||||
STRUCTURAL_LOG["job_combined_fail_reason"] = current_exception
|
STRUCTURAL_LOG["job_combined_fail_reason"] = current_exception
|
||||||
print(f"Interrupting the script. Reason: {current_exception}")
|
|
||||||
raise SystemExit(1)
|
raise SystemExit(1)
|
||||||
|
|
||||||
STRUCTURAL_LOG["job_combined_status"] = last_attempt_job.status
|
STRUCTURAL_LOG["job_combined_status"] = last_attempt_job.status
|
||||||
@@ -537,6 +509,7 @@ class StructuredLoggerWrapper:
|
|||||||
def logger_context(self):
|
def logger_context(self):
|
||||||
context = contextlib.nullcontext()
|
context = contextlib.nullcontext()
|
||||||
try:
|
try:
|
||||||
|
|
||||||
global STRUCTURAL_LOG
|
global STRUCTURAL_LOG
|
||||||
STRUCTURAL_LOG = StructuredLogger(
|
STRUCTURAL_LOG = StructuredLogger(
|
||||||
self.__submitter.structured_log_file, truncate=True
|
self.__submitter.structured_log_file, truncate=True
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
from .console_format import CONSOLE_LOG
|
from .console_format import CONSOLE_LOG
|
||||||
from .gitlab_section import GitlabSection
|
from .gitlab_section import GitlabSection
|
||||||
from .lava_job import LAVAJob
|
from .lava_job import LAVAJob
|
||||||
from .lava_job_definition import LAVAJobDefinition
|
from .lava_job_definition import generate_lava_job_definition
|
||||||
from .lava_proxy import call_proxy, setup_lava_proxy
|
from .lava_proxy import call_proxy, setup_lava_proxy
|
||||||
from .log_follower import (
|
from .log_follower import (
|
||||||
LogFollower,
|
LogFollower,
|
||||||
|
@@ -1,32 +0,0 @@
|
|||||||
from os import getenv
|
|
||||||
|
|
||||||
# How many attempts should be made when a timeout happen during LAVA device boot.
|
|
||||||
NUMBER_OF_ATTEMPTS_LAVA_BOOT = int(getenv("LAVA_NUMBER_OF_ATTEMPTS_LAVA_BOOT", 3))
|
|
||||||
|
|
||||||
|
|
||||||
# Supports any integers in [0, 100].
|
|
||||||
# The scheduler considers the job priority when ordering the queue
|
|
||||||
# to consider which job should run next.
|
|
||||||
JOB_PRIORITY = int(getenv("JOB_PRIORITY", 75))
|
|
||||||
|
|
||||||
# Use UART over the default SSH mechanism to follow logs.
|
|
||||||
# Caution: this can lead to device silence in some devices in Mesa CI.
|
|
||||||
FORCE_UART = bool(getenv("LAVA_FORCE_UART", False))
|
|
||||||
|
|
||||||
# How many times the r8152 error may happen to consider it a known issue.
|
|
||||||
KNOWN_ISSUE_R8152_MAX_CONSECUTIVE_COUNTER: int = 10
|
|
||||||
KNOWN_ISSUE_R8152_PATTERNS: tuple[str, ...] = (
|
|
||||||
r"r8152 \S+ eth0: Tx status -71",
|
|
||||||
r"nfs: server \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} not responding, still trying",
|
|
||||||
)
|
|
||||||
|
|
||||||
# This is considered noise, since LAVA produces this log after receiving a package of feedback
|
|
||||||
# messages.
|
|
||||||
LOG_DEBUG_FEEDBACK_NOISE = "Listened to connection for namespace 'dut' done"
|
|
||||||
|
|
||||||
A6XX_GPU_RECOVERY_WATCH_PERIOD_MIN = 3
|
|
||||||
A6XX_GPU_RECOVERY_FAILURE_MAX_COUNT = 30
|
|
||||||
A6XX_GPU_RECOVERY_FAILURE_MESSAGE = (
|
|
||||||
"cx gdsc didn't collapse",
|
|
||||||
"Timeout waiting for GMU OOB",
|
|
||||||
)
|
|
@@ -6,7 +6,6 @@ from typing import Any, Optional
|
|||||||
|
|
||||||
from lava.exceptions import (
|
from lava.exceptions import (
|
||||||
MesaCIException,
|
MesaCIException,
|
||||||
MesaCIRetriableException,
|
|
||||||
MesaCIKnownIssueException,
|
MesaCIKnownIssueException,
|
||||||
MesaCIParseException,
|
MesaCIParseException,
|
||||||
MesaCITimeoutError,
|
MesaCITimeoutError,
|
||||||
@@ -35,7 +34,7 @@ class LAVAJob:
|
|||||||
self._is_finished = False
|
self._is_finished = False
|
||||||
self.log: dict[str, Any] = log
|
self.log: dict[str, Any] = log
|
||||||
self.status = "not_submitted"
|
self.status = "not_submitted"
|
||||||
self.__exception: Optional[Exception] = None
|
self.__exception: Optional[str] = None
|
||||||
|
|
||||||
def heartbeat(self) -> None:
|
def heartbeat(self) -> None:
|
||||||
self.last_log_time: datetime = datetime.now()
|
self.last_log_time: datetime = datetime.now()
|
||||||
@@ -64,13 +63,13 @@ class LAVAJob:
|
|||||||
return self._is_finished
|
return self._is_finished
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def exception(self) -> Optional[Exception]:
|
def exception(self) -> str:
|
||||||
return self.__exception
|
return self.__exception
|
||||||
|
|
||||||
@exception.setter
|
@exception.setter
|
||||||
def exception(self, exception: Exception) -> None:
|
def exception(self, exception: Exception) -> None:
|
||||||
self.__exception = exception
|
self.__exception = repr(exception)
|
||||||
self.log["dut_job_fail_reason"] = repr(self.__exception)
|
self.log["dut_job_fail_reason"] = self.__exception
|
||||||
|
|
||||||
def validate(self) -> Optional[dict]:
|
def validate(self) -> Optional[dict]:
|
||||||
"""Returns a dict with errors, if the validation fails.
|
"""Returns a dict with errors, if the validation fails.
|
||||||
@@ -177,15 +176,11 @@ class LAVAJob:
|
|||||||
self.status = "canceled"
|
self.status = "canceled"
|
||||||
elif isinstance(exception, MesaCITimeoutError):
|
elif isinstance(exception, MesaCITimeoutError):
|
||||||
self.status = "hung"
|
self.status = "hung"
|
||||||
elif isinstance(exception, MesaCIRetriableException):
|
elif isinstance(exception, MesaCIException):
|
||||||
self.status = "failed"
|
self.status = "failed"
|
||||||
elif isinstance(exception, KeyboardInterrupt):
|
elif isinstance(exception, KeyboardInterrupt):
|
||||||
self.status = "interrupted"
|
self.status = "interrupted"
|
||||||
print_log("LAVA job submitter was interrupted. Cancelling the job.")
|
print_log("LAVA job submitter was interrupted. Cancelling the job.")
|
||||||
raise
|
raise
|
||||||
elif isinstance(exception, MesaCIException):
|
|
||||||
self.status = "interrupted"
|
|
||||||
print_log("LAVA job submitter was interrupted. Cancelling the job.")
|
|
||||||
raise
|
|
||||||
else:
|
else:
|
||||||
self.status = "job_submitter_error"
|
self.status = "job_submitter_error"
|
||||||
|
@@ -1,130 +1,95 @@
|
|||||||
from io import StringIO
|
from io import StringIO
|
||||||
from typing import TYPE_CHECKING, Any
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from ruamel.yaml import YAML
|
import re
|
||||||
|
|
||||||
from lava.utils.lava_farm import LavaFarm, get_lava_farm
|
from lava.utils.lava_farm import LavaFarm, get_lava_farm
|
||||||
from lava.utils.ssh_job_definition import (
|
from ruamel.yaml.scalarstring import LiteralScalarString
|
||||||
generate_docker_test,
|
from ruamel.yaml import YAML
|
||||||
generate_dut_test,
|
from os import getenv
|
||||||
wrap_boot_action,
|
|
||||||
wrap_final_deploy_action,
|
|
||||||
)
|
|
||||||
from lava.utils.uart_job_definition import (
|
|
||||||
fastboot_boot_action,
|
|
||||||
fastboot_deploy_actions,
|
|
||||||
tftp_boot_action,
|
|
||||||
tftp_deploy_actions,
|
|
||||||
qemu_boot_action,
|
|
||||||
qemu_deploy_actions,
|
|
||||||
uart_test_actions,
|
|
||||||
)
|
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from lava.lava_job_submitter import LAVAJobSubmitter
|
from lava.lava_job_submitter import LAVAJobSubmitter
|
||||||
|
|
||||||
from .constants import FORCE_UART, JOB_PRIORITY, NUMBER_OF_ATTEMPTS_LAVA_BOOT
|
# How many attempts should be made when a timeout happen during LAVA device boot.
|
||||||
|
NUMBER_OF_ATTEMPTS_LAVA_BOOT = int(getenv("LAVA_NUMBER_OF_ATTEMPTS_LAVA_BOOT", 3))
|
||||||
|
|
||||||
|
# Supports any integers in [0, 100].
|
||||||
|
# The scheduler considers the job priority when ordering the queue
|
||||||
|
# to consider which job should run next.
|
||||||
|
JOB_PRIORITY = int(getenv("LAVA_JOB_PRIORITY", 75))
|
||||||
|
|
||||||
|
|
||||||
class LAVAJobDefinition:
|
def has_ssh_support(job_submitter: "LAVAJobSubmitter") -> bool:
|
||||||
"""
|
force_uart = bool(getenv("LAVA_FORCE_UART", False))
|
||||||
This class is responsible for generating the YAML payload to submit a LAVA
|
|
||||||
job.
|
|
||||||
"""
|
|
||||||
|
|
||||||
def __init__(self, job_submitter: "LAVAJobSubmitter") -> None:
|
if force_uart:
|
||||||
self.job_submitter: "LAVAJobSubmitter" = job_submitter
|
|
||||||
|
|
||||||
def has_ssh_support(self) -> bool:
|
|
||||||
if FORCE_UART:
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# Only Collabora's farm supports to run docker container as a LAVA actions,
|
# Only Collabora's farm supports to run docker container as a LAVA actions,
|
||||||
# which is required to follow the job in a SSH section
|
# which is required to follow the job in a SSH section
|
||||||
current_farm = get_lava_farm()
|
current_farm = get_lava_farm()
|
||||||
|
|
||||||
return current_farm == LavaFarm.COLLABORA
|
# SSH job definition still needs to add support for fastboot.
|
||||||
|
job_uses_fastboot: bool = job_submitter.boot_method == "fastboot"
|
||||||
|
|
||||||
def generate_lava_yaml_payload(self) -> dict[str, Any]:
|
return current_farm == LavaFarm.COLLABORA and not job_uses_fastboot
|
||||||
|
|
||||||
|
|
||||||
|
def generate_lava_yaml_payload(job_submitter: "LAVAJobSubmitter") -> dict[str, Any]:
|
||||||
"""
|
"""
|
||||||
Generates a YAML payload for submitting a LAVA job, based on the provided arguments.
|
Bridge function to use the supported job definition depending on some Mesa
|
||||||
|
CI job characteristics.
|
||||||
|
|
||||||
Args:
|
The strategy here, is to use LAVA with a containerized SSH session to follow
|
||||||
None
|
the job output, escaping from dumping data to the UART, which proves to be
|
||||||
|
error prone in some devices.
|
||||||
Returns:
|
|
||||||
a dictionary containing the values generated by the `generate_metadata` function and the
|
|
||||||
actions for the LAVA job submission.
|
|
||||||
"""
|
"""
|
||||||
args = self.job_submitter
|
from lava.utils.ssh_job_definition import (
|
||||||
values = self.generate_metadata()
|
generate_lava_yaml_payload as ssh_lava_yaml,
|
||||||
nfsrootfs = {
|
)
|
||||||
"url": f"{args.rootfs_url_prefix}/lava-rootfs.tar.zst",
|
from lava.utils.uart_job_definition import (
|
||||||
"compression": "zstd",
|
generate_lava_yaml_payload as uart_lava_yaml,
|
||||||
}
|
|
||||||
|
|
||||||
init_stage1_steps = self.init_stage1_steps()
|
|
||||||
artifact_download_steps = self.artifact_download_steps()
|
|
||||||
|
|
||||||
deploy_actions = []
|
|
||||||
boot_action = []
|
|
||||||
test_actions = uart_test_actions(args, init_stage1_steps, artifact_download_steps)
|
|
||||||
|
|
||||||
if args.boot_method == "fastboot":
|
|
||||||
deploy_actions = fastboot_deploy_actions(self, nfsrootfs)
|
|
||||||
boot_action = fastboot_boot_action(args)
|
|
||||||
elif args.boot_method == "qemu-nfs":
|
|
||||||
deploy_actions = qemu_deploy_actions(self, nfsrootfs)
|
|
||||||
boot_action = qemu_boot_action(args)
|
|
||||||
else: # tftp
|
|
||||||
deploy_actions = tftp_deploy_actions(self, nfsrootfs)
|
|
||||||
boot_action = tftp_boot_action(args)
|
|
||||||
|
|
||||||
if self.has_ssh_support():
|
|
||||||
wrap_final_deploy_action(deploy_actions[-1])
|
|
||||||
# SSH jobs use namespaces to differentiate between the DUT and the
|
|
||||||
# docker container. Every LAVA action needs an explicit namespace, when we are not using
|
|
||||||
# the default one.
|
|
||||||
for deploy_action in deploy_actions:
|
|
||||||
deploy_action["namespace"] = "dut"
|
|
||||||
wrap_boot_action(boot_action)
|
|
||||||
test_actions = (
|
|
||||||
generate_dut_test(args, init_stage1_steps),
|
|
||||||
generate_docker_test(args, artifact_download_steps),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
values["actions"] = [
|
if has_ssh_support(job_submitter):
|
||||||
*[{"deploy": d} for d in deploy_actions],
|
return ssh_lava_yaml(job_submitter)
|
||||||
{"boot": boot_action},
|
|
||||||
*[{"test": t} for t in test_actions],
|
|
||||||
]
|
|
||||||
|
|
||||||
return values
|
return uart_lava_yaml(job_submitter)
|
||||||
|
|
||||||
def generate_lava_job_definition(self) -> str:
|
|
||||||
"""
|
|
||||||
Generates a LAVA job definition in YAML format and returns it as a string.
|
|
||||||
|
|
||||||
Returns:
|
def generate_lava_job_definition(job_submitter: "LAVAJobSubmitter") -> str:
|
||||||
a string representation of the job definition generated by analysing job submitter
|
|
||||||
arguments and environment variables
|
|
||||||
"""
|
|
||||||
job_stream = StringIO()
|
job_stream = StringIO()
|
||||||
yaml = YAML()
|
yaml = YAML()
|
||||||
yaml.width = 4096
|
yaml.width = 4096
|
||||||
yaml.dump(self.generate_lava_yaml_payload(), job_stream)
|
yaml.dump(generate_lava_yaml_payload(job_submitter), job_stream)
|
||||||
return job_stream.getvalue()
|
return job_stream.getvalue()
|
||||||
|
|
||||||
def generate_metadata(self) -> dict[str, Any]:
|
|
||||||
|
def to_yaml_block(steps_array: list[str], escape_vars=[]) -> LiteralScalarString:
|
||||||
|
def escape_envvar(match):
|
||||||
|
return "\\" + match.group(0)
|
||||||
|
|
||||||
|
filtered_array = [s for s in steps_array if s.strip() and not s.startswith("#")]
|
||||||
|
final_str = "\n".join(filtered_array)
|
||||||
|
|
||||||
|
for escape_var in escape_vars:
|
||||||
|
# Find env vars and add '\\' before them
|
||||||
|
final_str = re.sub(rf"\${escape_var}*", escape_envvar, final_str)
|
||||||
|
return LiteralScalarString(final_str)
|
||||||
|
|
||||||
|
|
||||||
|
def generate_metadata(args) -> dict[str, Any]:
|
||||||
# General metadata and permissions
|
# General metadata and permissions
|
||||||
values = {
|
values = {
|
||||||
"job_name": f"{self.job_submitter.project_name}: {self.job_submitter.pipeline_info}",
|
"job_name": f"mesa: {args.pipeline_info}",
|
||||||
"device_type": self.job_submitter.device_type,
|
"device_type": args.device_type,
|
||||||
"visibility": {"group": [self.job_submitter.visibility_group]},
|
"visibility": {"group": [args.visibility_group]},
|
||||||
"priority": JOB_PRIORITY,
|
"priority": JOB_PRIORITY,
|
||||||
"context": {"extra_nfsroot_args": " init=/init rootwait usbcore.quirks=0bda:8153:k"},
|
"context": {
|
||||||
|
"extra_nfsroot_args": " init=/init rootwait usbcore.quirks=0bda:8153:k"
|
||||||
|
},
|
||||||
"timeouts": {
|
"timeouts": {
|
||||||
"job": {"minutes": self.job_submitter.job_timeout_min},
|
"job": {"minutes": args.job_timeout_min},
|
||||||
"actions": {
|
"actions": {
|
||||||
"depthcharge-retry": {
|
"depthcharge-retry": {
|
||||||
# Could take between 1 and 1.5 min in slower boots
|
# Could take between 1 and 1.5 min in slower boots
|
||||||
@@ -144,32 +109,13 @@ class LAVAJobDefinition:
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.job_submitter.lava_tags:
|
if args.lava_tags:
|
||||||
values["tags"] = self.job_submitter.lava_tags.split(",")
|
values["tags"] = args.lava_tags.split(",")
|
||||||
|
|
||||||
# QEMU lava jobs mandate proper arch value in the context
|
|
||||||
if self.job_submitter.boot_method == "qemu-nfs":
|
|
||||||
values["context"]["arch"] = self.job_submitter.mesa_job_name.split(":")[1]
|
|
||||||
|
|
||||||
return values
|
return values
|
||||||
|
|
||||||
def attach_kernel_and_dtb(self, deploy_field):
|
|
||||||
if self.job_submitter.kernel_image_type:
|
|
||||||
deploy_field["kernel"]["type"] = self.job_submitter.kernel_image_type
|
|
||||||
if self.job_submitter.dtb_filename:
|
|
||||||
deploy_field["dtb"] = {
|
|
||||||
"url": f"{self.job_submitter.kernel_url_prefix}/"
|
|
||||||
f"{self.job_submitter.dtb_filename}.dtb"
|
|
||||||
}
|
|
||||||
|
|
||||||
def attach_external_modules(self, deploy_field):
|
def artifact_download_steps(args):
|
||||||
if self.job_submitter.kernel_external:
|
|
||||||
deploy_field["modules"] = {
|
|
||||||
"url": f"{self.job_submitter.kernel_url_prefix}/modules.tar.zst",
|
|
||||||
"compression": "zstd"
|
|
||||||
}
|
|
||||||
|
|
||||||
def artifact_download_steps(self):
|
|
||||||
"""
|
"""
|
||||||
This function is responsible for setting up the SSH server in the DUT and to
|
This function is responsible for setting up the SSH server in the DUT and to
|
||||||
export the first boot environment to a file.
|
export the first boot environment to a file.
|
||||||
@@ -179,21 +125,21 @@ class LAVAJobDefinition:
|
|||||||
download_steps = [
|
download_steps = [
|
||||||
"set -ex",
|
"set -ex",
|
||||||
"curl -L --retry 4 -f --retry-all-errors --retry-delay 60 "
|
"curl -L --retry 4 -f --retry-all-errors --retry-delay 60 "
|
||||||
f"{self.job_submitter.job_rootfs_overlay_url} | tar -xz -C /",
|
f"{args.job_rootfs_overlay_url} | tar -xz -C /",
|
||||||
f"mkdir -p {self.job_submitter.ci_project_dir}",
|
f"mkdir -p {args.ci_project_dir}",
|
||||||
f"curl -L --retry 4 -f --retry-all-errors --retry-delay 60 {self.job_submitter.build_url} | "
|
f"curl -L --retry 4 -f --retry-all-errors --retry-delay 60 {args.build_url} | "
|
||||||
f"tar --zstd -x -C {self.job_submitter.ci_project_dir}",
|
f"tar --zstd -x -C {args.ci_project_dir}",
|
||||||
]
|
]
|
||||||
|
|
||||||
# If the JWT file is provided, we will use it to authenticate with the cloud
|
# If the JWT file is provided, we will use it to authenticate with the cloud
|
||||||
# storage provider and will hide it from the job output in Gitlab.
|
# storage provider and will hide it from the job output in Gitlab.
|
||||||
if self.job_submitter.jwt_file:
|
if args.jwt_file:
|
||||||
with open(self.job_submitter.jwt_file) as jwt_file:
|
with open(args.jwt_file) as jwt_file:
|
||||||
download_steps += [
|
download_steps += [
|
||||||
"set +x # HIDE_START",
|
"set +x # HIDE_START",
|
||||||
f'echo -n "{jwt_file.read()}" > "{self.job_submitter.jwt_file}"',
|
f'echo -n "{jwt_file.read()}" > "{args.jwt_file}"',
|
||||||
"set -x # HIDE_END",
|
"set -x # HIDE_END",
|
||||||
f'echo "export S3_JWT_FILE={self.job_submitter.jwt_file}" >> /set-job-env-vars.sh',
|
f'echo "export CI_JOB_JWT_FILE={args.jwt_file}" >> /set-job-env-vars.sh',
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
download_steps += [
|
download_steps += [
|
||||||
@@ -202,30 +148,3 @@ class LAVAJobDefinition:
|
|||||||
]
|
]
|
||||||
|
|
||||||
return download_steps
|
return download_steps
|
||||||
|
|
||||||
def init_stage1_steps(self) -> list[str]:
|
|
||||||
run_steps = []
|
|
||||||
# job execution script:
|
|
||||||
# - inline .gitlab-ci/common/init-stage1.sh
|
|
||||||
# - fetch and unpack per-pipeline build artifacts from build job
|
|
||||||
# - fetch and unpack per-job environment from lava-submit.sh
|
|
||||||
# - exec .gitlab-ci/common/init-stage2.sh
|
|
||||||
|
|
||||||
with open(self.job_submitter.first_stage_init, "r") as init_sh:
|
|
||||||
# For vmware farm, patch nameserver as 8.8.8.8 is off limit.
|
|
||||||
# This is temporary and will be reverted once the farm is moved.
|
|
||||||
if self.job_submitter.mesa_job_name.startswith("vmware-"):
|
|
||||||
run_steps += [x.rstrip().replace("nameserver 8.8.8.8", "nameserver 10.25.198.110") for x in init_sh if not x.startswith("#") and x.rstrip()]
|
|
||||||
else:
|
|
||||||
run_steps += [x.rstrip() for x in init_sh if not x.startswith("#") and x.rstrip()]
|
|
||||||
|
|
||||||
# We cannot distribute the Adreno 660 shader firmware inside rootfs,
|
|
||||||
# since the license isn't bundled inside the repository
|
|
||||||
if self.job_submitter.device_type == "sm8350-hdk":
|
|
||||||
run_steps.append(
|
|
||||||
"curl -L --retry 4 -f --retry-all-errors --retry-delay 60 "
|
|
||||||
+ "https://github.com/allahjasif1990/hdk888-firmware/raw/main/a660_zap.mbn "
|
|
||||||
+ '-o "/lib/firmware/qcom/sm8350/a660_zap.mbn"'
|
|
||||||
)
|
|
||||||
|
|
||||||
return run_steps
|
|
||||||
|
@@ -1,106 +1,43 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from datetime import datetime, timedelta
|
|
||||||
from dataclasses import dataclass, field
|
from dataclasses import dataclass, field
|
||||||
from typing import TYPE_CHECKING, Any, Optional, Sequence
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from lava.utils import LogFollower
|
from lava.utils import LogFollower
|
||||||
|
|
||||||
from lava.exceptions import MesaCIKnownIssueException
|
from lava.exceptions import MesaCIKnownIssueException
|
||||||
from lava.utils.console_format import CONSOLE_LOG
|
from lava.utils.console_format import CONSOLE_LOG
|
||||||
from lava.utils.constants import (
|
|
||||||
KNOWN_ISSUE_R8152_MAX_CONSECUTIVE_COUNTER,
|
|
||||||
LOG_DEBUG_FEEDBACK_NOISE,
|
|
||||||
KNOWN_ISSUE_R8152_PATTERNS,
|
|
||||||
A6XX_GPU_RECOVERY_WATCH_PERIOD_MIN,
|
|
||||||
A6XX_GPU_RECOVERY_FAILURE_MESSAGE,
|
|
||||||
A6XX_GPU_RECOVERY_FAILURE_MAX_COUNT,
|
|
||||||
)
|
|
||||||
from lava.utils.log_section import LogSectionType
|
from lava.utils.log_section import LogSectionType
|
||||||
|
|
||||||
|
|
||||||
def search_known_issue_patterns(patterns: Sequence[str], line: str) -> str:
|
|
||||||
for pattern in patterns:
|
|
||||||
if re.search(pattern, line):
|
|
||||||
return pattern
|
|
||||||
return ""
|
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class LAVALogHints:
|
class LAVALogHints:
|
||||||
log_follower: LogFollower
|
log_follower: LogFollower
|
||||||
r8152_issue_consecutive_counter: int = field(default=0, init=False)
|
has_r8152_issue_history: bool = field(default=False, init=False)
|
||||||
reboot_counter: int = field(default=0, init=False)
|
|
||||||
a6xx_gpu_recovery_fail_counter: int = field(default=0, init=False)
|
|
||||||
a6xx_gpu_first_fail_time: Optional[datetime] = field(default=None, init=False)
|
|
||||||
|
|
||||||
def raise_known_issue(self, message) -> None:
|
|
||||||
raise MesaCIKnownIssueException(
|
|
||||||
"Found known issue: "
|
|
||||||
f"{CONSOLE_LOG['FG_MAGENTA']}"
|
|
||||||
f"{message}"
|
|
||||||
f"{CONSOLE_LOG['RESET']}"
|
|
||||||
)
|
|
||||||
|
|
||||||
def detect_failure(self, new_lines: list[dict[str, Any]]):
|
def detect_failure(self, new_lines: list[dict[str, Any]]):
|
||||||
for line in new_lines:
|
for line in new_lines:
|
||||||
if line["msg"] == LOG_DEBUG_FEEDBACK_NOISE:
|
|
||||||
continue
|
|
||||||
self.detect_r8152_issue(line)
|
self.detect_r8152_issue(line)
|
||||||
self.detect_forced_reboot(line)
|
|
||||||
self.detect_a6xx_gpu_recovery_failure(line)
|
|
||||||
|
|
||||||
def detect_r8152_issue(self, line):
|
def detect_r8152_issue(self, line):
|
||||||
if self.log_follower.phase in (
|
|
||||||
LogSectionType.LAVA_BOOT,
|
|
||||||
LogSectionType.TEST_CASE,
|
|
||||||
) and line["lvl"] in ("feedback", "target"):
|
|
||||||
if search_known_issue_patterns(KNOWN_ISSUE_R8152_PATTERNS, line["msg"]):
|
|
||||||
if (
|
|
||||||
self.r8152_issue_consecutive_counter
|
|
||||||
< KNOWN_ISSUE_R8152_MAX_CONSECUTIVE_COUNTER
|
|
||||||
):
|
|
||||||
self.r8152_issue_consecutive_counter += 1
|
|
||||||
return
|
|
||||||
|
|
||||||
self.raise_known_issue(
|
|
||||||
"Probable network issue failure encountered, retrying the job"
|
|
||||||
)
|
|
||||||
|
|
||||||
# Reset the status, as the `nfs... still trying` complaint was not detected
|
|
||||||
self.r8152_issue_consecutive_counter = 0
|
|
||||||
|
|
||||||
def detect_forced_reboot(self, line: dict[str, Any]) -> None:
|
|
||||||
if (
|
if (
|
||||||
self.log_follower.phase == LogSectionType.TEST_CASE
|
self.log_follower.phase == LogSectionType.TEST_CASE
|
||||||
and line["lvl"] == "feedback"
|
and line["lvl"] == "target"
|
||||||
):
|
):
|
||||||
if re.search(r"^Reboot requested", line["msg"]):
|
if re.search(r"r8152 \S+ eth0: Tx status -71", line["msg"]):
|
||||||
self.reboot_counter += 1
|
self.has_r8152_issue_history = True
|
||||||
|
return
|
||||||
|
|
||||||
if self.reboot_counter > 0:
|
if self.has_r8152_issue_history and re.search(
|
||||||
self.raise_known_issue(
|
r"nfs: server \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} not responding, still trying",
|
||||||
"Forced reboot detected during test phase, failing the job..."
|
line["msg"],
|
||||||
|
):
|
||||||
|
raise MesaCIKnownIssueException(
|
||||||
|
f"{CONSOLE_LOG['FG_MAGENTA']}"
|
||||||
|
"Probable network issue failure encountered, retrying the job"
|
||||||
|
f"{CONSOLE_LOG['RESET']}"
|
||||||
)
|
)
|
||||||
|
|
||||||
# If the a6xx gpu repeatedly fails to recover over a short period of time,
|
self.has_r8152_issue_history = False
|
||||||
# then successful recovery is unlikely so cancel the job preemptively.
|
|
||||||
def detect_a6xx_gpu_recovery_failure(self, line: dict[str, Any]) -> None:
|
|
||||||
if search_known_issue_patterns(A6XX_GPU_RECOVERY_FAILURE_MESSAGE, line["msg"]):
|
|
||||||
time_of_failure = datetime.fromisoformat(line["dt"])
|
|
||||||
self.a6xx_gpu_recovery_fail_counter += 1
|
|
||||||
|
|
||||||
if self.a6xx_gpu_first_fail_time is None:
|
|
||||||
self.a6xx_gpu_first_fail_time = time_of_failure
|
|
||||||
|
|
||||||
if self.a6xx_gpu_recovery_fail_counter == A6XX_GPU_RECOVERY_FAILURE_MAX_COUNT:
|
|
||||||
time_since_first_fail = time_of_failure - self.a6xx_gpu_first_fail_time
|
|
||||||
if time_since_first_fail <= timedelta(minutes=A6XX_GPU_RECOVERY_WATCH_PERIOD_MIN):
|
|
||||||
self.raise_known_issue(
|
|
||||||
"Repeated GPU recovery failure detected: cancelling the job"
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
self.a6xx_gpu_first_fail_time = None
|
|
||||||
self.a6xx_gpu_recovery_fail_counter = 0
|
|
||||||
|
@@ -187,25 +187,6 @@ class LogFollower:
|
|||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def ignore_dut_feedback_lines(self, line: dict[str, str]) -> bool:
|
|
||||||
"""
|
|
||||||
Ignores feedback lines from LAVA.
|
|
||||||
If we only receive this level of message for some time, it means that the job is
|
|
||||||
misbehaving. E.g Rebooting.
|
|
||||||
|
|
||||||
Args:
|
|
||||||
line: A dictionary representing a single log line.
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
A boolean indicating whether the current line is a feedback line.
|
|
||||||
"""
|
|
||||||
if line["lvl"] == "feedback" and line["ns"] == "dut":
|
|
||||||
return True
|
|
||||||
if line["lvl"] == "debug":
|
|
||||||
# This message happens after LAVA end receiving the feedback from the DUT
|
|
||||||
if line["msg"] == "Listened to connection for namespace 'dut' done":
|
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
def feed(self, new_lines: list[dict[str, str]]) -> bool:
|
def feed(self, new_lines: list[dict[str, str]]) -> bool:
|
||||||
"""Input data to be processed by LogFollower instance
|
"""Input data to be processed by LogFollower instance
|
||||||
@@ -226,9 +207,6 @@ class LogFollower:
|
|||||||
if self.merge_carriage_return_lines(line):
|
if self.merge_carriage_return_lines(line):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if self.ignore_dut_feedback_lines(line):
|
|
||||||
continue
|
|
||||||
|
|
||||||
# At least we are fed with a non-kernel dump log, it seems that the
|
# At least we are fed with a non-kernel dump log, it seems that the
|
||||||
# job is progressing
|
# job is progressing
|
||||||
is_job_healthy = True
|
is_job_healthy = True
|
||||||
|
@@ -28,15 +28,15 @@ script after sourcing "dut-env-vars.sh" again for the second SSH test case.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
import re
|
from pathlib import Path
|
||||||
from typing import TYPE_CHECKING, Any, Iterable
|
from typing import Any
|
||||||
|
|
||||||
from ruamel.yaml.scalarstring import LiteralScalarString
|
from .lava_job_definition import (
|
||||||
|
NUMBER_OF_ATTEMPTS_LAVA_BOOT,
|
||||||
from .constants import NUMBER_OF_ATTEMPTS_LAVA_BOOT
|
artifact_download_steps,
|
||||||
|
generate_metadata,
|
||||||
if TYPE_CHECKING:
|
to_yaml_block,
|
||||||
from ..lava_job_submitter import LAVAJobSubmitter
|
)
|
||||||
|
|
||||||
# Very early SSH server setup. Uses /dut_ready file to flag it is done.
|
# Very early SSH server setup. Uses /dut_ready file to flag it is done.
|
||||||
SSH_SERVER_COMMANDS = {
|
SSH_SERVER_COMMANDS = {
|
||||||
@@ -79,23 +79,12 @@ lava_ssh_test_case() {
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
def to_yaml_block(steps_array: Iterable[str], escape_vars=[]) -> LiteralScalarString:
|
def generate_dut_test(args):
|
||||||
def escape_envvar(match):
|
|
||||||
return "\\" + match.group(0)
|
|
||||||
|
|
||||||
filtered_array = [s for s in steps_array if s.strip() and not s.startswith("#")]
|
|
||||||
final_str = "\n".join(filtered_array)
|
|
||||||
|
|
||||||
for escape_var in escape_vars:
|
|
||||||
# Find env vars and add '\\' before them
|
|
||||||
final_str = re.sub(rf"\${escape_var}*", escape_envvar, final_str)
|
|
||||||
return LiteralScalarString(final_str)
|
|
||||||
|
|
||||||
|
|
||||||
def generate_dut_test(args: "LAVAJobSubmitter", first_stage_steps: list[str]) -> dict[str, Any]:
|
|
||||||
# Commands executed on DUT.
|
# Commands executed on DUT.
|
||||||
# Trying to execute the minimal number of commands, because the console data is
|
# Trying to execute the minimal number of commands, because the console data is
|
||||||
# retrieved via UART, which is hang-prone in some devices.
|
# retrieved via UART, which is hang-prone in some devices.
|
||||||
|
|
||||||
|
first_stage_steps: list[str] = Path(args.first_stage_init).read_text().splitlines()
|
||||||
return {
|
return {
|
||||||
"namespace": "dut",
|
"namespace": "dut",
|
||||||
"definitions": [
|
"definitions": [
|
||||||
@@ -120,9 +109,7 @@ def generate_dut_test(args: "LAVAJobSubmitter", first_stage_steps: list[str]) ->
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def generate_docker_test(
|
def generate_docker_test(args):
|
||||||
args: "LAVAJobSubmitter", artifact_download_steps: list[str]
|
|
||||||
) -> dict[str, Any]:
|
|
||||||
# This is a growing list of commands that will be executed by the docker
|
# This is a growing list of commands that will be executed by the docker
|
||||||
# guest, which will be the SSH client.
|
# guest, which will be the SSH client.
|
||||||
docker_commands = []
|
docker_commands = []
|
||||||
@@ -161,14 +148,14 @@ def generate_docker_test(
|
|||||||
(
|
(
|
||||||
"lava_ssh_test_case 'artifact_download' 'bash --' << EOF",
|
"lava_ssh_test_case 'artifact_download' 'bash --' << EOF",
|
||||||
"source /dut-env-vars.sh",
|
"source /dut-env-vars.sh",
|
||||||
*artifact_download_steps,
|
*artifact_download_steps(args),
|
||||||
"EOF",
|
"EOF",
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
"export SSH_PTY_ARGS=-tt",
|
"export SSH_PTY_ARGS=-tt",
|
||||||
# Putting CI_JOB name as the testcase name, it may help LAVA farm
|
# Putting CI_JOB name as the testcase name, it may help LAVA farm
|
||||||
# maintainers with monitoring
|
# maintainers with monitoring
|
||||||
f"lava_ssh_test_case '{args.project_name}_{args.mesa_job_name}' "
|
f"lava_ssh_test_case 'mesa-ci_{args.mesa_job_name}' "
|
||||||
# Changing directory to /, as the HWCI_SCRIPT expects that
|
# Changing directory to /, as the HWCI_SCRIPT expects that
|
||||||
"'\"cd / && /init-stage2.sh\"'",
|
"'\"cd / && /init-stage2.sh\"'",
|
||||||
]
|
]
|
||||||
@@ -176,21 +163,46 @@ def generate_docker_test(
|
|||||||
return init_stages_test
|
return init_stages_test
|
||||||
|
|
||||||
|
|
||||||
def wrap_final_deploy_action(final_deploy_action: dict):
|
def generate_lava_yaml_payload(args) -> dict[str, Any]:
|
||||||
wrap = {
|
values = generate_metadata(args)
|
||||||
|
|
||||||
|
# URLs to our kernel rootfs to boot from, both generated by the base
|
||||||
|
# container build
|
||||||
|
deploy = {
|
||||||
"namespace": "dut",
|
"namespace": "dut",
|
||||||
"failure_retry": NUMBER_OF_ATTEMPTS_LAVA_BOOT,
|
"failure_retry": NUMBER_OF_ATTEMPTS_LAVA_BOOT,
|
||||||
"timeout": {"minutes": 10},
|
"timeout": {"minutes": 10},
|
||||||
|
"timeouts": {"http-download": {"minutes": 2}},
|
||||||
|
"to": "tftp",
|
||||||
|
"os": "oe",
|
||||||
|
"kernel": {"url": f"{args.kernel_url_prefix}/{args.kernel_image_name}"},
|
||||||
|
"nfsrootfs": {
|
||||||
|
"url": f"{args.rootfs_url_prefix}/lava-rootfs.tar.zst",
|
||||||
|
"compression": "zstd",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
if args.kernel_image_type:
|
||||||
|
deploy["kernel"]["type"] = args.kernel_image_type
|
||||||
|
if args.dtb_filename:
|
||||||
|
deploy["dtb"] = {"url": f"{args.kernel_url_prefix}/{args.dtb_filename}.dtb"}
|
||||||
|
|
||||||
final_deploy_action.update(wrap)
|
# always boot over NFS
|
||||||
|
boot = {
|
||||||
|
|
||||||
def wrap_boot_action(boot_action: dict):
|
|
||||||
wrap = {
|
|
||||||
"namespace": "dut",
|
"namespace": "dut",
|
||||||
"failure_retry": NUMBER_OF_ATTEMPTS_LAVA_BOOT,
|
"failure_retry": NUMBER_OF_ATTEMPTS_LAVA_BOOT,
|
||||||
|
"method": args.boot_method,
|
||||||
|
"commands": "nfs",
|
||||||
|
"prompts": ["lava-shell:"],
|
||||||
**SSH_SERVER_COMMANDS,
|
**SSH_SERVER_COMMANDS,
|
||||||
}
|
}
|
||||||
|
|
||||||
boot_action.update(wrap)
|
# only declaring each job as a single 'test' since LAVA's test parsing is
|
||||||
|
# not useful to us
|
||||||
|
values["actions"] = [
|
||||||
|
{"deploy": deploy},
|
||||||
|
{"boot": boot},
|
||||||
|
{"test": generate_dut_test(args)},
|
||||||
|
{"test": generate_docker_test(args)},
|
||||||
|
]
|
||||||
|
|
||||||
|
return values
|
||||||
|
@@ -1,23 +1,22 @@
|
|||||||
from typing import TYPE_CHECKING, Any
|
from typing import Any
|
||||||
|
from .lava_job_definition import (
|
||||||
if TYPE_CHECKING:
|
generate_metadata,
|
||||||
from ..lava_job_submitter import LAVAJobSubmitter
|
NUMBER_OF_ATTEMPTS_LAVA_BOOT,
|
||||||
from .lava_job_definition import LAVAJobDefinition
|
artifact_download_steps,
|
||||||
|
)
|
||||||
from .constants import NUMBER_OF_ATTEMPTS_LAVA_BOOT
|
|
||||||
|
|
||||||
# Use the same image that is being used for the hardware enablement and health-checks.
|
|
||||||
# They are pretty small (<100MB) and have all the tools we need to run LAVA, so it is a safe choice.
|
|
||||||
# You can find the Dockerfile here:
|
|
||||||
# https://gitlab.collabora.com/lava/health-check-docker/-/blob/main/Dockerfile
|
|
||||||
# And the registry here: https://gitlab.collabora.com/lava/health-check-docker/container_registry/
|
|
||||||
DOCKER_IMAGE = "registry.gitlab.collabora.com/lava/health-check-docker"
|
|
||||||
|
|
||||||
|
|
||||||
def fastboot_deploy_actions(
|
def generate_lava_yaml_payload(args) -> dict[str, Any]:
|
||||||
job_definition: "LAVAJobDefinition", nfsrootfs
|
values = generate_metadata(args)
|
||||||
) -> tuple[dict[str, Any], ...]:
|
|
||||||
args = job_definition.job_submitter
|
# URLs to our kernel rootfs to boot from, both generated by the base
|
||||||
|
# container build
|
||||||
|
|
||||||
|
nfsrootfs = {
|
||||||
|
"url": f"{args.rootfs_url_prefix}/lava-rootfs.tar.zst",
|
||||||
|
"compression": "zstd",
|
||||||
|
}
|
||||||
|
|
||||||
fastboot_deploy_nfs = {
|
fastboot_deploy_nfs = {
|
||||||
"timeout": {"minutes": 10},
|
"timeout": {"minutes": 10},
|
||||||
"to": "nfs",
|
"to": "nfs",
|
||||||
@@ -35,7 +34,7 @@ def fastboot_deploy_actions(
|
|||||||
},
|
},
|
||||||
"postprocess": {
|
"postprocess": {
|
||||||
"docker": {
|
"docker": {
|
||||||
"image": DOCKER_IMAGE,
|
"image": "registry.gitlab.collabora.com/lava/health-check-docker",
|
||||||
"steps": [
|
"steps": [
|
||||||
f"cat Image.gz {args.dtb_filename}.dtb > Image.gz+dtb",
|
f"cat Image.gz {args.dtb_filename}.dtb > Image.gz+dtb",
|
||||||
"mkbootimg --kernel Image.gz+dtb"
|
"mkbootimg --kernel Image.gz+dtb"
|
||||||
@@ -45,28 +44,13 @@ def fastboot_deploy_actions(
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
if args.kernel_image_type:
|
||||||
fastboot_deploy = {
|
fastboot_deploy_prepare["images"]["kernel"]["type"] = args.kernel_image_type
|
||||||
"timeout": {"minutes": 2},
|
if args.dtb_filename:
|
||||||
"to": "fastboot",
|
fastboot_deploy_prepare["images"]["dtb"] = {
|
||||||
"docker": {
|
"url": f"{args.kernel_url_prefix}/{args.dtb_filename}.dtb"
|
||||||
"image": DOCKER_IMAGE,
|
|
||||||
},
|
|
||||||
"images": {
|
|
||||||
"boot": {"url": "downloads://boot.img"},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# URLs to our kernel rootfs to boot from, both generated by the base
|
|
||||||
# container build
|
|
||||||
job_definition.attach_kernel_and_dtb(fastboot_deploy_prepare["images"])
|
|
||||||
job_definition.attach_external_modules(fastboot_deploy_nfs)
|
|
||||||
|
|
||||||
return (fastboot_deploy_nfs, fastboot_deploy_prepare, fastboot_deploy)
|
|
||||||
|
|
||||||
|
|
||||||
def tftp_deploy_actions(job_definition: "LAVAJobDefinition", nfsrootfs) -> tuple[dict[str, Any]]:
|
|
||||||
args = job_definition.job_submitter
|
|
||||||
tftp_deploy = {
|
tftp_deploy = {
|
||||||
"timeout": {"minutes": 5},
|
"timeout": {"minutes": 5},
|
||||||
"to": "tftp",
|
"to": "tftp",
|
||||||
@@ -76,33 +60,40 @@ def tftp_deploy_actions(job_definition: "LAVAJobDefinition", nfsrootfs) -> tuple
|
|||||||
},
|
},
|
||||||
"nfsrootfs": nfsrootfs,
|
"nfsrootfs": nfsrootfs,
|
||||||
}
|
}
|
||||||
job_definition.attach_kernel_and_dtb(tftp_deploy)
|
if args.kernel_image_type:
|
||||||
job_definition.attach_external_modules(tftp_deploy)
|
tftp_deploy["kernel"]["type"] = args.kernel_image_type
|
||||||
|
if args.dtb_filename:
|
||||||
|
tftp_deploy["dtb"] = {
|
||||||
|
"url": f"{args.kernel_url_prefix}/{args.dtb_filename}.dtb"
|
||||||
|
}
|
||||||
|
|
||||||
return (tftp_deploy,)
|
fastboot_deploy = {
|
||||||
|
"timeout": {"minutes": 2},
|
||||||
|
"to": "fastboot",
|
||||||
def qemu_deploy_actions(job_definition: "LAVAJobDefinition", nfsrootfs) -> tuple[dict[str, Any]]:
|
"docker": {
|
||||||
args = job_definition.job_submitter
|
"image": "registry.gitlab.collabora.com/lava/health-check-docker",
|
||||||
qemu_deploy = {
|
|
||||||
"timeout": {"minutes": 5},
|
|
||||||
"to": "nfs",
|
|
||||||
"images": {
|
|
||||||
"kernel": {
|
|
||||||
"image_arg": "-kernel {kernel}",
|
|
||||||
"url": f"{args.kernel_url_prefix}/{args.kernel_image_name}",
|
|
||||||
},
|
},
|
||||||
"nfsrootfs": nfsrootfs,
|
"images": {
|
||||||
|
"boot": {"url": "downloads://boot.img"},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
job_definition.attach_external_modules(qemu_deploy)
|
|
||||||
|
|
||||||
return (qemu_deploy,)
|
fastboot_boot = {
|
||||||
|
"timeout": {"minutes": 2},
|
||||||
|
"docker": {"image": "registry.gitlab.collabora.com/lava/health-check-docker"},
|
||||||
|
"failure_retry": NUMBER_OF_ATTEMPTS_LAVA_BOOT,
|
||||||
|
"method": args.boot_method,
|
||||||
|
"prompts": ["lava-shell:"],
|
||||||
|
"commands": ["set_active a"],
|
||||||
|
}
|
||||||
|
|
||||||
|
tftp_boot = {
|
||||||
|
"failure_retry": NUMBER_OF_ATTEMPTS_LAVA_BOOT,
|
||||||
|
"method": args.boot_method,
|
||||||
|
"prompts": ["lava-shell:"],
|
||||||
|
"commands": "nfs",
|
||||||
|
}
|
||||||
|
|
||||||
def uart_test_actions(
|
|
||||||
args: "LAVAJobSubmitter", init_stage1_steps: list[str], artifact_download_steps: list[str]
|
|
||||||
) -> tuple[dict[str, Any]]:
|
|
||||||
# skeleton test definition: only declaring each job as a single 'test'
|
# skeleton test definition: only declaring each job as a single 'test'
|
||||||
# since LAVA's test parsing is not useful to us
|
# since LAVA's test parsing is not useful to us
|
||||||
run_steps = []
|
run_steps = []
|
||||||
@@ -129,8 +120,26 @@ def uart_test_actions(
|
|||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
run_steps += init_stage1_steps
|
# job execution script:
|
||||||
run_steps += artifact_download_steps
|
# - inline .gitlab-ci/common/init-stage1.sh
|
||||||
|
# - fetch and unpack per-pipeline build artifacts from build job
|
||||||
|
# - fetch and unpack per-job environment from lava-submit.sh
|
||||||
|
# - exec .gitlab-ci/common/init-stage2.sh
|
||||||
|
|
||||||
|
with open(args.first_stage_init, "r") as init_sh:
|
||||||
|
run_steps += [
|
||||||
|
x.rstrip() for x in init_sh if not x.startswith("#") and x.rstrip()
|
||||||
|
]
|
||||||
|
# We cannot distribute the Adreno 660 shader firmware inside rootfs,
|
||||||
|
# since the license isn't bundled inside the repository
|
||||||
|
if args.device_type == "sm8350-hdk":
|
||||||
|
run_steps.append(
|
||||||
|
"curl -L --retry 4 -f --retry-all-errors --retry-delay 60 "
|
||||||
|
+ "https://github.com/allahjasif1990/hdk888-firmware/raw/main/a660_zap.mbn "
|
||||||
|
+ '-o "/lib/firmware/qcom/sm8350/a660_zap.mbn"'
|
||||||
|
)
|
||||||
|
|
||||||
|
run_steps += artifact_download_steps(args)
|
||||||
|
|
||||||
run_steps += [
|
run_steps += [
|
||||||
f"mkdir -p {args.ci_project_dir}",
|
f"mkdir -p {args.ci_project_dir}",
|
||||||
@@ -141,41 +150,22 @@ def uart_test_actions(
|
|||||||
"sleep 1",
|
"sleep 1",
|
||||||
# Putting CI_JOB name as the testcase name, it may help LAVA farm
|
# Putting CI_JOB name as the testcase name, it may help LAVA farm
|
||||||
# maintainers with monitoring
|
# maintainers with monitoring
|
||||||
f"lava-test-case '{args.project_name}_{args.mesa_job_name}' --shell /init-stage2.sh",
|
f"lava-test-case 'mesa-ci_{args.mesa_job_name}' --shell /init-stage2.sh",
|
||||||
]
|
]
|
||||||
|
|
||||||
return (test,)
|
if args.boot_method == "fastboot":
|
||||||
|
values["actions"] = [
|
||||||
|
{"deploy": fastboot_deploy_nfs},
|
||||||
|
{"deploy": fastboot_deploy_prepare},
|
||||||
|
{"deploy": fastboot_deploy},
|
||||||
|
{"boot": fastboot_boot},
|
||||||
|
{"test": test},
|
||||||
|
]
|
||||||
|
else: # tftp
|
||||||
|
values["actions"] = [
|
||||||
|
{"deploy": tftp_deploy},
|
||||||
|
{"boot": tftp_boot},
|
||||||
|
{"test": test},
|
||||||
|
]
|
||||||
|
|
||||||
|
return values
|
||||||
def tftp_boot_action(args: "LAVAJobSubmitter") -> dict[str, Any]:
|
|
||||||
tftp_boot = {
|
|
||||||
"failure_retry": NUMBER_OF_ATTEMPTS_LAVA_BOOT,
|
|
||||||
"method": args.boot_method,
|
|
||||||
"prompts": ["lava-shell:"],
|
|
||||||
"commands": "nfs",
|
|
||||||
}
|
|
||||||
|
|
||||||
return tftp_boot
|
|
||||||
|
|
||||||
|
|
||||||
def qemu_boot_action(args: "LAVAJobSubmitter") -> dict[str, Any]:
|
|
||||||
qemu_boot = {
|
|
||||||
"failure_retry": NUMBER_OF_ATTEMPTS_LAVA_BOOT,
|
|
||||||
"method": args.boot_method,
|
|
||||||
"prompts": ["lava-shell:"],
|
|
||||||
}
|
|
||||||
|
|
||||||
return qemu_boot
|
|
||||||
|
|
||||||
|
|
||||||
def fastboot_boot_action(args: "LAVAJobSubmitter") -> dict[str, Any]:
|
|
||||||
fastboot_boot = {
|
|
||||||
"timeout": {"minutes": 2},
|
|
||||||
"docker": {"image": DOCKER_IMAGE},
|
|
||||||
"failure_retry": NUMBER_OF_ATTEMPTS_LAVA_BOOT,
|
|
||||||
"method": args.boot_method,
|
|
||||||
"prompts": ["lava-shell:"],
|
|
||||||
"commands": ["set_active a"],
|
|
||||||
}
|
|
||||||
|
|
||||||
return fastboot_boot
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
# shellcheck disable=SC1003 # works for us now...
|
# shellcheck disable=SC1003 # works for us now...
|
||||||
# shellcheck disable=SC2086 # we want word splitting
|
# shellcheck disable=SC2086 # we want word splitting
|
||||||
|
|
||||||
section_switch meson-cross-file "meson: cross file generate"
|
section_switch meson-configure "meson: configure"
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
@@ -49,42 +49,11 @@ if [ -n "$CROSS" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$HOST_BUILD_OPTIONS" ]; then
|
|
||||||
section_switch meson-host-configure "meson: host configure"
|
|
||||||
|
|
||||||
# Stash the PKG_CONFIG_LIBDIR so that we can use the base x86_64 image
|
|
||||||
# libraries.
|
|
||||||
tmp_pkg_config_libdir=$PKG_CONFIG_LIBDIR
|
|
||||||
unset PKG_CONFIG_LIBDIR
|
|
||||||
|
|
||||||
# Compile a host version for the few tools we need for a cross build (for
|
|
||||||
# now just intel-clc)
|
|
||||||
rm -rf _host_build
|
|
||||||
meson setup _host_build \
|
|
||||||
--native-file=native.file \
|
|
||||||
-D prefix=/usr \
|
|
||||||
-D libdir=lib \
|
|
||||||
${HOST_BUILD_OPTIONS}
|
|
||||||
|
|
||||||
pushd _host_build
|
|
||||||
|
|
||||||
section_switch meson-host-build "meson: host build"
|
|
||||||
|
|
||||||
meson configure
|
|
||||||
ninja
|
|
||||||
ninja install
|
|
||||||
popd
|
|
||||||
|
|
||||||
# Restore PKG_CONFIG_LIBDIR
|
|
||||||
if [ -n "$tmp_pkg_config_libdir" ]; then
|
|
||||||
export PKG_CONFIG_LIBDIR=$tmp_pkg_config_libdir
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Only use GNU time if available, not any shell built-in command
|
# Only use GNU time if available, not any shell built-in command
|
||||||
case $CI_JOB_NAME in
|
case $CI_JOB_NAME in
|
||||||
|
# strace and wine don't seem to mix well
|
||||||
# ASAN leak detection is incompatible with strace
|
# ASAN leak detection is incompatible with strace
|
||||||
*-asan*)
|
debian-mingw32-x86_64|*-asan*)
|
||||||
if test -f /usr/bin/time; then
|
if test -f /usr/bin/time; then
|
||||||
MESON_TEST_ARGS+=--wrapper=$PWD/.gitlab-ci/meson/time.sh
|
MESON_TEST_ARGS+=--wrapper=$PWD/.gitlab-ci/meson/time.sh
|
||||||
fi
|
fi
|
||||||
@@ -98,13 +67,11 @@ case $CI_JOB_NAME in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
section_switch meson-configure "meson: configure"
|
|
||||||
|
|
||||||
rm -rf _build
|
rm -rf _build
|
||||||
meson setup _build \
|
meson setup _build \
|
||||||
--native-file=native.file \
|
--native-file=native.file \
|
||||||
--wrap-mode=nofallback \
|
--wrap-mode=nofallback \
|
||||||
--force-fallback-for perfetto,syn,paste \
|
--force-fallback-for perfetto \
|
||||||
${CROSS+--cross "$CROSS_FILE"} \
|
${CROSS+--cross "$CROSS_FILE"} \
|
||||||
-D prefix=$PWD/install \
|
-D prefix=$PWD/install \
|
||||||
-D libdir=lib \
|
-D libdir=lib \
|
||||||
@@ -118,10 +85,9 @@ meson setup _build \
|
|||||||
-D libunwind=${UNWIND} \
|
-D libunwind=${UNWIND} \
|
||||||
${DRI_LOADERS} \
|
${DRI_LOADERS} \
|
||||||
${GALLIUM_ST} \
|
${GALLIUM_ST} \
|
||||||
-D gallium-opencl=disabled \
|
|
||||||
-D gallium-drivers=${GALLIUM_DRIVERS:-[]} \
|
-D gallium-drivers=${GALLIUM_DRIVERS:-[]} \
|
||||||
-D vulkan-drivers=${VULKAN_DRIVERS:-[]} \
|
-D vulkan-drivers=${VULKAN_DRIVERS:-[]} \
|
||||||
-D video-codecs=all \
|
-D video-codecs=h264dec,h264enc,h265dec,h265enc,vc1dec \
|
||||||
-D werror=true \
|
-D werror=true \
|
||||||
${EXTRA_OPTION}
|
${EXTRA_OPTION}
|
||||||
cd _build
|
cd _build
|
||||||
@@ -138,11 +104,10 @@ fi
|
|||||||
|
|
||||||
uncollapsed_section_switch meson-test "meson: test"
|
uncollapsed_section_switch meson-test "meson: test"
|
||||||
LC_ALL=C.UTF-8 meson test --num-processes "${FDO_CI_CONCURRENT:-4}" --print-errorlogs ${MESON_TEST_ARGS}
|
LC_ALL=C.UTF-8 meson test --num-processes "${FDO_CI_CONCURRENT:-4}" --print-errorlogs ${MESON_TEST_ARGS}
|
||||||
section_switch meson-install "meson: install"
|
|
||||||
if command -V mold &> /dev/null ; then
|
if command -V mold &> /dev/null ; then
|
||||||
mold --run ninja install
|
mold --run ninja install
|
||||||
else
|
else
|
||||||
ninja install
|
ninja install
|
||||||
fi
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
section_end meson-install
|
section_end meson-test
|
||||||
|
@@ -13,7 +13,7 @@ INSTALL="$PWD/install"
|
|||||||
# Set up the driver environment.
|
# Set up the driver environment.
|
||||||
export LD_LIBRARY_PATH="$INSTALL/lib/"
|
export LD_LIBRARY_PATH="$INSTALL/lib/"
|
||||||
export EGL_PLATFORM=surfaceless
|
export EGL_PLATFORM=surfaceless
|
||||||
export VK_DRIVER_FILES="$INSTALL/share/vulkan/icd.d/${VK_DRIVER}_icd.${VK_CPU:-$(uname -m)}.json"
|
export VK_ICD_FILENAMES="$INSTALL/share/vulkan/icd.d/${VK_DRIVER}_icd.${VK_CPU:-$(uname -m)}.json"
|
||||||
|
|
||||||
RESULTS=$PWD/${PIGLIT_RESULTS_DIR:-results}
|
RESULTS=$PWD/${PIGLIT_RESULTS_DIR:-results}
|
||||||
mkdir -p $RESULTS
|
mkdir -p $RESULTS
|
||||||
@@ -106,7 +106,7 @@ deqp-runner junit \
|
|||||||
--results $RESULTS/failures.csv \
|
--results $RESULTS/failures.csv \
|
||||||
--output $RESULTS/junit.xml \
|
--output $RESULTS/junit.xml \
|
||||||
--limit 50 \
|
--limit 50 \
|
||||||
--template "See $ARTIFACTS_BASE_URL/results/{{testcase}}.xml"
|
--template "See https://$CI_PROJECT_ROOT_NAMESPACE.pages.freedesktop.org/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/results/{{testcase}}.xml"
|
||||||
|
|
||||||
# Report the flakes to the IRC channel for monitoring (if configured):
|
# Report the flakes to the IRC channel for monitoring (if configured):
|
||||||
if [ -n "$FLAKES_CHANNEL" ]; then
|
if [ -n "$FLAKES_CHANNEL" ]; then
|
||||||
@@ -120,7 +120,7 @@ if [ -n "$FLAKES_CHANNEL" ]; then
|
|||||||
--job "$CI_JOB_ID" \
|
--job "$CI_JOB_ID" \
|
||||||
--url "$CI_JOB_URL" \
|
--url "$CI_JOB_URL" \
|
||||||
--branch "${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME:-$CI_COMMIT_BRANCH}" \
|
--branch "${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME:-$CI_COMMIT_BRANCH}" \
|
||||||
--branch-title "${CI_MERGE_REQUEST_TITLE:-$CI_COMMIT_TITLE}" || true
|
--branch-title "${CI_MERGE_REQUEST_TITLE:-$CI_COMMIT_TITLE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Compress results.csv to save on bandwidth during the upload of artifacts to
|
# Compress results.csv to save on bandwidth during the upload of artifacts to
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user